[Intel-gfx] [PATCH 3/3] CABC support for Panel PWM backlight control

kbuild test robot lkp at intel.com
Tue Apr 26 14:23:53 UTC 2016


Hi,

[auto build test ERROR on drm-intel/for-linux-next]
[cannot apply to v4.6-rc5 next-20160426]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Jani-Nikula/drm-i915-dsi-dcs-backlight-control/20160426-211653
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-s0-201617 (attached as .config)
compiler: 
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_get_backlight':
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:55:33: error: 'MIPI_DCS_GET_DISPLAY_BRIGHTNESS' undeclared (first use in this function)
      mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_DISPLAY_BRIGHTNESS,
                                    ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:55:33: note: each undeclared identifier is reported only once for each function it appears in
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_set_backlight':
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:74:34: error: 'MIPI_DCS_SET_DISPLAY_BRIGHTNESS' undeclared (first use in this function)
      mipi_dsi_dcs_write(dsi_device, MIPI_DCS_SET_DISPLAY_BRIGHTNESS,
                                     ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_disable_backlight':
>> drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:92:34: error: 'MIPI_DCS_WRITE_POWER_SAVE' undeclared (first use in this function)
      mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_POWER_SAVE,
                                     ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:101:33: error: 'MIPI_DCS_GET_CONTROL_DISPLAY' undeclared (first use in this function)
      mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_CONTROL_DISPLAY,
                                    ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:108:34: error: 'MIPI_DCS_WRITE_CONTROL_DISPLAY' undeclared (first use in this function)
      mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_CONTROL_DISPLAY,
                                     ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c: In function 'dcs_enable_backlight':
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:126:33: error: 'MIPI_DCS_GET_CONTROL_DISPLAY' undeclared (first use in this function)
      mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_CONTROL_DISPLAY,
                                    ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:133:34: error: 'MIPI_DCS_WRITE_CONTROL_DISPLAY' undeclared (first use in this function)
      mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_CONTROL_DISPLAY,
                                     ^
   drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c:141:34: error: 'MIPI_DCS_WRITE_POWER_SAVE' undeclared (first use in this function)
      mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_POWER_SAVE,
                                     ^

vim +/MIPI_DCS_WRITE_POWER_SAVE +92 drivers/gpu/drm/i915/intel_dsi_dcs_backlight.c

    49		u8 data;
    50		enum port port;
    51	
    52		/* FIXME: Need to take care of 16 bit brightness level */
    53		for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
    54			dsi_device = intel_dsi->dsi_hosts[port]->device;
  > 55			mipi_dsi_dcs_read(dsi_device, MIPI_DCS_GET_DISPLAY_BRIGHTNESS,
    56					  &data, sizeof(data));
    57			break;
    58		}
    59	
    60		return data;
    61	}
    62	
    63	static void dcs_set_backlight(struct intel_connector *connector, u32 level)
    64	{
    65		struct intel_encoder *encoder = connector->encoder;
    66		struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
    67		struct mipi_dsi_device *dsi_device;
    68		u8 data = level;
    69		enum port port;
    70	
    71		/* FIXME: Need to take care of 16 bit brightness level */
    72		for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
    73			dsi_device = intel_dsi->dsi_hosts[port]->device;
    74			mipi_dsi_dcs_write(dsi_device, MIPI_DCS_SET_DISPLAY_BRIGHTNESS,
    75					   &data, sizeof(data));
    76		}
    77	}
    78	
    79	static void dcs_disable_backlight(struct intel_connector *connector)
    80	{
    81		struct intel_encoder *encoder = connector->encoder;
    82		struct intel_dsi *intel_dsi = enc_to_intel_dsi(&encoder->base);
    83		struct mipi_dsi_device *dsi_device;
    84		enum port port;
    85	
    86		dcs_set_backlight(connector, 0);
    87	
    88		for_each_dsi_port(port, intel_dsi->dcs_cabc_ports) {
    89			u8 cabc = POWER_SAVE_OFF;
    90	
    91			dsi_device = intel_dsi->dsi_hosts[port]->device;
  > 92			mipi_dsi_dcs_write(dsi_device, MIPI_DCS_WRITE_POWER_SAVE,
    93					   &cabc, sizeof(cabc));
    94		}
    95	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 31074 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160426/2d43f03a/attachment-0001.obj>


More information about the Intel-gfx mailing list