AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Horatio Zhang <hongkun.zhang@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Hawking.Zhang@amd.com, Shiwu.Zhang@amd.com
Subject: Re: [PATCH v2] drm/amdgpu: skip IMU microcode request for GC 12.1
Date: Mon, 31 Aug 2026 19:15:15 +0530	[thread overview]
Message-ID: <4f288d7f-f04d-4dfd-9686-43ba3bf7a34d@amd.com> (raw)
In-Reply-To: <20260831133144.65852-1-hongkun.zhang@amd.com>



On 31-Aug-26 7:01 PM, Horatio Zhang wrote:
> vBIOS has the support of IMU firmware. Requesting it now fails and
> aborts GPU init:
> 
>    amdgpu 0001:01:00.0: early_init of IP block <gfx_v12_1> failed -19
>    amdgpu 0001:01:00.0: Fatal error during GPU init
> 
> v2: drop the MODULE_FIRMWARE declaration.
> 
> Signed-off-by: Horatio Zhang <hongkun.zhang@amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>

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

Thanks,
Lijo

> ---
>   drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 ++-
>   drivers/gpu/drm/amd/amdgpu/imu_v12_1.c | 2 --
>   2 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
> index 1188e91c66ec..3273be640600 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
> @@ -582,7 +582,8 @@ static int gfx_v12_1_init_microcode(struct amdgpu_device *adev)
>   	adev->gfx.mec2_fw = NULL;
>   
>   	if (adev->gfx.imu.funcs) {
> -		if (adev->gfx.imu.funcs->init_microcode) {
> +		if (adev->gfx.imu.funcs->init_microcode &&
> +		    adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) {
>   			err = adev->gfx.imu.funcs->init_microcode(adev);
>   			if (err)
>   				dev_err(adev->dev, "Failed to load imu firmware!\n");
> diff --git a/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c b/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
> index a124abe44724..33fe0a127c50 100644
> --- a/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
> +++ b/drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
> @@ -32,8 +32,6 @@
>   #include "gc/gc_12_1_0_sh_mask.h"
>   #include "mmhub/mmhub_4_2_0_offset.h"
>   
> -MODULE_FIRMWARE("amdgpu/gc_12_1_0_imu.bin");
> -
>   #define TRANSFER_RAM_MASK	0x001c0000
>   
>   static int imu_v12_1_init_microcode(struct amdgpu_device *adev)


      reply	other threads:[~2026-08-31 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 13:31 [PATCH v2] drm/amdgpu: skip IMU microcode request for GC 12.1 Horatio Zhang
2026-08-31 13:45 ` 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=4f288d7f-f04d-4dfd-9686-43ba3bf7a34d@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=Shiwu.Zhang@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=hongkun.zhang@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