提交 c9037d44 编写于 作者: A Alex Deucher

drm/amdgpu/pp: add missing byte swapping in process_pptables_v1_0.c

Values need to be swapped on big endian.
Reviewed-by: NRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 70eb46db
...@@ -183,10 +183,10 @@ static int get_vddc_lookup_table( ...@@ -183,10 +183,10 @@ static int get_vddc_lookup_table(
ATOM_Tonga_Voltage_Lookup_Record, ATOM_Tonga_Voltage_Lookup_Record,
entries, vddc_lookup_pp_tables, i); entries, vddc_lookup_pp_tables, i);
record->us_calculated = 0; record->us_calculated = 0;
record->us_vdd = atom_record->usVdd; record->us_vdd = le16_to_cpu(atom_record->usVdd);
record->us_cac_low = atom_record->usCACLow; record->us_cac_low = le16_to_cpu(atom_record->usCACLow);
record->us_cac_mid = atom_record->usCACMid; record->us_cac_mid = le16_to_cpu(atom_record->usCACMid);
record->us_cac_high = atom_record->usCACHigh; record->us_cac_high = le16_to_cpu(atom_record->usCACHigh);
} }
*lookup_table = table; *lookup_table = table;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册