[PATCH 9/9] drm: mxsfb: Add support for i.MX8MP LCDIF variant
kernel test robot
lkp at intel.com
Mon Feb 28 03:48:04 UTC 2022
Hi Marek,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-exynos/exynos-drm-next next-20220225]
[cannot apply to drm/drm-next drm-tip/drm-tip tegra-drm/drm/tegra/for-next v5.17-rc6]
[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]
url: https://github.com/0day-ci/linux/commits/Marek-Vasut/dt-bindings-mxsfb-Add-compatible-for-i-MX8MP/20220228-084809
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a002-20220228 (https://download.01.org/0day-ci/archive/20220228/202202281124.RFKJe01p-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/0day-ci/linux/commit/d6832d6fb879aabce18d9b451ed1ead1da38c333
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Marek-Vasut/dt-bindings-mxsfb-Add-compatible-for-i-MX8MP/20220228-084809
git checkout d6832d6fb879aabce18d9b451ed1ead1da38c333
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/mxsfb/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/mxsfb/mxsfb_kms.c:258:3: warning: variable 'ctrl' is uninitialized when used here [-Wuninitialized]
ctrl |= CTRL_INV_HS;
^~~~
drivers/gpu/drm/mxsfb/mxsfb_kms.c:255:10: note: initialize the variable 'ctrl' to silence this warning
u32 ctrl;
^
= 0
1 warning generated.
vim +/ctrl +258 drivers/gpu/drm/mxsfb/mxsfb_kms.c
251
252 static void mxsfb_v8_set_mode(struct mxsfb_drm_private *mxsfb, u32 bus_flags)
253 {
254 struct drm_display_mode *m = &mxsfb->crtc.state->adjusted_mode;
255 u32 ctrl;
256
257 if (m->flags & DRM_MODE_FLAG_PHSYNC)
> 258 ctrl |= CTRL_INV_HS;
259 if (m->flags & DRM_MODE_FLAG_PVSYNC)
260 ctrl |= CTRL_INV_VS;
261 /* Make sure Data Enable is high active by default */
262 if (!(bus_flags & DRM_BUS_FLAG_DE_LOW))
263 ctrl |= CTRL_INV_DE;
264 if (bus_flags & DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE)
265 ctrl |= CTRL_INV_PXCK;
266
267 writel(ctrl, mxsfb->base + LCDC_CTRL);
268
269 writel(DISP_SIZE_DELTA_Y(m->crtc_vdisplay) |
270 DISP_SIZE_DELTA_X(m->crtc_hdisplay),
271 mxsfb->base + LCDC_V8_DISP_SIZE);
272
273 writel(HSYN_PARA_BP_H(m->htotal - m->hsync_end) |
274 HSYN_PARA_FP_H(m->hsync_start - m->hdisplay),
275 mxsfb->base + LCDC_V8_HSYN_PARA);
276
277 writel(VSYN_PARA_BP_V(m->vtotal - m->vsync_end) |
278 VSYN_PARA_FP_V(m->vsync_start - m->vdisplay),
279 mxsfb->base + LCDC_V8_VSYN_PARA);
280
281 writel(VSYN_HSYN_WIDTH_PW_V(m->vsync_end - m->vsync_start) |
282 VSYN_HSYN_WIDTH_PW_H(m->hsync_end - m->hsync_start),
283 mxsfb->base + LCDC_V8_VSYN_HSYN_WIDTH);
284
285 writel(CTRLDESCL0_1_HEIGHT(m->crtc_vdisplay) |
286 CTRLDESCL0_1_WIDTH(m->crtc_hdisplay),
287 mxsfb->base + LCDC_V8_CTRLDESCL0_1);
288
289 writel(CTRLDESCL0_3_PITCH(mxsfb->crtc.primary->state->fb->pitches[0]),
290 mxsfb->base + LCDC_V8_CTRLDESCL0_3);
291 }
292
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
More information about the dri-devel
mailing list