summaryrefslogtreecommitdiff
path: root/tools/lib/python/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPerry Yuan <perry.yuan@amd.com>2025-12-25 16:43:49 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-01-07 17:24:10 -0500
commit0de604d0357d0d22cbf03af1077d174b641707b6 (patch)
tree2b330df004067851605a1cdd383206048afe666b /tools/lib/python/git@git.tavy.me:linux.git
parent72d7f4573660287f1b66c30319efecd6fcde92ee (diff)
drm/amd/pm: Disable MMIO access during SMU Mode 1 reset
During Mode 1 reset, the ASIC undergoes a reset cycle and becomes temporarily inaccessible via PCIe. Any attempt to access MMIO registers during this window (e.g., from interrupt handlers or other driver threads) can result in uncompleted PCIe transactions, leading to NMI panics or system hangs. To prevent this, set the `no_hw_access` flag to true immediately after triggering the reset. This signals other driver components to skip register accesses while the device is offline. A memory barrier `smp_mb()` is added to ensure the flag update is globally visible to all cores before the driver enters the sleep/wait state. 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> (cherry picked from commit 7edb503fe4b6d67f47d8bb0dfafb8e699bb0f8a4)
Diffstat (limited to 'tools/lib/python/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions