[radeon-alex:amd-staging-drm-next 1/3] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:987:27: sparse: too many warnings
kbuild test robot
lkp at intel.com
Thu Aug 9 23:30:58 UTC 2018
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: b4941f6ef111906b39a86f5b912f72e519c97a98
commit: beee6f9526180c5505d96d152b030b4ca495a7d1 [1/3] drm/amdgpu/pp: endian fixes for process_pptables_v1_0.c
reproduce:
# apt-get install sparse
git checkout beee6f9526180c5505d96d152b030b4ca495a7d1
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:186:34: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:187:38: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:188:38: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:189:39: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:217:19: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:219:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:221:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:223:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:225:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:227:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:229:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:231:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:233:19: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:258:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:265:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:284:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:293:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:302:61: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:358:24: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:359:24: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:360:24: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:361:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:362:26: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:399:49: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:400:44: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:401:43: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:402:42: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:446:57: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:447:50: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:478:57: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:479:50: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:483:58: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:537:51: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:577:51: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:578:50: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:612:36: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:614:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:615:36: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:617:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:619:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:621:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:623:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:625:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:627:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:629:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:631:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:633:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:635:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:639:36: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:640:48: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:641:36: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:642:50: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:643:48: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:644:46: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:645:47: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:647:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:649:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:651:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:653:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:655:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:657:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:659:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:661:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:663:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:665:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:667:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:669:25: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:718:50: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:719:41: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:720:45: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:721:41: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:722:41: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:723:41: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:774:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:777:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:780:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:783:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:786:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:789:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:792:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:865:17: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:867:17: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:893:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:924:17: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:942:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:944:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:946:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:948:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:950:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:952:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:956:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:960:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:964:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:966:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:968:28: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:979:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:981:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:983:27: sparse: cast to restricted __le16
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:985:27: sparse: cast to restricted __le16
>> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c:987:27: sparse: too many warnings
vim +987 drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/process_pptables_v1_0.c
875
876 /**
877 * Private Function used during initialization.
878 * Inspect the PowerPlay table for obvious signs of corruption.
879 * @param hwmgr Pointer to the hardware manager.
880 * @param powerplay_table Pointer to the PowerPlay Table.
881 * @exception This implementation always returns 1.
882 */
883 static int init_thermal_controller(
884 struct pp_hwmgr *hwmgr,
885 const ATOM_Tonga_POWERPLAYTABLE *powerplay_table
886 )
887 {
888 const PPTable_Generic_SubTable_Header *fan_table;
889 ATOM_Tonga_Thermal_Controller *thermal_controller;
890
891 thermal_controller = (ATOM_Tonga_Thermal_Controller *)
892 (((unsigned long)powerplay_table) +
893 le16_to_cpu(powerplay_table->usThermalControllerOffset));
894 PP_ASSERT_WITH_CODE((0 != powerplay_table->usThermalControllerOffset),
895 "Thermal controller table not set!", return -1);
896
897 hwmgr->thermal_controller.ucType = thermal_controller->ucType;
898 hwmgr->thermal_controller.ucI2cLine = thermal_controller->ucI2cLine;
899 hwmgr->thermal_controller.ucI2cAddress = thermal_controller->ucI2cAddress;
900
901 hwmgr->thermal_controller.fanInfo.bNoFan =
902 (0 != (thermal_controller->ucFanParameters & ATOM_TONGA_PP_FANPARAMETERS_NOFAN));
903
904 hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution =
905 thermal_controller->ucFanParameters &
906 ATOM_TONGA_PP_FANPARAMETERS_TACHOMETER_PULSES_PER_REVOLUTION_MASK;
907
908 hwmgr->thermal_controller.fanInfo.ulMinRPM
909 = thermal_controller->ucFanMinRPM * 100UL;
910 hwmgr->thermal_controller.fanInfo.ulMaxRPM
911 = thermal_controller->ucFanMaxRPM * 100UL;
912
913 set_hw_cap(
914 hwmgr,
915 ATOM_TONGA_PP_THERMALCONTROLLER_NONE != hwmgr->thermal_controller.ucType,
916 PHM_PlatformCaps_ThermalController
917 );
918
919 if (0 == powerplay_table->usFanTableOffset)
920 return 0;
921
922 fan_table = (const PPTable_Generic_SubTable_Header *)
923 (((unsigned long)powerplay_table) +
924 le16_to_cpu(powerplay_table->usFanTableOffset));
925
926 PP_ASSERT_WITH_CODE((0 != powerplay_table->usFanTableOffset),
927 "Fan table not set!", return -1);
928 PP_ASSERT_WITH_CODE((0 < fan_table->ucRevId),
929 "Unsupported fan table format!", return -1);
930
931 hwmgr->thermal_controller.advanceFanControlParameters.ulCycleDelay
932 = 100000;
933 phm_cap_set(hwmgr->platform_descriptor.platformCaps,
934 PHM_PlatformCaps_MicrocodeFanControl);
935
936 if (fan_table->ucRevId < 8) {
937 const ATOM_Tonga_Fan_Table *tonga_fan_table =
938 (ATOM_Tonga_Fan_Table *)fan_table;
939 hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst
940 = tonga_fan_table->ucTHyst;
941 hwmgr->thermal_controller.advanceFanControlParameters.usTMin
942 = le16_to_cpu(tonga_fan_table->usTMin);
943 hwmgr->thermal_controller.advanceFanControlParameters.usTMed
944 = le16_to_cpu(tonga_fan_table->usTMed);
945 hwmgr->thermal_controller.advanceFanControlParameters.usTHigh
946 = le16_to_cpu(tonga_fan_table->usTHigh);
947 hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin
948 = le16_to_cpu(tonga_fan_table->usPWMMin);
949 hwmgr->thermal_controller.advanceFanControlParameters.usPWMMed
950 = le16_to_cpu(tonga_fan_table->usPWMMed);
951 hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh
952 = le16_to_cpu(tonga_fan_table->usPWMHigh);
953 hwmgr->thermal_controller.advanceFanControlParameters.usTMax
954 = 10900; /* hard coded */
955 hwmgr->thermal_controller.advanceFanControlParameters.usTMax
> 956 = le16_to_cpu(tonga_fan_table->usTMax);
957 hwmgr->thermal_controller.advanceFanControlParameters.ucFanControlMode
958 = tonga_fan_table->ucFanControlMode;
959 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultMaxFanPWM
960 = le16_to_cpu(tonga_fan_table->usFanPWMMax);
961 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity
962 = 4836;
963 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity
964 = le16_to_cpu(tonga_fan_table->usFanOutputSensitivity);
965 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultMaxFanRPM
966 = le16_to_cpu(tonga_fan_table->usFanRPMMax);
967 hwmgr->thermal_controller.advanceFanControlParameters.ulMinFanSCLKAcousticLimit
968 = (le32_to_cpu(tonga_fan_table->ulMinFanSCLKAcousticLimit) / 100); /* PPTable stores it in 10Khz unit for 2 decimal places. SMC wants MHz. */
969 hwmgr->thermal_controller.advanceFanControlParameters.ucTargetTemperature
970 = tonga_fan_table->ucTargetTemperature;
971 hwmgr->thermal_controller.advanceFanControlParameters.ucMinimumPWMLimit
972 = tonga_fan_table->ucMinimumPWMLimit;
973 } else {
974 const ATOM_Fiji_Fan_Table *fiji_fan_table =
975 (ATOM_Fiji_Fan_Table *)fan_table;
976 hwmgr->thermal_controller.advanceFanControlParameters.ucTHyst
977 = fiji_fan_table->ucTHyst;
978 hwmgr->thermal_controller.advanceFanControlParameters.usTMin
979 = le16_to_cpu(fiji_fan_table->usTMin);
980 hwmgr->thermal_controller.advanceFanControlParameters.usTMed
981 = le16_to_cpu(fiji_fan_table->usTMed);
982 hwmgr->thermal_controller.advanceFanControlParameters.usTHigh
983 = le16_to_cpu(fiji_fan_table->usTHigh);
984 hwmgr->thermal_controller.advanceFanControlParameters.usPWMMin
985 = le16_to_cpu(fiji_fan_table->usPWMMin);
986 hwmgr->thermal_controller.advanceFanControlParameters.usPWMMed
> 987 = le16_to_cpu(fiji_fan_table->usPWMMed);
988 hwmgr->thermal_controller.advanceFanControlParameters.usPWMHigh
989 = le16_to_cpu(fiji_fan_table->usPWMHigh);
990 hwmgr->thermal_controller.advanceFanControlParameters.usTMax
991 = le16_to_cpu(fiji_fan_table->usTMax);
992 hwmgr->thermal_controller.advanceFanControlParameters.ucFanControlMode
993 = fiji_fan_table->ucFanControlMode;
994 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultMaxFanPWM
995 = le16_to_cpu(fiji_fan_table->usFanPWMMax);
996 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultFanOutputSensitivity
997 = 4836;
998 hwmgr->thermal_controller.advanceFanControlParameters.usFanOutputSensitivity
999 = le16_to_cpu(fiji_fan_table->usFanOutputSensitivity);
1000 hwmgr->thermal_controller.advanceFanControlParameters.usDefaultMaxFanRPM
1001 = le16_to_cpu(fiji_fan_table->usFanRPMMax);
1002 hwmgr->thermal_controller.advanceFanControlParameters.ulMinFanSCLKAcousticLimit
1003 = (le32_to_cpu(fiji_fan_table->ulMinFanSCLKAcousticLimit) / 100); /* PPTable stores it in 10Khz unit for 2 decimal places. SMC wants MHz. */
1004 hwmgr->thermal_controller.advanceFanControlParameters.ucTargetTemperature
1005 = fiji_fan_table->ucTargetTemperature;
1006 hwmgr->thermal_controller.advanceFanControlParameters.ucMinimumPWMLimit
1007 = fiji_fan_table->ucMinimumPWMLimit;
1008
1009 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainEdge
1010 = le16_to_cpu(fiji_fan_table->usFanGainEdge);
1011 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainHotspot
1012 = le16_to_cpu(fiji_fan_table->usFanGainHotspot);
1013 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainLiquid
1014 = le16_to_cpu(fiji_fan_table->usFanGainLiquid);
1015 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainVrVddc
1016 = le16_to_cpu(fiji_fan_table->usFanGainVrVddc);
1017 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainVrMvdd
1018 = le16_to_cpu(fiji_fan_table->usFanGainVrMvdd);
1019 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainPlx
1020 = le16_to_cpu(fiji_fan_table->usFanGainPlx);
1021 hwmgr->thermal_controller.advanceFanControlParameters.usFanGainHbm
1022 = le16_to_cpu(fiji_fan_table->usFanGainHbm);
1023 }
1024
1025 return 0;
1026 }
1027
---
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