15 Nov, 2008

1 commit


13 Nov, 2008

2 commits

  • This patch fixes tty compile warnings as sugested by Alan Cox:

    CC drivers/char/n_tty.o
    drivers/char/n_tty.c: In function ‘normal_poll’:
    drivers/char/n_tty.c:1555: warning: array subscript is above array bounds
    drivers/char/n_tty.c:1564: warning: array subscript is above array bounds
    drivers/char/n_tty.c: In function ‘read_chan’:
    drivers/char/n_tty.c:1269: warning: array subscript is above array bounds
    CC drivers/char/tty_ioctl.o
    drivers/char/tty_ioctl.c: In function ‘set_termios’:
    drivers/char/tty_ioctl.c:533: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:537: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c: In function ‘tty_mode_ioctl’:
    drivers/char/tty_ioctl.c:662: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:892: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:896: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:577: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:928: warning: array subscript is above array
    bounds
    drivers/char/tty_ioctl.c:934: warning: array subscript is above array
    bounds

    Signed-off-by: Robert Reif
    Signed-off-by: David S. Miller

    Robert Reif
     
  • Acked-by: Greg Kroah-Hartman
    Signed-off-by: Kay Sievers
    Signed-off-by: David S. Miller

    Kay Sievers
     

11 Nov, 2008

6 commits

  • Signed-off-by: David S. Miller

    David S. Miller
     
  • This reverts commit 8dd9453737822469837d48d5da3785ce70fb2118.

    This fixes a boot failure reported by Robert Reif.

    The code above the section change expects to fallthrough, so
    we can't make such a section change here.

    David S. Miller
     
  • * '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
     
  • Added a QUIRK to patch_analog.c for the HP Elitebook 8530p
    (IDs 0x103c:0x30e7) to use AD1884A model 'laptop' by default.
    Playback and Capture confirmed working.

    Signed-off-by: Travis Place
    Signed-off-by: Takashi Iwai

    Travis Place
     
  • 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

13 commits

  • gusextreme depends on opl3 support. Add the approriate select to Kconfig.
    Also remove the unnecessary hwdep select.

    Relevant build errors:
    ERROR: "snd_opl3_hwdep_new" [sound/isa/gus/snd-gusextreme.ko] undefined!
    ERROR: "snd_opl3_create" [sound/isa/gus/snd-gusextreme.ko] undefined!

    Signed-off-by: Ville Syrjala
    Signed-off-by: Takashi Iwai

    Ville Syrjala
     
  • Linus Torvalds
     
  • It's showing up as regressions; disabling it very likely just papers
    over an underlying issue, but time is running out for 2.6.28, lets get
    back to this for 2.6.29

    Fixes: #11826 and #11893

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
    kbuild: Fixup deb-pkg target to generate separate firmware deb

    Linus Torvalds
     
  • The below is a simplistic fix for "make deb-pkg"; it splits the
    firmware out to a linux-firmware-image package and adds an
    (unversioned) Suggests to the linux package for this firmware.

    Signed-Off-By: Jonathan McDowell
    Acked-by: Frans Pop
    Signed-off-by: Sam Ravnborg

    Jonathan McDowell
     
  • The "Exclude staging drivers" question is there so that we don't build
    staging drivers for allyesconfig or allnoconfig settings, but it's very
    irritating when you've already said "no" to staging drivers earlier.

    There is absolutely no point in declining twice - once you've declined
    the staging drivers, you're done.

    So make the second question depend on the first question having been
    answered in the affirmative.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'for-2.6.28' of git://linux-nfs.org/~bfields/linux:
    Fix nfsd truncation of readdir results

    Linus Torvalds
     
  • * '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
     
  • Commit 8d7c4203 "nfsd: fix failure to set eof in readdir in some
    situations" introduced a bug: on a directory in an exported ext3
    filesystem with dir_index unset, a READDIR will only return about 250
    entries, even if the directory was larger.

    Bisected it back to this commit; reverting it fixes the problem.

    It turns out that in this case ext3 reads a block at a time, then
    returns from readdir, which means we can end up with buf.full==0 but
    with more entries in the directory still to be read. Before 8d7c4203
    (but after c002a6c797 "Optimise NFS readdir hack slightly"), this would
    cause us to return the READDIR result immediately, but with the eof bit
    unset. That could cause a performance regression (because the client
    would need more roundtrips to the server to read the whole directory),
    but no loss in correctness, since the cleared eof bit caused the client
    to send another readdir. After 8d7c4203, the setting of the eof bit
    made this a correctness problem.

    So, move nfserr_eof into the loop and remove the buf.full check so that
    we loop until buf.used==0. The following seems to do the right thing
    and reduces the network traffic since we don't return a READDIR result
    until the buffer is full.

    Tested on an empty directory & large directory; eof is properly sent and
    there are no more short buffers.

    Signed-off-by: Doug Nazar
    Cc: David Woodhouse
    Cc: Al Viro
    Signed-off-by: J. Bruce Fields

    Doug Nazar
     
  • 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
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    mmc: struct device - replace bus_id with dev_name(), dev_set_name()
    mmc: increase SD write timeout for crappy cards

    Linus Torvalds
     

09 Nov, 2008

11 commits


08 Nov, 2008

7 commits

  • in scheduler-intense workloads native_read_tsc() overhead accounts for
    20% of the system overhead:

    659567 system_call 41222.9375
    686796 schedule 435.7843
    718382 __switch_to 665.1685
    823875 switch_mm 4526.7857
    1883122 native_read_tsc 55385.9412
    9761990 total 2.8468

    this is large part due to the rdtsc_barrier() that is done before
    and after reading the TSC.

    But sched_clock() is not a precise clock in the GTOD sense, using such
    barriers is completely pointless. So remove the barriers and only use
    them in vget_cycles().

    This improves lat_ctx performance by about 5%.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Thanks to Randy Dunlap for finding this problem.

    Reported-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This Kconfig change allows the common 'make allmodconfig' and
    'make allyesconfig' build options to skip the staging tree, which is
    probably what you want to have happen anyway.

    This makes the linux-next developer's life a lot easier so he doesn't
    have to worry about changes that break the staging tree, that's for me
    to worry about...

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • …/rric/oprofile into x86/urgent

    Ingo Molnar
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] Reserve elfcorehdr memory in CONFIG_CRASH_DUMP
    [IA64] fix boot panic caused by offline CPUs
    [IA64] reorder Kconfig options to match x86
    [IA64] Build VT-D iommu support into generic kernel
    [IA64] remove dead BIO_VMERGE_BOUNDARY definition
    [IA64] remove duplicated #include from pci-dma.c
    [IA64] use common header for software IO/TLB
    [IA64] fix the difference between node_mem_map and node_start_pfn
    [IA64] Add error_recovery_info field to SAL section header
    [IA64] Add UV watchlist support.
    [IA64] Simplify SGI uv vs. sn2 driver issues

    Linus Torvalds
     
  • IA64 kdump kernel failed to initialize /proc/vmcore in 2.6.28-rc2.
    A bug was introduced in this patch commit:

    d9a9855d0b06ca6d6cc92596fedcc03f8512e062
    always reserve elfcore header memory in crash kernel

    The problem was that the call to reserve_elfcorehdr() should be placed
    in CONFIG_CRASH_DUMP rather than in CONFIG_CRASH_KERNEL, which does
    not exist.

    Signed-off-by: Jay Lan
    Acked-by: Simon Hormon
    Signed-off-by: Tony Luck

    Jay Lan
     
  • * '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