Skip to contentSkip to conversation

PSP 15.0.8 support

PATCH New Alex Deucher 1 participant 5 messages Nov 18, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

cover PSP 15.0.8 support

Add PSP 15.0.8 support. The first patch just adds register headers and is large for the list.

Hawking Zhang (3):
drm/amdgpu: Add mp v15_0_8 ip headers v4
drm/amdgpu: Set skip_tmr to true for psp v15_0_8 drm/amdgpu: Upload a single sdma fw copy when using psp v15.0.8

Le Ma (2):
drm/amdgpu: Add psp v15.0.8 ip block v3 drm/amdgpu: Set psp ip block and funcs for v15.0.8

 drivers/gpu/drm/amd/amdgpu/Makefile           |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c       |  17 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h       |   1 +
 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.c      | 342 +++++++
 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.h      |  30 +
 .../include/asic_reg/mp/mp_15_0_8_offset.h    | 868 ++++++++++++++++++
 .../include/asic_reg/mp/mp_15_0_8_sh_mask.h   | 616 +++++++++++++
 8 files changed, 1878 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mp/mp_15_0_8_offset.h
 create mode 100644 drivers/gpu/drm/amd/include/asic_reg/mp/mp_15_0_8_sh_mask.h
Signature · 1 line
2.51.1
author maintainer
#1 lore raw

PATCH 2/5 drm/amdgpu: Add psp v15.0.8 ip block v3

From: Le Ma <[email protected]>

Add psp_v15_0_8.c for MPASP 15.0.8

v2: drop memory training intf as they are only
necessary for GDDR memory

v3: Implement psp_v15_0_8_get_fw_type (Feifei)

---
 drivers/gpu/drm/amd/amdgpu/Makefile      |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c  |   8 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h  |   1 +
 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.c | 342 +++++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.h |  30 ++
 5 files changed, 383 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.h
drivers/gpu/drm/amd/amdgpu/Makefile +2 -1
index b10e9988a831f..ad57ade4001c5 100644
@@ -134,7 +134,8 @@ amdgpu-y += \
 	psp_v12_0.o \
 	psp_v13_0.o \
 	psp_v13_0_4.o \
-	psp_v14_0.o
+	psp_v14_0.o \
+	psp_v15_0_8.o
 
 # add DCE block
 amdgpu-y += \
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +8 -0
index 480a3c6ae13b2..6619970da250f 100644
@@ -4538,3 +4538,11 @@ const struct amdgpu_ip_block_version psp_v14_0_ip_block = {
 	.rev = 0,
 	.funcs = &psp_ip_funcs,
 };
+
+const struct amdgpu_ip_block_version psp_v15_0_8_ip_block = {
+	.type = AMD_IP_BLOCK_TYPE_PSP,
+	.major = 15,
+	.minor = 0,
+	.rev = 8,
+	.funcs = &psp_ip_funcs,
+};
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +1 -0
index 8f8578054191b..973998a2dc95e 100644
@@ -540,6 +540,7 @@ extern const struct amdgpu_ip_block_version psp_v12_0_ip_block;
 extern const struct amdgpu_ip_block_version psp_v13_0_ip_block;
 extern const struct amdgpu_ip_block_version psp_v13_0_4_ip_block;
 extern const struct amdgpu_ip_block_version psp_v14_0_ip_block;
+extern const struct amdgpu_ip_block_version psp_v15_0_8_ip_block;
 
 int psp_wait_for(struct psp_context *psp, uint32_t reg_index,
 		 uint32_t field_val, uint32_t mask, uint32_t flags);
drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.c new file +342 -0

342 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/psp_v15_0_8.h new file +30 -0
new file mode 100644
index 0000000000000..6bb1bb517007b
@@ -0,0 +1,30 @@
+/*
+ * 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 __PSP_V15_0_8_H__
+#define __PSP_V15_0_8_H__
+
+#include "amdgpu_psp.h"
+
+void psp_v15_0_8_set_psp_funcs(struct psp_context *psp);
+
+#endif
Signature · 1 line
2.51.1
author maintainer
#2 lore raw

PATCH 3/5 drm/amdgpu: Set skip_tmr to true for psp v15_0_8

In reply to Alex Deucher

From: Hawking Zhang <[email protected]>

psp v15_0_8 does not require tmr created by gpu driver

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
index 6619970da250f..204005ad6252d 100644
@@ -901,6 +901,7 @@ static bool psp_skip_tmr(struct psp_context *psp)
 	case IP_VERSION(13, 0, 10):
 	case IP_VERSION(13, 0, 12):
 	case IP_VERSION(13, 0, 14):
+	case IP_VERSION(15, 0, 8):
 		return true;
 	default:
 		return false;
Signature · 1 line
2.51.1
author maintainer
#3 lore raw

PATCH 4/5 drm/amdgpu: Upload a single sdma fw copy when using psp v15.0.8

In reply to Alex Deucher

From: Hawking Zhang <[email protected]>

driver only need to upload sdma firmware copy for all sdma instances when using PSP v15.0.8

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -1
index 204005ad6252d..9c1c8b4125fc0 100644
@@ -3085,7 +3085,9 @@ static int psp_load_non_psp_fw(struct psp_context *psp)
 		     amdgpu_ip_version(adev, MP0_HWIP, 0) ==
 			     IP_VERSION(11, 0, 11) ||
 		     amdgpu_ip_version(adev, MP0_HWIP, 0) ==
-			     IP_VERSION(11, 0, 12)) &&
+			     IP_VERSION(11, 0, 12) ||
+		     amdgpu_ip_version(adev, MP0_HWIP, 0) ==
+			     IP_VERSION(15, 0, 8)) &&
 		    (ucode->ucode_id == AMDGPU_UCODE_ID_SDMA1 ||
 		     ucode->ucode_id == AMDGPU_UCODE_ID_SDMA2 ||
 		     ucode->ucode_id == AMDGPU_UCODE_ID_SDMA3))
Signature · 1 line
2.51.1
author maintainer
#4 lore raw

PATCH 5/5 drm/amdgpu: Set psp ip block and funcs for v15.0.8

In reply to Alex Deucher

From: Le Ma <[email protected]>

Set psp ip block and funcs for MP0 15.0.8

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 3 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c       | 4 ++++
 2 files changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +3 -0
index 959136c163ffb..b184e183c1398 100644
@@ -2154,6 +2154,9 @@ static int amdgpu_discovery_set_psp_ip_blocks(struct amdgpu_device *adev)
 	case IP_VERSION(14, 0, 5):
 		amdgpu_device_ip_block_add(adev, &psp_v14_0_ip_block);
 		break;
+	case IP_VERSION(15, 0, 8):
+		amdgpu_device_ip_block_add(adev, &psp_v15_0_8_ip_block);
+		break;
 	default:
 		dev_err(adev->dev,
 			"Failed to add psp ip block(MP0_HWIP:0x%x)\n",
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +4 -0
index 9c1c8b4125fc0..a4ddb14c1bec1 100644
@@ -39,6 +39,7 @@
 #include "psp_v13_0.h"
 #include "psp_v13_0_4.h"
 #include "psp_v14_0.h"
+#include "psp_v15_0_8.h"
 
 #include "amdgpu_ras.h"
 #include "amdgpu_securedisplay.h"
@@ -259,6 +260,9 @@ static int psp_early_init(struct amdgpu_ip_block *ip_block)
 		psp_v14_0_set_psp_funcs(psp);
 		psp->boot_time_tmr = false;
 		break;
+	case IP_VERSION(15, 0, 8):
+		psp_v15_0_8_set_psp_funcs(psp);
+		break;
 	default:
 		return -EINVAL;
 	}
Signature · 1 line
2.51.1