diff options
| author | Alex Deucher <[email protected]> | 2016-02-01 16:13:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-02-10 19:17:11 +0000 |
| commit | 7e471e6fbab8a50bb2f5ea5db419b9499f603206 (patch) | |
| tree | fe4f840598ff1aec88b784ce8b2d9cab57f5b351 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdgpu: add check for atombios GPU virtualization table (diff) | |
| download | kernel-7e471e6fbab8a50bb2f5ea5db419b9499f603206.tar.gz kernel-7e471e6fbab8a50bb2f5ea5db419b9499f603206.zip | |
drm/amdgpu: track whether the asic supports SR-IOV
Required to make desicions about certain code pathes.
Reviewed-by: Monk Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 4132e4ef9f83..00f3a16333cc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1500,6 +1500,10 @@ int amdgpu_device_init(struct amdgpu_device *adev, return r; } + /* See if the asic supports SR-IOV */ + adev->virtualization.supports_sr_iov = + amdgpu_atombios_has_gpu_virtualization_table(adev); + /* Post card if necessary */ if (!amdgpu_card_posted(adev)) { if (!adev->bios) { |
