[PW_SID:1091529] [v2] irqchip/riscv-imsic: sync-up state before CPU offline#1885
[PW_SID:1091529] [v2] irqchip/riscv-imsic: sync-up state before CPU offline#1885linux-riscv-bot wants to merge 2 commits into
Conversation
The "move_prev" pointer in struct imsic_vector on the new CPU is cleared only after the old CPU has cleared "move_next". But when migrating all the interrupts out from an offling CPU, since the CPU is already marked as "offlined", the IMSIC driver skip to sync-up the interrupt vector in __imsic_remote_sync(). The "move_prev" pointer of these interrupts can only be cleared after the old CPU backs to online. Therefore, the affinity of interrupts originally targeting an offlined CPU cannot be updated. Clear the "move_prev" pointers in the CPU hotplug offline path to avoid stale migration state on offlined CPUs. Fixes: 0f67911 ("irqchip/riscv-imsic: Separate next and previous pointers in IMSIC vector") Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
|
Patch 1: "[v2] irqchip/riscv-imsic: sync-up state before CPU offline" |
2d4fcdd to
cd9d421
Compare
PR for series 1091529 applied to workflow__riscv__fixes
Name: [v2] irqchip/riscv-imsic: sync-up state before CPU offline
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1091529
Version: 2