[PATCH 2/4] drm/amdgpu: update tmr mac address

Alex Deucher alexdeucher at gmail.com
Thu Aug 9 15:54:15 UTC 2018


On Thu, Aug 9, 2018 at 11:41 AM, James Zhu <jzhums at gmail.com> wrote:
> Signed-off-by: James Zhu <James.Zhu at amd.com>

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 <alexander.deucher at amd.com>

> ---
>  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
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list