Commit 5dcb668d authored by Oak Zeng's avatar Oak Zeng Committed by Alex Deucher
Browse files

drm/amdgpu: Added a few comments for gart

parent afd545f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -259,6 +259,8 @@ int amdgpu_gart_unbind(struct amdgpu_device *adev, uint64_t offset,
 * @offset: offset into the GPU's gart aperture
 * @offset: offset into the GPU's gart aperture
 * @pages: number of pages to bind
 * @pages: number of pages to bind
 * @dma_addr: DMA addresses of pages
 * @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).
 * Map the dma_addresses into GART entries (all asics).
 * Returns 0 for success, -EINVAL for failure.
 * Returns 0 for success, -EINVAL for failure.
+1 −0
Original line number Original line Diff line number Diff line
@@ -41,6 +41,7 @@ struct amdgpu_bo;


struct amdgpu_gart {
struct amdgpu_gart {
	struct amdgpu_bo		*bo;
	struct amdgpu_bo		*bo;
	/* CPU kmapped address of gart table */
	void				*ptr;
	void				*ptr;
	unsigned			num_gpu_pages;
	unsigned			num_gpu_pages;
	unsigned			num_cpu_pages;
	unsigned			num_cpu_pages;