aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c38
1 files changed, 32 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
index b9b9f680fc08..2027eb010a47 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
@@ -68,13 +68,39 @@ void amdgpu_gart_set_defaults(struct amdgpu_device *adev)
68 u64 gart_size; 68 u64 gart_size;
69 69
70 if (amdgpu_gart_size == -1) { 70 if (amdgpu_gart_size == -1) {
71 /* make the GART larger for chips that 71 switch (adev->asic_type) {
72 * dont' support VM for all rings 72#ifdef CONFIG_DRM_AMDGPU_SI
73 */ 73 case CHIP_HAINAN: /* no MM engines */
74 if (adev->asic_type <= CHIP_STONEY) 74#endif
75 gart_size = 1024; 75 case CHIP_TOPAZ: /* no MM engines */
76 else 76 case CHIP_POLARIS11: /* all engines support GPUVM */
77 case CHIP_POLARIS10: /* all engines support GPUVM */
78 case CHIP_POLARIS12: /* all engines support GPUVM */
79 case CHIP_VEGA10: /* all engines support GPUVM */
80 default:
77 gart_size = 256; 81 gart_size = 256;
82 break;
83#ifdef CONFIG_DRM_AMDGPU_SI
84 case CHIP_VERDE: /* UVD, VCE do not support GPUVM */
85 case CHIP_TAHITI: /* UVD, VCE do not support GPUVM */
86 case CHIP_PITCAIRN: /* UVD, VCE do not support GPUVM */
87 case CHIP_OLAND: /* UVD, VCE do not support GPUVM */
88#endif
89#ifdef CONFIG_DRM_AMDGPU_CIK
90 case CHIP_BONAIRE: /* UVD, VCE do not support GPUVM */
91 case CHIP_HAWAII: /* UVD, VCE do not support GPUVM */
92 case CHIP_KAVERI: /* UVD, VCE do not support GPUVM */
93 case CHIP_KABINI: /* UVD, VCE do not support GPUVM */
94 case CHIP_MULLINS: /* UVD, VCE do not support GPUVM */
95#endif
96 case CHIP_TONGA: /* UVD, VCE do not support GPUVM */
97 case CHIP_FIJI: /* UVD, VCE do not support GPUVM */
98 case CHIP_CARRIZO: /* UVD, VCE do not support GPUVM, DCE SG support */
99 case CHIP_STONEY: /* UVD does not support GPUVM, DCE SG support */
100 case CHIP_RAVEN: /* DCE SG support */
101 gart_size = 1024;
102 break;
103 }
78 } else { 104 } else {
79 gart_size = amdgpu_gart_size; 105 gart_size = amdgpu_gart_size;
80 } 106 }