public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gerlando Falauto <gerlando.falauto@keymile.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Jason Cooper <jason@lakedaemon.net>, Andrew Lunn <andrew@lunn.ch>,
	Russell King <linux@arm.linux.org.uk>,
	Ben Dooks <ben-linux@fluff.org>,
	Kukjin Kim <kgene.kim@samsung.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	Grant Likely <grant.likely@secretlab.ca>,
	Linus Walleij <linus.walleij@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Simon Guinot <sguinot@lacie.com>
Subject: Re: [PATCH v3b 0/9] refactoring for mask_cache
Date: Thu, 18 Apr 2013 16:01:25 +0200	[thread overview]
Message-ID: <516FFCB5.7080900@keymile.com> (raw)
In-Reply-To: <1363885931-20571-1-git-send-email-gerlando.falauto@keymile.com>

Hi everyone,

any chance we could move this pachset to the next level (at least for 
mainline)?

Thanks a lot!
Gerlando

On 03/21/2013 06:12 PM, Gerlando Falauto wrote:
> This patchset addresses a regression found with the Orion GPIO controller
> when both Edge- and Level- based interrupts are requested within the same
> GPIO chip. The regression was introduced by e59347a
> "arm: orion: Use generic irq chip"
>
> thereby affecting all kernel releases since 3.0.x.
>
> The reason behind it is that the Orion GPIO controller uses separate
> mask registers for the two types of interrupts (one for edge and one
> for level), whereas in other cases the same register would be shared.
> Since this mask register is cached, we need to have (potentially)
> separate register caches.
> We do that by adding a per-chip-type mask register cache, and a mask cache
> pointer (which will point either to that or the shared one).
>
> So we proceed with incremental stages:
> a) we introduce the new fields and pointer (though only the shared one is used)
> b) we convert all drivers to use it
> c) we rename the field so to force the use of the per-ct pointer
> d) we add per-ct mask cache, provided the new flag
>     IRQ_GC_SEPARATE_MASK_REGISTERS is enabled
> e) we enable the flag for orion-gpio and mvebu drivers
>
> The changes were tested by Simon Guinot to be effective on Kirkwood chipsets,
> on both the legacy orion-gpio and the new gpio-mvebu drivers.
> The bug should also affect the other two Marvell variants handled by
> the gpio-mvebu driver.
>
> Changes from v3: cover letter and SOB lines.
>
> Gerlando Falauto (9):
>    genirq: cosmetic: remove cur_regs
>    genirq: add mask_cache and pmask_cache into struct irq_chip_type
>    gpio: mvebu: convert to usage of *pmask_cache within irq_chip_type
>    MIPS: JZ4740: convert to usage of *pmask_cache within irq_chip_type
>    ARM: SAMSUNG: convert to usage of *pmask_cache within irq_chip_type
>    genirq: rename mask_cache to shared_mask_cache
>    genirq: handle separate mask registers
>    orion-gpio: enable IRQ_GC_SEPARATE_MASK_REGISTERS
>    gpio: mvebu: enable IRQ_GC_SEPARATE_MASK_REGISTERS
>
>   arch/arm/plat-orion/gpio.c            |    3 +-
>   arch/arm/plat-samsung/irq-vic-timer.c |    6 ++--
>   arch/mips/jz4740/irq.c                |    3 +-
>   drivers/gpio/gpio-mvebu.c             |   23 ++++++++------
>   include/linux/irq.h                   |    9 ++++--
>   kernel/irq/generic-chip.c             |   55 +++++++++++++++++++++------------
>   6 files changed, 64 insertions(+), 35 deletions(-)
>


      parent reply	other threads:[~2013-04-18 14:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1363885931-20571-1-git-send-email-gerlando.falauto@keymile.com>
2013-03-21 21:57 ` [PATCH v3b 0/9] refactoring for mask_cache Greg KH
2013-03-26 20:37   ` Thomas Gleixner
2013-03-26 20:47     ` Greg KH
2013-03-26 20:54       ` Thomas Gleixner
2013-04-10 20:38         ` Greg KH
     [not found] ` <1363885931-20571-4-git-send-email-gerlando.falauto@keymile.com>
2013-03-27 12:57   ` [PATCH v3 3/9] gpio: mvebu: convert to usage of *pmask_cache within irq_chip_type Linus Walleij
     [not found] ` <1363885931-20571-9-git-send-email-gerlando.falauto@keymile.com>
2013-03-27 12:58   ` [PATCH v3b 8/9] orion-gpio: enable IRQ_GC_SEPARATE_MASK_REGISTERS Linus Walleij
     [not found] ` <1363885931-20571-10-git-send-email-gerlando.falauto@keymile.com>
2013-03-27 12:58   ` [PATCH v3b 9/9] gpio: mvebu: " Linus Walleij
2013-04-18 14:01 ` Gerlando Falauto [this message]

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=516FFCB5.7080900@keymile.com \
    --to=gerlando.falauto@keymile.com \
    --cc=andrew@lunn.ch \
    --cc=ben-linux@fluff.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jason@lakedaemon.net \
    --cc=kgene.kim@samsung.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ralf@linux-mips.org \
    --cc=sguinot@lacie.com \
    --cc=tglx@linutronix.de \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox