23 Jul, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (37 commits)
    sky2: Avoid races in sky2_down
    drivers/net/mlx4: Adjust constant
    drivers/net: Move a dereference below a NULL test
    drivers/net: Move a dereference below a NULL test
    connector: maintainer/mail update.
    USB host CDC Phonet network interface driver
    macsonic, jazzsonic: fix oops on module unload
    macsonic: move probe function to .devinit.text
    can: switch carrier on if device was stopped while in bus-off state
    can: restart device even if dev_alloc_skb() fails
    can: sja1000: remove duplicated includes
    New device ID for sc92031 [1088:2031]
    3c589_cs: re-initialize the multicast in the tc589_reset
    Fix error return for setsockopt(SO_TIMESTAMPING)
    netxen: fix thermal check and shutdown
    netxen: fix deadlock on dev close
    netxen: fix context deletion sequence
    net: Micrel KS8851 SPI network driver
    tcp: Use correct peer adr when copying MD5 keys
    tcp: Fix MD5 signature checking on IPv4 mapped sockets
    ...

    Linus Torvalds
     

22 Jul, 2009

1 commit


18 Jul, 2009

1 commit


17 Jul, 2009

2 commits


16 Jul, 2009

1 commit

  • When a slab cache uses SLAB_DESTROY_BY_RCU, we must be careful when allocating
    objects, since slab allocator could give a freed object still used by lockless
    readers.

    In particular, nf_conntrack RCU lookups rely on ct->tuplehash[xxx].hnnode.next
    being always valid (ie containing a valid 'nulls' value, or a valid pointer to next
    object in hash chain.)

    kmem_cache_zalloc() setups object with NULL values, but a NULL value is not valid
    for ct->tuplehash[xxx].hnnode.next.

    Fix is to call kmem_cache_alloc() and do the zeroing ourself.

    As spotted by Patrick, we also need to make sure lookup keys are committed to
    memory before setting refcount to 1, or a lockless reader could get a reference
    on the old version of the object. Its key re-check could then pass the barrier.

    Signed-off-by: Eric Dumazet
    Signed-off-by: Patrick McHardy

    Eric Dumazet
     

13 Jul, 2009

1 commit


11 Jul, 2009

3 commits

  • exception.txt only explains the code on x86, so it's better to
    move it into Documentation/x86 directory.

    And also rename it to exception-tables.txt which looks much
    more reasonable.

    This patch is on top of the previous one.

    Signed-off-by: WANG Cong
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • Update Documentation/exception.txt.
    Remove trailing whitespaces in it.

    Signed-off-by: WANG Cong
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Amerigo Wang
     
  • …el/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    dma-debug: Fix the overlap() function to be correct and readable
    oprofile: reset bt_lost_no_mapping with other stats
    x86/oprofile: rename kernel parameter for architectural perfmon to arch_perfmon
    signals: declare sys_rt_tgsigqueueinfo in syscalls.h
    rcu: Mark Hierarchical RCU no longer experimental
    dma-debug: Put all hash-chain locks into the same lock class
    dma-debug: fix off-by-one error in overlap function

    Linus Torvalds
     

10 Jul, 2009

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (29 commits)
    cxgb3: Fix crash caused by stashing wrong netdev_queue
    ixgbe: Fix coexistence of FCoE and Flow Director in 82599
    memory barrier: adding smp_mb__after_lock
    net: adding memory barrier to the poll and receive callbacks
    netpoll: Fix carrier detection for drivers that are using phylib
    includecheck fix: include/linux, rfkill.h
    p54: tx refused but queue active
    Atheros Kconfig needs to be dependent on WLAN_80211
    mac80211: fix docbook
    mac80211_hwsim: avoid NULL access
    ssb: Add support for 4318E
    b43: Add support for 4318E
    zd1211rw: adding SONY IFU-WLM2 (054c:0257) as a zd1211b device
    zd1211rw: 07b8:6001 is a ZD1211B
    r6040: bump driver version to 0.24 and date to 08 July 2009
    r6040: restore MIER register correctly when IRQ line is shared
    ipv4: Fix fib_trie rebalancing, part 4 (root thresholds)
    davinci_emac: fix kernel oops when changing MAC address while interface is down
    igb: set lan id prior to configuring phy
    mac80211: minstrel: avoid accessing negative indices in rix_to_ndx()
    ...

    Linus Torvalds
     
  • The short name of the achitecture is 'arch_perfmon'. This patch
    changes the kernel parameter to use this name.

    Cc: Andi Kleen
    Signed-off-by: Robert Richter
    Signed-off-by: Ingo Molnar

    Robert Richter
     

09 Jul, 2009

1 commit


07 Jul, 2009

1 commit


06 Jul, 2009

3 commits

  • The extraction routine for the MPC718 "firmware" had 2 bugs in it, where one
    bug masked the effect of the other. The loop iteration should have set
    $prevlen = $currlen at the end of the loop, and the if() check should have used
    && instead of || for deciding if the firmware length is reasonable.

    Signed-off-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Andy Walls
     
  • This webcam uses a em2710 chipset, that identifies itself as em2820,
    plus a mt9v011 sensor, and a DY-301P lens.

    It needs a few different initializations than a normal em28xx device.

    Thanks to Hans de Goede and Douglas Landgraf
    for providing the acces for the webcam during
    this weekend, I could make a patch for it while returning back from
    FISL/Fudcom LATAM 2009.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Add routine to support extracting the MT352 DVB-T demodulator initialization
    sequence for Yuan MPC718 cards for use by the cx18 driver.

    This routine uses a hueristic for extracting a good sequence. It should work
    on all different versions of the "yuanrap.sys" file, given the way the MT352
    tuning sequences are stored in all versions of that file I have seen so far.
    However, the current patch simply looks for one specific archive URL.

    Signed-off-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Andy Walls
     

01 Jul, 2009

5 commits

  • Signed-off-by: Andre Noll
    Acked-by: Martin K. Petersen
    Signed-off-by: Jens Axboe

    Andre Noll
     
  • * 'kmemleak' of git://linux-arm.org/linux-2.6:
    kmemleak: Inform kmemleak about pid_hash
    kmemleak: Do not warn if an unknown object is freed
    kmemleak: Do not report new leaked objects if the scanning was stopped
    kmemleak: Slightly change the policy on newly allocated objects
    kmemleak: Do not trigger a scan when reading the debug/kmemleak file
    kmemleak: Simplify the reports logged by the scanning thread
    kmemleak: Enable task stacks scanning by default
    kmemleak: Allow the early log buffer to be configurable.

    Linus Torvalds
     
  • By writing a tasks's pid to the file, a process adds that task to that
    cgroup/cpuset. But to add a cpu/mem to a cpuset, the new list of cpus
    should be written to the cpuset.mems file which would replace the old list
    of cpus. Make this clearer in the documentation.

    Signed-off-by: Nikanth Karthikesan
    Signed-off-by: Li Zefan
    Acked-by: Paul Menage
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nikanth Karthikesan
     
  • Add two new spi_device.mode bits to accomodate more protocol options, and
    pass them through to usermode drivers:

    * SPI_NO_CS ... a second 3-wire variant, where the chipselect
    line is removed instead of a data line; transfers are still
    full duplex.

    This obviously has STRONG protocol implications since the
    chipselect transitions can't be used to synchronize state
    transitions with the SPI master.

    * SPI_READY ... defines open drain signal that's pulled low
    to pause the clock. This defines a 5-wire variant (normal
    4-wire SPI plus READY) and two 4-wire variants (READY plus
    each of the 3-wire flavors).

    Such hardware flow control can be a big win. There are ADC
    converters and flash chips that expose READY signals, but not
    many host controllers support it today.

    The spi_bitbang code should be changed to use SPI_NO_CS instead of its
    current nonportable hack. That's a mode most hardware can easily support
    (unlike SPI_READY).

    Signed-off-by: David Brownell
    Cc: "Paulraj, Sandeep"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Commonly available versions of cp and tar don't work well with special
    files created using seq_file. Mention this problem in the gcov
    documentation and update the helper script example to work around these
    problems.

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

    Peter Oberparleiter
     

30 Jun, 2009

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    sound: OSS: mpu401, fix deadlock
    ALSA: hda - Add missing initializations for ALC268 and ALC269
    ALSA: cmi8330: fix MPU-401 PnP init copy&paste bug
    ALSA: hda - Line In for Acer Inspire 6530G model
    sound: oxygen: make mic volume control mono
    MAINTAINERS: Add entry for twl4030 series soc codec driver
    ALSA: lx6464es - configure ethersound io channels
    sound: Use PCI_VDEVICE for CREATIVE and ECTIVA
    sound: Use PCI_VDEVICE
    ALSA: hda - Use model=acer-aspire-6530g for Acer Aspire 6930G
    ALSA: hda - Fix acer-aspire-6530g model quirk
    ALSA: hda - Add pin-sense trigger when needed for Realtek codecs
    ALSA: hda - Fix support for Samsung P50 with AD1986A codec
    ALSA: hda - Generalize the pin-detect quirk for Lenovo N100
    ALSA: hda - Simplify AD1986A mixer definitions

    Linus Torvalds
     
  • * fix/hda-samsung-p50:
    ALSA: hda - Fix support for Samsung P50 with AD1986A codec
    ALSA: hda - Generalize the pin-detect quirk for Lenovo N100
    ALSA: hda - Simplify AD1986A mixer definitions

    Takashi Iwai
     

29 Jun, 2009

3 commits

  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, delay: tsc based udelay should have rdtsc_barrier
    x86, setup: correct include file in <asm/boot.h>
    x86, setup: Fix typo "CONFIG_x86_64" in <asm/boot.h>
    x86, mce: percpu mcheck_timer should be pinned
    x86: Add sysctl to allow panic on IOCK NMI error
    x86: Fix uv bau sending buffer initialization
    x86, mce: Fix mce resume on 32bit
    x86: Move init_gbpages() to setup_arch()
    x86: ensure percpu lpage doesn't consume too much vmalloc space
    x86: implement percpu_alloc kernel parameter
    x86: fix pageattr handling for lpage percpu allocator and re-enable it
    x86: reorganize cpa_process_alias()
    x86: prepare setup_pcpu_lpage() for pageattr fix
    x86: rename remap percpu first chunk allocator to lpage
    x86: fix duplicate free in setup_pcpu_remap() failure path
    percpu: fix too lazy vunmap cache flushing
    x86: Set cpu_llc_id on AMD CPUs

    Linus Torvalds
     
  • …nel/git/tip/linux-2.6-tip

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    ftrace: Fix the output of profile
    ring-buffer: Make it generally available
    ftrace: Remove duplicate newline
    tracing: Fix trace_buf_size boot option
    ftrace: Fix t_hash_start()
    ftrace: Don't manipulate @pos in t_start()
    ftrace: Don't increment @pos in g_start()
    tracing: Reset iterator in t_start()
    trace_stat: Don't increment @pos in seq start()
    tracing_bprintk: Don't increment @pos in t_start()
    tracing/events: Don't increment @pos in s_start()

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
    leds: Futher document blink_set
    leds: Add options to have GPIO LEDs start on or keep their state
    leds: LED driver for National Semiconductor LP3944 Funlight Chip
    leds: pca9532 - Indent using tabs, not spaces.
    leds: Remove an orphan Kconfig entry
    leds: Further document parameters for blink_set()
    leds: alix-leds2 fixed for Award BIOS
    leds: leds-gpio - fix a section mismatch
    leds: add the sysfs interface into the leds-bd2802 driver for changing wave pattern and led current.
    leds: change the license information
    leds: fix led-bd2802 errors while resuming

    Linus Torvalds
     

27 Jun, 2009

3 commits


26 Jun, 2009

1 commit


25 Jun, 2009

4 commits

  • (feature suggested by Sergey Senozhatsky)

    Kmemleak needs to track all the memory allocations but some of these
    happen before kmemleak is initialised. These are stored in an internal
    buffer which may be exceeded in some kernel configurations. This patch
    adds a configuration option with a default value of 400 and also removes
    the stack dump when the early log buffer is exceeded.

    Signed-off-by: Catalin Marinas
    Acked-by: Sergey Senozhatsky

    Catalin Marinas
     
  • This reverts commit 9e9f46c44e487af0a82eb61b624553e2f7118f5b.

    Quoting from the commit message:

    "At this point, it seems to solve more problems than it causes, so let's
    try using it by default. It's an easy revert if it ends up causing
    trouble."

    And guess what? The _CRS code causes trouble.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm: (48 commits)
    dm mpath: change to be request based
    dm: disable interrupt when taking map_lock
    dm: do not set QUEUE_ORDERED_DRAIN if request based
    dm: enable request based option
    dm: prepare for request based option
    dm raid1: add userspace log
    dm: calculate queue limits during resume not load
    dm log: fix create_log_context to use logical_block_size of log device
    dm target:s introduce iterate devices fn
    dm table: establish queue limits by copying table limits
    dm table: replace struct io_restrictions with struct queue_limits
    dm table: validate device logical_block_size
    dm table: ensure targets are aligned to logical_block_size
    dm ioctl: support cookies for udev
    dm: sysfs add suspended attribute
    dm table: improve warning message when devices not freed before destruction
    dm mpath: add service time load balancer
    dm mpath: add queue length load balancer
    dm mpath: add start_io and nr_bytes to path selectors
    dm snapshot: use barrier when writing exception store
    ...

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (72 commits)
    asus-laptop: remove EXPERIMENTAL dependency
    asus-laptop: use pr_fmt and pr_
    eeepc-laptop: cpufv updates
    eeepc-laptop: sync eeepc-laptop with asus_acpi
    asus_acpi: Deprecate in favor of asus-laptop
    acpi4asus: update MAINTAINER and KConfig links
    asus-laptop: platform dev as parent for led and backlight
    eeepc-laptop: enable camera by default
    ACPI: Rename ACPI processor device bus ID
    acerhdf: Acer Aspire One fan control
    ACPI: video: DMI workaround broken Acer 7720 BIOS enabling display brightness
    ACPI: run ACPI device hot removal in kacpi_hotplug_wq
    ACPI: Add the reference count to avoid unloading ACPI video bus twice
    ACPI: DMI to disable Vista compatibility on some Sony laptops
    ACPI: fix a deadlock in hotplug case
    Show the physical device node of backlight class device.
    ACPI: pdc init related memory leak with physical CPU hotplug
    ACPI: pci_root: remove unused dev/fn information
    ACPI: pci_root: simplify list traversals
    ACPI: pci_root: use driver data rather than list lookup
    ...

    Linus Torvalds
     

24 Jun, 2009

5 commits

  • The rules for locking in many superblock operations has changed
    significantly, so update the documentation for it. Also correct some
    older updates and ommissions.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     
  • Samsung P50 requires the HP auto-muting unlike other Samsung models.
    Added a new model=samsung-p50 to support this.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • We should be able to specify [KMG] when setting trace_buf_size
    boot option, as documented in kernel-parameters.txt

    Signed-off-by: Li Zefan
    Cc: Steven Rostedt
    Cc: Frederic Weisbecker
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Li Zefan
     
  • …bugzilla-13121', 'bugzilla-13396', 'bugzilla-13533', 'bugzilla-13612', 'c3_lock', 'hid-cleanups', 'misc-2.6.31', 'pdc-leak-fix', 'pnpacpi', 'power_nocheck', 'thinkpad_acpi', 'video' and 'wmi' into release

    Len Brown
     
  • There already is a "default-on" trigger but there are problems with it.

    For one, it's a inefficient way to do it and requires led trigger support
    to be compiled in.

    But the real reason is that is produces a glitch on the LED. The GPIO is
    allocate with the LED *off*, then *later* when the trigger runs it is
    turned back on. If the LED was already on via the GPIO's reset default or
    action of the firmware, this produces a glitch where the LED goes from on
    to off to on. While normally this is fast enough that it wouldn't be
    noticeable to a human observer, there are still serious problems.

    One is that there may be something else on the GPIO line, like a hardware
    alarm or watchdog, that is fast enough to notice the glitch.

    Another is that the kernel may panic before the LED is turned back on, thus
    hanging with the LED in the wrong state. This is not just speculation, but
    actually happened to me with an embedded system that has an LED which
    should turn off when the kernel finishes booting, which was left in the
    incorrect state due to a bug in the OF LED binding code.

    We also let GPIO LEDs get their initial value from whatever the current
    state of the GPIO line is. On some systems the LEDs are put into some
    state by the firmware or hardware before Linux boots, and it is desired to
    have them keep this state which is otherwise unknown to Linux.

    This requires that the underlying GPIO driver support reading the value of
    output GPIOs. Some drivers support this and some do not.

    The platform device binding gains a field in the platform data
    "default_state" that controls this. There are three constants defined to
    select from on, off, or keeping the current state. The OpenFirmware
    binding uses a property named "default-state" that can be set to "on",
    "off", or "keep". The default if the property isn't present is off.

    Signed-off-by: Trent Piepho
    Acked-by: Grant Likely
    Acked-by: Wolfram Sang
    Acked-by: Sean MacLennan
    Signed-off-by: Richard Purdie

    Trent Piepho