tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: 4282c8ede1b577a8150c371bf39bbb7d622099ca [948/2089] drm/amdgpu: add stop DPG mode
for VCN3.0
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 4282c8ede1b577a8150c371bf39bbb7d622099ca
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>, old ones prefixed by <<):
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function
'vcn_v3_0_disable_static_power_gating':
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:473:6: warning: variable 'ret' set but not
used [-Wunused-but-set-variable]
473 | int ret;
| ^~~
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function
'vcn_v3_0_enable_static_power_gating':
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:525:6: warning: variable 'ret' set but not
used [-Wunused-but-set-variable]
525 | int ret;
| ^~~
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function
'vcn_v3_0_disable_clock_gating':
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:579:6: warning: variable 'ret' set but not
used [-Wunused-but-set-variable]
579 | int ret = 0;
| ^~~
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function 'vcn_v3_0_stop_dpg_mode':
> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1133:6: warning: variable
'ret_code' set but not used [-Wunused-but-set-variable]
1133 | int ret_code
= 0;
| ^~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
At top level:
drivers/gpu/drm/amd/amdgpu/amdgpu.h:190:18: warning: 'sched_policy' defined but
not used [-Wunused-const-variable=]
190 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
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/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:25:
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 };
| ^~~~~~~~~~~~~
vim +/ret_code +1133 drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c
1130
1131 static int vcn_v3_0_stop_dpg_mode(struct amdgpu_device *adev, int inst_idx)
1132 {
1133 int ret_code = 0;
1134 uint32_t tmp;
1135
1136 /* Wait for power status to be 1 */
1137 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1,
1138 UVD_POWER_STATUS__UVD_POWER_STATUS_MASK, ret_code);
1139
1140 /* wait for read ptr to be equal to write ptr */
1141 tmp = RREG32_SOC15(VCN, inst_idx, mmUVD_RB_WPTR);
1142 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_RB_RPTR, tmp, 0xFFFFFFFF, ret_code);
1143
1144 tmp = RREG32_SOC15(VCN, inst_idx, mmUVD_RB_WPTR2);
1145 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_RB_RPTR2, tmp, 0xFFFFFFFF, ret_code);
1146
1147 tmp = RREG32_SOC15(VCN, inst_idx, mmUVD_RBC_RB_WPTR) & 0x7FFFFFFF;
1148 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_RBC_RB_RPTR, tmp, 0xFFFFFFFF, ret_code);
1149
1150 SOC15_WAIT_ON_RREG(VCN, inst_idx, mmUVD_POWER_STATUS, 1,
1151 UVD_POWER_STATUS__UVD_POWER_STATUS_MASK, ret_code);
1152
1153 /* disable dynamic power gating mode */
1154 WREG32_P(SOC15_REG_OFFSET(VCN, inst_idx, mmUVD_POWER_STATUS), 0,
1155 ~UVD_POWER_STATUS__UVD_PG_MODE_MASK);
1156
1157 return 0;
1158 }
1159
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org