diff options
| author | Huacai Chen <[email protected]> | 2024-01-24 10:16:07 +0000 |
|---|---|---|
| committer | Sui Jingfeng <[email protected]> | 2024-01-28 11:06:46 +0000 |
| commit | cc575083cdcf8127f5e260915f5af443602a7763 (patch) | |
| tree | 68e73ddfec7f4b893aba19ff5cc0748447119d0b /drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c | |
| parent | drm/ttm: Make sure the mapped tt pages are decrypted when needed (diff) | |
| download | kernel-cc575083cdcf8127f5e260915f5af443602a7763.tar.gz kernel-cc575083cdcf8127f5e260915f5af443602a7763.zip | |
drm/loongson: Error out if no VRAM detected
When a Loongson laptop is equipped with a Radeon GPU, it can be true that
there is no dedicated VRAM soldered on the motherboard. This is probably
for cost reason, but drm/loongson driver is probed because the platform
BIOS (either UEFI or PMON) forget to disable the integrated GPU.
So in the lsdc_get_dedicated_vram() function, we error out if no dedicated
VRAM detected. This fix nothing, but serve as a sanity check only.
Tested-by: Xiaotian Wu <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Reviewed-by: Sui Jingfeng <[email protected]>
Signed-off-by: Sui Jingfeng <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c')
0 files changed, 0 insertions, 0 deletions
