Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Added a few comments for gart

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>

authored by

Oak Zeng and committed by
Alex Deucher
5dcb668d afd545f6

+3
+2
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
··· 259 259 * @offset: offset into the GPU's gart aperture 260 260 * @pages: number of pages to bind 261 261 * @dma_addr: DMA addresses of pages 262 + * @flags: page table entry flags 263 + * @dst: CPU address of the gart table 262 264 * 263 265 * Map the dma_addresses into GART entries (all asics). 264 266 * Returns 0 for success, -EINVAL for failure.
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h
··· 41 41 42 42 struct amdgpu_gart { 43 43 struct amdgpu_bo *bo; 44 + /* CPU kmapped address of gart table */ 44 45 void *ptr; 45 46 unsigned num_gpu_pages; 46 47 unsigned num_cpu_pages;