]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: ensure no_hw_access is visible before MMIO
authorPerry Yuan <perry.yuan@amd.com>
Wed, 28 Jan 2026 05:54:31 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Feb 2026 21:23:11 +0000 (16:23 -0500)
commit31b153315b8702d0249aa44d83d9fbf42c5c7a79
treeb10910367ad236b10ba9d67b42652eac19c30e34
parent3cc9398a9ea69b77de01b370463b706c354e52fb
drm/amdgpu: ensure no_hw_access is visible before MMIO

Add a full memory barrier after clearing no_hw_access in
amdgpu_device_mode1_reset() so subsequent PCI state restore
access cannot observe stale state on other CPUs.

Fixes: 7edb503fe4b6 ("drm/amd/pm: Disable MMIO access during SMU Mode 1 reset")
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c