drm/amdgpu: correct SMU11 SYSPLL0 clock id values
Subsystems (2)
PATCH 1/2 drm/amdgpu: correct SMU11 SYSPLL0 clock id values
--- drivers/gpu/drm/amd/include/atomfirmware.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/include/atomfirmware.h +7 -8
@@ -2112,17 +2112,16 @@ enum atom_smu11_syspll_id { SMU11_SYSPLL3_1_ID = 6, }; - -enum atom_smu11_syspll0_clock_id { -SMU11_SYSPLL0_SOCCLK_ID =0 ,// SOCCLK -SMU11_SYSPLL0_MP0CLK_ID =1 ,// MP0CLK -SMU11_SYSPLL0_DCLK_ID =2 ,// DCLK -SMU11_SYSPLL0_VCLK_ID =3 ,// VCLK -SMU11_SYSPLL0_ECLK_ID =4 ,// ECLK +enum atom_smu11_syspll0_clock_id +{ +SMU11_SYSPLL0_ECLK_ID =0 ,// ECLK +SMU11_SYSPLL0_SOCCLK_ID =1 ,// SOCCLK +SMU11_SYSPLL0_MP0CLK_ID =2 ,// MP0CLK +SMU11_SYSPLL0_DCLK_ID =3 ,// DCLK +SMU11_SYSPLL0_VCLK_ID =4 ,// VCLK SMU11_SYSPLL0_DCEFCLK_ID =5 ,// DCEFCLK }; -enum atom_smu11_syspll1_0_clock_id {SMU11_SYSPLL1_0_UCLKA_ID =0 ,// UCLK_a };
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1527469864-27333-1-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amd/powerplay: bug fixs for getsmuclockinfo
The .syspll_id and .dfsdid are not initialzed correctly. And le32_to_cpu transfer is needed on the output.
Change-Id: I491e70b276554f38e1a296970892347474814e75
--- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +3 -1
@@ -496,7 +496,9 @@ int pp_atomfwctrl__get_clk_information_by_clkid(struct pp_hwmgr *hwmgr, BIOS_CLKuint32_t ix; parameters.clk_id = id; + parameters.syspll_id =0 ; parameters.command =GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ ; + parameters.dfsdid =0 ; ix =GetIndexIntoMasterCmdTable (getsmuclockinfo);
@@ -505,7 +507,7 @@ int pp_atomfwctrl__get_clk_information_by_clkid(struct pp_hwmgr *hwmgr, BIOS_CLKreturn -EINVAL ; output = (struct atom_get_smu_clock_info_output_parameters_v3_1 *)¶meters; - *frequency = output->atom_smu_outputclkfreq.smu_clock_freq_hz /10000 ; + *frequency =le32_to_cpu (output->atom_smu_outputclkfreq.smu_clock_freq_hz) /10000 ;return 0 ; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1527469864-27333-2-git-send-email-evan.quan-5C7GfCeVMHo@public.gmane.org
Huang Rui
Reviewed-byRe: [PATCH 2/2] drm/amd/powerplay: bug fixs for getsmuclockinfo
Quoted 5 lines · Evan Quan
The .syspll_id and .dfsdid are not initialzed correctly. And
le32_to_cputransfer is needed on the output.Signed-off-by Evan Quan <[email protected]>
Quoted 35 lines
Change-Id: I491e70b276554f38e1a296970892347474814e75
--- drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c +3
-1@@ -496,7 +496,9 @@ int pp_atomfwctrl__get_clk_information_by_clkid(struct pp_hwmgr *hwmgr, BIOS_CLKuint32_t ix; parameters.clk_id = id; + parameters.syspll_id =0 ; parameters.command =GET_SMU_CLOCK_INFO_V3_1_GET_CLOCK_FREQ ; + parameters.dfsdid =0 ; ix =GetIndexIntoMasterCmdTable (getsmuclockinfo);@@ -505,7 +507,7 @@ int pp_atomfwctrl__get_clk_information_by_clkid(struct pp_hwmgr *hwmgr, BIOS_CLKreturn -EINVAL ; output = (struct atom_get_smu_clock_info_output_parameters_v3_1 *)¶meters; - *frequency = output->atom_smu_outputclkfreq.smu_clock_freq_hz /10000 ; + *frequency =le32_to_cpu (output->atom_smu_outputclkfreq.smu_clock_freq_hz) /10000 ;return 0 ; }Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Reviewed-byLooks good except a few comments.
Quoted 1 line · Evan Quan
Change-Id: I8dfafcce9e4ed6dabb7025a5a822d1135de6cb8a
Evan, Rex, we'd better add a description for the commit, because community don't like the empty commit log for the patches. Actually, we got pinged by Linus...
Quoted 12 lines
Signed-off-by Evan Quan <[email protected]>--- drivers/gpu/drm/amd/include/atomfirmware.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)drivers/gpu/drm/amd/include/atomfirmware.h +0
-0@@ -2112,17 +2112,16 @@ enum atom_smu11_syspll_id { SMU11_SYSPLL3_1_ID = 6, };
drivers/gpu/drm/amd/include/atomfirmware.h enum atom_smu11_syspll_id { · line 2116
Quoted 10 lines
drivers/gpu/drm/amd/include/atomfirmware.h +2
-7- -enum atom_smu11_syspll0_clock_id { -SMU11_SYSPLL0_SOCCLK_ID =0 ,// SOCCLK -SMU11_SYSPLL0_MP0CLK_ID =1 ,// MP0CLK -SMU11_SYSPLL0_DCLK_ID =2 ,// DCLK -SMU11_SYSPLL0_VCLK_ID =3 ,// VCLK -SMU11_SYSPLL0_ECLK_ID =4 ,// ECLK +enum atom_smu11_syspll0_clock_id +{
Open brace '{' following enum go on the same line.
With that fixed, please add
Quoted 19 lines
drivers/gpu/drm/amd/include/atomfirmware.h +5
-1+SMU11_SYSPLL0_ECLK_ID =0 ,// ECLK +SMU11_SYSPLL0_SOCCLK_ID =1 ,// SOCCLK +SMU11_SYSPLL0_MP0CLK_ID =2 ,// MP0CLK +SMU11_SYSPLL0_DCLK_ID =3 ,// DCLK +SMU11_SYSPLL0_VCLK_ID =4 ,// VCLK SMU11_SYSPLL0_DCEFCLK_ID = 5, // DCEFCLK }; -enum atom_smu11_syspll1_0_clock_id {SMU11_SYSPLL1_0_UCLKA_ID =0 ,// UCLK_a };Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx