tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 605cbf3d5f20470ec303b79feda3202935f4a142
commit: e098bc9612c2b60f94920461d71c92962a916e73 [1039/2546] drm/amd/pm: optimize the
power related source code layout
config: parisc-randconfig-s032-20200820 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout e098bc9612c2b60f94920461d71c92962a916e73
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1235:9: sparse:
expected unsigned int [usertype] SpllSpreadSpectrum
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1235:9: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1236:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SpllSpreadSpectrum2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1236:9: sparse:
expected unsigned int [usertype] SpllSpreadSpectrum2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1236:9: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1237:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] CcPwrDynRm @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1237:9: sparse:
expected unsigned int [usertype] CcPwrDynRm
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1237:9: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1238:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] CcPwrDynRm1 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1238:9: sparse:
expected unsigned int [usertype] CcPwrDynRm1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1238:9: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1247:48: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MinMvdd @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1247:48: sparse:
expected unsigned int [usertype] MinMvdd
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1247:48: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1270:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] DllCntl @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1270:51: sparse:
expected unsigned int [usertype] DllCntl
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1270:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1272:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MclkPwrmgtCntl @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1272:51: sparse:
expected unsigned int [usertype] MclkPwrmgtCntl
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1272:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1274:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllAdFuncCntl @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1274:51: sparse:
expected unsigned int [usertype] MpllAdFuncCntl
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1274:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1276:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllDqFuncCntl @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1276:51: sparse:
expected unsigned int [usertype] MpllDqFuncCntl
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1276:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1278:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllFuncCntl @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1278:51: sparse:
expected unsigned int [usertype] MpllFuncCntl
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1278:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1280:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllFuncCntl_1 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1280:51: sparse:
expected unsigned int [usertype] MpllFuncCntl_1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1280:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1282:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllFuncCntl_2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1282:51: sparse:
expected unsigned int [usertype] MpllFuncCntl_2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1282:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1284:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllSs1 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1284:51: sparse:
expected unsigned int [usertype] MpllSs1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1284:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1286:51: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MpllSs2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1286:51: sparse:
expected unsigned int [usertype] MpllSs2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1286:51: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1295:46: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] ActivityLevel @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1295:46: sparse:
expected unsigned short [usertype] ActivityLevel
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1295:46: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1359:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] VclkFrequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1359:17: sparse:
expected unsigned int [usertype] VclkFrequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1359:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1360:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] DclkFrequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1360:17: sparse:
expected unsigned int [usertype] DclkFrequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1360:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1407:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] Frequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1407:17: sparse:
expected unsigned int [usertype] Frequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1407:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1451:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] Frequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1451:17: sparse:
expected unsigned int [usertype] Frequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1451:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1479:36: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] McArbDramTiming @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1479:36: sparse:
expected unsigned int [usertype] McArbDramTiming
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1479:36: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1480:36: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] McArbDramTiming2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1480:36: sparse:
expected unsigned int [usertype] McArbDramTiming2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1480:36: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1568:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] BootMVdd @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1568:9: sparse:
expected unsigned short [usertype] BootMVdd
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1568:9: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1673:37: sparse:
sparse: cast to restricted __be32
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1689:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] minFreq @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1689:9: sparse:
expected unsigned short [usertype] minFreq
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1689:9: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1691:9: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] maxFreq @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1691:9: sparse:
expected unsigned short [usertype] maxFreq
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1691:9: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1717:38: sparse:
sparse: cast to restricted __be32
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1732:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] setting @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1732:17: sparse:
expected unsigned short [usertype] setting
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1732:17: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1838:31: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] DefaultTdp @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1838:31: sparse:
expected unsigned short [usertype] DefaultTdp
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1838:31: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1840:30: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] TargetTdp @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1840:30: sparse:
expected unsigned short [usertype] TargetTdp
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1840:30: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1852:39: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] BAPM_TEMP_GRADIENT @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1852:39: sparse:
expected unsigned int [usertype] BAPM_TEMP_GRADIENT
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1852:39: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1860:62: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
@@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1860:62: sparse:
expected unsigned short
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1860:62: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1862:63: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
@@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1862:63: sparse:
expected unsigned short
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1862:63: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1901:25: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[assigned] [usertype] tdc_limit @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1901:25: sparse:
expected unsigned short [assigned] [usertype] tdc_limit
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1901:25: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1954:57: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] FuzzyFan_PwmSetDelta @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1954:57: sparse:
expected signed short [usertype] FuzzyFan_PwmSetDelta
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1954:57: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1987:25: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[assigned] [usertype] hi_sidd @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1987:25: sparse:
expected unsigned short [assigned] [usertype] hi_sidd
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1987:25: sparse:
got restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1989:25: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[assigned] [usertype] lo_sidd @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1989:25: sparse:
expected unsigned short [assigned] [usertype] lo_sidd
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:1989:25: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2077:53: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] s0 @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2077:53: sparse:
expected unsigned short [usertype] s0
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2077:53: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2079:53: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] s1 @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2079:53: sparse:
expected unsigned short [usertype] s1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2079:53: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2100:40: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int @@
got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2100:40: sparse:
expected unsigned int
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2100:40: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2423:32: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
@@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2423:32: sparse:
expected unsigned int
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2423:32: sparse:
got restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2424:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SystemFlags @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2424:9: sparse:
expected unsigned int [usertype] SystemFlags
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2424:9: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2425:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] VRConfig @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2425:9: sparse:
expected unsigned int [usertype] VRConfig
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2425:9: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2426:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SmioMask1 @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2426:9: sparse:
expected unsigned int [usertype] SmioMask1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2426:9: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2427:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SmioMask2 @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2427:9: sparse:
expected unsigned int [usertype] SmioMask2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2427:9: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2428:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SclkStepSize @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2428:9: sparse:
expected unsigned int [usertype] SclkStepSize
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2428:9: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2429:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] TemperatureLimitHigh @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2429:9: sparse:
expected unsigned short [usertype] TemperatureLimitHigh
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2429:9: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2430:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] TemperatureLimitLow @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2430:9: sparse:
expected unsigned short [usertype] TemperatureLimitLow
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2430:9: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2431:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] VoltageResponseTime @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2431:9: sparse:
expected unsigned short [usertype] VoltageResponseTime
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2431:9: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2432:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] PhaseResponseTime @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2432:9: sparse:
expected unsigned short [usertype] PhaseResponseTime
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2432:9: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2515:27: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMin @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2515:27: sparse:
expected signed short [usertype] TempMin
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2515:27: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2516:27: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMed @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2516:27: sparse:
expected signed short [usertype] TempMed
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2516:27: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2517:27: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMax @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2517:27: sparse:
expected signed short [usertype] TempMax
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2517:27: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2519:26: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] Slope1 @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2519:26: sparse:
expected signed short [usertype] Slope1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2519:26: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2520:26: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] Slope2 @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2520:26: sparse:
expected signed short [usertype] Slope2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2520:26: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2522:26: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] FdoMin @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2522:26: sparse:
expected signed short [usertype] FdoMin
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2522:26: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2524:28: sparse:
sparse: too many warnings
--
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1452:17: sparse:
expected unsigned int [usertype] Frequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1452:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1453:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MinVoltage @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1453:17: sparse:
expected unsigned int [usertype] MinVoltage
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1453:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1488:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] Frequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1488:17: sparse:
expected unsigned int [usertype] Frequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1488:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1489:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MinVoltage @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1489:17: sparse:
expected unsigned int [usertype] MinVoltage
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1489:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1516:36: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] McArbDramTiming @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1516:36: sparse:
expected unsigned int [usertype] McArbDramTiming
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1516:36: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1517:36: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] McArbDramTiming2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1517:36: sparse:
expected unsigned int [usertype] McArbDramTiming2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1517:36: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1593:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] VclkFrequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1593:17: sparse:
expected unsigned int [usertype] VclkFrequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1593:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1594:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] DclkFrequency @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1594:17: sparse:
expected unsigned int [usertype] DclkFrequency
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1594:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1595:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] MinVoltage @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1595:17: sparse:
expected unsigned int [usertype] MinVoltage
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1595:17: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1626:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] BootVddc @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1626:9: sparse:
expected unsigned short [usertype] BootVddc
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1626:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1627:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] BootVddci @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1627:9: sparse:
expected unsigned short [usertype] BootVddci
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1627:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1628:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] BootMVdd @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1628:9: sparse:
expected unsigned short [usertype] BootMVdd
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1628:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1746:37: sparse:
sparse: cast to restricted __be32
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1762:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] minFreq @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1762:9: sparse:
expected unsigned short [usertype] minFreq
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1762:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1764:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] maxFreq @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1764:9: sparse:
expected unsigned short [usertype] maxFreq
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1764:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1790:38: sparse:
sparse: cast to restricted __be32
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1807:17: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] setting @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1807:17: sparse:
expected unsigned short [usertype] setting
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1807:17: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2093:32: sparse:
sparse: incorrect type in assignment (different base types) @@ expected unsigned int
@@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2093:32: sparse:
expected unsigned int
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2093:32: sparse:
got restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2095:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SystemFlags @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2095:9: sparse:
expected unsigned int [usertype] SystemFlags
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2095:9: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2096:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] VRConfig @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2096:9: sparse:
expected unsigned int [usertype] VRConfig
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2096:9: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2097:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SmioMask1 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2097:9: sparse:
expected unsigned int [usertype] SmioMask1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2097:9: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2098:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SmioMask2 @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2098:9: sparse:
expected unsigned int [usertype] SmioMask2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2098:9: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2099:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] SclkStepSize @@ got restricted __be32 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2099:9: sparse:
expected unsigned int [usertype] SclkStepSize
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2099:9: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2100:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] TemperatureLimitHigh @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2100:9: sparse:
expected unsigned short [usertype] TemperatureLimitHigh
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2100:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2101:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] TemperatureLimitLow @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2101:9: sparse:
expected unsigned short [usertype] TemperatureLimitLow
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2101:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2102:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] VoltageResponseTime @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2102:9: sparse:
expected unsigned short [usertype] VoltageResponseTime
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2102:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2103:9: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] PhaseResponseTime @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2103:9: sparse:
expected unsigned short [usertype] PhaseResponseTime
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2103:9: sparse: got
restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2181:27: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMin @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2181:27: sparse:
expected signed short [usertype] TempMin
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2181:27: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2183:27: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMed @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2183:27: sparse:
expected signed short [usertype] TempMed
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2183:27: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2185:27: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempMax @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2185:27: sparse:
expected signed short [usertype] TempMax
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2185:27: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2188:26: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] Slope1 @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2188:26: sparse:
expected signed short [usertype] Slope1
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2188:26: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2189:26: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] Slope2 @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2189:26: sparse:
expected signed short [usertype] Slope2
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2189:26: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2191:26: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] FdoMin @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2191:26: sparse:
expected signed short [usertype] FdoMin
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2191:26: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2193:28: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] HystDown @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2193:28: sparse:
expected signed short [usertype] HystDown
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2193:28: sparse:
got restricted __be16 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2196:26: sparse:
sparse: incorrect type in assignment (different base types) @@ expected signed short
[usertype] HystUp @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2196:26: sparse:
expected signed short [usertype] HystUp
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2196:26: sparse:
got restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2198:29: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] HystSlope @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2198:29: sparse:
expected signed short [usertype] HystSlope
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2198:29: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2200:31: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] TempRespLim @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2200:31: sparse:
expected signed short [usertype] TempRespLim
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2200:31: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2204:33: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] RefreshPeriod @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2204:33: sparse:
expected unsigned int [usertype] RefreshPeriod
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2204:33: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2208:26: sparse: sparse:
incorrect type in assignment (different base types) @@ expected signed short
[usertype] FdoMax @@ got restricted __be16 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2208:26: sparse:
expected signed short [usertype] FdoMax
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2208:26: sparse: got
restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2277:17: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[assigned] [usertype] low_sclk_interrupt_threshold @@ got restricted __be32 [usertype]
@@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2277:17: sparse:
expected unsigned int [assigned] [usertype] low_sclk_interrupt_threshold
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2277:17: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2579:33: sparse: sparse:
restricted __be16 degrades to integer
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2580:57: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned short
[usertype] ActivityLevel @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2580:57: sparse:
expected unsigned short [usertype] ActivityLevel
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2580:57: sparse:
got restricted __be16 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2585:37: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[usertype] tmp @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2585:37: sparse:
expected unsigned int [usertype] tmp
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2585:37: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2587:33: sparse: sparse:
incorrect type in argument 4 (different base types) @@ expected unsigned int
[usertype] value @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2587:33: sparse:
expected unsigned int [usertype] value
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2587:33: sparse: got
restricted __be32 [usertype]
>
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2599:37: sparse: sparse:
incorrect type in assignment (different base types) @@ expected unsigned int
[assigned] [usertype] tmp @@ got restricted __be32 [usertype] @@
> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2599:37: sparse:
expected unsigned int [assigned] [usertype] tmp
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2599:37: sparse: got
restricted __be32 [usertype]
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:2602:33: sparse:
sparse: too many warnings
#
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 e098bc9612c2b60f94920461d71c92962a916e73
vim +1989 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1886
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1887 static int tonga_populate_tdc_limit(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1888 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1889 uint16_t tdc_limit;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1890 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1891 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1892 const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1893 struct phm_ppt_v1_information *table_info =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1894 (struct phm_ppt_v1_information *)(hwmgr->pptable);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1895
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1896 /* TDC number of fraction bits are changed from 8 to 7
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1897 * for Fiji as requested by SMC team
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1898 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1899 tdc_limit = (uint16_t)(table_info->cac_dtp_table->usTDC * 256);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1900 smu_data->power_tune_table.TDC_VDDC_PkgLimit =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@1901 CONVERT_FROM_HOST_TO_SMC_US(tdc_limit);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1902 smu_data->power_tune_table.TDC_VDDC_ThrottleReleaseLimitPerc =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1903 defaults->tdc_vddc_throttle_release_limit_perc;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1904 smu_data->power_tune_table.TDC_MAWt = defaults->tdc_mawt;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1905
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1906 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1907 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1908
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1909 static int tonga_populate_dw8(struct pp_hwmgr *hwmgr, uint32_t fuse_table_offset)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1910 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1911 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1912 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1913 const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1914 uint32_t temp;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1915
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1916 if (smu7_read_smc_sram_dword(hwmgr,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1917 fuse_table_offset +
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1918 offsetof(SMU72_Discrete_PmFuses, TdcWaterfallCtl),
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1919 (uint32_t *)&temp, SMC_RAM_END))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1920 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1921 "Attempt to read PmFuses.DW6 "
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1922 "(SviLoadLineEn) from SMC Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1923 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1924 else
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1925 smu_data->power_tune_table.TdcWaterfallCtl = defaults->tdc_waterfall_ctl;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1926
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1927 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1928 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1929
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1930 static int tonga_populate_temperature_scaler(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1931 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1932 int i;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1933 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1934 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1935
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1936 /* Currently not used. Set all to zero. */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1937 for (i = 0; i < 16; i++)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1938 smu_data->power_tune_table.LPMLTemperatureScaler[i] = 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1939
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1940 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1941 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1942
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1943 static int tonga_populate_fuzzy_fan(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1944 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1945 struct tonga_smumgr *smu_data = (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1946
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1947 if ((hwmgr->thermal_controller.advanceFanControlParameters.
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1948 usFanOutputSensitivity & (1 << 15)) ||
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1949 (hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity
== 0))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1950 hwmgr->thermal_controller.advanceFanControlParameters.
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1951 usFanOutputSensitivity = hwmgr->thermal_controller.
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1952 advanceFanControlParameters.usDefaultFanOutputSensitivity;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1953
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@1954 smu_data->power_tune_table.FuzzyFan_PwmSetDelta =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1955 PP_HOST_TO_SMC_US(hwmgr->thermal_controller.
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1956 advanceFanControlParameters.usFanOutputSensitivity);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1957 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1958 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1959
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1960 static int tonga_populate_gnb_lpml(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1961 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1962 int i;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1963 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1964 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1965
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1966 /* Currently not used. Set all to zero. */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1967 for (i = 0; i < 16; i++)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1968 smu_data->power_tune_table.GnbLPML[i] = 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1969
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1970 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1971 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1972
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1973 static int tonga_populate_bapm_vddc_base_leakage_sidd(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1974 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1975 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1976 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1977 struct phm_ppt_v1_information *table_info =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1978 (struct phm_ppt_v1_information *)(hwmgr->pptable);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1979 uint16_t hi_sidd = smu_data->power_tune_table.BapmVddCBaseLeakageHiSidd;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1980 uint16_t lo_sidd = smu_data->power_tune_table.BapmVddCBaseLeakageLoSidd;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1981 struct phm_cac_tdp_table *cac_table = table_info->cac_dtp_table;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1982
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1983 hi_sidd = (uint16_t)(cac_table->usHighCACLeakage / 100 * 256);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1984 lo_sidd = (uint16_t)(cac_table->usLowCACLeakage / 100 * 256);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1985
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1986 smu_data->power_tune_table.BapmVddCBaseLeakageHiSidd =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@1987 CONVERT_FROM_HOST_TO_SMC_US(hi_sidd);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1988 smu_data->power_tune_table.BapmVddCBaseLeakageLoSidd =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@1989 CONVERT_FROM_HOST_TO_SMC_US(lo_sidd);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1990
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1991 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1992 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1993
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1994 static int tonga_populate_pm_fuses(struct pp_hwmgr *hwmgr)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1995 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1996 struct tonga_smumgr *smu_data =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1997 (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1998 uint32_t pm_fuse_table_offset;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
1999
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2000 if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2001 PHM_PlatformCaps_PowerContainment)) {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2002 if (smu7_read_smc_sram_dword(hwmgr,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2003 SMU72_FIRMWARE_HEADER_LOCATION +
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2004 offsetof(SMU72_Firmware_Header, PmFuseTable),
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2005 &pm_fuse_table_offset, SMC_RAM_END))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2006 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2007 "Attempt to get pm_fuse_table_offset Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2008 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2009
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2010 /* DW6 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2011 if (tonga_populate_svi_load_line(hwmgr))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2012 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2013 "Attempt to populate SviLoadLine Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2014 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2015 /* DW7 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2016 if (tonga_populate_tdc_limit(hwmgr))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2017 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2018 "Attempt to populate TDCLimit Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2019 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2020 /* DW8 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2021 if (tonga_populate_dw8(hwmgr, pm_fuse_table_offset))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2022 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2023 "Attempt to populate TdcWaterfallCtl Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2024 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2025
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2026 /* DW9-DW12 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2027 if (tonga_populate_temperature_scaler(hwmgr) != 0)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2028 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2029 "Attempt to populate LPMLTemperatureScaler Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2030 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2031
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2032 /* DW13-DW14 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2033 if (tonga_populate_fuzzy_fan(hwmgr))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2034 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2035 "Attempt to populate Fuzzy Fan "
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2036 "Control parameters Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2037 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2038
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2039 /* DW15-DW18 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2040 if (tonga_populate_gnb_lpml(hwmgr))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2041 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2042 "Attempt to populate GnbLPML Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2043 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2044
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2045 /* DW20 */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2046 if (tonga_populate_bapm_vddc_base_leakage_sidd(hwmgr))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2047 PP_ASSERT_WITH_CODE(
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2048 false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2049 "Attempt to populate BapmVddCBaseLeakage "
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2050 "Hi and Lo Sidd Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2051 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2052
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2053 if (smu7_copy_bytes_to_smc(hwmgr, pm_fuse_table_offset,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2054 (uint8_t *)&smu_data->power_tune_table,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2055 sizeof(struct SMU72_Discrete_PmFuses), SMC_RAM_END))
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2056 PP_ASSERT_WITH_CODE(false,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2057 "Attempt to download PmFuseTable Failed !",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2058 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2059 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2060 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2061 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2062
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2063 static int tonga_populate_mc_reg_address(struct pp_hwmgr *hwmgr,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2064 SMU72_Discrete_MCRegisters *mc_reg_table)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2065 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2066 const struct tonga_smumgr *smu_data = (struct tonga_smumgr
*)hwmgr->smu_backend;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2067
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2068 uint32_t i, j;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2069
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2070 for (i = 0, j = 0; j < smu_data->mc_reg_table.last; j++) {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2071 if (smu_data->mc_reg_table.validflag & 1<<j) {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2072 PP_ASSERT_WITH_CODE(
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2073 i < SMU72_DISCRETE_MC_REGISTER_ARRAY_SIZE,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2074 "Index of mc_reg_table->address[] array "
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2075 "out of boundary",
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2076 return -EINVAL);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@2077 mc_reg_table->address[i].s0 =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2078 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s0);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@2079 mc_reg_table->address[i].s1 =
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2080 PP_HOST_TO_SMC_US(smu_data->mc_reg_table.mc_reg_address[j].s1);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2081 i++;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2082 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2083 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2084
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2085 mc_reg_table->last = (uint8_t)i;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2086
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2087 return 0;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2088 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2089
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2090 /*convert register values from driver to SMC format */
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2091 static void tonga_convert_mc_registers(
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2092 const struct tonga_mc_reg_entry *entry,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2093 SMU72_Discrete_MCRegisterSet *data,
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2094 uint32_t num_entries, uint32_t valid_flag)
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2095 {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2096 uint32_t i, j;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2097
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2098 for (i = 0, j = 0; j < num_entries; j++) {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2099 if (valid_flag & 1<<j) {
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
@2100 data->value[i] = PP_HOST_TO_SMC_UL(entry->mc_data[j]);
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2101 i++;
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2102 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2103 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2104 }
4dddc212a354cc3 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c Rex Zhu 2017-10-09
2105
:::::: The code at line 1989 was first introduced by commit
:::::: 4dddc212a354cc3924d60ca240cd338b0a3f6c49 drm/amd/pp: remove tonga_smc/smumgr
split.
:::::: TO: Rex Zhu <Rex.Zhu(a)amd.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