From: Mario Limonciello <superm1@kernel.org>
To: Alex Deucher <alexander.deucher@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>,
Roman Li <Roman.Li@amd.com>
Subject: Re: [PATCH] drm/amd/display: properly handle family setting for early GC 11.5.4
Date: Thu, 23 Apr 2026 12:27:19 -0500 [thread overview]
Message-ID: <cef1cb19-d3ad-451e-a455-04d8dfc59015@kernel.org> (raw)
In-Reply-To: <20260423164225.2345139-1-alexander.deucher@amd.com>
On 4/23/26 11:42, Alex Deucher wrote:
> Early variants need an override.
>
> Fixes: 57d00816c6a9 ("drm/amdgpu: set family for GC 11.5.4")
> Cc: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
> Cc: Roman Li <Roman.Li@amd.com>
> Cc: Mario Limonciello <superm1@kernel.org>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Tested-by: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 +---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++++-
> 2 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index 31d85606d31b5..5dbe3d6963b9a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -3091,10 +3091,8 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
> case IP_VERSION(11, 5, 1):
> case IP_VERSION(11, 5, 2):
> case IP_VERSION(11, 5, 3):
> - adev->family = AMDGPU_FAMILY_GC_11_5_0;
> - break;
> case IP_VERSION(11, 5, 4):
> - adev->family = AMDGPU_FAMILY_GC_11_5_4;
> + adev->family = AMDGPU_FAMILY_GC_11_5_0;
> break;
> case IP_VERSION(12, 0, 0):
> case IP_VERSION(12, 0, 1):
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 3fa4dbda4517c..a8e6bf3e116e4 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -1967,7 +1967,11 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
> goto error;
> }
>
> - init_data.asic_id.chip_family = adev->family;
> + /* special handling for early revisions of GC 11.5.4 */
> + if (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 5, 4))
> + init_data.asic_id.chip_family = AMDGPU_FAMILY_GC_11_5_4;
> + else
> + init_data.asic_id.chip_family = adev->family;
>
> init_data.asic_id.pci_revision_id = adev->pdev->revision;
> init_data.asic_id.hw_internal_rev = adev->external_rev_id;
prev parent reply other threads:[~2026-04-23 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-23 16:42 [PATCH] drm/amd/display: properly handle family setting for early GC 11.5.4 Alex Deucher
2026-04-23 17:27 ` Mario Limonciello [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=cef1cb19-d3ad-451e-a455-04d8dfc59015@kernel.org \
--to=superm1@kernel.org \
--cc=Pratik.Vishwakarma@amd.com \
--cc=Roman.Li@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/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