]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Introduce SRIOV critical regions v2 during VF init
authorEllen Pan <yunru.pan@amd.com>
Tue, 7 Oct 2025 16:00:16 +0000 (11:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:28:05 +0000 (18:28 -0400)
commit07009df6494dc9272b233eeddc10d26f545ff09a
tree6096a961e40b6910a0773a55122e1f5dc11b54d8
parent6d2191d226553c86f8ea98f5e6cba13d9ef13280
drm/amdgpu: Introduce SRIOV critical regions v2 during VF init

    1. Introduced amdgpu_virt_init_critical_region during VF init.
     - VFs use init_data_header_offset and init_data_header_size_kb
            transmitted via PF2VF mailbox to fetch the offset of
            critical regions' offsets/sizes in VRAM and save to
            adev->virt.crit_region_offsets and adev->virt.crit_region_sizes_kb.

Signed-off-by: Ellen Pan <yunru.pan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h