From: Alistair Popple <alistair@popple.id.au> To: linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Cc: linux-kernel@vger.kernel.org, Alistair Popple <alistair@popple.id.au>, Corey Minyard <minyard@acm.org>, openipmi-developer@lists.sourceforge.net Subject: [PATCH v4 0/9] Convert OPAL notifier events to an irqchip Date: Fri, 15 May 2015 14:06:35 +1000 [thread overview] Message-ID: <1431662804-16851-1-git-send-email-alistair@popple.id.au> (raw) Whenever an interrupt is received for opal the linux kernel gets a bitfield indicating certain events that have occurred and need handling by the various device drivers. Currently this is handled using a notifier interface where we call every device driver that has registered to receive opal events. This approach has several drawbacks. For example each driver has to do its own checking to see if the event is relevant as well as event masking. There is also no easy method of recording the number of times we receive particular events. This series solves these issues by exposing opal events via the standard interrupt APIs by adding a new interrupt chip and domain. Drivers can then register for the appropriate events using standard kernel calls such as irq_of_parse_and_map(). Patches 2-8 of this series are the same as for v3. Changes from v3: - Changed initialisation sequence to solve the following errors on some machines: irq: XICS didn't like hwirq-0xb to VIRQ17 mapping (rc=-22) opal: opal_message_init: Can't register OPAL event irq (0) - Added a poller to the OPAL heartbeat to support machines where OPAL can't generate an interrupt for the host (eg. mambo) Changes from v2: - Addressed comments by Neelesh Gupta - Fixed soft-lockup bug reported by Neelesh in the opal-dump driver - Rebased on v4.1-rc1 Alistair Popple (9): powerpc/powernv: Reorder OPAL subsystem initialisation powerpc/powernv: Add a virtual irqchip for opal events ipmi/powernv: Convert to irq event interface hvc: Convert to using interrupts instead of opal events powernv/eeh: Update the EEH code to use the opal irq domain powernv/opal: Convert opal message events to opal irq domain powernv/elog: Convert elog to opal irq domain powernv/opal-dump: Convert to irq domain opal: Remove events notifier arch/powerpc/include/asm/opal.h | 6 + arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/eeh-powernv.c | 58 ++--- arch/powerpc/platforms/powernv/opal-async.c | 3 +- arch/powerpc/platforms/powernv/opal-dump.c | 56 ++--- arch/powerpc/platforms/powernv/opal-elog.c | 32 +-- arch/powerpc/platforms/powernv/opal-hmi.c | 3 +- arch/powerpc/platforms/powernv/opal-irqchip.c | 249 +++++++++++++++++++++ .../powerpc/platforms/powernv/opal-memory-errors.c | 2 +- arch/powerpc/platforms/powernv/opal-sensor.c | 3 +- arch/powerpc/platforms/powernv/opal.c | 196 +++------------- arch/powerpc/platforms/powernv/powernv.h | 3 + arch/powerpc/platforms/powernv/setup.c | 2 +- drivers/char/ipmi/ipmi_powernv.c | 39 ++-- drivers/tty/hvc/hvc_opal.c | 33 +-- 15 files changed, 396 insertions(+), 291 deletions(-) create mode 100644 arch/powerpc/platforms/powernv/opal-irqchip.c -- 1.8.3.2
WARNING: multiple messages have this Message-ID (diff)
From: Alistair Popple <alistair@popple.id.au> To: linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Cc: Alistair Popple <alistair@popple.id.au>, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Corey Minyard <minyard@acm.org> Subject: [PATCH v4 0/9] Convert OPAL notifier events to an irqchip Date: Fri, 15 May 2015 14:06:35 +1000 [thread overview] Message-ID: <1431662804-16851-1-git-send-email-alistair@popple.id.au> (raw) Whenever an interrupt is received for opal the linux kernel gets a bitfield indicating certain events that have occurred and need handling by the various device drivers. Currently this is handled using a notifier interface where we call every device driver that has registered to receive opal events. This approach has several drawbacks. For example each driver has to do its own checking to see if the event is relevant as well as event masking. There is also no easy method of recording the number of times we receive particular events. This series solves these issues by exposing opal events via the standard interrupt APIs by adding a new interrupt chip and domain. Drivers can then register for the appropriate events using standard kernel calls such as irq_of_parse_and_map(). Patches 2-8 of this series are the same as for v3. Changes from v3: - Changed initialisation sequence to solve the following errors on some machines: irq: XICS didn't like hwirq-0xb to VIRQ17 mapping (rc=-22) opal: opal_message_init: Can't register OPAL event irq (0) - Added a poller to the OPAL heartbeat to support machines where OPAL can't generate an interrupt for the host (eg. mambo) Changes from v2: - Addressed comments by Neelesh Gupta - Fixed soft-lockup bug reported by Neelesh in the opal-dump driver - Rebased on v4.1-rc1 Alistair Popple (9): powerpc/powernv: Reorder OPAL subsystem initialisation powerpc/powernv: Add a virtual irqchip for opal events ipmi/powernv: Convert to irq event interface hvc: Convert to using interrupts instead of opal events powernv/eeh: Update the EEH code to use the opal irq domain powernv/opal: Convert opal message events to opal irq domain powernv/elog: Convert elog to opal irq domain powernv/opal-dump: Convert to irq domain opal: Remove events notifier arch/powerpc/include/asm/opal.h | 6 + arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/eeh-powernv.c | 58 ++--- arch/powerpc/platforms/powernv/opal-async.c | 3 +- arch/powerpc/platforms/powernv/opal-dump.c | 56 ++--- arch/powerpc/platforms/powernv/opal-elog.c | 32 +-- arch/powerpc/platforms/powernv/opal-hmi.c | 3 +- arch/powerpc/platforms/powernv/opal-irqchip.c | 249 +++++++++++++++++++++ .../powerpc/platforms/powernv/opal-memory-errors.c | 2 +- arch/powerpc/platforms/powernv/opal-sensor.c | 3 +- arch/powerpc/platforms/powernv/opal.c | 196 +++------------- arch/powerpc/platforms/powernv/powernv.h | 3 + arch/powerpc/platforms/powernv/setup.c | 2 +- drivers/char/ipmi/ipmi_powernv.c | 39 ++-- drivers/tty/hvc/hvc_opal.c | 33 +-- 15 files changed, 396 insertions(+), 291 deletions(-) create mode 100644 arch/powerpc/platforms/powernv/opal-irqchip.c -- 1.8.3.2
next reply other threads:[~2015-05-15 4:07 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-15 4:06 Alistair Popple [this message] 2015-05-15 4:06 ` [PATCH v4 0/9] Convert OPAL notifier events to an irqchip Alistair Popple 2015-05-15 4:06 ` [PATCH v4 1/9] powerpc/powernv: Reorder OPAL subsystem initialisation Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 2/9] powerpc/powernv: Add a virtual irqchip for opal events Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 3/9] ipmi/powernv: Convert to irq event interface Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 4/9] hvc: Convert to using interrupts instead of opal events Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-19 4:33 ` Michael Ellerman 2015-05-19 5:09 ` Alistair Popple 2015-05-19 9:23 ` Michael Ellerman 2015-05-15 4:06 ` [PATCH v4 5/9] powernv/eeh: Update the EEH code to use the opal irq domain Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 6/9] powernv/opal: Convert opal message events to " Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 7/9] powernv/elog: Convert elog " Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 8/9] powernv/opal-dump: Convert to " Alistair Popple 2015-05-15 4:06 ` Alistair Popple 2015-05-15 4:06 ` [PATCH v4 9/9] opal: Remove events notifier Alistair Popple 2015-05-15 4:06 ` Alistair Popple
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1431662804-16851-1-git-send-email-alistair@popple.id.au \ --to=alistair@popple.id.au \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=minyard@acm.org \ --cc=mpe@ellerman.id.au \ --cc=openipmi-developer@lists.sourceforge.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.