diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-04-10 17:01:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-11 17:59:57 -0500 |
commit | 9c21cae5aac4246ac4e438cac5a96a24907676c7 (patch) | |
tree | 2a68c58cc0adff8abc234105bb2a548885f9a995 /hw | |
parent | 379ec78e3da982cd1dff1533d50a9b29b025db5b (diff) | |
download | skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.zip skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.gz skiboot-9c21cae5aac4246ac4e438cac5a96a24907676c7.tar.bz2 |
interrupts: Create an "interrupts" property in the OPAL node
Deprecate the old "opal-interrupts", it's still there, but the new
property follows the standard and allow us to specify whether an
interrupt is level or edge sensitive.
Similarly create "interrupt-names" whose content is identical to
"opal-interrupts-names".
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/lpc.c | 2 | ||||
-rw-r--r-- | hw/npu.c | 2 | ||||
-rw-r--r-- | hw/npu2.c | 2 | ||||
-rw-r--r-- | hw/p7ioc-phb.c | 2 | ||||
-rw-r--r-- | hw/p7ioc.c | 2 | ||||
-rw-r--r-- | hw/phb3.c | 2 | ||||
-rw-r--r-- | hw/phb4.c | 2 | ||||
-rw-r--r-- | hw/psi.c | 6 |
8 files changed, 10 insertions, 10 deletions
@@ -757,7 +757,7 @@ unsigned int lpc_get_irq_policy(uint32_t chip_id, uint32_t psi_idx) if (c->lpc->sirq_ralloc[psi_idx] == LPC_ROUTE_LINUX) return IRQ_ATTR_TARGET_LINUX; else - return IRQ_ATTR_TARGET_OPAL; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TYPE_LSI; } static void lpc_create_int_map(struct lpcm *lpc, struct dt_node *psi_node) @@ -617,7 +617,7 @@ static uint64_t npu_lsi_attributes(struct irq_source *is, uint32_t isn) uint32_t idx = isn - p->base_lsi; if (idx >= 4) - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; return IRQ_ATTR_TARGET_LINUX; } @@ -1840,7 +1840,7 @@ static uint64_t npu2_ipi_attributes(struct irq_source *is __unused, uint32_t isn if (idx == 18) /* TCE Interrupt - used to detect a frozen PE */ - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_MSI; else return IRQ_ATTR_TARGET_LINUX; } diff --git a/hw/p7ioc-phb.c b/hw/p7ioc-phb.c index fafd841..e8730f4 100644 --- a/hw/p7ioc-phb.c +++ b/hw/p7ioc-phb.c @@ -2518,7 +2518,7 @@ static uint64_t p7ioc_lsi_attributes(struct irq_source *is __unused, uint32_t irq = (isn & 0x7); if (irq == PHB_LSI_PCIE_ERROR) - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; return IRQ_ATTR_TARGET_LINUX; } @@ -584,7 +584,7 @@ static void p7ioc_rgc_interrupt(struct irq_source *is, uint32_t isn) static uint64_t p7ioc_rgc_irq_attributes(struct irq_source *is __unused, uint32_t isn __unused) { - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; } static const struct irq_source_ops p7ioc_rgc_irq_ops = { @@ -1969,7 +1969,7 @@ static uint64_t phb3_lsi_attributes(struct irq_source *is, uint32_t isn) uint32_t idx = isn - p->base_lsi; if (idx == PHB3_LSI_PCIE_INF || idx == PHB3_LSI_PCIE_ER) - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; #endif return IRQ_ATTR_TARGET_LINUX; } @@ -5003,7 +5003,7 @@ static uint64_t phb4_lsi_attributes(struct irq_source *is __unused, uint32_t idx = isn - p->base_lsi; if (idx == PHB3_LSI_PCIE_INF || idx == PHB3_LSI_PCIE_ER) - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_RARE | IRQ_ATTR_TYPE_LSI; #endif return IRQ_ATTR_TARGET_LINUX; } @@ -377,7 +377,7 @@ static int64_t psi_p7_get_xive(struct irq_source *is, uint32_t isn __unused, static uint64_t psi_p7_irq_attributes(struct irq_source *is __unused, uint32_t isn __unused) { - return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_FREQUENT; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TARGET_FREQUENT | IRQ_ATTR_TYPE_LSI; } static const uint32_t psi_p8_irq_to_xivr[P8_IRQ_PSI_IRQ_COUNT] = { @@ -530,7 +530,7 @@ static uint64_t psi_p8_irq_attributes(struct irq_source *is, uint32_t isn) psi_ext_irq_policy == EXTERNAL_IRQ_POLICY_LINUX) return IRQ_ATTR_TARGET_LINUX; - attr = IRQ_ATTR_TARGET_OPAL; + attr = IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TYPE_LSI; if (idx == P8_IRQ_PSI_EXTERNAL || idx == P8_IRQ_PSI_LPC || idx == P8_IRQ_PSI_FSP) attr |= IRQ_ATTR_TARGET_FREQUENT; @@ -634,7 +634,7 @@ static uint64_t psi_p9_irq_attributes(struct irq_source *is __unused, if (is_lpc_serirq) return lpc_get_irq_policy(psi->chip_id, idx - P9_PSI_IRQ_LPC_SIRQ0); - return IRQ_ATTR_TARGET_OPAL; + return IRQ_ATTR_TARGET_OPAL | IRQ_ATTR_TYPE_LSI; } static char *psi_p9_irq_name(struct irq_source *is, uint32_t isn) |