AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amdgpu: Disable PCIe dynamic speed switching on Ryzen Pinnacle Ridge
Date: Thu, 9 Jul 2026 14:39:19 +0530	[thread overview]
Message-ID: <3e1473a8-eb3d-42b2-a415-55bb2e8fd5ee@amd.com> (raw)
In-Reply-To: <20260709031520.841611-1-mario.limonciello@amd.com>



On 09-Jul-26 8:45 AM, Mario Limonciello wrote:
> AMD Ryzen Pinnacle Ridge (Zen+, family 0x17 model 0x08) CPUs have
> PCI controllers that don't support PCIe dynamic speed switching,
> causing system freezes during GPU initialization when enabled.
> 
> Disable dynamic speed switching when this CPU is detected.
> 
> Assisted-by: Claude:sonnet
> Fixes: 466a7d115326e ("drm/amd: Use the first non-dGPU PCI device for BW limits")
> Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5436
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 27f7a841cd623..f8324712b712c 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -1289,6 +1289,15 @@ static bool amdgpu_device_pcie_dynamic_switching_supported(struct amdgpu_device
>   
>   	if (c->x86_vendor == X86_VENDOR_INTEL)
>   		return false;
> +
> +	/*
> +	 * AMD Ryzen Pinnacle Ridge (Zen+, family 0x17 model 0x08) CPUs don't
> +	 * support PCIe dynamic speed switching.
> +	 * https://gitlab.freedesktop.org/drm/amd/-/work_items/5436
> +	 */

Assited-by effect is visibly seen :)

As per rev guide, Gen3 switch hang is common in 0x17/00-0F.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>

Thanks,
Lijo

> +	if (c->x86_vendor == X86_VENDOR_AMD && c->x86 == 0x17 &&
> +	    c->x86_model == 0x08)
> +		return false;
>   #endif
>   	return true;
>   }


      reply	other threads:[~2026-07-09  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  3:15 [PATCH] drm/amdgpu: Disable PCIe dynamic speed switching on Ryzen Pinnacle Ridge Mario Limonciello
2026-07-09  9:09 ` Lazar, Lijo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e1473a8-eb3d-42b2-a415-55bb2e8fd5ee@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=mario.limonciello@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox