tree:
https://github.com/thierryreding/linux for-5.13/work
head: 009ea3ee74a12859073a37d2ef800fa154ff7705
commit: bbc118a5ae5360b4b9f62107d199ed6473f1cd4e [41/49] drm/tegra: dc: Implement hardware
cursor on Tegra186 and later
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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/thierryreding/linux/commit/bbc118a5ae5360b4b9f62107d19...
git remote add thierryreding
https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.13/work
git checkout bbc118a5ae5360b4b9f62107d199ed6473f1cd4e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/tegra/dc.c: In function 'tegra_cursor_atomic_update':
> drivers/gpu/drm/tegra/dc.c:939:13: error:
'CURSOR_COMPOSITION_MODE_XORG' undeclared (first use in this function); did you
mean 'CURSOR_COMPOSITION_MODE_XOR'?
939 | value &=
~CURSOR_COMPOSITION_MODE_XORG;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| CURSOR_COMPOSITION_MODE_XOR
drivers/gpu/drm/tegra/dc.c:939:13: note: each undeclared identifier is reported only
once for each function it appears in
drivers/gpu/drm/tegra/dc.c:883:6: warning: unused variable 'dma_mask'
[-Wunused-variable]
883 | u64 dma_mask = *dc->dev->dma_mask;
| ^~~~~~~~
vim +939 drivers/gpu/drm/tegra/dc.c
928
929 /* enable cursor and set blend mode */
930 value = tegra_dc_readl(dc, DC_DISP_DISP_WIN_OPTIONS);
931 value |= CURSOR_ENABLE;
932 tegra_dc_writel(dc, value, DC_DISP_DISP_WIN_OPTIONS);
933
934 value = tegra_dc_readl(dc, DC_DISP_BLEND_CURSOR_CONTROL);
935 value &= ~CURSOR_DST_BLEND_MASK;
936 value &= ~CURSOR_SRC_BLEND_MASK;
937
938 if (dc->soc->has_nvdisplay)
939 value &= ~CURSOR_COMPOSITION_MODE_XORG;
940 else
941 value |= CURSOR_MODE_NORMAL;
942
943 value |= CURSOR_DST_BLEND_NEG_K1_TIMES_SRC;
944 value |= CURSOR_SRC_BLEND_K1_TIMES_SRC;
945 value |= CURSOR_ALPHA;
946 tegra_dc_writel(dc, value, DC_DISP_BLEND_CURSOR_CONTROL);
947
948 /* nvdisplay relies on software for clipping */
949 if (dc->soc->has_nvdisplay) {
950 unsigned int i, j, w, h;
951
952 x = new_state->dst.x1;
953 y = new_state->dst.y1;
954
955 i = new_state->src.x1 >> 16;
956 j = new_state->src.y1 >> 16;
957
958 value = ((j & tegra->vmask) << 16) | (i & tegra->hmask);
959 tegra_dc_writel(dc, value, DC_DISP_PCALC_HEAD_SET_CROPPED_POINT_IN_CURSOR);
960
961 w = (new_state->src.x2 - new_state->src.x1) >> 16;
962 h = (new_state->src.y2 - new_state->src.y1) >> 16;
963
964 value = ((h & tegra->vmask) << 16) | (w & tegra->hmask);
965 tegra_dc_writel(dc, value, DC_DISP_PCALC_HEAD_SET_CROPPED_SIZE_IN_CURSOR);
966 } else {
967 x = new_state->crtc_x;
968 y = new_state->crtc_y;
969 }
970
971 /* position the cursor */
972 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask);
973 tegra_dc_writel(dc, value, DC_DISP_CURSOR_POSITION);
974 }
975
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org