Skip to contentSkip to conversation

drm/amdgpu: skip IMU microcode request for GC 12.1

PATCH Superseded Horatio Zhang 2 participants 3 messages Aug 31

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: skip IMU microcode request for GC 12.1

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

---
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +2 -1
index 82ac39239d78..db06360873eb 100644
@@ -581,7 +581,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");
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

AMD General

Feel free to remove MODULE_FIRMWARE("amdgpu/gc_12_1_0_imu.bin");

With that fixed, the patch is

Regards,
Hawking

-----Original Message-----
From: Horatio Zhang <[email protected]>
Sent: Monday, August 31, 2026 5:09 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhang, Morris <[email protected]>; Zhang, Horatio <[email protected]>
Subject: [PATCH] drm/amdgpu: skip IMU microcode request for GC 12.1

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

---
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +2 -1
index 82ac39239d78..db06360873eb 100644
@@ -581,7 +581,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");

--
2.43.0

author Reviewed-by Hawking Zhang
#2 lore raw

AMD General

Okay, will do, thanks.

Best regards,
Horatio

-----Original Message-----
From: Zhang, Hawking <[email protected]>
Sent: Monday, August 31, 2026 8:02 PM
To: Zhang, Horatio <[email protected]>; [email protected]
Cc: Zhang, Morris <[email protected]>; Zhang, Horatio <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: skip IMU microcode request for GC 12.1

AMD General

Feel free to remove MODULE_FIRMWARE("amdgpu/gc_12_1_0_imu.bin");

With that fixed, the patch is

Regards,
Hawking

-----Original Message-----
From: Horatio Zhang <[email protected]>
Sent: Monday, August 31, 2026 5:09 PM
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Zhang, Morris <[email protected]>; Zhang, Horatio <[email protected]>
Subject: [PATCH] drm/amdgpu: skip IMU microcode request for GC 12.1

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

---
 drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +2 -1
index 82ac39239d78..db06360873eb 100644
@@ -581,7 +581,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");

--
2.43.0