[radeon-alex:drm-next-4.19-wip 121/126] drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1943:57: sparse: incorrect type in assignment (different base types)

kbuild test robot lkp at intel.com
Fri Jun 15 05:25:07 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.19-wip
head:   0198cd6030f1f4bddc2fceb47971bfcbaa616db5
commit: 30e85debc13f1b8aaac16906441ee66645db10ed [121/126] drm/amd/pp: Remove SAMU support in powerplay
reproduce:
        # apt-get install sparse
        git checkout 30e85debc13f1b8aaac16906441ee66645db10ed
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1225:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1226:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] CcPwrDynRm @@    got ed int [unsigned] [usertype] CcPwrDynRm @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1226:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1226:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1227:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] CcPwrDynRm1 @@    got ed int [unsigned] [usertype] CcPwrDynRm1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1227:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1227:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1236:48: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MinMvdd @@    got ed int [unsigned] [usertype] MinMvdd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1236:48:    expected unsigned int [unsigned] [usertype] MinMvdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1236:48:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1259:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] DllCntl @@    got ed int [unsigned] [usertype] DllCntl @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1259:51:    expected unsigned int [unsigned] [usertype] DllCntl
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1259:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1261:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MclkPwrmgtCntl @@    got ed int [unsigned] [usertype] MclkPwrmgtCntl @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1261:51:    expected unsigned int [unsigned] [usertype] MclkPwrmgtCntl
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1261:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1263:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllAdFuncCntl @@    got ed int [unsigned] [usertype] MpllAdFuncCntl @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1263:51:    expected unsigned int [unsigned] [usertype] MpllAdFuncCntl
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1263:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1265:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllDqFuncCntl @@    got ed int [unsigned] [usertype] MpllDqFuncCntl @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1265:51:    expected unsigned int [unsigned] [usertype] MpllDqFuncCntl
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1265:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1267:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllFuncCntl @@    got ed int [unsigned] [usertype] MpllFuncCntl @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1267:51:    expected unsigned int [unsigned] [usertype] MpllFuncCntl
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1267:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1269:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllFuncCntl_1 @@    got ed int [unsigned] [usertype] MpllFuncCntl_1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1269:51:    expected unsigned int [unsigned] [usertype] MpllFuncCntl_1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1269:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1271:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllFuncCntl_2 @@    got ed int [unsigned] [usertype] MpllFuncCntl_2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1271:51:    expected unsigned int [unsigned] [usertype] MpllFuncCntl_2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1271:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1273:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllSs1 @@    got ed int [unsigned] [usertype] MpllSs1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1273:51:    expected unsigned int [unsigned] [usertype] MpllSs1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1273:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1275:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MpllSs2 @@    got ed int [unsigned] [usertype] MpllSs2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1275:51:    expected unsigned int [unsigned] [usertype] MpllSs2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1275:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1284:46: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] ActivityLevel @@    got  short [unsigned] [usertype] ActivityLevel @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1284:46:    expected unsigned short [unsigned] [usertype] ActivityLevel
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1284:46:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1348:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] VclkFrequency @@    got ed int [unsigned] [usertype] VclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1348:17:    expected unsigned int [unsigned] [usertype] VclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1348:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1349:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] DclkFrequency @@    got ed int [unsigned] [usertype] DclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1349:17:    expected unsigned int [unsigned] [usertype] DclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1349:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1396:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] Frequency @@    got ed int [unsigned] [usertype] Frequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1396:17:    expected unsigned int [unsigned] [usertype] Frequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1396:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1440:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] Frequency @@    got ed int [unsigned] [usertype] Frequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1440:17:    expected unsigned int [unsigned] [usertype] Frequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1440:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1468:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming @@    got ed int [unsigned] [usertype] McArbDramTiming @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1468:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1468:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1469:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming2 @@    got ed int [unsigned] [usertype] McArbDramTiming2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1469:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1469:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1557:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootMVdd @@    got  short [unsigned] [usertype] BootMVdd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1557:9:    expected unsigned short [unsigned] [usertype] BootMVdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1557:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1662:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1678:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] minFreq @@    got  short [unsigned] [usertype] minFreq @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1678:9:    expected unsigned short [unsigned] [usertype] minFreq
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1678:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1680:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] maxFreq @@    got  short [unsigned] [usertype] maxFreq @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1680:9:    expected unsigned short [unsigned] [usertype] maxFreq
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1680:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1706:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1721:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] setting @@    got  short [unsigned] [usertype] setting @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1721:17:    expected unsigned short [unsigned] [usertype] setting
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1721:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1827:31: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] DefaultTdp @@    got  short [unsigned] [usertype] DefaultTdp @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1827:31:    expected unsigned short [unsigned] [usertype] DefaultTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1827:31:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1829:30: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TargetTdp @@    got  short [unsigned] [usertype] TargetTdp @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1829:30:    expected unsigned short [unsigned] [usertype] TargetTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1829:30:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1841:39: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] BAPM_TEMP_GRADIENT @@    got ed int [unsigned] [usertype] BAPM_TEMP_GRADIENT @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1841:39:    expected unsigned int [unsigned] [usertype] BAPM_TEMP_GRADIENT
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1841:39:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1849:62: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1849:62:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1849:62:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1851:63: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1851:63:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1851:63:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1890:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [assigned] [usertype] tdc_limit @@    got igned] [assigned] [usertype] tdc_limit @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1890:25:    expected unsigned short [unsigned] [assigned] [usertype] tdc_limit
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1890:25:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1943:57: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] FuzzyFan_PwmSetDelta @@    got sertype] [explicitly-signed] FuzzyFan_PwmSetDelta @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1943:57:    expected signed short [signed] [usertype] [explicitly-signed] FuzzyFan_PwmSetDelta
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1943:57:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c:1976:25: sparse: too many warnings
--
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1465:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1500:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] Frequency @@    got ed int [unsigned] [usertype] Frequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1500:17:    expected unsigned int [unsigned] [usertype] Frequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1500:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1501:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MinVoltage @@    got ed int [unsigned] [usertype] MinVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1501:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1501:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1529:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming @@    got ed int [unsigned] [usertype] McArbDramTiming @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1529:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1529:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1530:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming2 @@    got ed int [unsigned] [usertype] McArbDramTiming2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1530:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1530:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1606:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] VclkFrequency @@    got ed int [unsigned] [usertype] VclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1606:17:    expected unsigned int [unsigned] [usertype] VclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1606:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1607:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] DclkFrequency @@    got ed int [unsigned] [usertype] DclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1607:17:    expected unsigned int [unsigned] [usertype] DclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1607:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1608:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MinVoltage @@    got ed int [unsigned] [usertype] MinVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1608:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1608:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1639:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootVddc @@    got  short [unsigned] [usertype] BootVddc @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1639:9:    expected unsigned short [unsigned] [usertype] BootVddc
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1639:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1640:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootVddci @@    got  short [unsigned] [usertype] BootVddci @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1640:9:    expected unsigned short [unsigned] [usertype] BootVddci
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1640:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1641:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootMVdd @@    got  short [unsigned] [usertype] BootMVdd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1641:9:    expected unsigned short [unsigned] [usertype] BootMVdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1641:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1759:37: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1775:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] minFreq @@    got  short [unsigned] [usertype] minFreq @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1775:9:    expected unsigned short [unsigned] [usertype] minFreq
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1775:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1777:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] maxFreq @@    got  short [unsigned] [usertype] maxFreq @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1777:9:    expected unsigned short [unsigned] [usertype] maxFreq
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1777:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1803:38: sparse: cast to restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1820:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] setting @@    got  short [unsigned] [usertype] setting @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1820:17:    expected unsigned short [unsigned] [usertype] setting
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:1820:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2105:32: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2105:32:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2105:32:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2107:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SystemFlags @@    got ed int [unsigned] [usertype] SystemFlags @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2107:9:    expected unsigned int [unsigned] [usertype] SystemFlags
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2107:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2108:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] VRConfig @@    got ed int [unsigned] [usertype] VRConfig @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2108:9:    expected unsigned int [unsigned] [usertype] VRConfig
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2108:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2109:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SmioMask1 @@    got ed int [unsigned] [usertype] SmioMask1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2109:9:    expected unsigned int [unsigned] [usertype] SmioMask1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2109:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2110:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SmioMask2 @@    got ed int [unsigned] [usertype] SmioMask2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2110:9:    expected unsigned int [unsigned] [usertype] SmioMask2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2110:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2111:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SclkStepSize @@    got ed int [unsigned] [usertype] SclkStepSize @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2111:9:    expected unsigned int [unsigned] [usertype] SclkStepSize
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2111:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2112:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TemperatureLimitHigh @@    got  short [unsigned] [usertype] TemperatureLimitHigh @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2112:9:    expected unsigned short [unsigned] [usertype] TemperatureLimitHigh
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2112:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2113:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TemperatureLimitLow @@    got  short [unsigned] [usertype] TemperatureLimitLow @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2113:9:    expected unsigned short [unsigned] [usertype] TemperatureLimitLow
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2113:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2114:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] VoltageResponseTime @@    got  short [unsigned] [usertype] VoltageResponseTime @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2114:9:    expected unsigned short [unsigned] [usertype] VoltageResponseTime
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2114:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2115:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] PhaseResponseTime @@    got  short [unsigned] [usertype] PhaseResponseTime @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2115:9:    expected unsigned short [unsigned] [usertype] PhaseResponseTime
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2115:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2193:27: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] TempMin @@    got sertype] [explicitly-signed] TempMin @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2193:27:    expected signed short [signed] [usertype] [explicitly-signed] TempMin
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2193:27:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2195:27: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] TempMed @@    got sertype] [explicitly-signed] TempMed @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2195:27:    expected signed short [signed] [usertype] [explicitly-signed] TempMed
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2195:27:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2197:27: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] TempMax @@    got sertype] [explicitly-signed] TempMax @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2197:27:    expected signed short [signed] [usertype] [explicitly-signed] TempMax
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2197:27:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2200:26: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] Slope1 @@    got sertype] [explicitly-signed] Slope1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2200:26:    expected signed short [signed] [usertype] [explicitly-signed] Slope1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2200:26:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2201:26: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] Slope2 @@    got sertype] [explicitly-signed] Slope2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2201:26:    expected signed short [signed] [usertype] [explicitly-signed] Slope2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2201:26:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2203:26: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] FdoMin @@    got sertype] [explicitly-signed] FdoMin @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2203:26:    expected signed short [signed] [usertype] [explicitly-signed] FdoMin
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2203:26:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2205:28: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] HystDown @@    got sertype] [explicitly-signed] HystDown @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2205:28:    expected signed short [signed] [usertype] [explicitly-signed] HystDown
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2205:28:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2208:26: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] HystUp @@    got sertype] [explicitly-signed] HystUp @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2208:26:    expected signed short [signed] [usertype] [explicitly-signed] HystUp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2208:26:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/fiji_smumgr.c:2210:29: sparse: too many warnings
--
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1334:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1335:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MinVoltage @@    got ed int [unsigned] [usertype] MinVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1335:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1335:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1359:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming @@    got ed int [unsigned] [usertype] McArbDramTiming @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1359:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1359:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1360:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbDramTiming2 @@    got ed int [unsigned] [usertype] McArbDramTiming2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1360:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1360:36:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1445:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] VclkFrequency @@    got ed int [unsigned] [usertype] VclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1445:17:    expected unsigned int [unsigned] [usertype] VclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1445:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1446:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] DclkFrequency @@    got ed int [unsigned] [usertype] DclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1446:17:    expected unsigned int [unsigned] [usertype] DclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1446:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1447:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MinVoltage @@    got ed int [unsigned] [usertype] MinVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1447:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1447:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1478:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootVddc @@    got  short [unsigned] [usertype] BootVddc @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1478:9:    expected unsigned short [unsigned] [usertype] BootVddc
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1478:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1479:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootVddci @@    got  short [unsigned] [usertype] BootVddci @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1479:9:    expected unsigned short [unsigned] [usertype] BootVddci
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1479:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1480:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootMVdd @@    got  short [unsigned] [usertype] BootMVdd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1480:9:    expected unsigned short [unsigned] [usertype] BootMVdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1480:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1659:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a0 @@    got sertype] [explicitly-signed] a0 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1659:50:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1659:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1660:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a1 @@    got sertype] [explicitly-signed] a1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1660:50:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1660:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1661:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a2 @@    got sertype] [explicitly-signed] a2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1661:50:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1661:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1662:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a0 @@    got sertype] [explicitly-signed] a0 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1662:50:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1662:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1663:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a1 @@    got sertype] [explicitly-signed] a1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1663:50:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1663:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1664:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a2 @@    got sertype] [explicitly-signed] a2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1664:50:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1664:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1665:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] m1 @@    got sertype] [explicitly-signed] m1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1665:50:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1665:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1666:50: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] m2 @@    got sertype] [explicitly-signed] m2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1666:50:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1666:50:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1667:50: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] b @@    got ed int [unsigned] [usertype] b @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1667:50:    expected unsigned int [unsigned] [usertype] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1667:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1670:50: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] m1 @@    got sertype] [explicitly-signed] m1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1670:50:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1670:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1671:50: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] m2 @@    got sertype] [explicitly-signed] m2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1671:50:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1671:50:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1672:50: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] b @@    got ed int [unsigned] [usertype] b @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1672:50:    expected unsigned int [unsigned] [usertype] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1672:50:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1675:50: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] MaxVoltage @@    got  short [unsigned] [usertype] MaxVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1675:50:    expected unsigned short [unsigned] [usertype] MaxVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1675:50:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1676:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1676:51:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1676:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1677:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1677:51:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1677:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1678:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1678:51:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1678:51:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1679:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] DC_tol_sigma @@    got  short [unsigned] [usertype] DC_tol_sigma @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1679:51:    expected unsigned short [unsigned] [usertype] DC_tol_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1679:51:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1680:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Platform_mean @@    got  short [unsigned] [usertype] Platform_mean @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1680:51:    expected unsigned short [unsigned] [usertype] Platform_mean
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1680:51:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1681:52: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] PSM_Age_CompFactor @@    got  short [unsigned] [usertype] PSM_Age_CompFactor @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1681:52:    expected unsigned short [unsigned] [usertype] PSM_Age_CompFactor
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1681:52:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1682:52: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Platform_sigma @@    got  short [unsigned] [usertype] Platform_sigma @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1682:52:    expected unsigned short [unsigned] [usertype] Platform_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1682:52:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1686:56: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1686:56:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1686:56:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1934:47: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BifSclkDfs @@    got  short [unsigned] [usertype] BifSclkDfs @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1934:47:    expected unsigned short [unsigned] [usertype] BifSclkDfs
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1934:47:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1936:58: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BifSclkDfs @@    got  short [unsigned] [usertype] BifSclkDfs @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1936:58:    expected unsigned short [unsigned] [usertype] BifSclkDfs
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1936:58:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1940:32: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1940:32:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1940:32:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1942:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SystemFlags @@    got ed int [unsigned] [usertype] SystemFlags @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1942:9:    expected unsigned int [unsigned] [usertype] SystemFlags
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1942:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/polaris10_smumgr.c:1943:9: sparse: too many warnings
--
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1399:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1400:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] BootMVdd @@    got  short [unsigned] [usertype] BootMVdd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1400:9:    expected unsigned short [unsigned] [usertype] BootMVdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1400:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1457:27: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] DefaultTdp @@    got  short [unsigned] [usertype] DefaultTdp @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1457:27:    expected unsigned short [unsigned] [usertype] DefaultTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1457:27:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1458:27: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TargetTdp @@    got  short [unsigned] [usertype] TargetTdp @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1458:27:    expected unsigned short [unsigned] [usertype] TargetTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1458:27:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1464:37: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TemperatureLimitEdge @@    got  short [unsigned] [usertype] TemperatureLimitEdge @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1464:37:    expected unsigned short [unsigned] [usertype] TemperatureLimitEdge
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1464:37:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1466:40: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] TemperatureLimitHotspot @@    got  short [unsigned] [usertype] TemperatureLimitHotspot @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1466:40:    expected unsigned short [unsigned] [usertype] TemperatureLimitHotspot
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1466:40:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1468:28: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] FanGainEdge @@    got  short [unsigned] [usertype] FanGainEdge @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1468:28:    expected unsigned short [unsigned] [usertype] FanGainEdge
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1468:28:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1470:31: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] FanGainHotspot @@    got  short [unsigned] [usertype] FanGainHotspot @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1470:31:    expected unsigned short [unsigned] [usertype] FanGainHotspot
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1470:31:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1479:58: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1479:58:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1479:58:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1480:59: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1480:59:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1480:59:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1591:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a0 @@    got sertype] [explicitly-signed] a0 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1591:49:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1591:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1593:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a1 @@    got sertype] [explicitly-signed] a1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1593:49:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1593:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1595:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a2 @@    got sertype] [explicitly-signed] a2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1595:49:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1595:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1597:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a0 @@    got sertype] [explicitly-signed] a0 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1597:49:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1597:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1599:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a1 @@    got sertype] [explicitly-signed] a1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1599:49:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1599:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1601:49: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] a2 @@    got sertype] [explicitly-signed] a2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1601:49:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1601:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1603:48: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] m1 @@    got sertype] [explicitly-signed] m1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1603:48:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1603:48:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1605:48: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] m2 @@    got sertype] [explicitly-signed] m2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1605:48:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1605:48:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1607:47: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] b @@    got sertype] [explicitly-signed] b @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1607:47:    expected signed int [signed] [usertype] [explicitly-signed] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1607:47:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1611:48: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] m1 @@    got sertype] [explicitly-signed] m1 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1611:48:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1611:48:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1613:48: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] m2 @@    got sertype] [explicitly-signed] m2 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1613:48:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1613:48:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1615:47: sparse: incorrect type in assignment (different base types) @@    expected signed int [signed] [usertype] [explicitly-signed] b @@    got sertype] [explicitly-signed] b @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1615:47:    expected signed int [signed] [usertype] [explicitly-signed] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1615:47:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1619:35: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] MaxVoltage @@    got  short [unsigned] [usertype] MaxVoltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1619:35:    expected unsigned short [unsigned] [usertype] MaxVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1619:35:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1620:46: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1620:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1620:46:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1622:46: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1622:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1622:46:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1624:46: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] <noident> @@    got restrunsigned int [unsigned] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1624:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1624:46:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1626:46: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] DC_tol_sigma @@    got  short [unsigned] [usertype] DC_tol_sigma @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1626:46:    expected unsigned short [unsigned] [usertype] DC_tol_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1626:46:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1628:47: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Platform_mean @@    got  short [unsigned] [usertype] Platform_mean @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1628:47:    expected unsigned short [unsigned] [usertype] Platform_mean
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1628:47:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1630:52: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] PSM_Age_CompFactor @@    got  short [unsigned] [usertype] PSM_Age_CompFactor @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1630:52:    expected unsigned short [unsigned] [usertype] PSM_Age_CompFactor
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1630:52:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1632:48: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Platform_sigma @@    got  short [unsigned] [usertype] Platform_sigma @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1632:48:    expected unsigned short [unsigned] [usertype] Platform_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1632:48:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1638:56: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [short] <noident> @@    got ned short [unsigned] [short] <noident> @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1638:56:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1638:56:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1760:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [assigned] [usertype] tdc_limit @@    got igned] [assigned] [usertype] tdc_limit @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1760:25:    expected unsigned short [unsigned] [assigned] [usertype] tdc_limit
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1760:25:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1814:57: sparse: incorrect type in assignment (different base types) @@    expected signed short [signed] [usertype] [explicitly-signed] FuzzyFan_PwmSetDelta @@    got sertype] [explicitly-signed] FuzzyFan_PwmSetDelta @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1814:57:    expected signed short [signed] [usertype] [explicitly-signed] FuzzyFan_PwmSetDelta
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1814:57:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1844:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [assigned] [usertype] hi_sidd @@    got igned] [assigned] [usertype] hi_sidd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1844:25:    expected unsigned short [unsigned] [assigned] [usertype] hi_sidd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1844:25:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1846:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [assigned] [usertype] lo_sidd @@    got igned] [assigned] [usertype] lo_sidd @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1846:25:    expected unsigned short [unsigned] [assigned] [usertype] lo_sidd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1846:25:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:2117:47: sparse: too many warnings

vim +1943 drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/tonga_smumgr.c

4dddc212 Rex Zhu 2017-10-09  1813  
4dddc212 Rex Zhu 2017-10-09  1814  
4dddc212 Rex Zhu 2017-10-09  1815  static int tonga_populate_bapm_parameters_in_dpm_table(struct pp_hwmgr *hwmgr)
4dddc212 Rex Zhu 2017-10-09  1816  {
4dddc212 Rex Zhu 2017-10-09  1817  	struct tonga_smumgr *smu_data =
4dddc212 Rex Zhu 2017-10-09  1818  				(struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1819  	const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212 Rex Zhu 2017-10-09  1820  	SMU72_Discrete_DpmTable  *dpm_table = &(smu_data->smc_state_table);
4dddc212 Rex Zhu 2017-10-09  1821  	struct phm_ppt_v1_information *table_info =
4dddc212 Rex Zhu 2017-10-09  1822  			(struct phm_ppt_v1_information *)(hwmgr->pptable);
4dddc212 Rex Zhu 2017-10-09  1823  	struct phm_cac_tdp_table *cac_dtp_table = table_info->cac_dtp_table;
4dddc212 Rex Zhu 2017-10-09  1824  	int  i, j, k;
4dddc212 Rex Zhu 2017-10-09  1825  	const uint16_t *pdef1, *pdef2;
4dddc212 Rex Zhu 2017-10-09  1826  
4dddc212 Rex Zhu 2017-10-09  1827  	dpm_table->DefaultTdp = PP_HOST_TO_SMC_US(
4dddc212 Rex Zhu 2017-10-09  1828  			(uint16_t)(cac_dtp_table->usTDP * 256));
4dddc212 Rex Zhu 2017-10-09  1829  	dpm_table->TargetTdp = PP_HOST_TO_SMC_US(
4dddc212 Rex Zhu 2017-10-09  1830  			(uint16_t)(cac_dtp_table->usConfigurableTDP * 256));
4dddc212 Rex Zhu 2017-10-09  1831  
4dddc212 Rex Zhu 2017-10-09  1832  	PP_ASSERT_WITH_CODE(cac_dtp_table->usTargetOperatingTemp <= 255,
4dddc212 Rex Zhu 2017-10-09  1833  			"Target Operating Temp is out of Range !",
4dddc212 Rex Zhu 2017-10-09  1834  			);
4dddc212 Rex Zhu 2017-10-09  1835  
4dddc212 Rex Zhu 2017-10-09  1836  	dpm_table->GpuTjMax = (uint8_t)(cac_dtp_table->usTargetOperatingTemp);
4dddc212 Rex Zhu 2017-10-09  1837  	dpm_table->GpuTjHyst = 8;
4dddc212 Rex Zhu 2017-10-09  1838  
4dddc212 Rex Zhu 2017-10-09  1839  	dpm_table->DTEAmbientTempBase = defaults->dte_ambient_temp_base;
4dddc212 Rex Zhu 2017-10-09  1840  
4dddc212 Rex Zhu 2017-10-09  1841  	dpm_table->BAPM_TEMP_GRADIENT =
4dddc212 Rex Zhu 2017-10-09  1842  				PP_HOST_TO_SMC_UL(defaults->bapm_temp_gradient);
4dddc212 Rex Zhu 2017-10-09  1843  	pdef1 = defaults->bapmti_r;
4dddc212 Rex Zhu 2017-10-09  1844  	pdef2 = defaults->bapmti_rc;
4dddc212 Rex Zhu 2017-10-09  1845  
4dddc212 Rex Zhu 2017-10-09  1846  	for (i = 0; i < SMU72_DTE_ITERATIONS; i++) {
4dddc212 Rex Zhu 2017-10-09  1847  		for (j = 0; j < SMU72_DTE_SOURCES; j++) {
4dddc212 Rex Zhu 2017-10-09  1848  			for (k = 0; k < SMU72_DTE_SINKS; k++) {
4dddc212 Rex Zhu 2017-10-09 @1849  				dpm_table->BAPMTI_R[i][j][k] =
4dddc212 Rex Zhu 2017-10-09  1850  						PP_HOST_TO_SMC_US(*pdef1);
4dddc212 Rex Zhu 2017-10-09  1851  				dpm_table->BAPMTI_RC[i][j][k] =
4dddc212 Rex Zhu 2017-10-09  1852  						PP_HOST_TO_SMC_US(*pdef2);
4dddc212 Rex Zhu 2017-10-09  1853  				pdef1++;
4dddc212 Rex Zhu 2017-10-09  1854  				pdef2++;
4dddc212 Rex Zhu 2017-10-09  1855  			}
4dddc212 Rex Zhu 2017-10-09  1856  		}
4dddc212 Rex Zhu 2017-10-09  1857  	}
4dddc212 Rex Zhu 2017-10-09  1858  
4dddc212 Rex Zhu 2017-10-09  1859  	return 0;
4dddc212 Rex Zhu 2017-10-09  1860  }
4dddc212 Rex Zhu 2017-10-09  1861  
4dddc212 Rex Zhu 2017-10-09  1862  static int tonga_populate_svi_load_line(struct pp_hwmgr *hwmgr)
4dddc212 Rex Zhu 2017-10-09  1863  {
4dddc212 Rex Zhu 2017-10-09  1864  	struct tonga_smumgr *smu_data =
4dddc212 Rex Zhu 2017-10-09  1865  				(struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1866  	const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212 Rex Zhu 2017-10-09  1867  
4dddc212 Rex Zhu 2017-10-09  1868  	smu_data->power_tune_table.SviLoadLineEn = defaults->svi_load_line_en;
4dddc212 Rex Zhu 2017-10-09  1869  	smu_data->power_tune_table.SviLoadLineVddC = defaults->svi_load_line_vddC;
4dddc212 Rex Zhu 2017-10-09  1870  	smu_data->power_tune_table.SviLoadLineTrimVddC = 3;
4dddc212 Rex Zhu 2017-10-09  1871  	smu_data->power_tune_table.SviLoadLineOffsetVddC = 0;
4dddc212 Rex Zhu 2017-10-09  1872  
4dddc212 Rex Zhu 2017-10-09  1873  	return 0;
4dddc212 Rex Zhu 2017-10-09  1874  }
4dddc212 Rex Zhu 2017-10-09  1875  
4dddc212 Rex Zhu 2017-10-09  1876  static int tonga_populate_tdc_limit(struct pp_hwmgr *hwmgr)
4dddc212 Rex Zhu 2017-10-09  1877  {
4dddc212 Rex Zhu 2017-10-09  1878  	uint16_t tdc_limit;
4dddc212 Rex Zhu 2017-10-09  1879  	struct tonga_smumgr *smu_data =
4dddc212 Rex Zhu 2017-10-09  1880  				(struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1881  	const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212 Rex Zhu 2017-10-09  1882  	struct phm_ppt_v1_information *table_info =
4dddc212 Rex Zhu 2017-10-09  1883  			(struct phm_ppt_v1_information *)(hwmgr->pptable);
4dddc212 Rex Zhu 2017-10-09  1884  
4dddc212 Rex Zhu 2017-10-09  1885  	/* TDC number of fraction bits are changed from 8 to 7
4dddc212 Rex Zhu 2017-10-09  1886  	 * for Fiji as requested by SMC team
4dddc212 Rex Zhu 2017-10-09  1887  	 */
4dddc212 Rex Zhu 2017-10-09  1888  	tdc_limit = (uint16_t)(table_info->cac_dtp_table->usTDC * 256);
4dddc212 Rex Zhu 2017-10-09  1889  	smu_data->power_tune_table.TDC_VDDC_PkgLimit =
4dddc212 Rex Zhu 2017-10-09  1890  			CONVERT_FROM_HOST_TO_SMC_US(tdc_limit);
4dddc212 Rex Zhu 2017-10-09  1891  	smu_data->power_tune_table.TDC_VDDC_ThrottleReleaseLimitPerc =
4dddc212 Rex Zhu 2017-10-09  1892  			defaults->tdc_vddc_throttle_release_limit_perc;
4dddc212 Rex Zhu 2017-10-09  1893  	smu_data->power_tune_table.TDC_MAWt = defaults->tdc_mawt;
4dddc212 Rex Zhu 2017-10-09  1894  
4dddc212 Rex Zhu 2017-10-09  1895  	return 0;
4dddc212 Rex Zhu 2017-10-09  1896  }
4dddc212 Rex Zhu 2017-10-09  1897  
4dddc212 Rex Zhu 2017-10-09  1898  static int tonga_populate_dw8(struct pp_hwmgr *hwmgr, uint32_t fuse_table_offset)
4dddc212 Rex Zhu 2017-10-09  1899  {
4dddc212 Rex Zhu 2017-10-09  1900  	struct tonga_smumgr *smu_data =
4dddc212 Rex Zhu 2017-10-09  1901  			(struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1902  	const struct tonga_pt_defaults *defaults = smu_data->power_tune_defaults;
4dddc212 Rex Zhu 2017-10-09  1903  	uint32_t temp;
4dddc212 Rex Zhu 2017-10-09  1904  
4dddc212 Rex Zhu 2017-10-09  1905  	if (smu7_read_smc_sram_dword(hwmgr,
4dddc212 Rex Zhu 2017-10-09  1906  			fuse_table_offset +
4dddc212 Rex Zhu 2017-10-09  1907  			offsetof(SMU72_Discrete_PmFuses, TdcWaterfallCtl),
4dddc212 Rex Zhu 2017-10-09  1908  			(uint32_t *)&temp, SMC_RAM_END))
4dddc212 Rex Zhu 2017-10-09  1909  		PP_ASSERT_WITH_CODE(false,
4dddc212 Rex Zhu 2017-10-09  1910  				"Attempt to read PmFuses.DW6 "
4dddc212 Rex Zhu 2017-10-09  1911  				"(SviLoadLineEn) from SMC Failed !",
4dddc212 Rex Zhu 2017-10-09  1912  				return -EINVAL);
4dddc212 Rex Zhu 2017-10-09  1913  	else
4dddc212 Rex Zhu 2017-10-09  1914  		smu_data->power_tune_table.TdcWaterfallCtl = defaults->tdc_waterfall_ctl;
4dddc212 Rex Zhu 2017-10-09  1915  
4dddc212 Rex Zhu 2017-10-09  1916  	return 0;
4dddc212 Rex Zhu 2017-10-09  1917  }
4dddc212 Rex Zhu 2017-10-09  1918  
4dddc212 Rex Zhu 2017-10-09  1919  static int tonga_populate_temperature_scaler(struct pp_hwmgr *hwmgr)
4dddc212 Rex Zhu 2017-10-09  1920  {
4dddc212 Rex Zhu 2017-10-09  1921  	int i;
4dddc212 Rex Zhu 2017-10-09  1922  	struct tonga_smumgr *smu_data =
4dddc212 Rex Zhu 2017-10-09  1923  				(struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1924  
4dddc212 Rex Zhu 2017-10-09  1925  	/* Currently not used. Set all to zero. */
4dddc212 Rex Zhu 2017-10-09  1926  	for (i = 0; i < 16; i++)
4dddc212 Rex Zhu 2017-10-09  1927  		smu_data->power_tune_table.LPMLTemperatureScaler[i] = 0;
4dddc212 Rex Zhu 2017-10-09  1928  
4dddc212 Rex Zhu 2017-10-09  1929  	return 0;
4dddc212 Rex Zhu 2017-10-09  1930  }
4dddc212 Rex Zhu 2017-10-09  1931  
4dddc212 Rex Zhu 2017-10-09  1932  static int tonga_populate_fuzzy_fan(struct pp_hwmgr *hwmgr)
4dddc212 Rex Zhu 2017-10-09  1933  {
4dddc212 Rex Zhu 2017-10-09  1934  	struct tonga_smumgr *smu_data = (struct tonga_smumgr *)(hwmgr->smu_backend);
4dddc212 Rex Zhu 2017-10-09  1935  
4dddc212 Rex Zhu 2017-10-09  1936  	if ((hwmgr->thermal_controller.advanceFanControlParameters.
4dddc212 Rex Zhu 2017-10-09  1937  			usFanOutputSensitivity & (1 << 15)) ||
4dddc212 Rex Zhu 2017-10-09  1938  		(hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity == 0))
4dddc212 Rex Zhu 2017-10-09  1939  		hwmgr->thermal_controller.advanceFanControlParameters.
4dddc212 Rex Zhu 2017-10-09  1940  		usFanOutputSensitivity = hwmgr->thermal_controller.
4dddc212 Rex Zhu 2017-10-09  1941  			advanceFanControlParameters.usDefaultFanOutputSensitivity;
4dddc212 Rex Zhu 2017-10-09  1942  
4dddc212 Rex Zhu 2017-10-09 @1943  	smu_data->power_tune_table.FuzzyFan_PwmSetDelta =
4dddc212 Rex Zhu 2017-10-09  1944  			PP_HOST_TO_SMC_US(hwmgr->thermal_controller.
4dddc212 Rex Zhu 2017-10-09  1945  					advanceFanControlParameters.usFanOutputSensitivity);
4dddc212 Rex Zhu 2017-10-09  1946  	return 0;
4dddc212 Rex Zhu 2017-10-09  1947  }
4dddc212 Rex Zhu 2017-10-09  1948  

:::::: The code at line 1943 was first introduced by commit
:::::: 4dddc212a354cc3924d60ca240cd338b0a3f6c49 drm/amd/pp: remove tonga_smc/smumgr split.

:::::: TO: Rex Zhu <Rex.Zhu at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the dri-devel mailing list