[PATCH] drm/amdgpu: Added a few comments for gart

Christian König ckoenig.leichtzumerken at gmail.com
Wed Oct 24 07:50:52 UTC 2018


Am 24.10.18 um 05:00 schrieb Oak Zeng:
> Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 ++
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 1 +
>   2 files changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> index 9a212aa..6d11e17 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
> @@ -259,6 +259,8 @@ int amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,
>    * @offset: offset into the GPU's gart aperture
>    * @pages: number of pages to bind
>    * @dma_addr: DMA addresses of pages
> + * @flags: page table entry flags
> + * @dst: CPU address of the gart table
>    *
>    * Map the dma_addresses into GART entries (all asics).
>    * Returns 0 for success, -EINVAL for failure.
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h
> index 9ff6288..afa2e28 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h
> @@ -41,6 +41,7 @@ struct amdgpu_bo;
>   
>   struct amdgpu_gart {
>   	struct amdgpu_bo		*bo;
> +	/* CPU kmapped address of gart table */
>   	void				*ptr;
>   	unsigned			num_gpu_pages;
>   	unsigned			num_cpu_pages;



More information about the amd-gfx mailing list