lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f8495533-b53f-8999-9320-38f18ca7691b@ti.com>
Date:   Fri, 30 Jun 2017 14:54:37 -0500
From:   Grygorii Strashko <grygorii.strashko@...com>
To:     Linus Walleij <linus.walleij@...aro.org>
CC:     Jerome Brunet <jbrunet@...libre.com>,
        "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
        Marc Zyngier <marc.zyngier@....com>,
        "open list:ARM/Amlogic Meson..." <linux-amlogic@...ts.infradead.org>,
        Kevin Hilman <khilman@...libre.com>,
        Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [RFC] gpio: about the need to manage irq mapping dynamically.



On 06/29/2017 09:16 AM, Linus Walleij wrote:
> On Tue, Jun 27, 2017 at 10:43 PM, Grygorii Strashko
> <grygorii.strashko@...com> wrote:
> 
>> And my opinion is still the same here - It should be perfectly valid to create
>> mappings from gpio_to_irq() to handle properly orthogonality of gpiochip and
>> gpio-irqchip functionality and satisfy SPARSE_IRQ goal (allocate Linux virq and
>> irq descriptors on demand).
> 
> You are right.
> 
> I would rather say: GPIO drivers that have a 1-to-1 mapping between GPIO
> lines and IRQs should not do it, they should map up them all at probe().
> 

Sry, can't completely agree here :( There could be 300 (or even thousands)
of gpios and only dozen of them will be used as GPIO IRQ, so statical mapping will
just waste system resources. So, better not define such kind of restrictions -
it seems platform/system specific.

> Drivers that actually have fewer IRQs than GPIO lines should be able to
> create the mappings in gpio_to_irq().

-- 
regards,
-grygorii

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ