diff options
| author | Xiangliang Yu <[email protected]> | 2017-03-08 07:00:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-03-30 03:54:57 +0000 |
| commit | 1b922423ced7fbe7f1a8366eb399b7daf4ebaea7 (patch) | |
| tree | 02e0910d9d852a758503cf6169a6bb204c05ad10 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
| parent | drm/amdgpu/gfx9: programing wptr_poll_addr register (diff) | |
| download | kernel-1b922423ced7fbe7f1a8366eb399b7daf4ebaea7.tar.gz kernel-1b922423ced7fbe7f1a8366eb399b7daf4ebaea7.zip | |
drm/amdgpu: impl sriov detection for vega10
Read vega10 hw register to detect if sriov is enabled, and call
it before IP blocks setting.
Signed-off-by: Xiangliang Yu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Acked-by: Christian König <[email protected]>
Reviewed-by: Monk Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 11e09d8458d9..ccbecc8d0b47 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -469,6 +469,8 @@ static const struct amdgpu_ip_block_version vega10_common_ip_block = int soc15_set_ip_blocks(struct amdgpu_device *adev) { + nbio_v6_1_detect_hw_virt(adev); + switch (adev->asic_type) { case CHIP_VEGA10: amdgpu_ip_block_add(adev, &vega10_common_ip_block); |
