drm/amdgpu: Added a few comments for gart
authorOak Zeng <Oak.Zeng@amd.com>
Wed, 24 Oct 2018 02:58:04 +0000 (22:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:16 +0000 (14:21 -0500)
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h

index 9a212aa4c1777cff5e7e6f56873a27f42e95bc4b..6d11e1721147e53f13c096cae6e2f5662b580cc8 100644 (file)
@@ -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.
index 9ff62887e4e32cd0378295720e7517d74b035efd..afa2e2877d87cf7065d7000a4a5ed451ca673e43 100644 (file)
@@ -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;