aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-03-30 14:42:57 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-05-02 15:26:57 -0400
commita1d29476d666f5972f200c49e76df339ced6b07a (patch)
tree5ff8bfcc92cc9a4e2bf3f9d04f5dcc01fffad6df /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent4325198180e5aeff21f44ba32c9ec18d9dd3ba72 (diff)
drm/amdgpu: optionally enable GART debugfs file
Keeping the pages array around can use a lot of system memory when you want a large GART. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index e6f7bad735cc..b9a6fe9a2a31 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -611,7 +611,9 @@ struct amdgpu_gart {
unsigned num_gpu_pages;
unsigned num_cpu_pages;
unsigned table_size;
+#ifdef CONFIG_DRM_AMDGPU_GART_DEBUGFS
struct page **pages;
+#endif
bool ready;
const struct amdgpu_gart_funcs *gart_funcs;
};