diff options
author | Christian König <christian.koenig@amd.com> | 2016-03-30 08:42:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-02 15:26:57 -0400 |
commit | a1d29476d666f5972f200c49e76df339ced6b07a (patch) | |
tree | 5ff8bfcc92cc9a4e2bf3f9d04f5dcc01fffad6df /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 4325198180e5aeff21f44ba32c9ec18d9dd3ba72 (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.h | 2 |
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 { | |||
611 | unsigned num_gpu_pages; | 611 | unsigned num_gpu_pages; |
612 | unsigned num_cpu_pages; | 612 | unsigned num_cpu_pages; |
613 | unsigned table_size; | 613 | unsigned table_size; |
614 | #ifdef CONFIG_DRM_AMDGPU_GART_DEBUGFS | ||
614 | struct page **pages; | 615 | struct page **pages; |
616 | #endif | ||
615 | bool ready; | 617 | bool ready; |
616 | const struct amdgpu_gart_funcs *gart_funcs; | 618 | const struct amdgpu_gart_funcs *gart_funcs; |
617 | }; | 619 | }; |