aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2021-04-26 18:04:42 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2021-05-01 21:18:02 +0000
commitbe48fe60009ed0b45f5675a26e68df2f50ca382a (patch)
treed9274c948e16965c17cb97da1406c6bd6806c5f1
parentf1957db43d28dbae1f82905304bab5be51942342 (diff)
downloadsrc-be48fe60009ed0b45f5675a26e68df2f50ca382a.tar.gz
src-be48fe60009ed0b45f5675a26e68df2f50ca382a.zip
powerpc/xive: Remove POWER9 DD1 IRQ bits
The OPAL_XIVE_*_VIA_IFW flags are used only for POWER9 DD1, which we don't support. Noticed while perusing Linux and skiboot git logs.
-rw-r--r--sys/powerpc/powernv/xive.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/powerpc/powernv/xive.c b/sys/powerpc/powernv/xive.c
index 15b8920fe267..77467dc9fcd7 100644
--- a/sys/powerpc/powernv/xive.c
+++ b/sys/powerpc/powernv/xive.c
@@ -170,8 +170,6 @@ struct xive_irq {
uint32_t lirq;
uint64_t vp;
uint64_t flags;
-#define OPAL_XIVE_IRQ_EOI_VIA_FW 0x00000020
-#define OPAL_XIVE_IRQ_MASK_VIA_FW 0x00000010
#define OPAL_XIVE_IRQ_SHIFT_BUG 0x00000008
#define OPAL_XIVE_IRQ_LSI 0x00000004
#define OPAL_XIVE_IRQ_STORE_EOI 0x00000002
@@ -598,9 +596,7 @@ xive_eoi(device_t dev, u_int irq, void *priv)
} else
rirq = priv;
- if (rirq->flags & OPAL_XIVE_IRQ_EOI_VIA_FW)
- opal_call(OPAL_INT_EOI, irq);
- else if (rirq->flags & OPAL_XIVE_IRQ_STORE_EOI)
+ if (rirq->flags & OPAL_XIVE_IRQ_STORE_EOI)
xive_write_mmap8(rirq->eoi_page + XIVE_IRQ_STORE_EOI, 0);
else if (rirq->flags & OPAL_XIVE_IRQ_LSI)
xive_read_mmap8(rirq->eoi_page + XIVE_IRQ_LOAD_EOI);