13 Nov, 2008

3 commits

  • Changed because old the definition of unsigned long cannot be negative.

    Signed-off-by: Nicolas Ferre
    Reported-by: Roel Kluin
    Cc: Haavard Skinnemoen
    Cc: Andrew Victor
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nicolas Ferre
     
  • …el/git/tip/linux-2.6-tip

    * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    hrtimer: clean up unused callback modes

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (47 commits)
    ACPI: pci_link: remove acpi_irq_balance_set() interface
    fujitsu-laptop: Add DMI callback for Lifebook S6420
    ACPI: EC: Don't do transaction from GPE handler in poll mode.
    ACPI: EC: lower interrupt storm treshold
    ACPICA: Use spinlock for acpi_{en|dis}able_gpe
    ACPI: EC: restart failed command
    ACPI: EC: wait for last write gpe
    ACPI: EC: make kernel messages more useful when GPE storm is detected
    ACPI: EC: revert msleep patch
    thinkpad_acpi: fingers off backlight if video.ko is serving this functionality
    sony-laptop: fingers off backlight if video.ko is serving this functionality
    msi-laptop: fingers off backlight if video.ko is serving this functionality
    fujitsu-laptop: fingers off backlight if video.ko is serving this functionality
    eeepc-laptop: fingers off backlight if video.ko is serving this functionality
    compal: fingers off backlight if video.ko is serving this functionality
    asus-acpi: fingers off backlight if video.ko is serving this functionality
    Acer-WMI: fingers off backlight if video.ko is serving this functionality
    ACPI video: if no ACPI backlight support, use vendor drivers
    ACPI: video: Ignore devices that aren't present in hardware
    Delete an unwanted return statement at evgpe.c
    ...

    Linus Torvalds
     

12 Nov, 2008

11 commits


11 Nov, 2008

7 commits

  • This fixes hangs on 855-class hardware by avoiding double attachment of the
    driver due to the stub second head device having the same pci id as the real
    device.

    Other DRM drivers probably want this treatment as well, but I'm applying it
    just to this one for safety. But we should clean up the drm_pciids.h mess
    now so that each driver has its own pci id list header in its own directory.
    Lets do that in the next release.

    Signed-off-by: Eric Anholt
    Signed-off-by: Dave Airlie

    Dave Airlie
     
  • It's not used in any other drivers, and doesn't look like it will be from
    drm.git master.

    Signed-off-by: Eric Anholt
    Signed-off-by: Dave Airlie

    Eric Anholt
     
  • Impact: fix hang/crash on ia64 under high load

    This is ugly, but the simplest patch by far.

    Unlike other similar routines, account_group_exec_runtime() could be
    called "implicitly" from within scheduler after exit_notify(). This
    means we can race with the parent doing release_task(), we can't just
    check ->signal != NULL.

    Change __exit_signal() to do spin_unlock_wait(&task_rq(tsk)->lock)
    before __cleanup_signal() to make sure ->signal can't be freed under
    task_rq(tsk)->lock. Note that task_rq_unlock_wait() doesn't care
    about the case when tsk changes cpu/rq under us, this should be OK.

    Thanks to Ingo who nacked my previous buggy patch.

    Signed-off-by: Oleg Nesterov
    Acked-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar
    Reported-by: Doug Chapman

    Oleg Nesterov
     
  • This fixes compilation of the SSB DMA-API code on non-PCI platforms.

    Signed-off-by: Michael Buesch
    Signed-off-by: David S. Miller

    Michael Buesch
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Make the HP EliteBook 8530p use AD1884A model laptop
    ALSA: gusextreme: Fix build errors
    ALSA: hdsp: check for iobox and upload firmware during ioctl
    ALSA: HDSP: check for io box before uploading firmware
    ALSA: hda - Add another HP model (6730s) for AD1884A
    alsa: fix snd_BUG_on() and friends
    ALSA: hda - Add a quirk for MEDION MD96630
    ALSA: hda - Limit the number of GPIOs show in proc

    Linus Torvalds
     
  • Takashi Iwai
     
  • This patch reverts the following three commits which convert libata to
    use block layer tagging.

    43a49cbdf31e812c0d8f553d433b09b421f5d52c
    e013e13bf605b9e6b702adffbe2853cfc60e7806
    2fca5ccf97d2c28bcfce44f5b07d85e74e3cd18e

    Although using block layer tagging is the right direction, due to the
    tight coupling among tag number, data structure allocation and
    hardware command slot allocation, libata doesn't work correctly with
    the current conversion.

    The biggest problem is guaranteeing that tag 0 is always used for
    non-NCQ commands. Due to the way blk-tag is implemented and how SCSI
    starts and finishes requests, such guarantee can't be made. I'm not
    sure whether this would actually break any low level driver but it
    doesn't look like a good idea to break such assumption given the
    frailty of ATA controllers.

    So, for the time being, keep using the old dumb in-libata qc
    allocation.

    Signed-off-by: Tejun Heo
    Cc: Jens Axobe
    Cc: Jeff Garzik
    Signed-off-by: Linus Torvalds

    Tejun Heo
     

10 Nov, 2008

4 commits

  • * 'cpus4096' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    cpumask: introduce new API, without changing anything, v3
    cpumask: new API, v2
    cpumask: introduce new API, without changing anything

    Linus Torvalds
     
  • Impact: cleanup

    Clean up based on feedback from Andrew Morton and others:

    - change to inline functions instead of macros
    - add __init to bootmem method
    - add a missing debug check

    Signed-off-by: Rusty Russell
    Signed-off-by: Ingo Molnar

    Rusty Russell
     
  • Previously I assumed that the receive queues of candidates don't
    change during the GC. This is only half true, nothing can be received
    from the queues (see comment in unix_gc()), but buffers could be added
    through the other half of the socket pair, which may still have file
    descriptors referring to it.

    This can result in inc_inflight_move_tail() erronously increasing the
    "inflight" counter for a unix socket for which dec_inflight() wasn't
    previously called. This in turn can trigger the "BUG_ON(total_refs <
    inflight_refs)" in a later garbage collection run.

    Fix this by only manipulating the "inflight" counter for sockets which
    are candidates themselves. Duplicating the file references in
    unix_attach_fds() is also needed to prevent a socket becoming a
    candidate for GC while the skb that contains it is not yet queued.

    Reported-by: Andrea Bittau
    Signed-off-by: Miklos Szeredi
    CC: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Miklos Szeredi
     
  • Currently, all existing users of cnt32_to_63() are fine since the CPU
    architectures where it is used don't do read access reordering, and user
    mode preemption is disabled already. It is nevertheless a good idea to
    better elaborate usage requirements wrt preemption, and use an explicit
    memory barrier on SMP to avoid different CPUs accessing the counter
    value in the wrong order. On UP a simple compiler barrier is
    sufficient.

    Signed-off-by: Nicolas Pitre
    Acked-by: Mathieu Desnoyers
    Signed-off-by: Linus Torvalds

    Nicolas Pitre
     

09 Nov, 2008

2 commits

  • Acked-by: Greg Kroah-Hartman
    Signed-Off-By: Kay Sievers
    Signed-off-by: Pierre Ossman

    Kay Sievers
     
  • Fix the __pfn_to_page(pfn) macro so that it doesn't evaluate its
    argument twice in the CONFIG_DISCONTIGMEM=y case, because 'pfn' may
    be a result of a funtion call having side effects.

    For example, the hibernation code applies pfn_to_page(pfn) to the
    result of a function returning the pfn corresponding to the next set
    bit in a bitmap and the current bit position is modified on each
    call. This leads to "interesting" failures for CONFIG_DISCONTIGMEM=y
    due to the current behavior of __pfn_to_page(pfn).

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

08 Nov, 2008

6 commits

  • If an ACPI graphics device supports backlight brightness functions (cmp. with
    latest ACPI spec Appendix B), let the ACPI video driver control backlight and
    switch backlight control off in vendor specific ACPI drivers (asus_acpi,
    thinkpad_acpi, eeepc, fujitsu_laptop, msi_laptop, sony_laptop, acer-wmi).

    Currently it is possible to load above drivers and let both poke on the
    brightness HW registers, the video and vendor specific ACPI drivers -> bad.

    This patch provides the basic support to check for BIOS capabilities before
    driver loading time. Driver specific modifications are in separate follow up
    patches.

    "acpi_backlight=vendor"
    Prever vendor driver over ACPI driver for backlight.
    "acpi_backlight=video" (default)
    Prever ACPI driver over vendor driver for backlight.

    Signed-off-by: Thomas Renninger
    Acked-by: Zhang Rui
    Signed-off-by: Andi Kleen
    Signed-off-by: Len Brown

    Thomas Renninger
     
  • This is a reimplemention of commit
    0119509c4fbc9adcef1472817fda295334612976
    from Matthew Garrett

    This patch got removed because of a regression: ThinkPads with a
    Intel graphics card and an Integrated Graphics Device BIOS implementation
    stopped working.
    In fact, they only worked because the ACPI device of the discrete, the
    wrong one, got used (via int10). So ACPI functions were poking on the wrong
    hardware used which is a sever bug.
    The next patch provides support for above ThinkPads to be able to
    switch brightness via the legacy thinkpad_acpi driver and automatically
    detect when to use it.

    Original commit message from Matthew Garrett:
    Vendors often ship machines with a choice of integrated or discrete
    graphics, and use the same DSDT for both. As a result, the ACPI video
    module will locate devices that may not exist on this specific platform.
    Attempt to determine whether the device exists or not, and abort the
    device creation if it doesn't.

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

    Signed-off-by: Thomas Renninger
    Acked-by: Zhang Rui
    Signed-off-by: Andi Kleen
    Signed-off-by: Len Brown

    Thomas Renninger
     
  • /sys/module/acpi/parameters/debug_layers used to contain only the
    debug layers defined by the ACPI CA. This patch adds the additional
    layer definitions for ACPI drivers.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Len Brown

    Bjorn Helgaas
     
  • Some of the component definitions that were previous scattered around
    the drivers conflict with each other. That doesn't hurt anything
    except that setting one bit in the debug_layer mask would turn on
    debugging in two different modules. This patch fixes the conflicts.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Len Brown

    Bjorn Helgaas
     
  • Move all the component definitions for drivers to a single shared place,
    include/acpi/acpi_drivers.h.

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Len Brown

    Bjorn Helgaas
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: fix range check on mmapped sysfs resource files
    PCI: remove excess kernel-doc notation
    PCI: annotate return value of pci_ioremap_bar with __iomem
    PCI: fix VPD limit quirk for Broadcom 5708S

    Linus Torvalds
     

07 Nov, 2008

7 commits

  • fine-tune the HT sched-domains parameters as well.

    On a HT capable box, this increases lat_ctx performance from 23.87
    usecs to 1.49 usecs:

    # before

    $ ./lat_ctx -s 0 2

    "size=0k ovr=1.89
    2 23.87

    # after

    $ ./lat_ctx -s 0 2

    "size=0k ovr=1.84
    2 1.49

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Tune SD_MC_INIT the same way as SD_CPU_INIT:
    unset SD_BALANCE_NEWIDLE, and set SD_WAKE_BALANCE.

    This improves vmark by 5%:

    vmark 132102 125968 125497 messages/sec avg 127855.66 .984
    vmark 139404 131719 131272 messages/sec avg 134131.66 1.033

    Signed-off-by: Mike Galbraith
    Acked-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    # *DOCUMENTATION*

    Mike Galbraith
     
  • - add cpumask_of()
    - add free_bootmem_cpumask_var()

    Signed-off-by: Rusty Russell
    Signed-off-by: Ingo Molnar

    Rusty Russell
     
  • Declaring processors in ACPI namespace can be done using either a
    "Processor" definition or a "Device" definition (see section 8.4 -
    Declaring Processors; "Advanced Configuration and Power Interface
    Specification", Revision 3.0b). Currently the two processor
    declaration types are conflated.

    This patch disambiguates the processor declaration's definition type
    enabling subsequent code to behave uniquely based explicitly on the
    declaration's type.

    Signed-off-by: Myron Stowe
    Signed-off-by: Len Brown

    Myron Stowe
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    net: Fix recursive descent in __scm_destroy().
    iwl3945: fix deadlock on suspend
    iwl3945: do not send scan command if channel count zero
    iwl3945: clear scanning bits upon failure
    ath5k: correct handling of rx status fields
    zd1211rw: Add 2 device IDs
    Fix logic error in rfkill_check_duplicity
    iwlagn: avoid sleep in softirq context
    iwlwifi: clear scanning bits upon failure
    Revert "ath5k: honor FIF_BCN_PRBRESP_PROMISC in STA mode"
    tcp: Fix recvmsg MSG_PEEK influence of blocking behavior.
    netfilter: netns ct: walk netns list under RTNL
    ipv6: fix run pending DAD when interface becomes ready
    net/9p: fix printk format warnings
    net: fix packet socket delivery in rx irq handler
    xfrm: Have af-specific init_tempsel() initialize family field of temporary selector

    Linus Torvalds
     
  • sound/pci/pcxhr/pcxhr_core.c: In function 'pcxhr_set_pipe_cmd_params':
    sound/pci/pcxhr/pcxhr_core.c:700: warning: statement with no effect
    sound/pci/pcxhr/pcxhr_core.c:706: warning: statement with no effect
    sound/pci/pcxhr/pcxhr_core.c:710: warning: statement with no effect

    Due to

    try to fix this, and be more conventional about the empty stubs.

    Signed-off-by: Andrew Morton
    Signed-off-by: Takashi Iwai

    Andrew Morton
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    Block: use round_jiffies_up()
    Add round_jiffies_up and related routines
    block: fix __blkdev_get() for removable devices
    generic-ipi: fix the smp_mb() placement
    blk: move blk_delete_timer call in end_that_request_last
    block: add timer on blkdev_dequeue_request() not elv_next_request()
    bio: define __BIOVEC_PHYS_MERGEABLE
    block: remove unused ll_new_mergeable()

    Linus Torvalds