05 Jun, 2010

9 commits

  • It's used to superblock ->s_magic, which is unsigned long.

    Signed-off-by: Roberto Sassu
    Reviewed-by: Mimi Zohar
    Signed-off-by: Eric Paris
    CC: stable@kernel.org
    Signed-off-by: Al Viro

    Roberto Sassu
     
  • get_sb_single() calls fill_super with superblock locked; calling
    deactivate_super() will deadlock immedately. Moreover, if fill_super
    callback returns an error, get_sb_single() will release the reference
    to superblock itself just fine.

    Signed-off-by: Al Viro

    Al Viro
     
  • It never hashes them anyway and does final iput() immediately
    afterwards. With ->drop_inode() being generic_delete_inode()...

    Signed-off-by: Al Viro

    Al Viro
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPI: Eliminate us to pm ticks conversion in common path
    ACPI: Fix the incorrect calculation about C-state idle time
    ACPI: update feature-removal.txt to reflect deleted acpi=ht option
    ACPI / EC / PM: Fix names of functions that block/unblock EC transactions
    ACPI / EC / PM: Fix race between EC transactions and system suspend

    Linus Torvalds
     
  • Len Brown
     
  • * 'sfi-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6:
    SFI: do not return freed pointer

    Linus Torvalds
     
  • acpi_enter_[simple|bm] routines does us to pm tick conversion on every
    idle wakeup and the value is only used in /proc/acpi display. We can
    store the time in us and convert it into pm ticks before printing instead and
    avoid the conversion in the common path.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Len Brown

    Venkatesh Pallipadi
     
  • The C-state idle time is not calculated correctly, which will return the wrong
    residency time in C-state. It will have the following effects:
    1. The system can't choose the deeper C-state when it is idle next time.
    Of course the system power is increased. E.g. On one server machine about 40W
    idle power is increased.
    2. The powertop shows that it will stay in C0 running state about 95% time
    although the system is idle at most time.

    2.6.35-rc1 regression caused-by: 2da513f582a96c053aacc2c92873978d2ea7abff
    (ACPI: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion)

    Signed-off-by: Zhao Yakui
    Reported-by: Yu Zhidong
    Tested-by: Yu Zhidong
    Acked-by: Venkatesh Pallipadi
    Signed-off-by: Len Brown

    Zhao Yakui
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda-intel - fix wallclk variable update and condition
    ALSA: asihpi - Fix uninitialized variable
    ALSA: hda: Use LPIB for ASUS M2V
    usb/gadget: Replace the old USB audio FU definitions in f_audio.c
    ASoC: MX31ads sound support should depend on MACH_MX31ADS_WM1133_EV1
    ASoC: Add missing Kconfig entry for Phytec boards
    ALSA: usb-audio: export UAC2 clock selectors as mixer controls
    ALSA: usb-audio: clean up find_audio_control_unit()
    ALSA: usb-audio: add UAC2 sepecific Feature Unit controls
    ALSA: usb-audio: unify constants from specification
    ALSA: usb-audio: parse clock topology of UAC2 devices
    ALSA: usb-audio: fix selector unit string index accessor
    include/linux/usb/audio-v2.h: add more UAC2 details
    ALSA: usb-audio: support partially write-protected UAC2 controls
    ALSA: usb-audio: UAC2: clean up parsing of bmaControls
    ALSA: hda: Use LPIB for another mainboard
    ALSA: hda: Use mb31 quirk for an iMac model
    ALSA: hda: Use LPIB for an ASUS device

    Linus Torvalds
     

04 Jun, 2010

9 commits


03 Jun, 2010

22 commits

  • Frederic reported that because swevents handling doesn't disable IRQs
    anymore, we can get a recursion of perf_adjust_period(), once from
    overflow handling and once from the tick.

    If both call ->disable, we get a double hlist_del_rcu() and trigger
    a LIST_POISON2 dereference.

    Since we don't actually need to stop/start a swevent to re-programm
    the hardware (lack of hardware to program), simply nop out these
    callbacks for the swevent pmu.

    Reported-by: Frederic Weisbecker
    Signed-off-by: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    cifs: fix page refcount leak

    Linus Torvalds
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (41 commits)
    drm/radeon/kms: make sure display hw is disabled when suspending
    drm/vmwgfx: Allow userspace to change default layout. Bump minor.
    drm/vmwgfx: Fix framebuffer modesetting
    drm/vmwgfx: Fix vga save / restore with display topology.
    vgaarb: use MIT license
    vgaarb: convert pr_devel() to pr_debug()
    drm: fix typos in Linux DRM Developer's Guide
    drm/radeon/kms/pm: voltage fixes
    drm/radeon/kms/pm: radeon_set_power_state fixes
    drm/radeon/kms/pm: patch default power state with default clocks/voltages on r6xx+
    drm/radeon/kms/pm: enable SetVoltage on r7xx/evergreen
    drm/radeon/kms/pm: add support for SetVoltage cmd table (V2)
    drm/radeon/kms/evergreen: add initial CS parser
    drm/kms: disable/enable poll around switcheroo on/off
    drm/nouveau: fixup confusion over which handle the DSM is hanging off.
    drm/nouveau: attempt to get bios from ACPI v3
    drm/nv50: cast IGP memory location to u64 before shifting
    drm/ttm: Fix ttm_page_alloc.c
    drm/ttm: Fix cached TTM page allocation.
    drm/vmwgfx: Remove some leftover debug messages.
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.secretlab.ca/git/linux-2.6:
    of/powerpc: fix fsl_msi device node pointer
    of/watchdog: gef_wdt.c: fix build breakage
    of/edac: fix build breakage in drivers
    of/net: fs_enet/mii-bitbang.c: fix build breakage
    of/usb: fsl_qe_udc.c: fix build breakage
    of/crypto: crypto4xx_core.c: fix build breakage
    of/dma: fix build breakage in ppc4xx adma driver
    of/mtd: nand: fix build breakage in drivers
    of/video: fix build breakage in FB drivers
    of/pcmcia: m8xx_pcmcia.c: Fix build failures
    of/rtc: rtc-mpc5121.c: Fix build failures
    of/dma: mpc512x_dma.c: Fix build failures
    of/mtd/nand: mpc5121_nfc.c: Fix build failures
    of/spi: mpc512x_psc_spi.c: Fix build failures
    watchdog: Fix build failure with OF changes
    of/spi: Fix build failure on spi_ppc4xx.c
    of/usb: fix build error due to of_node pointer move
    of/powerpc: fix 85xx RapidIO device node pointer

    Linus Torvalds
     
  • When a program that has a virtio port opened and blocked for a write
    operation, a port hot-unplug event will later led to a crash when
    SIGTERM was sent to the program. Fix that.

    Signed-off-by: Amit Shah
    Signed-off-by: Rusty Russell

    Amit Shah
     
  • When removing a port we don't check if a program was blocked for read.
    This leads to a crash when SIGTERM is sent to the program after
    hot-unplugging the port.

    Signed-off-by: Amit Shah
    Signed-off-by: Rusty Russell

    Amit Shah
     
  • We need at least one S/G element to operate properly, as does the block
    layer which increments it to one anyway. We hit this due to a qemu
    bug which advertises a sg_elements of 0 under some circumstances.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Rusty Russell (tweaked logic)

    Christoph Hellwig
     
  • I2C drivers can use the clientdata-pointer to point to private data. As I2C
    devices are not really unregistered, but merely detached from their driver, it
    used to be the drivers obligation to clear this pointer during remove() or a
    failed probe(). As a couple of drivers forgot to do this, it was agreed that it
    was cleaner if the i2c-core does this clearance when appropriate, as there is
    no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
    This feature was added to the core with commit
    e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.

    As there is no need anymore to clear the clientdata-pointer, remove all current
    occurrences in the drivers to simplify the code and prevent confusion.

    Signed-off-by: Wolfram Sang
    Acked-by: Mark Brown
    Acked-by: Greg Kroah-Hartman
    Acked-by: Richard Purdie
    Acked-by: Dmitry Torokhov
    Signed-off-by: Jean Delvare

    Wolfram Sang
     
  • And fix a typo while we are here

    Signed-off-by: Wolfram Sang
    Signed-off-by: Jean Delvare

    Wolfram Sang
     
  • Otherwise it's not clear what it is checking.

    Also move the function to save a forward declaration.

    Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Move strict I2C address validity check to a single function, and
    document the reserved I2C addresses there.

    Signed-off-by: Jean Delvare
    Cc: Hans Verkuil

    Jean Delvare
     
  • Do basic address validity checks when a client is being registered. We
    already had checks in place for devices which are being detected, but
    not for devices which are simply instantiated.

    This is a very basic check. We don't want to do strict checking here
    because some devices are known to infringe the I2C address constraints
    (e.g. IR receivers at 7-bit address 0x7a while this value is
    supposedly reserved for 10-bit addresses.) So we assume the caller
    knows what it is doing.

    Signed-off-by: Jean Delvare
    Cc: Matthieu Castet

    Jean Delvare
     
  • Use the same I2C device presence detection code for legacy and new
    device detection functions. This is more consistent and makes the code
    smaller.

    Signed-off-by: Jean Delvare
    Cc: Matthieu Castet

    Jean Delvare
     
  • Remove all trailing whitespace in Documentation/i2c.

    Signed-off-by: Andrea Gelmini
    Signed-off-by: Jean Delvare

    Andrea Gelmini
     
  • Since the device we are resuming could be the device containing the
    swap device we should ensure that the allocation cannot cause
    IO.

    On resume, this path is triggered when the running system tries to
    continue using its devices. If it cannot then the resume will fail;
    to try to avoid this we let it dip into the emergency pools.

    The majority of these changes were made when linux-2.6.18-xen.hg
    changeset e8b49cfbdac0 was ported upstream in
    a144ff09bc52ef3f3684ed23eadc9c7c0e57b3aa but somehow this hunk was
    dropped.

    Signed-off-by: Ian Campbell
    Acked-by: Jeremy Fitzhardinge
    Cc: Stable Kernel # .32.x

    Ian Campbell
     
  • The core suspend/resume code is run from stop_machine on CPU0 but
    parts of the suspend/resume machinery (including xen_arch_resume) are
    run on whichever CPU happened to schedule the xenwatch kernel thread.

    As part of the non-core resume code xen_arch_resume is called in order
    to restart the timer tick on non-boot processors. The boot processor
    itself is taken care of by core timekeeping code.

    xen_arch_resume uses smp_call_function which does not call the given
    function on the current processor. This means that we can end up with
    one CPU not receiving timer ticks if the xenwatch thread happened to
    be scheduled on CPU > 0.

    Use on_each_cpu instead of smp_call_function to ensure the timer tick
    is resumed everywhere.

    Signed-off-by: Ian Campbell
    Acked-by: Jeremy Fitzhardinge
    Cc: Stable Kernel # .32.x

    Ian Campbell
     
  • Fixes build error caused by the OF device_node
    pointer being moved into struct device

    Signed-off-by: Anatolij Gustschin
    Signed-off-by: Herbert Xu

    Anatolij Gustschin
     
  • Signed-off-by: Wolfram Sang
    Signed-off-by: Grant Likely

    Wolfram Sang
     
  • Disable the display hw when suspending.
    Should fix bug:
    https://bugzilla.redhat.com/show_bug.cgi?id=522393

    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • The host may change the layout and, since the change is
    communicated to the master, the master needs a way to
    communicate the change to the kernel driver.

    The minor version number is bumped to advertize the
    availability of this feature.

    Signed-off-by: Jakob Bornecrantz
    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Jakob Bornecrantz
     
  • Must set SVGA_NUM_REG_GUEST_DISPLAY before setting up the display information.

    Signed-off-by: Jakob Bornecrantz
    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Jakob Bornecrantz
     
  • vga save / restore previously didn't handle the display topology case.

    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Thomas Hellstrom