Skip to contentSkip to conversation

IH v8.0 Support

PATCH New Alex Deucher 1 participant 3 messages Sep 21

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

cover IH v8.0 Support

This series enables IH (Interrupt Handler) v8.0 support. Patch 1 adds new register headers. Skip patch 1 to avoid spamming the list.

Hawking Zhang (3):
drm/amdgpu: Add osssys v8_0_1 ip headers v3
drm/amdgpu: Add ih v8_0 support
drm/amdgpu/discovery: Add ih v8_0 ip block

 drivers/gpu/drm/amd/amdgpu/Makefile           |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c |   4 +
 drivers/gpu/drm/amd/amdgpu/ih_v8_0.c          | 781 ++++++++++++++
 drivers/gpu/drm/amd/amdgpu/ih_v8_0.h          |  28 +
 .../asic_reg/oss/osssys_8_0_1_offset.h        | 275 +++++
 .../asic_reg/oss/osssys_8_0_1_sh_mask.h       | 984 ++++++++++++++++++
 6 files changed, 2074 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v8_0.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v8_0.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_8_0_1_offset.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/oss/osssys_8_0_1_sh_mask.h
Signature · 1 line
2.55.0
author maintainer
#1 lore raw

PATCH 2/3 drm/amdgpu: Add ih v8_0 support

From: Hawking Zhang <[email protected]>

Add initial implementation for the new generation of ih

v2: squash in flood control fix

---
 drivers/gpu/drm/amd/amdgpu/Makefile  |   3 +-
 drivers/gpu/drm/amd/amdgpu/ih_v8_0.c | 781 +++++++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/ih_v8_0.h |  28 +
 3 files changed, 811 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v8_0.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/ih_v8_0.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
index 7b08814a24da4..ce557cf36c9d4 100644
@@ -128,7 +128,8 @@ amdgpu-y += \
 	navi10_ih.o \
 	ih_v6_0.o \
 	ih_v6_1.o \
-	ih_v7_0.o
+	ih_v7_0.o \
+	ih_v8_0.o
 
 # add PSP block
 amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/ih_v8_0.c new file +781 -0

781 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/ih_v8_0.h new file +28 -0
new file mode 100644
index 0000000000000..1cefd14b19efa
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2025 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ */
+#ifndef __IH_V8_0_IH_H__
+#define __IH_V8_0_IH_H__
+
+extern const struct amdgpu_ip_block_version ih_v8_0_ip_block;
+
+#endif
Signature · 1 line
2.55.0
author maintainer
#2 lore raw

PATCH 3/3 drm/amdgpu/discovery: Add ih v8_0 ip block

In reply to Alex Deucher

From: Hawking Zhang <[email protected]>

Add ih v8_0 ip block

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +4 -0
index 366588c2642d1..4eb852f2a3824 100644
@@ -80,6 +80,7 @@
 #include "ih_v6_0.h"
 #include "ih_v6_1.h"
 #include "ih_v7_0.h"
+#include "ih_v8_0.h"
 #include "gfx_v10_0.h"
 #include "gfx_v11_0.h"
 #include "gfx_v12_0.h"
@@ -2772,6 +2773,9 @@ static int amdgpu_discovery_set_ih_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(7, 1, 0):
 		amdgpu_device_ip_block_add(adev, &ih_v7_0_ip_block);
 		break;
+	case IP_VERSION(8, 0, 1):
+		amdgpu_device_ip_block_add(adev, &ih_v8_0_ip_block);
+		break;
 	default:
 		dev_err(adev->dev,
 			"Failed to add ih ip block(OSSSYS_HWIP:0x%x)\n",
Signature · 1 line
2.55.0