linux/drivers/gpu/drm/amd
Jingwen Chen fda04a0bab drm/amd/amdgpu: fixing read wrong pf2vf data in SRIOV
commit 9a458402fb upstream.

[Why]
This fixes 892deb4826 ("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 892deb4826 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: 892deb4826 ("drm/amdgpu: Separate vf2pf work item init from virt data exchange")
Signed-off-by: Jingwen Chen <Jingwen.Chen2@amd.com>
Reviewed-by: Horace Chen <horace.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-28 11:10:37 +02:00
..
acp
amdgpu drm/amd/amdgpu: fixing read wrong pf2vf data in SRIOV 2022-09-28 11:10:37 +02:00
amdkfd drm/amdkfd: Fix GWS queue count 2022-05-09 09:05:05 +02:00
display drm/amd/display: Fix pixel clock programming 2022-09-05 10:28:57 +02:00
include drm/amdgpu: add support for IP discovery gc_info table v2 2022-01-05 12:40:32 +01:00
pm drm/amd/pm: add missing ->fini_microcode interface for Sienna Cichlid 2022-09-05 10:28:57 +02:00