diff options
author | James Zhu <jzhums@gmail.com> | 2018-08-09 12:31:39 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-13 18:18:54 -0400 |
commit | 435198f33b56d7b875a8173a0227ddf0de285aa1 (patch) | |
tree | 9fc6f8973db82f6325c95527c960edcd8d016d83 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | abf412b3efb2f943d9b98a489e9aca836be21333 (diff) |
drm/amdgpu: update tmr mc address
Update tmr mc address with firmware loading address
which is returned from PSP firmware
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 9f1a5bd39ae8..5b39d1399630 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |||
@@ -131,6 +131,11 @@ psp_cmd_submit_buf(struct psp_context *psp, | |||
131 | msleep(1); | 131 | msleep(1); |
132 | } | 132 | } |
133 | 133 | ||
134 | if (ucode) { | ||
135 | ucode->tmr_mc_addr_lo = psp->cmd_buf_mem->resp.fw_addr_lo; | ||
136 | ucode->tmr_mc_addr_hi = psp->cmd_buf_mem->resp.fw_addr_hi; | ||
137 | } | ||
138 | |||
134 | return ret; | 139 | return ret; |
135 | } | 140 | } |
136 | 141 | ||