drm/amdgpu: Set the default value about gds vmid0 size
authorEmily Deng <[email protected]>
Fri, 12 Oct 2018 10:14:32 +0000 (18:14 +0800)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Reviewed-by: Junwei Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c