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-randconfig-r011-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
fcc1ce00931751ac02498986feb37744e9ace8de)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
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=clang 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 >>):
In file included from drivers/gpu/drm/tegra/dc.c:10:
include/linux/iommu.h:1064:36: error: redefinition of 'dev_iommu_fwspec_get'
static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
^
include/linux/iommu.h:982:36: note: previous definition is here
static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
^
> drivers/gpu/drm/tegra/dc.c:939:13: error: use of undeclared
identifier 'CURSOR_COMPOSITION_MODE_XORG'
value &=
~CURSOR_COMPOSITION_MODE_XORG;
^
2 errors generated.
vim +/CURSOR_COMPOSITION_MODE_XORG +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