提交 1a1ec102 编写于 作者: W Wei Li 提交者: Xie XiuQi

arm64: nmi: fix using wrong offset to get priority

hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

We used wrong offset to get the priority of sgi, then rewrite the sgi
prio to the wrong value by mistake.

Fixes: dec86aedbc8b("arm64: Add support for on-demand backtrace of other CPUs")
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 4b4c97be
...@@ -1092,7 +1092,7 @@ void ipi_set_nmi_prio(void __iomem *base, u8 prio) ...@@ -1092,7 +1092,7 @@ void ipi_set_nmi_prio(void __iomem *base, u8 prio)
u32 offset = (IPI_CPU_BACKTRACE / 4) * 4; u32 offset = (IPI_CPU_BACKTRACE / 4) * 4;
u32 shift = (IPI_CPU_BACKTRACE % 4) * 8; u32 shift = (IPI_CPU_BACKTRACE % 4) * 8;
u32 prios = readl_relaxed(base + offset); u32 prios = readl_relaxed(base + GICR_IPRIORITYR0 + offset);
/* clean old priority */ /* clean old priority */
prios &= ~(0xff << shift); prios &= ~(0xff << shift);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册