diff options
| author | Christian König <[email protected]> | 2022-01-14 15:49:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-01-03 21:49:54 +0000 |
| commit | 58ab2c08d708ca8309768545b75741636c53a336 (patch) | |
| tree | e1a2436d4187028d4e5830f2fd0fe4d5255c527c /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: enable VCN DPG for GC IP v11.0.4 (diff) | |
| download | kernel-58ab2c08d708ca8309768545b75741636c53a336.tar.gz kernel-58ab2c08d708ca8309768545b75741636c53a336.zip | |
drm/amdgpu: use VRAM|GTT for a bunch of kernel allocations
Technically all of those can use GTT as well, no need to force things
into VRAM.
Signed-off-by: Christian König <[email protected]>
Signed-off-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 6b74df446694..2eef1095ba4b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -755,6 +755,11 @@ struct amdgpu_mqd { #define AMDGPU_PRODUCT_NAME_LEN 64 struct amdgpu_reset_domain; +/* + * Non-zero (true) if the GPU has VRAM. Zero (false) otherwise. + */ +#define AMDGPU_HAS_VRAM(_adev) ((_adev)->gmc.real_vram_size) + struct amdgpu_device { struct device *dev; struct pci_dev *pdev; |
