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: <4F787C9C.8050206@gmx.net>
Date:	Sun, 01 Apr 2012 18:04:44 +0200
From:	Witold Szczeponik <Witold.Szczeponik@....net>
To:	Bjorn Helgaas <bhelgaas@...gle.com>
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/3] PNP: Allow PNP resources to be disabled (interface)

On 27/03/12 22:57, Bjorn Helgaas wrote:

[...]

>
> If I understand this correctly, even with this patches, you still have
> to manually muck around with "/sys/bus/pnp/devices/*/resources" to get
> these ThinkPads to work?  If that's the case, there must be more PNP
> work we could do to make them Just Work.  And that's fine; I'm just
> trying to understand the current situation better.  Is there a
> bugzilla or other URL with more details?
>

Yes, this is true: even with this patch applied it is necessary to 
explicitly set the IRQ link to disabled.  Let me briefly explain it, 
using an excerpt from the 600E's DSDT (printer port):

    Name (PLPT, ResourceTemplate ()
    {
        StartDependentFnNoPri ()
        {
            IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04)
            IRQNoFlags () {7}
        }
        /* Some entries deleted */
        StartDependentFnNoPri ()
        {
            IO (Decode16, 0x03BC, 0x03BC, 0x01, 0x04)
            IRQNoFlags () {}
        }
        EndDependentFn ()
    })

As you can see, the IRQ line for the second option is empty/disabled. 
Also, both options share the same priority, there is no priority of 
the first option over the second option.

In order to be able to use the IRQ 7 for some other device, I need 
to be able to select the second option, which can be done with the 
patch series applied.

As for a bugzilla entry: I did not find any.  Frankly, I don't 
think there is one, for until recently, disabled resources were 
not handled at all (at least in the PNPACPI case).  Though, it is 
(remotely?) possible the handling of optional IRQ lines 
(IORESOURCE_IRQ_OPTIONAL) is obsolete these days (because the 
quirks that introduce that flag seem to fix a symptom that could 
have been fixed by commit 18fd470a48396c8795ba7256c5973e92ffa25cb3).


--- Witold
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ