drm/amdgpu: Added a few comments for gart
Subsystems (2)
PATCH 1/1 drm/amdgpu: Added a few comments for gart
Signed-off-by Oak Zeng <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 1 + 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +2 -0
@@ -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.
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h +1 -0
@@ -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;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1540350010-3894-1-git-send-email-Oak.Zeng-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 24.10.18 um 05:00 schrieb Oak Zeng:
Quoted 1 line
Signed-off-by Oak Zeng <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | 1 + 2 files changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +2
-0@@ -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. drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h struct amdgpu_bo; · line 47
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h +1
-0@@ -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;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx