MCLK defaults high on second card
Subsystems (2)
Hi,
I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock FC27 kernel).
Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Doesn't result in low clock rates either.
Tom
_______________________________________________
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): dd618807-ecbf-cb2f-dada-e94aa1adf915-5C7GfCeVMHo@public.gmane.org
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Tom St Denis <[email protected]>
Sent: Thursday, February 1, 2018 1:14:43 PM
To: amd-gfx mailing list
Cc: Zhu, Rex
Subject: MCLK defaults high on second card
Hi,
I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock FC27 kernel).
Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Doesn't result in low clock rates either.
Tom
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB16520C31C35E33A8A790F84DF7FA0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 1 line · Alexander
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Stealing the display from my primary (CZ in this case) does help, and then putting it back the MCLK remains low.
Tom
Quoted 23 lines
Alex
------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Tom St Denis <[email protected]> *Sent:* Thursday, February 1, 2018 1:14:43 PM
*To:* amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* MCLK defaults high on second card
Hi,I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock FC27 kernel).
Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Quoted 7 lines
Doesn't result in low clock rates either.
Tom
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 01e38632-df19-5110-6af2-09f915fba390-5C7GfCeVMHo@public.gmane.org
Does it also work properly with dc disabled? I suspect a bug somewhere in the display info that dc generated when no displays are attached. See smu7_program_display_gap().
Alex
________________________________
From: StDenis, Tom
Sent: Thursday, February 1, 2018 1:43 PM
To: Deucher, Alexander; amd-gfx mailing list
Cc: Zhu, Rex
Subject: Re: MCLK defaults high on second card
Quoted 2 lines · Alexander
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Stealing the display from my primary (CZ in this case) does help, and then putting it back the MCLK remains low.
Tom
Quoted 24 lines
Alex
------------------------------------------------------------------------
*From:* amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Tom St Denis <[email protected]>
*Sent:* Thursday, February 1, 2018 1:14:43 PM
*To:* amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* MCLK defaults high on second card
Hi,I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock FC27 kernel).
Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Quoted 7 lines
Doesn't result in low clock rates either.
Tom
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB16525ABF6BD68B2D902C7514F7FA0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 1 line · Alexander
Does it also work properly with dc disabled? I suspect a bug somewhere in the display info that dc generated when no displays are attached. See
smu7_program_display_gap().
Yup, with dc=0 the clock is correctly set.
I'll take a peak (tomorrow) but I suspect it'll probably be more fruitful to hand it over to the display team.
Thanks,
Tom
Quoted 11 lines
Alex
------------------------------------------------------------------------
*From:* StDenis, Tom
*Sent:* Thursday, February 1, 2018 1:43 PM
*To:* Deucher, Alexander; amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* Re: MCLK defaults high on second card
On 01/02/18 01:36 PM, Deucher, Alexander wrote:
Quoted 38 lines
Quoted 1 line
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Stealing the display from my primary (CZ in this case) does help, and then putting it back the MCLK remains low.
Tom
Quoted 30 lines
Alex
------------------------------------------------------------------------
*From:* amd-gfx <[email protected]> on behalf of Tom St Denis <[email protected]> *Sent:* Thursday, February 1, 2018 1:14:43 PM
*To:* amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* MCLK defaults high on second card
Hi,I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock FC27 kernel).
Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Doesn't result in low clock rates either.
Tom
_______________________________________________
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
A message that is not in the archive (sent off-list or not yet received): 433cc6b6-9f87-9fa0-eb88-499ab0fb1d94-5C7GfCeVMHo@public.gmane.org
Hi Tom,
The attached patch should be able to fix this issue.
Best Regards
Rex
-----Original Message-----
From: StDenis, Tom
Sent: Friday, February 02, 2018 2:58 AM
To: Deucher, Alexander; amd-gfx mailing list
Cc: Zhu, Rex; Lazare, Jordan; Wentland, Harry
Subject: Re: MCLK defaults high on second card
Quoted 3 lines · Alexander
Does it also work properly with dc disabled? I suspect a bug somewhere in the display info that dc generated when no displays are attached. See
smu7_program_display_gap().
Yup, with dc=0 the clock is correctly set.
I'll take a peak (tomorrow) but I suspect it'll probably be more fruitful to hand it over to the display team.
Thanks,
Tom
Quoted 12 lines
Alex
----------------------------------------------------------------------
--
*From:* StDenis, Tom
*Sent:* Thursday, February 1, 2018 1:43 PM
*To:* Deucher, Alexander; amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* Re: MCLK defaults high on second card On 01/02/18 01:36 PM, Deucher, Alexander wrote:
Quoted 42 lines
Quoted 2 lines
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Stealing the display from my primary (CZ in this case) does help, and then putting it back the MCLK remains low.
Tom
Quoted 33 lines
Alex
---------------------------------------------------------------------
---
*From:* amd-gfx <[email protected]> on behalf of Tom St Denis <[email protected]>
*Sent:* Thursday, February 1, 2018 1:14:43 PM
*To:* amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* MCLK defaults high on second card Hi,I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock
FC27 kernel).Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Doesn't result in low clock rates either.
Tom
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
--- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +3 -3
@@ -2919,10 +2919,10 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, PHM_PlatformCaps_DisableMclkSwitchingForFrameLock); - disable_mclk_switching = ((1 < info.display_count) || - disable_mclk_switching_for_frame_lock || + disable_mclk_switching = ((1 < info.display_count) && + (disable_mclk_switching_for_frame_lock ||smu7_vblank_too_short (hwmgr, mode_info.vblank_time_us) || - (mode_info.refresh_rate >120 )); + (mode_info.refresh_rate >120 ))); sclk = smu7_ps->performance_levels[0 ].engine_clock; mclk = smu7_ps->performance_levels[0 ].memory_clock;
Signature · 6 lines
1.9.1 _______________________________________________ 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
A message that is not in the archive (sent off-list or not yet received): CY4PR12MB1687D29C096236C2C5521928FBF90-rpdhrqHFk06Y0SjTqZDccQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Quoted 6 lines · Rex
Hi Tom,
The attached patch should be able to fix this issue.
Best Regards
Rex
Hi Rex,
Yup, works fine with the patch.
Cheers,
Tom
Quoted 15 lines
-----Original Message-----
From: StDenis, Tom
Sent: Friday, February 02, 2018 2:58 AM
To: Deucher, Alexander; amd-gfx mailing list
Cc: Zhu, Rex; Lazare, Jordan; Wentland, Harry
Subject: Re: MCLK defaults high on second cardQuoted 3 lines · Alexander
Does it also work properly with dc disabled? I suspect a bug somewhere in the display info that dc generated when no displays are attached. See
smu7_program_display_gap().
Quoted 62 lines
Yup, with dc=0 the clock is correctly set.
I'll take a peak (tomorrow) but I suspect it'll probably be more fruitful to hand it over to the display team.
Thanks,
TomQuoted 54 lines
Alex
----------------------------------------------------------------------
--
*From:* StDenis, Tom
*Sent:* Thursday, February 1, 2018 1:43 PM
*To:* Deucher, Alexander; amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* Re: MCLK defaults high on second card On 01/02/18 01:36 PM,Quoted 2 lines · Alexander
Are there any displays attached to the secondary card with the mclks stuck high? If not, does attaching a display help?
Stealing the display from my primary (CZ in this case) does help, and then putting it back the MCLK remains low.
Tom
Quoted 33 lines
Alex
---------------------------------------------------------------------
---
*From:* amd-gfx <[email protected]> on behalf of Tom St Denis <[email protected]>
*Sent:* Thursday, February 1, 2018 1:14:43 PM
*To:* amd-gfx mailing list
*Cc:* Zhu, Rex
*Subject:* MCLK defaults high on second card Hi,I have a setup with a CZ + Polaris10 and on the Polaris10 the SCLK idles low and the MCLK stays in the 2nd state (1750MHz) but on my Workstation which has a single 560 in it the card idles at 300MHz (with the stock
FC27 kernel).Is there an issue with non-primary cards idling properly?
Doing
echo 0 > /sys/devices/pci0000:00/0000:00:03.1/0000:21:00.0/pp_dpm_mclk
Doesn't result in low clock rates either.
Tom
_______________________________________________
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