aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-23 10:08:51 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-03-14 15:38:24 -0400
commite89d0d332b7554f149648d293c2b6c77b79be529 (patch)
treecff9854138b6f538e3365bfbb450cb9d7df2b2ec /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
parent75a57669cbc881032c60615a31bfc6bfab4c813c (diff)
drm/amdgpu: stop allocating a page array for prime shared BOs
We don't need the page array for prime shared BOs, stop allocating it. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Roger He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
index 137145dd14a9..dc8d9f3216fa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
@@ -315,7 +315,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset,
315 t = offset / AMDGPU_GPU_PAGE_SIZE; 315 t = offset / AMDGPU_GPU_PAGE_SIZE;
316 p = t / (PAGE_SIZE / AMDGPU_GPU_PAGE_SIZE); 316 p = t / (PAGE_SIZE / AMDGPU_GPU_PAGE_SIZE);
317 for (i = 0; i < pages; i++, p++) 317 for (i = 0; i < pages; i++, p++)
318 adev->gart.pages[p] = pagelist[i]; 318 adev->gart.pages[p] = pagelist ? pagelist[i] : NULL;
319#endif 319#endif
320 320
321 if (!adev->gart.ptr) 321 if (!adev->gart.ptr)