On Thu, Aug 9, 2018 at 11:41 AM, James Zhu <[email protected]> wrote:
> Signed-off-by: James Zhu <[email protected]>

Please include a patch description.  E.g.,
Track the TMR address returned by the PSP for later use by the driver
when setting up the IPs.

With that fixed:
Reviewed-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
> index 9f1a5bd..5b39d13 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,
>                 msleep(1);
>         }
>
> +       if (ucode) {
> +               ucode->tmr_mc_addr_lo = psp->cmd_buf_mem->resp.fw_addr_lo;
> +               ucode->tmr_mc_addr_hi = psp->cmd_buf_mem->resp.fw_addr_hi;
> +       }
> +
>         return ret;
>  }
>
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to