aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2025-07-08 09:27:41 +0000
committerJanosch Frank <[email protected]>2025-07-21 13:01:03 +0000
commitee4a2e08c10188f02fe3fb36b6beddc3c2fdb287 (patch)
treebf92b9dba8f5777a329c16a4eddcf34a0d72ce1e /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c
parentLinux 6.16-rc2 (diff)
downloadkernel-ee4a2e08c10188f02fe3fb36b6beddc3c2fdb287.tar.gz
kernel-ee4a2e08c10188f02fe3fb36b6beddc3c2fdb287.zip
entry: Add arch_in_rcu_eqs()
All architectures have an interruptible RCU extended quiescent state (EQS) as part of their idle sequences, where interrupts can occur without RCU watching. Entry code must account for this and wake RCU as necessary; the common entry code deals with this in irqentry_enter() by treating any interrupt from an idle thread as potentially having occurred within an EQS and waking RCU for the duration of the interrupt via rcu_irq_enter() .. rcu_irq_exit(). Some architectures may have other interruptible EQSs which require similar treatment. For example, on s390 it is necessary to enable interrupts around guest entry in the middle of a period where core KVM code has entered an EQS. So that architectures can wake RCU in these cases, this patch adds a new arch_in_rcu_eqs() hook to the common entry code which is checked in addition to the existing is_idle_thread() check, with RCU woken if either returns true. A default implementation is provided which always returns false, which suffices for most architectures. As no architectures currently implement arch_in_rcu_eqs(), there should be no functional change as a result of this patch alone. A subsequent patch will add an s390 implementation to fix a latent bug with missing RCU wakeups. [[email protected]: rebase, fix commit message] Signed-off-by: Mark Rutland <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Claudio Imbrenda <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Janosch Frank <[email protected]> Reviewed-by: Christian Borntraeger <[email protected]> Signed-off-by: Andrew Donnellan <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Janosch Frank <[email protected]> Message-ID: <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c')
0 files changed, 0 insertions, 0 deletions