diff options
author | Trigger Huang | 2018-11-07 04:30:57 +0100 |
---|---|---|
committer | Alex Deucher | 2018-11-07 23:05:57 +0100 |
commit | 2cf6dd9cc5191ef9aec4f22cd64df8dc67e31c6d (patch) | |
tree | f76b7cd8298e36034a161fedcb90c9d449be9f09 | |
parent | drm/amdgpu: set Vega20 LBPW as disabled at default (diff) | |
download | kernel-qcow2-linux-2cf6dd9cc5191ef9aec4f22cd64df8dc67e31c6d.tar.gz kernel-qcow2-linux-2cf6dd9cc5191ef9aec4f22cd64df8dc67e31c6d.tar.xz kernel-qcow2-linux-2cf6dd9cc5191ef9aec4f22cd64df8dc67e31c6d.zip |
drm/amdgpu: disable page queue on Vega10 SR-IOV VF
Currently, SDMA page queue is not used under SR-IOV VF, and this queue will
cause ring test failure in amdgpu module reload case. So just disable it.
Signed-off-by: Trigger Huang <Trigger.Huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index e39a09eb0fa1..8977e84bebe4 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -1451,7 +1451,10 @@ static int sdma_v4_0_early_init(void *handle) adev->sdma.has_page_queue = false; } else { adev->sdma.num_instances = 2; - if (adev->asic_type != CHIP_VEGA20 && + /* TODO: Page queue breaks driver reload under SRIOV */ + if ((adev->asic_type == CHIP_VEGA10) && amdgpu_sriov_vf((adev))) + adev->sdma.has_page_queue = false; + else if (adev->asic_type != CHIP_VEGA20 && adev->asic_type != CHIP_VEGA12) adev->sdma.has_page_queue = true; } |