diff options
| author | Christian König <[email protected]> | 2022-02-01 15:50:49 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-01-03 21:50:22 +0000 |
| commit | 0b04ea391c1d4121f4cf9f644197edaf11b6c4da (patch) | |
| tree | 2ee52bd39929a1bef18b493f2e9e3273386da380 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu: cleanup visible vram size handling (diff) | |
| download | kernel-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_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index cb5c7b7a1c09..7e5714961169 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -113,7 +113,7 @@ #define KMS_DRIVER_MINOR 50 #define KMS_DRIVER_PATCHLEVEL 0 -int amdgpu_vram_limit; +unsigned int amdgpu_vram_limit = UINT_MAX; int amdgpu_vis_vram_limit; int amdgpu_gart_size = -1; /* auto */ int amdgpu_gtt_size = -1; /* auto */ |
