diff options
| author | Jingwen Chen <[email protected]> | 2022-01-13 11:06:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-01-18 23:00:58 +0000 |
| commit | 9a458402fb69bda886aa6cbe067311b6e3d9c52a (patch) | |
| tree | ee412099b9675dc3abee0613d488cb5ee08859b5 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu: apply vcn harvest quirk (diff) | |
| download | kernel-9a458402fb69bda886aa6cbe067311b6e3d9c52a.tar.gz kernel-9a458402fb69bda886aa6cbe067311b6e3d9c52a.zip | |
drm/amd/amdgpu: fixing read wrong pf2vf data in SRIOV
[Why]
This fixes 892deb48269c ("drm/amdgpu: Separate vf2pf work item init from virt data exchange").
we should read pf2vf data based at mman.fw_vram_usage_va after gmc
sw_init. commit 892deb48269c breaks this logic.
[How]
calling amdgpu_virt_exchange_data in amdgpu_virt_init_data_exchange to
set the right base in the right sequence.
v2:
call amdgpu_virt_init_data_exchange after gmc sw_init to make data
exchange workqueue run
v3:
clean up the code logic
v4:
add some comment and make the code more readable
Fixes: 892deb48269c ("drm/amdgpu: Separate vf2pf work item init from virt data exchange")
Signed-off-by: Jingwen Chen <[email protected]>
Reviewed-by: Horace Chen <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
