Skip to contentSkip to conversation

drm/amd/amdgpu: Add ISP support to amdgpu_discovery

PATCH In review Pratap Nirujogi 1 participant 1 message May 8, 2024

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

PATCH 1/3 drm/amd/amdgpu: Add ISP support to amdgpu_discovery

ISP hw block is supported in some of the AMD GPU versions, add support to discover ISP IP in amdgpu_discovery.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h           | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/include/amd_shared.h      | 1 +
 3 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
index 8bb8b414d511..eb60d28a3a13 100644
@@ -718,6 +718,7 @@ enum amd_hw_ip_block_type {
 	XGMI_HWIP,
 	DCI_HWIP,
 	PCIE_HWIP,
+	ISP_HWIP,
 	MAX_HWIP
 };
 
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
index ece462f8a324..6586feab8c2c 100644
@@ -226,6 +226,7 @@ static int hw_id_map[MAX_HWIP] = {
 	[DCI_HWIP]	= DCI_HWID,
 	[PCIE_HWIP]	= PCIE_HWID,
 	[VPE_HWIP]	= VPE_HWID,
+	[ISP_HWIP]	= ISP_HWID,
 };
 
 static int amdgpu_discovery_read_binary_from_sysmem(struct amdgpu_device *adev, uint8_t *binary)
drivers/gpu/drm/amd/include/amd_shared.h +1 -0
index 36ee9d3d6d9c..8bc2134cdd6b 100644
@@ -105,6 +105,7 @@ enum amd_ip_block_type {
 	AMD_IP_BLOCK_TYPE_JPEG,
 	AMD_IP_BLOCK_TYPE_VPE,
 	AMD_IP_BLOCK_TYPE_UMSCH_MM,
+	AMD_IP_BLOCK_TYPE_ISP,
 	AMD_IP_BLOCK_TYPE_NUM,
 };
 
Signature · 1 line
2.34.1