aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2022-02-01 15:50:49 +0000
committerAlex Deucher <[email protected]>2023-01-03 21:50:22 +0000
commit0b04ea391c1d4121f4cf9f644197edaf11b6c4da (patch)
tree2ee52bd39929a1bef18b493f2e9e3273386da380 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: cleanup visible vram size handling (diff)
downloadkernel-0b04ea391c1d4121f4cf9f644197edaf11b6c4da.tar.gz
kernel-0b04ea391c1d4121f4cf9f644197edaf11b6c4da.zip
drm/amdgpu: allow zero as vram limit
This allows testing the driver without any VRAM. Signed-off-by: Christian König <[email protected]> Acked-by: Luben Tuikov <[email protected]> Acked-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 1d2350ae300a..ff55c0560703 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -150,7 +150,7 @@ struct amdgpu_watchdog_timer
* Modules parameters.
*/
extern int amdgpu_modeset;
-extern int amdgpu_vram_limit;
+extern unsigned int amdgpu_vram_limit;
extern int amdgpu_vis_vram_limit;
extern int amdgpu_gart_size;
extern int amdgpu_gtt_size;