OSDN Git Service

drm/amdgpu: save/restore part of xcp drm_device fields
authorJames Zhu <James.Zhu@amd.com>
Tue, 25 Apr 2023 20:55:56 +0000 (16:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 15:07:12 +0000 (11:07 -0400)
commit23105541727cd6b702c9ee66d98ba50a129fbd5e
treeaf36196b98271447f9fd33138fe3ec75bc6c640d
parent20997c04b7168b1833da77f882eb5a6f246c4b96
drm/amdgpu: save/restore part of xcp drm_device fields

Redirect xcp allocated drm_device::rdev/pdev/driver with
amdgpu pci_device/drm_device setting. They need be saved
before redirect and restored after unregister xcp drm_device.

-v2: fix warning discarded-qualifiers

Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h