]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix pci state save during mode-1 reset
authorLijo Lazar <lijo.lazar@amd.com>
Tue, 18 Jun 2024 08:34:38 +0000 (14:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2024 18:13:12 +0000 (14:13 -0400)
commit74fa02c4a5ea1ade5156a6ce494d3ea83881c2d8
tree7299eb6617d2714def954dcc5ef80db999285fb9
parentf6f49dda49db72e7a0b4ca32c77391d5ff5ce232
drm/amdgpu: Fix pci state save during mode-1 reset

Cache the PCI state before bus master is disabled. The saved state is
later used for other cases like restoring config space after mode-2
reset.

Fixes: 5c03e5843e6b ("drm/amdgpu:add smu mode1/2 support for aldebaran")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c