[PATCH 2/2 v2] drm/amdgpu: Add fw minimum version check for usermode queue
Khatri, Sunil
sukhatri at amd.com
Fri Apr 11 05:17:20 UTC 2025
Series LGTM, Reviewed-by: Sunil Khatri <sunil.khatri at amd.com>
On 4/11/2025 10:25 AM, Deucher, Alexander wrote:
>
> [AMD Official Use Only - AMD Internal Distribution Only]
>
>
> Acked-by: Alex Deucher <alexander.deucher at amd.com>
> ------------------------------------------------------------------------
> *From:* Yadav, Arvind <Arvind.Yadav at amd.com>
> *Sent:* Friday, April 11, 2025 12:54 AM
> *To:* Yadav, Arvind <Arvind.Yadav at amd.com>; Koenig, Christian
> <Christian.Koenig at amd.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>; Khatri, Sunil <Sunil.Khatri at amd.com>;
> Sharma, Shashank <Shashank.Sharma at amd.com>
> *Cc:* amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
> *Subject:* Re: [PATCH 2/2 v2] drm/amdgpu: Add fw minimum version check
> for usermode queue
> Alex,
> This is v2 of 2/2 patch. Please review this.
>
> ~arvind
>
> On 4/10/2025 8:27 PM, Arvind Yadav wrote:
> > This patch is load usermode queue based on FW support for gfx12.
> > CP Ucode FW Vesion: [PFP = 2840, ME = 2780, MEC = 3050, MES = 123]
> >
> > v2: Addressed review comments from Alex
> > - Just check the firmware versions directly.
> >
> > Cc: Alex Deucher <alexander.deucher at amd.com>
> > Cc: Christian Koenig <christian.koenig at amd.com>
> > Cc: Shashank Sharma <shashank.sharma at amd.com>
> > Cc: Sunil Khatri <sunil.khatri at amd.com>
> > Signed-off-by: Arvind Yadav <Arvind.Yadav at amd.com>
> > ---
> > drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
> > index 3d87e445270e..3165fdfeca6a 100644
> > --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
> > +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
> > @@ -1418,7 +1418,10 @@ static int gfx_v12_0_sw_init(struct
> amdgpu_ip_block *ip_block)
> > case IP_VERSION(12, 0, 1):
> > #ifdef CONFIG_DRM_AMDGPU_NAVI3X_USERQ
> > /* add firmware version checks here */
> > - if (0) {
> > + if (adev->gfx.me_fw_version >= 2780 &&
> > + adev->gfx.pfp_fw_version >= 2840 &&
> > + adev->gfx.mec_fw_version >= 3050 &&
> > + adev->mes.fw_version[0] >= 123) {
> > adev->userq_funcs[AMDGPU_HW_IP_GFX] = &userq_mes_funcs;
> > adev->userq_funcs[AMDGPU_HW_IP_COMPUTE] = &userq_mes_funcs;
> > }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20250411/d5057857/attachment-0001.htm>
More information about the amd-gfx
mailing list