tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next head: 32d1ffcd3979b75b6d7271a3028f4df2ef181a88 commit: f7fbcf4637fe8f54acb18d88488ae901b3d7a4dc [147/274] drm/amd/display: change to runtime initialization for reg offsets for DCN32 config: i386-buildonly-randconfig-r004-20220905 compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git git fetch --no-tags agd5f drm-next git checkout f7fbcf4637fe8f54acb18d88488ae901b3d7a4dc # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): 2823 | #define DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:632:9: note: in expansion of macro 'HWS_SF' 632 | HWS_SF(, DOMAIN16_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2823:111: note: (near initialization for 'hwseq_mask.DOMAIN_PGFSM_PWR_STATUS') 2823 | #define DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN16_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:632:9: note: in expansion of macro 'HWS_SF' 632 | HWS_SF(, DOMAIN16_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2833:111: warning: initialized field overwritten [-Woverride-init] 2833 | #define DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:633:9: note: in expansion of macro 'HWS_SF' 633 | HWS_SF(, DOMAIN17_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2833:111: note: (near initialization for 'hwseq_mask.DOMAIN_PGFSM_PWR_STATUS') 2833 | #define DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN17_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:633:9: note: in expansion of macro 'HWS_SF' 633 | HWS_SF(, DOMAIN17_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2843:111: warning: initialized field overwritten [-Woverride-init] 2843 | #define DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:634:9: note: in expansion of macro 'HWS_SF' 634 | HWS_SF(, DOMAIN18_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2843:111: note: (near initialization for 'hwseq_mask.DOMAIN_PGFSM_PWR_STATUS') 2843 | #define DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN18_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:634:9: note: in expansion of macro 'HWS_SF' 634 | HWS_SF(, DOMAIN18_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2853:111: warning: initialized field overwritten [-Woverride-init] 2853 | #define DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:635:9: note: in expansion of macro 'HWS_SF' 635 | HWS_SF(, DOMAIN19_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dcn/dcn_3_2_0_sh_mask.h:2853:111: note: (near initialization for 'hwseq_mask.DOMAIN_PGFSM_PWR_STATUS') 2853 | #define DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK 0xC0000000L | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_hwseq.h:678:35: note: in expansion of macro 'DOMAIN19_PG_STATUS__DOMAIN_PGFSM_PWR_STATUS_MASK' 678 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:635:9: note: in expansion of macro 'HWS_SF' 635 | HWS_SF(, DOMAIN19_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ | ^~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:648:17: note: in expansion of macro 'HWSEQ_DCN32_MASK_SH_LIST' 648 | HWSEQ_DCN32_MASK_SH_LIST(_MASK) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c: In function 'dcn32_acquire_post_bldn_3dlut': drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1627:31: warning: variable 'state' set but not used [-Wunused-but-set-variable] 1627 | union dc_3dlut_state *state; | ^~~~~ At top level: >> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:109:29: warning: 'DCN_BASE' defined but not used [-Wunused-const-variable=] 109 | static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } }, | ^~~~~~~~ In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32, from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28, from drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:32: drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:137:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=] 137 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA"; | ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:134:17: warning: 'DP_SINK_BRANCH_DEV_NAME_7580' defined but not used [-Wunused-const-variable=] 134 | static const u8 DP_SINK_BRANCH_DEV_NAME_7580[] = "7580\x80u"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:132:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=] 132 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0}; | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:131:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=] 131 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0}; | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/DCN_BASE +109 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c 235c67634230b0f Aurabindo Pillai 2022-02-23 108 235c67634230b0f Aurabindo Pillai 2022-02-23 @109 static const struct IP_BASE DCN_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } }, 235c67634230b0f Aurabindo Pillai 2022-02-23 110 { { 0, 0, 0, 0, 0, 0 } }, 235c67634230b0f Aurabindo Pillai 2022-02-23 111 { { 0, 0, 0, 0, 0, 0 } }, 235c67634230b0f Aurabindo Pillai 2022-02-23 112 { { 0, 0, 0, 0, 0, 0 } }, 235c67634230b0f Aurabindo Pillai 2022-02-23 113 { { 0, 0, 0, 0, 0, 0 } }, 235c67634230b0f Aurabindo Pillai 2022-02-23 114 { { 0, 0, 0, 0, 0, 0 } } } }; 235c67634230b0f Aurabindo Pillai 2022-02-23 115 :::::: The code at line 109 was first introduced by commit :::::: 235c67634230b0f9ad8c0185272fed36c892b1c4 drm/amd/display: add DCN32/321 specific files for Display Core :::::: TO: Aurabindo Pillai :::::: CC: Alex Deucher -- 0-DAY CI Kernel Test Service https://01.org/lkp