15 Feb, 2008

2 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPI: DMI: quirk for FSC ESPRIMO Mobile V5505
    ACPI: DMI blacklist updates
    pnpacpi: __initdata is not an identifier
    ACPI: static acpi_chain_head
    ACPI: static acpi_find_dsdt_initrd()
    ACPI: static acpi_no_initrd_override_setup()
    thinkpad_acpi: static
    ACPI suspend: Execute _WAK with the right argument
    cpuidle: Add Documentation
    ACPI, cpuidle: Clarify C-state description in sysfs
    ACPI: fix suspend regression due to idle update

    Linus Torvalds
     
  • The sound drivers and the pnpbios core test for current->root != NULL. This
    test seems to be unnecessary since we always have rootfs mounted before
    initializing the drivers.

    Signed-off-by: Jan Blunck
    Acked-by: Christoph Hellwig
    Cc: Bjorn Helgaas
    Cc: Jaroslav Kysela
    Acked-by: Takashi Iwai
    Cc: Al Viro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     

14 Feb, 2008

1 commit

  • sparse complains at drivers/pnp/pnpacpi/core.c:39 with the error:
    Trying to use reserved word '__attribute__' as identifier
    Expected ) in function declarator, got ".init.data"

    and at drivers/pnp/pnpacpi/core.c:49:38 with the error:
    undefined identifier 'excluded_id_list'

    With the patch below these sparse complaints do not occur

    Signed-off-by: Roel Kluin
    Signed-off-by: Len Brown

    Roel Kluin
     

07 Feb, 2008

6 commits

  • …gzilla-7186', 'bugzilla-8269', 'bugzilla-8570', 'bugzilla-9139', 'bugzilla-9277', 'bugzilla-9341', 'bugzilla-9444', 'bugzilla-9614', 'bugzilla-9643' and 'bugzilla-9644' into release

    Len Brown
     
  • Some Supermicro BIOSes describe a SATA PCI BAR as a motherboard resource.
    The PNP system driver claims motherboard resources, and this prevents the
    sata_nv driver from requesting it later.

    This patch disables the PNP0C01/PNP0C02 resources so they won't be claimed
    by the PNP system driver, so they'll available for sata_nv.

    This fixes the bugs below, where sata_nv detects only two out of four SATA
    drives. The signature includes dmesg lines similar to these:

    pnp: 00:09: iomem range 0xdfefc000-0xdfefcfff has been reserved
    pnp: 00:09: iomem range 0xdfefd000-0xdfefd3ff has been reserved
    pnp: 00:09: iomem range 0xdfefe000-0xdfefe3ff has been reserved

    PCI: Unable to reserve mem region #6:1000@dfefd000 for device 0000:80:07.0
    sata_nv: probe of 0000:80:07.0 failed with error -16
    PCI: Unable to reserve mem region #6:1000@dfefe000 for device 0000:80:08.0
    sata_nv: probe of 0000:80:08.0 failed with error -16

    References:
    https://bugzilla.redhat.com/show_bug.cgi?id=280641
    https://bugzilla.redhat.com/show_bug.cgi?id=313491
    http://lkml.org/lkml/2008/1/9/449
    http://thread.gmane.org/gmane.linux.acpi.devel/27312

    This is post-2.6.24 material.

    Signed-off-by: Bjorn Helgaas

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • The PNP_DRIVER_RES_DO_NOT_CHANGE flag is meant to signify that the PNP core
    should not change resources for the device -- not that it shouldn't
    disable/enable the device on suspend/resume.

    ALSA ISAPnP drivers set PNP_DRIVER_RES_DO_NOT_CHANAGE (0x0001) through
    setting PNP_DRIVER_RES_DISABLE (0x0003). The latter including the former
    may in itself be considered rather unexpected but doesn't change that
    suspend/resume wouldn't seem to have any business testing the flag.

    As reported by Ondrej Zary for snd-cs4236, ALSA driven ISAPnP cards don't
    survive swsusp hibernation with the resume skipping setting the resources
    due to testing the flag -- the same test in the suspend path isn't enough
    to keep hibernation from disabling the card it seems.

    These tests were added (in 2005) by Piere Ossman in commit
    68094e3251a664ee1389fcf179497237cbf78331, "alsa: Improved PnP suspend
    support" who doesn't remember why. This deletes them.

    Signed-off-by: Rene Herman
    Tested-by: Ondrej Zary
    Cc: Bjorn Helgaas
    Cc: Pierre Ossman
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rene Herman
     
  • Changed the isapnp semaphore to a mutex.

    [akpm@linux-foundation.org: no externs-in-c]
    [akpm@linux-foundation.org: build fix]
    Signed-off-by: Daniel Walker
    Cc: Bjorn Helgaas
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Walker
     
  • There are three kind of parse functions provided by PNP acpi/bios:
    - get current resources
    - set resources
    - get possible resources
    The first two may be needed later at runtime.
    The possible resource settings should never change dynamically.
    And even if this would make any sense (I doubt it), the current implementation
    only parses possible resource settings at early init time:
    -> declare all the option parsing __init

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Thomas Renninger
    Acked-By: Rene Herman
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Renninger
     
  • Make pnp_activate_dev() and pnp_disable_dev() return only 0 (success) or a
    negative error value, as pci_enable_device() and pci_disable_device() do.

    Previously they returned:

    0: device was already active (or disabled)
    1: we just activated (or disabled) device

    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     

30 Jan, 2008

1 commit


18 Jan, 2008

1 commit


13 Jan, 2008

2 commits

  • PNP_WRITE requires protocol supports .set. If ACPI doesn't support _SRS, .set ismeanless, so PNP_WRITE.

    Signed-off-by: Shaohua Li
    Signed-off-by: Len Brown

    Shaohua Li
     
  • pnpacpi: exceeded the max number of IO resources: 40

    While this message is a real error and should thus
    remain KERN_ERR (even a new dmesg line is seen as a regression
    by some, since it was not printed in 2.6.23...) it is certainly
    impolite to print this warning 50 times should you happen to
    have the oddball system with 90 io resources under a device...

    So print the warning just once.

    In 2.6.25 we'll get rid of the limits altogether
    and these warnings will vanish with them.

    http://bugzilla.kernel.org/show_bug.cgi?id=9535

    Signed-off-by: Len Brown

    Len Brown
     

30 Nov, 2007

2 commits

  • There should be a pci_dev_put when breaking out of a loop that iterates
    over calls to pci_get_device and similar functions.

    This was fixed using the following semantic patch.

    //
    @@
    identifier d;
    type T;
    expression e;
    iterator for_each_pci_dev;
    @@

    T *d;
    ...
    for_each_pci_dev(d)
    {... when != pci_dev_put(d)
    when != e = d
    (
    return d;
    |
    + pci_dev_put(d);
    ? return ...;
    )
    ...}
    //

    Signed-off-by: Julia Lawall
    Cc: Greg KH
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • On some systems the number of resources(IO,MEM) returnedy by PNP device is
    greater than the PNP constant, for example motherboard devices. It brings
    that some resources can't be reserved and resource confilicts. This will
    cause PCI resources are assigned wrongly in some systems, and cause hang.
    This is a regression since we deleted ACPI motherboard driver and use PNP
    system driver.

    [akpm@linux-foundation.org: fix text and coding-style a bit]
    Signed-off-by: Li Shaohua
    Signed-off-by: Zhao Yakui
    Cc: Bjorn Helgaas
    Cc: Thomas Renninger
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zhao Yakui
     

20 Nov, 2007

2 commits


17 Oct, 2007

10 commits

  • Add PNP debug message when adding a device, remove similar PNPACPI message
    with less information.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Hoist the struct pnp_dev alloc up into the function where it's used.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Use dev_info() for a little consistency. Changes this:

    pnp: 00:01: ioport range 0xf50-0xf58 has been reserved
    pnp: 00:01: ioport range 0x408-0x40f has been reserved
    pnp: 00:01: ioport range 0x900-0x903 has been reserved

    to this:

    system 00:01: ioport range 0xf50-0xf58 has been reserved
    system 00:01: ioport range 0x408-0x40f has been reserved
    system 00:01: ioport range 0x900-0x903 has been reserved

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • If we have the struct pnp_dev available, we can use dev_info(), dev_err(),
    etc., to give a little more information and consistency.

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • No functional change; just return errors early instead of putting the main
    part of the function inside an "if" statement.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Remove some null pointer checks. Null pointers in these areas indicate
    programming errors, and I think it's better to oops immediately rather than
    return an error that is easily ignored.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Workaround for broken systems with BIOS that makes RTC interrupt level
    triggered and/or active low.

    See http://bugzilla.kernel.org/show_bug.cgi?id=5243

    Based on the patch from Shaohua Li

    Signed-off-by: Krzysztof Piotr Oledzki
    Cc: "Li, Shaohua"
    Cc: Bjorn Helgaas
    Cc: Andi Kleen
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Oledzki
     
  • Most drivers for devices supporting ISA DMA can operate without DMA as well
    (falling back zo PIO). Thus it seems inappropriate for PNP to fail device
    initialization in case none of the possible DMA channels are available.
    Instead, it should be left to the driver to decide what to do if
    request_dma() fails.

    The patch at once adjusts the code to account for the fact that
    pnp_assign_dma() now doesn't need to report failure anymore.

    Signed-off-by: Jan Beulich
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Beulich
     
  • pnpacpi_suspend() doesn't check the result returned by
    acpi_pm_device_sleep_state() before passing it to acpi_bus_set_power(),
    which may not be desirable.  Make it select the target power state of the
    device using its second argument if acpi_pm_device_sleep_state() fails.

    Signed-off-by: Rafael J. Wysocki
    Looks-ok-to: Pavel Machek
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • There's a small and unlikely memory leak in
    drivers/pnp/pnpbios/proc.c::proc_read_escd(). It's inside a sanity check,
    so it probably won't trigger often (if at all), however it *is* a potential
    leak and it's easy to avoid, so let's just fix it :)

    Signed-off-by: Jesper Juhl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     

16 Oct, 2007

1 commit


10 Oct, 2007

1 commit

  • Three main sets of changes:

    1) dmi_get_system_info() return value should have been marked const,
    since callers should not be changing that data.

    2) const-ify DMI internals, since DMI firmware tables should,
    whenever possible, be marked const to ensure we never ever write to
    that data area.

    3) const-ify DMI API, to enable marking tables const where possible
    in low-level drivers.

    And if we're really lucky, this might enable some additional
    optimizations on the part of the compiler.

    The bulk of the changes are #2 and #3, which are interrelated. #1 could
    have been a separate patch, but it was so small compared to the others,
    it was easier to roll it into this changeset.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     

12 Sep, 2007

1 commit

  • If the quirk enables the SIR part of the SMCf010 device, the 8250 driver
    may claim it as a legacy ttyS device, which makes the legacy probe in the
    smsc-ircc2 driver fail.

    Signed-off-by: Bjorn Helgaas
    Cc: Andrey Borzenkov
    Cc: Michal Piotrowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     

24 Aug, 2007

6 commits


30 Jul, 2007

1 commit

  • Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the
    new CONFIG_PM_SLEEP option.

    Signed-off-by: Len Brown
    [ Modified to work with the PM config setup changes. ]
    Signed-off-by: Linus Torvalds

    Len Brown
     

27 Jul, 2007

2 commits

  • These are manual fixups after running Lindent. No functional change.

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Run Lindent on all PNP source files.

    Produced by:

    $ quilt new pnp-lindent
    $ find drivers/pnp -name \*.[ch] | xargs quilt add
    $ quilt add include/linux/{pnp.h,pnpbios.h}
    $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h
    $ quilt refresh --sort

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     

25 Jul, 2007

1 commit