login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
12
Re: [PATCH v2 2/4] genirq: Inform handler about line sharing state
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Kiszka
Subject:
Re: [PATCH v2 2/4] genirq: Inform handler about line sharing state
Date: Sunday, December 12, 2010 - 2:49 pm
Am 12.12.2010 17:53, Thomas Gleixner wrote:
quoted text
> On Sun, 12 Dec 2010, Jan Kiszka wrote: > >> From: Jan Kiszka <jan.kiszka@siemens.com> >> >> This enabled interrupt handlers to retrieve the current line sharing state via >> the new interrupt status word so that they can adapt to it. >> >> The switch from shared to exclusive is generally uncritical and can thus be >> performed on demand. However, preparing a line for shared mode may require >> preparational steps of the currently registered handler. It can therefore >> request an ahead-of-time notification via IRQF_ADAPTIVE. The notification >> consists of an exceptional handler invocation with IRQS_MAKE_SHAREABLE set in >> the status word. >> >> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> >> --- >> include/linux/interrupt.h | 10 ++++++++++ >> include/linux/irqdesc.h | 2 ++ >> kernel/irq/irqdesc.c | 2 ++ >> kernel/irq/manage.c | 44 +++++++++++++++++++++++++++++++++++++++++--- >> 4 files changed, 55 insertions(+), 3 deletions(-) >> >> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h >> index 16cdbbf..c6323a2 100644 >> --- a/include/linux/interrupt.h >> +++ b/include/linux/interrupt.h >> @@ -55,6 +55,7 @@ >> * Used by threaded interrupts which need to keep the >> * irq line disabled until the threaded handler has been run. >> * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend >> + * IRQF_ADAPTIVE - Request notification about upcoming interrupt line sharing >> * >> */ >> #define IRQF_DISABLED 0x00000020 >> @@ -67,6 +68,7 @@ >> #define IRQF_IRQPOLL 0x00001000 >> #define IRQF_ONESHOT 0x00002000 >> #define IRQF_NO_SUSPEND 0x00004000 >> +#define IRQF_ADAPTIVE 0x00008000 >> >> #define IRQF_TIMER (__IRQF_TIMER | IRQF_NO_SUSPEND) >> >> @@ -126,6 +128,14 @@ struct irqaction { >> >> extern irqreturn_t no_action(int cpl, void *dev_id); >> >> +/* >> + * Driver-readable IRQ line status flags: >> + * IRQS_SHARED - line is shared between multiple handlers >> + * IRQS_MAKE_SHAREABLE - in the process of making an exclusive line shareable >> + */ >> +#define IRQS_SHARED 0x00000001 >> +#define IRQS_MAKE_SHAREABLE 0x00000002 >> + >> extern unsigned long get_irq_status(unsigned long irq); >> >> #ifdef CONFIG_GENERIC_HARDIRQS >> diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h >> index 979c68c..c490e83 100644 >> --- a/include/linux/irqdesc.h >> +++ b/include/linux/irqdesc.h >> @@ -29,6 +29,7 @@ struct timer_rand_state; >> * @wait_for_threads: wait queue for sync_irq to wait for threaded handlers >> * @dir: /proc/irq/ procfs entry >> * @name: flow handler name for /proc/interrupts output >> + * @register_lock: protects registration & release, for unshared->shared > > I think we can make that a global mutex. request/free_irq are not > hotpath operations which require a mutex per irq descriptor. >
Agreed, will change this. Jan
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH v2 0/4] KVM & genirq: Enable adaptive IRQ sharing f ...
, Jan Kiszka
, (Sun Dec 12, 4:22 am)
[PATCH v2 1/4] genirq: Introduce driver-readable IRQ statu ...
, Jan Kiszka
, (Sun Dec 12, 4:22 am)
[PATCH v2 2/4] genirq: Inform handler about line sharing state
, Jan Kiszka
, (Sun Dec 12, 4:22 am)
[PATCH v2 3/4] genirq: Add support for IRQF_COND_ONESHOT
, Jan Kiszka
, (Sun Dec 12, 4:22 am)
[PATCH v2 4/4] KVM: Allow host IRQ sharing for passed-thro ...
, Jan Kiszka
, (Sun Dec 12, 4:22 am)
Re: [PATCH v2 2/4] genirq: Inform handler about line shari ...
, Thomas Gleixner
, (Sun Dec 12, 9:53 am)
Re: [PATCH v2 1/4] genirq: Introduce driver-readable IRQ s ...
, Thomas Gleixner
, (Sun Dec 12, 10:29 am)
Re: [PATCH v2 2/4] genirq: Inform handler about line shari ...
, Jan Kiszka
, (Sun Dec 12, 2:49 pm)
Re: [PATCH v2 1/4] genirq: Introduce driver-readable IRQ s ...
, Jan Kiszka
, (Sun Dec 12, 2:51 pm)
Re: [PATCH v2 1/4] genirq: Introduce driver-readable IRQ s ...
, Thomas Gleixner
, (Mon Dec 13, 1:17 am)
Re: [PATCH v2 0/4] KVM & genirq: Enable adaptive IRQ shari ...
, Michael S. Tsirkin
, (Mon Dec 13, 3:10 am)
Re: [PATCH v2 4/4] KVM: Allow host IRQ sharing for passed- ...
, Avi Kivity
, (Mon Dec 13, 3:19 am)
Re: [PATCH v2 0/4] KVM & genirq: Enable adaptive IRQ shari ...
, Jan Kiszka
, (Mon Dec 13, 3:59 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo