diff options
| author | Emily Deng <[email protected]> | 2018-12-29 09:46:05 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-01-14 20:04:24 +0000 |
| commit | d3c117e564bfbfe3c4568aca136be3880ddf4200 (patch) | |
| tree | c8b0eb347f35be8ed955658d4b57a013be53ddea /drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | |
| parent | drm/amd/powerplay: support BOOTUP_DEFAULT power profile mode (diff) | |
| download | kernel-d3c117e564bfbfe3c4568aca136be3880ddf4200.tar.gz kernel-d3c117e564bfbfe3c4568aca136be3880ddf4200.zip | |
drm/amdgpu/sriov:Correct pfvf exchange logic
The pfvf exchange need be in exclusive mode. And add pfvf exchange in gpu
reset.
Signed-off-by: Emily Deng <[email protected]>
Reviewed-By: Xiangliang Yu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c index 8cbb4655896a..b11a1c17a7f2 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c @@ -174,7 +174,7 @@ static int xgpu_ai_send_access_requests(struct amdgpu_device *adev, return r; } /* Retrieve checksum from mailbox2 */ - if (req == IDH_REQ_GPU_INIT_ACCESS) { + if (req == IDH_REQ_GPU_INIT_ACCESS || req == IDH_REQ_GPU_RESET_ACCESS) { adev->virt.fw_reserve.checksum_key = RREG32_NO_KIQ(SOC15_REG_OFFSET(NBIO, 0, mmBIF_BX_PF0_MAILBOX_MSGBUF_RCV_DW2)); |
