[Freedreno] [PATCH] drm/msm/dsi: switch to DRM_PANEL_BRIDGE

kernel test robot lkp at intel.com
Thu Jul 7 00:50:11 UTC 2022


Hi Dmitry,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v5.19-rc5 next-20220706]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/drm-msm-dsi-switch-to-DRM_PANEL_BRIDGE/20220707-040414
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
config: arc-randconfig-r043-20220706 (https://download.01.org/0day-ci/archive/20220707/202207070852.WWBrOFY1-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/5eeb41ba36c536b30a6494df55ed441f005a6b11
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Dmitry-Baryshkov/drm-msm-dsi-switch-to-DRM_PANEL_BRIDGE/20220707-040414
        git checkout 5eeb41ba36c536b30a6494df55ed441f005a6b11
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/gpu/drm/msm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_modeset_init':
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2159:17: error: implicit declaration of function 'msm_dsi_host_get_panel'; did you mean 'msm_dsi_host_get_bridge'? [-Werror=implicit-function-declaration]
    2159 |         panel = msm_dsi_host_get_panel(&msm_host->base);
         |                 ^~~~~~~~~~~~~~~~~~~~~~
         |                 msm_dsi_host_get_bridge
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2159:15: warning: assignment to 'struct drm_panel *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2159 |         panel = msm_dsi_host_get_panel(&msm_host->base);
         |               ^
   cc1: some warnings being treated as errors


vim +2159 drivers/gpu/drm/msm/dsi/dsi_host.c

a689554ba6ed81c Hai Li      2015-03-31  2149  
a689554ba6ed81c Hai Li      2015-03-31  2150  int msm_dsi_host_modeset_init(struct mipi_dsi_host *host,
a689554ba6ed81c Hai Li      2015-03-31  2151  					struct drm_device *dev)
a689554ba6ed81c Hai Li      2015-03-31  2152  {
a689554ba6ed81c Hai Li      2015-03-31  2153  	struct msm_dsi_host *msm_host = to_msm_dsi_host(host);
8f7ca5409063ade Sibi Sankar 2018-05-29  2154  	const struct msm_dsi_cfg_handler *cfg_hnd = msm_host->cfg_hnd;
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2155  	struct drm_panel *panel;
a689554ba6ed81c Hai Li      2015-03-31  2156  	int ret;
a689554ba6ed81c Hai Li      2015-03-31  2157  
a689554ba6ed81c Hai Li      2015-03-31  2158  	msm_host->dev = dev;
0f40ba48de3b8a4 Vinod Koul  2022-04-06 @2159  	panel = msm_dsi_host_get_panel(&msm_host->base);
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2160  
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2161  	if (!IS_ERR(panel) && panel->dsc) {
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2162  		struct msm_display_dsc_config *dsc = msm_host->dsc;
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2163  
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2164  		if (!dsc) {
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2165  			dsc = devm_kzalloc(&msm_host->pdev->dev, sizeof(*dsc), GFP_KERNEL);
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2166  			if (!dsc)
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2167  				return -ENOMEM;
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2168  			dsc->drm = panel->dsc;
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2169  			msm_host->dsc = dsc;
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2170  		}
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2171  	}
0f40ba48de3b8a4 Vinod Koul  2022-04-06  2172  
8f7ca5409063ade Sibi Sankar 2018-05-29  2173  	ret = cfg_hnd->ops->tx_buf_alloc(msm_host, SZ_4K);
a689554ba6ed81c Hai Li      2015-03-31  2174  	if (ret) {
a689554ba6ed81c Hai Li      2015-03-31  2175  		pr_err("%s: alloc tx gem obj failed, %d\n", __func__, ret);
a689554ba6ed81c Hai Li      2015-03-31  2176  		return ret;
a689554ba6ed81c Hai Li      2015-03-31  2177  	}
a689554ba6ed81c Hai Li      2015-03-31  2178  
a689554ba6ed81c Hai Li      2015-03-31  2179  	return 0;
a689554ba6ed81c Hai Li      2015-03-31  2180  }
a689554ba6ed81c Hai Li      2015-03-31  2181  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


More information about the Freedreno mailing list