All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Yuan Feng <yfeng1@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amdgpu: Use MEC FW with SJT on gfx_v9_4_3
Date: Thu, 21 Nov 2024 19:03:40 +0530	[thread overview]
Message-ID: <ac1777be-60fa-4911-a147-124159167793@amd.com> (raw)
In-Reply-To: <20241119153723.2635-1-yfeng1@amd.com>



On 11/19/2024 9:07 PM, Yuan Feng wrote:
> On SRIOV, guest driver and host driver might deploy different versions
> of MEC firmware binaries that lead to potential compability issues cause
> system hang. To solve this, host and guest deploy MEC fw with two level jump
> table.
> 
> Signed-off-by: Yuan Feng <yfeng1@amd.com>

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

Thanks,
Lijo

> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> index 03654bfda58a..6011332cce92 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
> @@ -45,6 +45,7 @@ MODULE_FIRMWARE("amdgpu/gc_9_4_3_mec.bin");
>  MODULE_FIRMWARE("amdgpu/gc_9_4_4_mec.bin");
>  MODULE_FIRMWARE("amdgpu/gc_9_4_3_rlc.bin");
>  MODULE_FIRMWARE("amdgpu/gc_9_4_4_rlc.bin");
> +MODULE_FIRMWARE("amdgpu/gc_9_4_3_sjt_mec.bin");
>  
>  #define GFX9_MEC_HPD_SIZE 4096
>  #define RLCG_UCODE_LOADING_START_ADDRESS 0x00002000L
> @@ -574,7 +575,11 @@ static int gfx_v9_4_3_init_cp_compute_microcode(struct amdgpu_device *adev,
>  {
>  	int err;
>  
> -	err = amdgpu_ucode_request(adev, &adev->gfx.mec_fw,
> +	if (amdgpu_sriov_vf(adev))
> +		err = amdgpu_ucode_request(adev, &adev->gfx.mec_fw,
> +				   "amdgpu/%s_sjt_mec.bin", chip_name);
> +	else
> +		err = amdgpu_ucode_request(adev, &adev->gfx.mec_fw,
>  				   "amdgpu/%s_mec.bin", chip_name);
>  	if (err)
>  		goto out;


  reply	other threads:[~2024-11-21 13:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-19 15:37 [PATCH] drm/amdgpu: Use MEC FW with SJT on gfx_v9_4_3 Yuan Feng
2024-11-21 13:33 ` Lazar, Lijo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-05 22:45 Yuan Feng
2024-12-06  5:17 ` Lazar, Lijo
2024-12-06  6:15   ` Feng, Yuan
2024-12-06  6:48   ` Feng, Yuan

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=ac1777be-60fa-4911-a147-124159167793@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=yfeng1@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.