diff options
author | Huang Rui <ray.huang@amd.com> | 2016-12-15 21:08:48 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:41:20 -0400 |
commit | c1798b540084a3bb026f2d4d2717e982d96527da (patch) | |
tree | 476ba8cf5773ba0ed077f1e7ec5e190ed80e5eb8 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | dfbd64386111c7356de55a8870e49e154ba51903 (diff) |
drm/amdgpu: register the psp v10 function pointers at psp sw_init
Add the psp 10.0 callbacks for PSP.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index dfdf4fda2390..4285f37ddf73 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "amdgpu_ucode.h" | 30 | #include "amdgpu_ucode.h" |
31 | #include "soc15_common.h" | 31 | #include "soc15_common.h" |
32 | #include "psp_v3_1.h" | 32 | #include "psp_v3_1.h" |
33 | #include "psp_v10_0.h" | ||
33 | 34 | ||
34 | static void psp_set_funcs(struct amdgpu_device *adev); | 35 | static void psp_set_funcs(struct amdgpu_device *adev); |
35 | 36 | ||
@@ -61,6 +62,12 @@ static int psp_sw_init(void *handle) | |||
61 | psp->compare_sram_data = psp_v3_1_compare_sram_data; | 62 | psp->compare_sram_data = psp_v3_1_compare_sram_data; |
62 | psp->smu_reload_quirk = psp_v3_1_smu_reload_quirk; | 63 | psp->smu_reload_quirk = psp_v3_1_smu_reload_quirk; |
63 | break; | 64 | break; |
65 | case CHIP_RAVEN: | ||
66 | psp->prep_cmd_buf = psp_v10_0_prep_cmd_buf; | ||
67 | psp->ring_init = psp_v10_0_ring_init; | ||
68 | psp->cmd_submit = psp_v10_0_cmd_submit; | ||
69 | psp->compare_sram_data = psp_v10_0_compare_sram_data; | ||
70 | break; | ||
64 | default: | 71 | default: |
65 | return -EINVAL; | 72 | return -EINVAL; |
66 | } | 73 | } |