tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5fcb9628fd1227a5f11d87171cb1b8b5c414d9d9
commit: b455159c053130d0658e9e7f8cb61e9bf6603f22 [831/2089] drm/amdgpu/powerplay: add
initial swSMU support for sienna_cichlid (v2)
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 b455159c053130d0658e9e7f8cb61e9bf6603f22
# 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/../powerplay/sienna_cichlid_ppt.c: In function
'sienna_cichlid_is_dpm_running':
>
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:779:6: warning: variable
'ret' set but not used [-Wunused-but-set-variable]
779 | int ret = 0;
| ^~~
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c: In function
'sienna_cichlid_set_power_profile_mode':
drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:934:12: warning: comparison
of unsigned expression < 0 is always false [-Wtype-limits]
934 | if (size < 0)
| ^
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../powerplay/inc/smu_v11_0.h:68:43: warning:
'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
68 | static const struct smu_temperature_range smu11_thermal_policy[] =
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:27:
drivers/gpu/drm/amd/amdgpu/../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/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.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 };
| ^~~~~~~~~~~~~
vim +/ret +779 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c
776
777 static bool sienna_cichlid_is_dpm_running(struct smu_context *smu)
778 {
779 int ret = 0;
780 uint32_t feature_mask[2];
781 unsigned long feature_enabled;
782 ret = smu_feature_get_enabled_mask(smu, feature_mask, 2);
783 feature_enabled = (unsigned long)((uint64_t)feature_mask[0] |
784 ((uint64_t)feature_mask[1] << 32));
785 return !!(feature_enabled & SMC_DPM_FEATURE);
786 }
787
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org