[radeon-alex:amd-staging-drm-next 31/33] drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:490:66: sparse: incorrect type in assignment (different base types)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   a11008ca87d737a3b1ffbe7f32af7d74d78a9aa8
commit: c4d9e2ed68bb9380ebd75916b28addcbc460c24f [31/33] drm/amd/powerplay: add smumgr support for VEGAM (v2)
reproduce:
        # apt-get install sparse
        git checkout c4d9e2ed68bb9380ebd75916b28addcbc460c24f
        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/vegam_smumgr.c:490:66: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Voltage @@    got  short [unsigned] [usertype] Voltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:490:66:    expected unsigned short [unsigned] [usertype] Voltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:490:66:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:500:42: sparse: cast from restricted __be32
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:518:66: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Voltage @@    got  short [unsigned] [usertype] Voltage @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:518:66:    expected unsigned short [unsigned] [usertype] Voltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:518:66:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:586: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/vegam_smumgr.c:586:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:586:9:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:587: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/vegam_smumgr.c:587:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:587:9:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:588:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] VddcOffset @@    got  short [unsigned] [usertype] VddcOffset @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:588:9:    expected unsigned short [unsigned] [usertype] VddcOffset
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:588:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:617:51: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] DownThreshold @@    got ed int [unsigned] [usertype] DownThreshold @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:617:51:    expected unsigned int [unsigned] [usertype] DownThreshold
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:617:51:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:618:49: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] UpThreshold @@    got ed int [unsigned] [usertype] UpThreshold @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:618:49:    expected unsigned int [unsigned] [usertype] UpThreshold
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:618:49:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:722:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_pcc @@    got  short [unsigned] [usertype] fcw_pcc @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:722:25:    expected unsigned short [unsigned] [usertype] fcw_pcc
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:722:25:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:723:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_trans_upper @@    got  short [unsigned] [usertype] fcw_trans_upper @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:723:25:    expected unsigned short [unsigned] [usertype] fcw_trans_upper
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:723:25:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:724:25: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_trans_lower @@    got  short [unsigned] [usertype] fcw_trans_lower @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:724:25:    expected unsigned short [unsigned] [usertype] fcw_trans_lower
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:724:25:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:742:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_pcc @@    got  short [unsigned] [usertype] fcw_pcc @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:742:17:    expected unsigned short [unsigned] [usertype] fcw_pcc
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:742:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:743:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_trans_upper @@    got  short [unsigned] [usertype] fcw_trans_upper @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:743:17:    expected unsigned short [unsigned] [usertype] fcw_trans_upper
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:743:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:744:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] fcw_trans_lower @@    got  short [unsigned] [usertype] fcw_trans_lower @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:744:17:    expected unsigned short [unsigned] [usertype] fcw_trans_lower
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:744:17:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:876:9: 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/vegam_smumgr.c:876:9:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:876:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:877: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/vegam_smumgr.c:877:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:877:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:878: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/vegam_smumgr.c:878:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:878:9:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:879:9: 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/vegam_smumgr.c:879:9:    expected unsigned short [unsigned] [usertype] ActivityLevel
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:879:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:880:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SclkFrequency @@    got ed int [unsigned] [usertype] SclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:880:9:    expected unsigned int [unsigned] [usertype] SclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:880:9:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:881:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_int @@    got  short [unsigned] [usertype] Fcw_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:881:9:    expected unsigned short [unsigned] [usertype] Fcw_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:881:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:882:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_frac @@    got  short [unsigned] [usertype] Fcw_frac @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:882:9:    expected unsigned short [unsigned] [usertype] Fcw_frac
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:882:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:883:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_fcw_int @@    got  short [unsigned] [usertype] Pcc_fcw_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:883:9:    expected unsigned short [unsigned] [usertype] Pcc_fcw_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:883:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:884:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Sclk_slew_rate @@    got  short [unsigned] [usertype] Sclk_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:884:9:    expected unsigned short [unsigned] [usertype] Sclk_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:884:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:885:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_up_slew_rate @@    got  short [unsigned] [usertype] Pcc_up_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:885:9:    expected unsigned short [unsigned] [usertype] Pcc_up_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:885:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:886:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_down_slew_rate @@    got  short [unsigned] [usertype] Pcc_down_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:886:9:    expected unsigned short [unsigned] [usertype] Pcc_down_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:886:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:887:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw1_int @@    got  short [unsigned] [usertype] Fcw1_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:887:9:    expected unsigned short [unsigned] [usertype] Fcw1_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:887:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:888:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw1_frac @@    got  short [unsigned] [usertype] Fcw1_frac @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:888:9:    expected unsigned short [unsigned] [usertype] Fcw1_frac
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:888:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:889:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Sclk_ss_slew_rate @@    got  short [unsigned] [usertype] Sclk_ss_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:889:9:    expected unsigned short [unsigned] [usertype] Sclk_ss_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:889:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1051:17: 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/vegam_smumgr.c:1051:17:    expected unsigned int [unsigned] [usertype] MinMvdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1051:17:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1052:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MclkFrequency @@    got ed int [unsigned] [usertype] MclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1052:17:    expected unsigned int [unsigned] [usertype] MclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1052:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1053:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_int @@    got  short [unsigned] [usertype] Fcw_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1053:17:    expected unsigned short [unsigned] [usertype] Fcw_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1053:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1054:17: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_frac @@    got  short [unsigned] [usertype] Fcw_frac @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1054:17:    expected unsigned short [unsigned] [usertype] Fcw_frac
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1054:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1055:17: 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/vegam_smumgr.c:1055:17:    expected unsigned short [unsigned] [usertype] ActivityLevel
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1055:17:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1056: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/vegam_smumgr.c:1056:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1056:17:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1174:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] Flags @@    got ed int [unsigned] [usertype] Flags @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1174:9:    expected unsigned int [unsigned] [usertype] Flags
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1174:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1175:9: 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/vegam_smumgr.c:1175:9:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1175:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1176: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/vegam_smumgr.c:1176:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1176:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1177: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/vegam_smumgr.c:1177:9:    expected unsigned int [unsigned] [usertype] CcPwrDynRm1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1177:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1179:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] SclkFrequency @@    got ed int [unsigned] [usertype] SclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1179:9:    expected unsigned int [unsigned] [usertype] SclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1179:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1180:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_int @@    got  short [unsigned] [usertype] Fcw_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1180:9:    expected unsigned short [unsigned] [usertype] Fcw_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1180:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1181:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw_frac @@    got  short [unsigned] [usertype] Fcw_frac @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1181:9:    expected unsigned short [unsigned] [usertype] Fcw_frac
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1181:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1182:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_fcw_int @@    got  short [unsigned] [usertype] Pcc_fcw_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1182:9:    expected unsigned short [unsigned] [usertype] Pcc_fcw_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1182:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1183:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Sclk_slew_rate @@    got  short [unsigned] [usertype] Sclk_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1183:9:    expected unsigned short [unsigned] [usertype] Sclk_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1183:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1184:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_up_slew_rate @@    got  short [unsigned] [usertype] Pcc_up_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1184:9:    expected unsigned short [unsigned] [usertype] Pcc_up_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1184:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1185:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Pcc_down_slew_rate @@    got  short [unsigned] [usertype] Pcc_down_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1185:9:    expected unsigned short [unsigned] [usertype] Pcc_down_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1185:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1186:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw1_int @@    got  short [unsigned] [usertype] Fcw1_int @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1186:9:    expected unsigned short [unsigned] [usertype] Fcw1_int
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1186:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1187:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Fcw1_frac @@    got  short [unsigned] [usertype] Fcw1_frac @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1187:9:    expected unsigned short [unsigned] [usertype] Fcw1_frac
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1187:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1188:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned short [unsigned] [usertype] Sclk_ss_slew_rate @@    got  short [unsigned] [usertype] Sclk_ss_slew_rate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1188:9:    expected unsigned short [unsigned] [usertype] Sclk_ss_slew_rate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1188:9:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1214: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/vegam_smumgr.c:1214:48:    expected unsigned int [unsigned] [usertype] MinMvdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1214:48:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1225: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/vegam_smumgr.c:1225:46:    expected unsigned short [unsigned] [usertype] ActivityLevel
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1225:46:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1228:9: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] MclkFrequency @@    got ed int [unsigned] [usertype] MclkFrequency @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1228:9:    expected unsigned int [unsigned] [usertype] MclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1228:9:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1229:9: 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/vegam_smumgr.c:1229:9:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1229:9:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1278: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/vegam_smumgr.c:1278:17:    expected unsigned int [unsigned] [usertype] Frequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1278:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1279: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/vegam_smumgr.c:1279:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1279:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1326: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/vegam_smumgr.c:1326:17:    expected unsigned int [unsigned] [usertype] Frequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1326:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1327: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/vegam_smumgr.c:1327:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1327:17:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1356: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/vegam_smumgr.c:1356:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1356:36:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1357: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/vegam_smumgr.c:1357:36:    expected unsigned int [unsigned] [usertype] McArbDramTiming2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1357:36:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1358:36: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbBurstTime @@    got ed int [unsigned] [usertype] McArbBurstTime @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1358:36:    expected unsigned int [unsigned] [usertype] McArbBurstTime
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1358:36:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1359:33: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbRfshRate @@    got ed int [unsigned] [usertype] McArbRfshRate @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1359:33:    expected unsigned int [unsigned] [usertype] McArbRfshRate
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1359:33:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1360:30: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [unsigned] [usertype] McArbMisc3 @@    got ed int [unsigned] [usertype] McArbMisc3 @@
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1360:30:    expected unsigned int [unsigned] [usertype] McArbMisc3
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1360:30:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1369:64: sparse: missing braces around initializer
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1369:64: sparse: missing braces around initializer
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1369:64: sparse: missing braces around initializer
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1442: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/vegam_smumgr.c:1442:17:    expected unsigned int [unsigned] [usertype] VclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1442:17:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1443: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/vegam_smumgr.c:1443:17:    expected unsigned int [unsigned] [usertype] DclkFrequency
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1443:17:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1444: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/vegam_smumgr.c:1444:17:    expected unsigned int [unsigned] [usertype] MinVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1444:17:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1475: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/vegam_smumgr.c:1475:9:    expected unsigned short [unsigned] [usertype] BootVddc
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1475:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1476: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/vegam_smumgr.c:1476:9:    expected unsigned short [unsigned] [usertype] BootVddci
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1476:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1477: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:1477:9:    expected unsigned short [unsigned] [usertype] BootMVdd
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1477:9:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1534: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:1534:27:    expected unsigned short [unsigned] [usertype] DefaultTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1534:27:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1535: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:1535:27:    expected unsigned short [unsigned] [usertype] TargetTdp
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1535:27:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1541: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:1541:37:    expected unsigned short [unsigned] [usertype] TemperatureLimitEdge
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1541:37:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1543: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:1543:40:    expected unsigned short [unsigned] [usertype] TemperatureLimitHotspot
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1543:40:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1545: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:1545:28:    expected unsigned short [unsigned] [usertype] FanGainEdge
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1545:28:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1547: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:1547:31:    expected unsigned short [unsigned] [usertype] FanGainHotspot
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1547:31:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1556: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:1556:58:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1556:58:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1557: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:1557:59:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1557:59:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1668: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:1668:49:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1668:49:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1670: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:1670:49:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1670:49:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1672: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:1672:49:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1672:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1674: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:1674:49:    expected signed int [signed] [usertype] [explicitly-signed] a0
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1674:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1676: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:1676:49:    expected signed int [signed] [usertype] [explicitly-signed] a1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1676:49:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1678: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:1678:49:    expected signed int [signed] [usertype] [explicitly-signed] a2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1678:49:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1680: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:1680:48:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1680:48:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1682: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:1682:48:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1682:48:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1684: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:1684:47:    expected signed int [signed] [usertype] [explicitly-signed] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1684:47:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1688: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:1688:48:    expected signed int [signed] [usertype] [explicitly-signed] m1
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1688:48:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1690: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:1690:48:    expected signed short [signed] [usertype] [explicitly-signed] m2
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1690:48:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1692: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:1692:47:    expected signed int [signed] [usertype] [explicitly-signed] b
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1692:47:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1696: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:1696:35:    expected unsigned short [unsigned] [usertype] MaxVoltage
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1696:35:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1697: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:1697:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1697:46:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1699: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:1699:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1699:46:    got restricted __be32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1701: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:1701:46:    expected unsigned int [unsigned] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1701:46:    got restricted __be32 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1703: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:1703:46:    expected unsigned short [unsigned] [usertype] DC_tol_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1703:46:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1705: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:1705:47:    expected unsigned short [unsigned] [usertype] Platform_mean
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1705:47:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1707: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:1707:52:    expected unsigned short [unsigned] [usertype] PSM_Age_CompFactor
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1707:52:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1709: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:1709:48:    expected unsigned short [unsigned] [usertype] Platform_sigma
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1709:48:    got restricted __be16 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1715: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:1715:56:    expected unsigned short [unsigned] [short] <noident>
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1715:56:    got restricted __be16 [usertype] <noident>
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1837:25: sparse: too many warnings

vim +490 drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c

   478	
   479	static int vegam_populate_smc_mvdd_table(struct pp_hwmgr *hwmgr,
   480				SMU75_Discrete_DpmTable *table)
   481	{
   482		struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
   483		uint32_t count, level;
   484	
   485		if (SMU7_VOLTAGE_CONTROL_BY_GPIO == data->mvdd_control) {
   486			count = data->mvdd_voltage_table.count;
   487			if (count > SMU_MAX_SMIO_LEVELS)
   488				count = SMU_MAX_SMIO_LEVELS;
   489			for (level = 0; level < count; level++) {
 > 490				table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US(
   491						data->mvdd_voltage_table.entries[count].value * VOLTAGE_SCALE);
   492				/* Index into DpmTable.Smio. Drive bits from Smio entry to get this voltage level.*/
   493				table->SmioTable2.Pattern[level].Smio =
   494					(uint8_t) level;
   495				table->Smio[level] |=
   496					data->mvdd_voltage_table.entries[level].smio_low;
   497			}
   498			table->SmioMask2 = data->mvdd_voltage_table.mask_low;
   499	
 > 500			table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count);
   501		}
   502	
   503		return 0;
   504	}
   505	
   506	static int vegam_populate_smc_vddci_table(struct pp_hwmgr *hwmgr,
   507						struct SMU75_Discrete_DpmTable *table)
   508	{
   509		uint32_t count, level;
   510		struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
   511	
   512		count = data->vddci_voltage_table.count;
   513	
   514		if (SMU7_VOLTAGE_CONTROL_BY_GPIO == data->vddci_control) {
   515			if (count > SMU_MAX_SMIO_LEVELS)
   516				count = SMU_MAX_SMIO_LEVELS;
   517			for (level = 0; level < count; ++level) {
 > 518				table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US(
   519						data->vddci_voltage_table.entries[level].value * VOLTAGE_SCALE);
   520				table->SmioTable1.Pattern[level].Smio = (uint8_t) level;
   521	
   522				table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low;
   523			}
   524		}
   525	
   526		table->SmioMask1 = data->vddci_voltage_table.mask_low;
   527	
   528		return 0;
   529	}
   530	
   531	static int vegam_populate_cac_table(struct pp_hwmgr *hwmgr,
   532			struct SMU75_Discrete_DpmTable *table)
   533	{
   534		uint32_t count;
   535		uint8_t index;
   536		struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
   537		struct phm_ppt_v1_information *table_info =
   538				(struct phm_ppt_v1_information *)(hwmgr->pptable);
   539		struct phm_ppt_v1_voltage_lookup_table *lookup_table =
   540				table_info->vddc_lookup_table;
   541		/* tables is already swapped, so in order to use the value from it,
   542		 * we need to swap it back.
   543		 * We are populating vddc CAC data to BapmVddc table
   544		 * in split and merged mode
   545		 */
   546		for (count = 0; count < lookup_table->count; count++) {
   547			index = phm_get_voltage_index(lookup_table,
   548					data->vddc_voltage_table.entries[count].value);
   549			table->BapmVddcVidLoSidd[count] =
   550					convert_to_vid(lookup_table->entries[index].us_cac_low);
   551			table->BapmVddcVidHiSidd[count] =
   552					convert_to_vid(lookup_table->entries[index].us_cac_mid);
   553			table->BapmVddcVidHiSidd2[count] =
   554					convert_to_vid(lookup_table->entries[index].us_cac_high);
   555		}
   556	
   557		return 0;
   558	}
   559	
   560	static int vegam_populate_smc_voltage_tables(struct pp_hwmgr *hwmgr,
   561			struct SMU75_Discrete_DpmTable *table)
   562	{
   563		vegam_populate_smc_vddci_table(hwmgr, table);
   564		vegam_populate_smc_mvdd_table(hwmgr, table);
   565		vegam_populate_cac_table(hwmgr, table);
   566	
   567		return 0;
   568	}
   569	
   570	static int vegam_populate_ulv_level(struct pp_hwmgr *hwmgr,
   571			struct SMU75_Discrete_Ulv *state)
   572	{
   573		struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
   574		struct phm_ppt_v1_information *table_info =
   575				(struct phm_ppt_v1_information *)(hwmgr->pptable);
   576	
   577		state->CcPwrDynRm = 0;
   578		state->CcPwrDynRm1 = 0;
   579	
   580		state->VddcOffset = (uint16_t) table_info->us_ulv_voltage_offset;
   581		state->VddcOffsetVid = (uint8_t)(table_info->us_ulv_voltage_offset *
   582				VOLTAGE_VID_OFFSET_SCALE2 / VOLTAGE_VID_OFFSET_SCALE1);
   583	
   584		state->VddcPhase = data->vddc_phase_shed_control ^ 0x3;
   585	
 > 586		CONVERT_FROM_HOST_TO_SMC_UL(state->CcPwrDynRm);
 > 587		CONVERT_FROM_HOST_TO_SMC_UL(state->CcPwrDynRm1);
 > 588		CONVERT_FROM_HOST_TO_SMC_US(state->VddcOffset);
   589	
   590		return 0;
   591	}
   592	
   593	static int vegam_populate_ulv_state(struct pp_hwmgr *hwmgr,
   594			struct SMU75_Discrete_DpmTable *table)
   595	{
   596		return vegam_populate_ulv_level(hwmgr, &table->Ulv);
   597	}
   598	
   599	static int vegam_populate_smc_link_level(struct pp_hwmgr *hwmgr,
   600			struct SMU75_Discrete_DpmTable *table)
   601	{
   602		struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
   603		struct vegam_smumgr *smu_data =
   604				(struct vegam_smumgr *)(hwmgr->smu_backend);
   605		struct smu7_dpm_table *dpm_table = &data->dpm_table;
   606		int i;
   607	
   608		/* Index (dpm_table->pcie_speed_table.count)
   609		 * is reserved for PCIE boot level. */
   610		for (i = 0; i <= dpm_table->pcie_speed_table.count; i++) {
   611			table->LinkLevel[i].PcieGenSpeed  =
   612					(uint8_t)dpm_table->pcie_speed_table.dpm_levels[i].value;
   613			table->LinkLevel[i].PcieLaneCount = (uint8_t)encode_pcie_lane_width(
   614					dpm_table->pcie_speed_table.dpm_levels[i].param1);
   615			table->LinkLevel[i].EnabledForActivity = 1;
   616			table->LinkLevel[i].SPC = (uint8_t)(data->pcie_spc_cap & 0xff);
 > 617			table->LinkLevel[i].DownThreshold = PP_HOST_TO_SMC_UL(5);
 > 618			table->LinkLevel[i].UpThreshold = PP_HOST_TO_SMC_UL(30);
   619		}
   620	
   621		smu_data->smc_state_table.LinkLevelCount =
   622				(uint8_t)dpm_table->pcie_speed_table.count;
   623	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux