Skip to contentSkip to conversation

Fix ISP hw init issue

PATCH In review Pratap Nirujogi 2 participants 4 messages Dec 5, 2024 – Dec 6, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Fix ISP hw init issue

Update AMDGPU_IP_BLK_MASK_ALL to use AMD_IP_BLOCK_TYPE_NUM instead of AMDGPU_MAX_IP_NUM to fix the issue.

Pratap Nirujogi (1):
drm/amdgpu: Fix ISP HW init issue

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 drm/amdgpu: Fix ISP HW init issue

ISP hw_init is not called with the recent changes releated to hw init levels. AMDGPU_INIT_LEVEL_DEFAULT is ignoring the ISP IP block as AMDGPU_IP_BLK_MASK_ALL is derived using incorrect max number of IP blocks.

Update AMDGPU_IP_BLK_MASK_ALL to use AMD_IP_BLOCK_TYPE_NUM instead of AMDGPU_MAX_IP_NUM to fix the issue.

Fixes 14c11b71985c ("drm/amdgpu: Add init levels")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index 735a01c58cd7..b5208a16d7d4 100644
@@ -144,7 +144,7 @@ const char *amdgpu_asic_name[] = {
 	"LAST",
 };
 
-#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMDGPU_MAX_IP_NUM - 1, 0)
+#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMD_IP_BLOCK_TYPE_NUM  - 1, 0)
 /*
  * Default init level where all blocks are expected to be initialized. This is
  * the level of initialization expected by default and also after a full reset
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH 1/1] drm/amdgpu: Fix ISP HW init issue

Quoted 10 lines · Pratap Nirujogi

ISP hw_init is not called with the recent changes releated to hw init levels. AMDGPU_INIT_LEVEL_DEFAULT is ignoring the ISP IP block as AMDGPU_IP_BLK_MASK_ALL is derived using incorrect max number of IP blocks.

Update AMDGPU_IP_BLK_MASK_ALL to use AMD_IP_BLOCK_TYPE_NUM instead of AMDGPU_MAX_IP_NUM to fix the issue.

Fixes 14c11b71985c ("drm/amdgpu: Add init levels")

Thanks,
Lijo

Quoted 17 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index 735a01c58cd7..b5208a16d7d4 100644
@@ -144,7 +144,7 @@ const char *amdgpu_asic_name[] = {
 	"LAST",
 };
 
-#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMDGPU_MAX_IP_NUM - 1, 0)
+#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMD_IP_BLOCK_TYPE_NUM  - 1, 0)
 /*
  * Default init level where all blocks are expected to be initialized. This is
  * the level of initialization expected by default and also after a full reset
author Reviewed-by Lijo Lazar
#3 lore raw

RE: [PATCH 1/1] drm/amdgpu: Fix ISP HW init issue

[AMD Official Use Only - AMD Internal Distribution Only]

Thanks Lijo.

-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Friday, December 6, 2024 12:11 AM
To: Nirujogi, Pratap <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Limonciello, Mario <[email protected]>; Chan, Benjamin (Koon Pan) <[email protected]>; Li, King <[email protected]>; Du, Bin <[email protected]>
Subject: Re: [PATCH 1/1] drm/amdgpu: Fix ISP HW init issue

Quoted 10 lines · Pratap Nirujogi

ISP hw_init is not called with the recent changes releated to hw init levels. AMDGPU_INIT_LEVEL_DEFAULT is ignoring the ISP IP block as AMDGPU_IP_BLK_MASK_ALL is derived using incorrect max number of IP blocks.

Update AMDGPU_IP_BLK_MASK_ALL to use AMD_IP_BLOCK_TYPE_NUM instead of AMDGPU_MAX_IP_NUM to fix the issue.

Fixes 14c11b71985c ("drm/amdgpu: Add init levels")

Thanks,
Lijo

Quoted 19 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index 735a01c58cd7..b5208a16d7d4 100644
@@ -144,7 +144,7 @@ const char *amdgpu_asic_name[] = {
      "LAST",
 };
 
-#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMDGPU_MAX_IP_NUM - 1, 0)
+#define AMDGPU_IP_BLK_MASK_ALL GENMASK(AMD_IP_BLOCK_TYPE_NUM  - 1, 0)
 /*
  * Default init level where all blocks are expected to be initialized. This is
  * the level of initialization expected by default and also after a

full reset