Hi Mauro,
First bad commit (maybe != root cause):
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fa35f247b563a7893f3f68f19d00ace2ccf3dff
commit: 5963cdde1acf6b81c62bf6d3bdae723139bf8138 [526/8311] drm/amd/display: enable SI
support in the Kconfig (v2)
config: arc-randconfig-r024-20200916 (attached as .config)
compiler: arceb-elf-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
git checkout 5963cdde1acf6b81c62bf6d3bdae723139bf8138
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:83:5: warning: no
previous prototype for 'dce60_get_dp_ref_freq_khz' [-Wmissing-prototypes]
83 | int dce60_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:28:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning:
'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
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/inc/hw/clk_mgr_internal.h:36,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning:
'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dccg.h:29,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:871:6:
warning: no previous prototype for 'dce60_aud_wall_dto_setup'
[-Wmissing-prototypes]
871 | void dce60_aud_wall_dto_setup(
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/reg_helper.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1161:6: warning: no
previous prototype for 'dce60_link_encoder_enable_dp_output'
[-Wmissing-prototypes]
1161 | void dce60_link_encoder_enable_dp_output(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1200:6: warning: no
previous prototype for 'dce60_link_encoder_enable_dp_mst_output'
[-Wmissing-prototypes]
1200 | void dce60_link_encoder_enable_dp_mst_output(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1390:6: warning: no
previous prototype for 'dce60_link_encoder_dp_set_phy_pattern'
[-Wmissing-prototypes]
1390 | void dce60_link_encoder_dp_set_phy_pattern(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c: In function
'dce110_link_encoder_update_mst_stream_allocation_table':
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1467:11: warning:
variable 'value0' set but not used [-Wunused-but-set-variable]
1467 | uint32_t value0 = 0;
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:31:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning:
'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning:
'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/reg_helper.h:28,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function
'dce60_transform_set_scaler':
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:496:7: warning: variable
'filter_updated' set but not used [-Wunused-but-set-variable]
496 |
bool filter_updated = false;
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function
'dce60_transform_set_pixel_storage_depth':
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:19: warning: variable
'expan_mode' set but not used [-Wunused-but-set-variable]
1040 | int
pixel_depth, expan_mode;
| ^~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:6: warning: variable
'pixel_depth' set but not used [-Wunused-but-set-variable]
1040 | int
pixel_depth, expan_mode;
| ^~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/hw_shared.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/transform.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:26:
At top level:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:427:6:
warning: no previous prototype for 'dce60_opp_set_clamping' [-Wmissing-prototypes]
427 | void dce60_opp_set_clamping(
| ^~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:548:6:
warning: no previous prototype for 'dce60_opp_program_bit_depth_reduction'
[-Wmissing-prototypes]
548 | void dce60_opp_program_bit_depth_reduction(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:571:6:
warning: no previous prototype for 'dce60_opp_program_clamping_and_pixel_encoding'
[-Wmissing-prototypes]
571 | void
dce60_opp_program_clamping_and_pixel_encoding(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:681:6:
warning: no previous prototype for 'dce60_opp_program_fmt' [-Wmissing-prototypes]
681 | void dce60_opp_program_fmt(
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:31:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning:
'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning:
'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:28:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.c:192:6: warning: no
previous prototype for 'dce60_configure_crc' [-Wmissing-prototypes]
192
| bool dce60_configure_crc(struct timing_generator *tg,
| ^~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_timing_generator.c:26:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
In file included from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:28:
>
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:568:43: warning:
initialized field overwritten [-Woverride-init]
568 | #define
mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1B7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:185:3: note: in
expansion of macro 'transform_regs'
185 | transform_regs(0),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:568:43: note: (near
initialization for 'xfm_regs[0].DCFE_MEM_LIGHT_SLEEP_CNTL')
568 | #define mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1B7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC0_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:185:3: note: in
expansion of macro 'transform_regs'
185 | transform_regs(0),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:645:43: warning:
initialized field overwritten [-Woverride-init]
645 | #define mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1E7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:186:3: note: in
expansion of macro 'transform_regs'
186 | transform_regs(1),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:645:43: note: (near
initialization for 'xfm_regs[1].DCFE_MEM_LIGHT_SLEEP_CNTL')
645 | #define mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL 0x1E7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC1_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:186:3: note: in
expansion of macro 'transform_regs'
186 | transform_regs(1),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:722:43: warning:
initialized field overwritten [-Woverride-init]
722 | #define mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL 0x417F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:187:3: note: in
expansion of macro 'transform_regs'
187 | transform_regs(2),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:722:43: note: (near
initialization for 'xfm_regs[2].DCFE_MEM_LIGHT_SLEEP_CNTL')
722 | #define mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL 0x417F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC2_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:187:3: note: in
expansion of macro 'transform_regs'
187 | transform_regs(2),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:799:43: warning:
initialized field overwritten [-Woverride-init]
799 | #define mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL 0x447F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:188:3: note: in
expansion of macro 'transform_regs'
188 | transform_regs(3),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:799:43: note: (near
initialization for 'xfm_regs[3].DCFE_MEM_LIGHT_SLEEP_CNTL')
799 | #define mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL 0x447F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC3_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:188:3: note: in
expansion of macro 'transform_regs'
188 | transform_regs(3),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:877:43: warning:
initialized field overwritten [-Woverride-init]
877 | #define mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL 0x477F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:189:3: note: in
expansion of macro 'transform_regs'
189 | transform_regs(4),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:877:43: note: (near
initialization for 'xfm_regs[4].DCFE_MEM_LIGHT_SLEEP_CNTL')
877 | #define mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL 0x477F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC4_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:189:3: note: in
expansion of macro 'transform_regs'
189 | transform_regs(4),
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:954:43: warning:
initialized field overwritten [-Woverride-init]
954 | #define mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL 0x4A7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:190:3: note: in
expansion of macro 'transform_regs'
190 | transform_regs(5)
| ^~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_d.h:954:43: note: (near
initialization for 'xfm_regs[5].DCFE_MEM_LIGHT_SLEEP_CNTL')
954 | #define mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL 0x4A7F
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:155:14: note: in
expansion of macro 'mmCRTC5_DCFE_MEM_LIGHT_SLEEP_CNTL'
155 | .reg_name = mm ## block ## id ## _ ## reg_name
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.h:170:2: note: in expansion
of macro 'SRI'
170 | SRI(DCFE_MEM_LIGHT_SLEEP_CNTL, CRTC, id)
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:181:3: note: in
expansion of macro 'XFM_COMMON_REG_LIST_DCE60'
181 | XFM_COMMON_REG_LIST_DCE60(id)\
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:190:3: note: in
expansion of macro 'transform_regs'
190 | transform_regs(5)
| ^~~~~~~~~~~~~~
In file included from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
>
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6942:62: warning:
initialized field overwritten [-Woverride-init]
6942 | #define
FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT 0x00000010
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of
macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of
macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:293:2: note: in
expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
293 | OPP_COMMON_MASK_SH_LIST_DCE_60(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6942:62: note:
(near initialization for 'opp_shift.FMT_TEMPORAL_DITHER_EN')
6942 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT 0x00000010
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of
macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN__SHIFT'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of
macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:293:2: note: in
expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
293 | OPP_COMMON_MASK_SH_LIST_DCE_60(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6941:60: warning:
initialized field overwritten [-Woverride-init]
6941 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK 0x00010000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of
macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of
macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:297:2: note: in
expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
297 | OPP_COMMON_MASK_SH_LIST_DCE_60(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:6941:60: note:
(near initialization for 'opp_mask.FMT_TEMPORAL_DITHER_EN')
6941 | #define FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK 0x00010000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:96:16: note: in expansion of
macro 'FMT_BIT_DEPTH_CONTROL__FMT_TEMPORAL_DITHER_EN_MASK'
96 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.h:222:2: note: in expansion of
macro 'OPP_SF'
222 | OPP_SF(FMT_BIT_DEPTH_CONTROL, FMT_TEMPORAL_DITHER_EN, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:297:2: note: in
expansion of macro 'OPP_COMMON_MASK_SH_LIST_DCE_60'
297 | OPP_COMMON_MASK_SH_LIST_DCE_60(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:745:58: warning:
initialized field overwritten [-Woverride-init]
745 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT 0x0000001f
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of
macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of
macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:301:2: note: in
expansion of macro 'DCE10_AUX_MASK_SH_LIST'
301 | DCE10_AUX_MASK_SH_LIST(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:745:58: note:
(near initialization for 'aux_shift.AUX_SW_AUTOINCREMENT_DISABLE')
745 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT 0x0000001f
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of
macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of
macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:301:2: note: in
expansion of macro 'DCE10_AUX_MASK_SH_LIST'
301 | DCE10_AUX_MASK_SH_LIST(__SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:744:56: warning:
initialized field overwritten [-Woverride-init]
744 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK 0x80000000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of
macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of
macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:305:2: note: in
expansion of macro 'DCE10_AUX_MASK_SH_LIST'
305 | DCE10_AUX_MASK_SH_LIST(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:744:56: note:
(near initialization for 'aux_mask.AUX_SW_AUTOINCREMENT_DISABLE')
744 | #define AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK 0x80000000L
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of
macro 'AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK'
214 | .field_name = reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:102:2: note: in expansion of
macro 'AUX_SF'
102 | AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:305:2: note: in
expansion of macro 'DCE10_AUX_MASK_SH_LIST'
305 | DCE10_AUX_MASK_SH_LIST(_MASK)
| ^~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:529:17: warning: no
previous prototype for 'dce60_aux_engine_create' [-Wmissing-prototypes]
529 | struct dce_aux *dce60_aux_engine_create(
| ^~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:567:20: warning: no
previous prototype for 'dce60_i2c_hw_create' [-Wmissing-prototypes]
567
| struct dce_i2c_hw *dce60_i2c_hw_create(
| ^~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:583:20: warning: no
previous prototype for 'dce60_i2c_sw_create' [-Wmissing-prototypes]
583
| struct dce_i2c_sw *dce60_i2c_sw_create(
| ^~~~~~~~~~~~~~~~~~~
In file included from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:29:
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: warning:
initialized field overwritten [-Woverride-init]
7270 | #define GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT 0x00000002
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion
of macro 'GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion
of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion
of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in
expansion of macro 'MI_DCE6_MASK_SH_LIST'
662 | MI_DCE6_MASK_SH_LIST(__SHIFT),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7270:45: note:
(near initialization for 'mi_shifts.GRPH_NUM_BANKS')
7270 | #define GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT 0x00000002
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion
of macro 'GRPH_CONTROL__GRPH_NUM_BANKS__SHIFT'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion
of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion
of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:662:3: note: in
expansion of macro 'MI_DCE6_MASK_SH_LIST'
662 | MI_DCE6_MASK_SH_LIST(__SHIFT),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: warning:
initialized field overwritten [-Woverride-init]
7269 | #define GRPH_CONTROL__GRPH_NUM_BANKS_MASK 0x0000000cL
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion
of macro 'GRPH_CONTROL__GRPH_NUM_BANKS_MASK'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion
of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion
of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:667:3: note: in
expansion of macro 'MI_DCE6_MASK_SH_LIST'
667 | MI_DCE6_MASK_SH_LIST(_MASK),
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_6_0_sh_mask.h:7269:43: note:
(near initialization for 'mi_masks.GRPH_NUM_BANKS')
7269 | #define GRPH_CONTROL__GRPH_NUM_BANKS_MASK 0x0000000cL
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:155:28: note: in expansion
of macro 'GRPH_CONTROL__GRPH_NUM_BANKS_MASK'
155 | .field_name = blk_name ## reg_name ## __ ## field_name ## post_fix
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:159:2: note: in expansion
of macro 'SFB'
159 | SFB(blk, GRPH_CONTROL, GRPH_NUM_BANKS, mask_sh),\
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_mem_input.h:265:2: note: in expansion
of macro 'MI_GFX6_TILE_MASK_SH_LIST'
265 | MI_GFX6_TILE_MASK_SH_LIST(mask_sh, )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:667:3: note: in
expansion of macro 'MI_DCE6_MASK_SH_LIST'
667 | MI_DCE6_MASK_SH_LIST(_MASK),
| ^~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:717:22: warning: no
previous prototype for 'dce60_link_encoder_create' [-Wmissing-prototypes]
717 | struct link_encoder *dce60_link_encoder_create(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:756:22: warning: no
previous prototype for 'dce60_clock_source_create' [-Wmissing-prototypes]
756 | struct clock_source *dce60_clock_source_create(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:780:6: warning: no
previous prototype for 'dce60_clock_source_destroy' [-Wmissing-prototypes]
780 | void dce60_clock_source_destroy(struct clock_source **clk_src)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:870:6: warning: no
previous prototype for 'dce60_validate_bandwidth' [-Wmissing-prototypes]
870 | bool dce60_validate_bandwidth(
| ^~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:915:16: warning: no
previous prototype for 'dce60_validate_global' [-Wmissing-prototypes]
915 | enum dc_status dce60_validate_global(
| ^~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1122:23: warning: no
previous prototype for 'dce60_create_resource_pool' [-Wmissing-prototypes]
1122 | struct resource_pool *dce60_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1319:23: warning: no
previous prototype for 'dce61_create_resource_pool' [-Wmissing-prototypes]
1319 | struct resource_pool *dce61_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:1512:23: warning: no
previous prototype for 'dce64_create_resource_pool' [-Wmissing-prototypes]
1512 | struct resource_pool *dce64_create_resource_pool(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:57:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:
'abm_gain_stepsize' defined but not used [-Wunused-const-variable=]
320 | static const uint32_t abm_gain_stepsize = 0x0060;
| ^~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:86,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:36:
drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning:
'dpp_input_csc_matrix' defined but not used [-Wunused-const-variable=]
50 | static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
| ^~~~~~~~~~~~~~~~~~~~
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/dce60/dce60_resource.c:36:
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning:
'DP_DVI_CONVERTER_ID_4' defined but not used [-Wunused-const-variable=]
124 | static const uint8_t DP_DVI_CONVERTER_ID_4[] = "m2DVIa";
| ^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:122:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_3' defined but not used [-Wunused-const-variable=]
122 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_3[] = "dnomlA";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: warning:
'DP_VGA_LVDS_CONVERTER_ID_2' defined but not used [-Wunused-const-variable=]
120 | static const uint8_t DP_VGA_LVDS_CONVERTER_ID_2[] = "sivarT";
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37,
from
drivers/gpu/drm/amd/amdgpu/../display/dc/dce60/dce60_resource.c:31:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning:
'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning:
'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning:
'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning:
'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning:
'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning:
'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 5963cdde1acf6b81c62bf6d3bdae723139bf8138
vim +/dce60_get_dp_ref_freq_khz +83
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dce60/dce60_clk_mgr.c
3ecb3b794e2c17 Mauro Rossi 2020-07-11 82
3ecb3b794e2c17 Mauro Rossi 2020-07-11 @83 int dce60_get_dp_ref_freq_khz(struct clk_mgr
*clk_mgr_base)
3ecb3b794e2c17 Mauro Rossi 2020-07-11 84 {
3ecb3b794e2c17 Mauro Rossi 2020-07-11 85 struct clk_mgr_internal *clk_mgr =
TO_CLK_MGR_INTERNAL(clk_mgr_base);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 86 int dprefclk_wdivider;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 87 int dp_ref_clk_khz;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 88 int target_div;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 89
3ecb3b794e2c17 Mauro Rossi 2020-07-11 90 /* DCE6 has no DPREFCLK_CNTL to read DP
Reference Clock source */
3ecb3b794e2c17 Mauro Rossi 2020-07-11 91
3ecb3b794e2c17 Mauro Rossi 2020-07-11 92 /* Read the mmDENTIST_DISPCLK_CNTL to get the
currently
3ecb3b794e2c17 Mauro Rossi 2020-07-11 93 * programmed DID
DENTIST_DPREFCLK_WDIVIDER*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 94 REG_GET(DENTIST_DISPCLK_CNTL,
DENTIST_DPREFCLK_WDIVIDER, &dprefclk_wdivider);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 95
3ecb3b794e2c17 Mauro Rossi 2020-07-11 96 /* Convert DENTIST_DPREFCLK_WDIVIDERto actual
divider*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 97 target_div =
dentist_get_divider_from_did(dprefclk_wdivider);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 98
3ecb3b794e2c17 Mauro Rossi 2020-07-11 99 /* Calculate the current DFS clock, in
kHz.*/
3ecb3b794e2c17 Mauro Rossi 2020-07-11 100 dp_ref_clk_khz =
(DENTIST_DIVIDER_RANGE_SCALE_FACTOR
3ecb3b794e2c17 Mauro Rossi 2020-07-11 101 * clk_mgr->base.dentist_vco_freq_khz) /
target_div;
3ecb3b794e2c17 Mauro Rossi 2020-07-11 102
3ecb3b794e2c17 Mauro Rossi 2020-07-11 103 return dce_adjust_dp_ref_freq_for_ss(clk_mgr,
dp_ref_clk_khz);
3ecb3b794e2c17 Mauro Rossi 2020-07-11 104 }
3ecb3b794e2c17 Mauro Rossi 2020-07-11 105
:::::: The code at line 83 was first introduced by commit
:::::: 3ecb3b794e2c1793443b72a968cb09d829c01a10 drm/amd/display: dc/clk_mgr: add support
for SI parts (v2)
:::::: TO: Mauro Rossi <issor.oruam(a)gmail.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org