Skip to content

Commit 7e8a3ca

Browse files
Xiaojian Dualexdeucher
authored andcommitted
drm/amdgpu: enable support for psp 13.0.4 block
This patch will enable support for psp 13.0.4 blcok. Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com> Reviewed-by: Tim Huang <Tim.Huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2605e60 commit 7e8a3ca

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ amdgpu-y += \
115115
psp_v11_0.o \
116116
psp_v11_0_8.o \
117117
psp_v12_0.o \
118-
psp_v13_0.o
118+
psp_v13_0.o \
119+
psp_v13_0_4.o
119120

120121
# add DCE block
121122
amdgpu-y += \

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,12 +1630,14 @@ static int amdgpu_discovery_set_psp_ip_blocks(struct amdgpu_device *adev)
16301630
case IP_VERSION(13, 0, 1):
16311631
case IP_VERSION(13, 0, 2):
16321632
case IP_VERSION(13, 0, 3):
1633-
case IP_VERSION(13, 0, 4):
16341633
case IP_VERSION(13, 0, 5):
16351634
case IP_VERSION(13, 0, 7):
16361635
case IP_VERSION(13, 0, 8):
16371636
amdgpu_device_ip_block_add(adev, &psp_v13_0_ip_block);
16381637
break;
1638+
case IP_VERSION(13, 0, 4):
1639+
amdgpu_device_ip_block_add(adev, &psp_v13_0_4_ip_block);
1640+
break;
16391641
default:
16401642
dev_err(adev->dev,
16411643
"Failed to add psp ip block(MP0_HWIP:0x%x)\n",

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "psp_v11_0_8.h"
3838
#include "psp_v12_0.h"
3939
#include "psp_v13_0.h"
40+
#include "psp_v13_0_4.h"
4041

4142
#include "amdgpu_ras.h"
4243
#include "amdgpu_securedisplay.h"
@@ -151,6 +152,10 @@ static int psp_early_init(void *handle)
151152
psp_v13_0_set_psp_funcs(psp);
152153
psp->autoload_supported = true;
153154
break;
155+
case IP_VERSION(13, 0, 4):
156+
psp_v13_0_4_set_psp_funcs(psp);
157+
psp->autoload_supported = true;
158+
break;
154159
default:
155160
return -EINVAL;
156161
}
@@ -3694,3 +3699,11 @@ const struct amdgpu_ip_block_version psp_v13_0_ip_block = {
36943699
.rev = 0,
36953700
.funcs = &psp_ip_funcs,
36963701
};
3702+
3703+
const struct amdgpu_ip_block_version psp_v13_0_4_ip_block = {
3704+
.type = AMD_IP_BLOCK_TYPE_PSP,
3705+
.major = 13,
3706+
.minor = 0,
3707+
.rev = 4,
3708+
.funcs = &psp_ip_funcs,
3709+
};

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ extern const struct amdgpu_ip_block_version psp_v11_0_ip_block;
439439
extern const struct amdgpu_ip_block_version psp_v11_0_8_ip_block;
440440
extern const struct amdgpu_ip_block_version psp_v12_0_ip_block;
441441
extern const struct amdgpu_ip_block_version psp_v13_0_ip_block;
442+
extern const struct amdgpu_ip_block_version psp_v13_0_4_ip_block;
442443

443444
extern int psp_wait_for(struct psp_context *psp, uint32_t reg_index,
444445
uint32_t field_val, uint32_t mask, bool check_changed);

0 commit comments

Comments
 (0)