]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: Set the default value about gds vmid0 size
authorEmily Deng <Emily.Deng@amd.com>
Fri, 12 Oct 2018 10:14:32 +0000 (18:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Oct 2018 17:52:49 +0000 (12:52 -0500)
commit8bda1013ddb1dffdee7f9a1912f9845b9cf529cb
tree7028aa63197e7d209e63b77d8bdc3bcdc0bf8d41
parent0efd2d2f68cd5dbddf4ecd974c33133257d16a8e
drm/amdgpu: Set the default value about gds vmid0 size

For sriov, when first run windows guest, then run linux guest, the gds
vmid0 size will be reset to 0 by windows guest. So if the value has been
reset to 0, then set the value to the default value in linux guest.

v2:
Fixed value instead of reading mmGDS_VMID0_SIZE.

v3:
Set the default value of the switch.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c