[PATCH 03/20] drm/damdgpu:add new mqd member in ring
Deucher, Alexander
Alexander.Deucher at amd.com
Tue Feb 7 15:29:00 UTC 2017
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Monk Liu
> Sent: Tuesday, February 07, 2017 1:11 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Liu, Monk
> Subject: [PATCH 03/20] drm/damdgpu:add new mqd member in ring
>
> Change-Id: If4dc6bb92d6a364125a568f37ea409e4c438e6a2
> Signed-off-by: Monk Liu <Monk.Liu at amd.com>
Please add a better patch description. With that fixed,
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 ++
> drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> index c813cbe..0e57b04 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
> @@ -161,6 +161,8 @@ struct amdgpu_ring {
> u32 pipe;
> u32 queue;
> struct amdgpu_bo *mqd_obj;
> + uint64_t mqd_gpu_addr;
> + struct vi_mqd *mqd_ptr;
> u32 doorbell_index;
> bool use_doorbell;
> unsigned wptr_offs;
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> index 1e170ab..22bd155 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -4588,6 +4588,8 @@ static void gfx_v8_0_cp_compute_fini(struct
> amdgpu_device *adev)
>
> amdgpu_bo_unref(&ring->mqd_obj);
> ring->mqd_obj = NULL;
> + ring->mqd_ptr = NULL;
> + ring->mqd_gpu_addr = 0;
> }
> }
> }
> --
> 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