09 Jul, 2010

3 commits


08 Jul, 2010

22 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
    ALSA: usb-audio - Add volume resolution quirk for some Logitech webcams
    ALSA: hda - Add Macbook 5,2 quirk
    ALSA: hda - Fix uninitialized variable

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    writeback: simplify the write back thread queue
    writeback: split writeback_inodes_wb
    writeback: remove writeback_inodes_wbc
    fs-writeback: fix kernel-doc warnings
    splice: check f_mode for seekable file
    splice: direct_splice_actor() should not use pos in sd

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc: Fix userspace build of ptrace.h
    powerpc: Fix default_machine_crash_shutdown #ifdef botch
    powerpc: Fix logic error in fixup_irqs
    powerpc/iseries: Fix possible null pointer dereference in iSeries_pcibios_fixup_resources
    powerpc: Linux cannot run with 0 cores
    powerpc: Fix feature-fixup tests for gcc 4.5
    powerpc: Disable SPARSE_IRQ by default
    powerpc: Fix compile errors in prom_init_check for gcc 4.5
    powerpc: Fix module building for gcc 4.5 and 64 bit
    powerpc/perf_event: Fix for power_pmu_disable()

    Linus Torvalds
     
  • …git/kgene/linux-samsung

    * 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: SAMSUNG: Fix on wrong function name for S5PV210 sdhci0
    ARM: S5P6442: Fix PLL setting announce message.
    ARM: SAMSUNG: Fix build without SDHCI controllers for S3C64XX
    ARM: S5PV210: Correct clock register properties
    ARM: S5P: Bug fix on external interrupt for S5P SoCs

    Linus Torvalds
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • Build of ptrace.h failed for assembly because it
    pulls in stdint.h.
    Use exportable types (__u32, __u64) to avoid the dependency
    on stdint.h.

    Signed-off-by: Sam Ravnborg
    Cc: Andrey Volkov
    Cc: Dave Kleikamp
    Cc: Benjamin Herrenschmidt
    Acked-by: Dave Kleikamp
    Signed-off-by: Benjamin Herrenschmidt

    Sam Ravnborg
     
  • crash_kexec_wait_realmode() is defined only if CONFIG_PPC_STD_MMU_64
    and CONFIG_SMP, but is called if CONFIG_PPC_STD_MMU_64 even if !CONFIG_SMP.
    Fix the conditional compilation around the invocation.

    Signed-off-by: Paul E. McKenney
    Acked-by: Michael Neuling
    Signed-off-by: Benjamin Herrenschmidt

    Paul E. McKenney
     
  • When SPARSE_IRQ is set, irq_to_desc() can
    return NULL. While the code here has a
    check for NULL, it's not really correct.
    Fix it by separating the check for it.

    This fixes CPU hot unplug for me.

    Reported-by: Alastair Bridgewater
    Cc: stable@kernel.org [2.6.32+]
    Signed-off-by: Johannes Berg
    Signed-off-by: Benjamin Herrenschmidt

    Johannes Berg
     
  • I don't know if this is a right fix for the problem
    since of_get_property can return NULL.
    Since iseries_device_information is used only for informational purpose,
    we can skip this function without valid HvSubBusNumber number.

    Signed-off-by: Denis Kirjanov
    Signed-off-by: Benjamin Herrenschmidt

    Denis Kirjanov
     
  • If we configure with CONFIG_SMP=n or set NR_CPUS less than the number of
    SMT threads we will set the max cores property to 0 in the
    ibm,client-architecture-support structure. On new versions of firmware that
    understand this property it obliges and terminates our partition.

    Use DIV_ROUND_UP so we handle not only the CONFIG_SMP=n case but also the
    case where NR_CPUS isn't a multiple of the number of SMT threads.

    Signed-off-by: Anton Blanchard
    Acked-by: Paul E. McKenney
    Signed-off-by: Benjamin Herrenschmidt

    Anton Blanchard
     
  • The feature-fixup test declare some extern void variables and then take
    their addresses. Fix this by declaring them as extern u8 instead.

    Fixes these warnings (treated as errors):

    CC arch/powerpc/lib/feature-fixups.o
    cc1: warnings being treated as errors
    arch/powerpc/lib/feature-fixups.c: In function 'test_cpu_macros':
    arch/powerpc/lib/feature-fixups.c:293:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:294:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c: In function 'test_fw_macros':
    arch/powerpc/lib/feature-fixups.c:306:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:307:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c: In function 'test_lwsync_macros':
    arch/powerpc/lib/feature-fixups.c:321:23: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:322:9: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
    arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • The SPARSE_IRQ considerably adds overhead to critical path of IRQ
    handling. However it doesn't benefit much in space for most systems with
    limited IRQ_NR. Should be disabled unless really necessary.

    Signed-off-by: Li Yang
    Signed-off-by: Benjamin Herrenschmidt

    Yang Li
     
  • Just whitelist these extra compiler generated symbols.
    Fixes these errors:

    Error: External symbol '_restgpr0_14' referenced from prom_init.c
    Error: External symbol '_restgpr0_20' referenced from prom_init.c
    Error: External symbol '_restgpr0_22' referenced from prom_init.c
    Error: External symbol '_restgpr0_24' referenced from prom_init.c
    Error: External symbol '_restgpr0_25' referenced from prom_init.c
    Error: External symbol '_restgpr0_26' referenced from prom_init.c
    Error: External symbol '_restgpr0_27' referenced from prom_init.c
    Error: External symbol '_restgpr0_28' referenced from prom_init.c
    Error: External symbol '_restgpr0_29' referenced from prom_init.c
    Error: External symbol '_restgpr0_31' referenced from prom_init.c
    Error: External symbol '_savegpr0_14' referenced from prom_init.c
    Error: External symbol '_savegpr0_20' referenced from prom_init.c
    Error: External symbol '_savegpr0_22' referenced from prom_init.c
    Error: External symbol '_savegpr0_24' referenced from prom_init.c
    Error: External symbol '_savegpr0_25' referenced from prom_init.c
    Error: External symbol '_savegpr0_26' referenced from prom_init.c
    Error: External symbol '_savegpr0_27' referenced from prom_init.c
    Error: External symbol '_savegpr0_28' referenced from prom_init.c
    Error: External symbol '_savegpr0_29' referenced from prom_init.c
    Error: External symbol '_savegpr0_31' referenced from prom_init.c

    Signed-off-by: Stephen Rothwell
    Acked-by: Segher Boessenkool
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • Gcc 4.5 is now generating out of line register save and restore
    in the function prefix and postfix when we use -Os.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Benjamin Herrenschmidt

    Stephen Rothwell
     
  • When power_pmu_disable() removes the given event from a particular index into
    cpuhw->event[], it shuffles down higher event[] entries. But, this array is
    paired with cpuhw->events[] and cpuhw->flags[] so should shuffle them
    similarly.

    If these arrays get out of sync, code such as power_check_constraints() will
    fail. This caused a bug where events were temporarily disabled and then failed
    to be re-enabled; subsequent code tried to write_pmc() with its (disabled) idx
    of 0, causing a message "oops trying to write PMC0". This triggers this bug on
    POWER7, running a miss-heavy test:

    perf record -e L1-dcache-load-misses -e L1-dcache-store-misses ./misstest

    Signed-off-by: Matt Evans
    Acked-by: Paul Mackerras
    Signed-off-by: Benjamin Herrenschmidt

    Matt Evans
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (35 commits)
    NET: SB1250: Initialize .owner
    vxge: show startup message with KERN_INFO
    ll_temac: Fix missing iounmaps
    bridge: Clear IPCB before possible entry into IP stack
    bridge br_multicast: BUG: unable to handle kernel NULL pointer dereference
    net: Fix definition of netif_vdbg() when VERBOSE_DEBUG is defined
    net/ne: fix memory leak in ne_drv_probe()
    xfrm: fix xfrm by MARK logic
    virtio_net: fix oom handling on tx
    virtio_net: do not reschedule rx refill forever
    s2io: resolve statistics issues
    linux/net.h: fix kernel-doc warnings
    net: decreasing real_num_tx_queues needs to flush qdisc
    sched: qdisc_reset_all_tx is calling qdisc_reset without qdisc_lock
    qlge: fix a eeh handler to not add a pending timer
    qlge: Replacing add_timer() to mod_timer()
    usbnet: Set parent device early for netdev_printk()
    net: Revert "rndis_host: Poll status channel before control channel"
    netfilter: ip6t_REJECT: fix a dst leak in ipv6 REJECT
    drivers: bluetooth: bluecard_cs.c: Fixed include error, changed to linux/io.h
    ...

    Linus Torvalds
     
  • Signed-off-by: Ralf Baechle

    drivers/net/sb1250-mac.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)
    Signed-off-by: David S. Miller

    Ralf Baechle
     
  • The original KERN_CRIT will mess up terminals.

    CC: Sreenivasa Honnur
    Signed-off-by: Wu Fengguang
    Signed-off-by: David S. Miller

    Wu Fengguang
     
  • Fix missing iounmaps.

    Signed-off-by: Denis Kirjanov
    Signed-off-by: David S. Miller

    Denis Kirjanov
     
  • The bridge protocol lives dangerously by having incestuous relations
    with the IP stack. In this instance an abomination has been created
    where a bogus IPCB area from a bridged packet leads to a crash in
    the IP stack because it's interpreted as IP options.

    This patch papers over the problem by clearing the IPCB area in that
    particular spot. To fix this properly we'd also need to parse any
    IP options if present but I'm way too lazy for that.

    Signed-off-by: Herbert Xu

    Cheers,
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm: correctly update connector DPMS status in drm_fb_helper
    drm/radeon/kms: fix shared ddc handling
    drm/ttm: Allocate the page pool manager in the heap.

    Linus Torvalds
     

07 Jul, 2010

15 commits

  • We don't currently update the DPMS status of the connector (both in the
    connector itself and the connector's DPMS property) in the fb helper
    code. This means that if the kernel FB core has blanked the screen,
    sysfs will still show a DPMS status of "on". It also means that when X
    starts, it will try to light up the connectors, but the drm_crtc_helper
    code will ignore the DPMS change since according to the connector, the
    DPMS status is already on.

    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28436 (the annoying
    "my screen was blanked when I started X and now it won't light up" bug).

    Signed-off-by: Jesse Barnes
    Signed-off-by: Dave Airlie

    Jesse Barnes
     
  • Connectors with a shared ddc line can be connected to different
    encoders.

    Reported by Pasi Kärkkäinen on dri-devel

    Signed-off-by: Alex Deucher
    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie

    Alex Deucher
     
  • Repeated ttm_page_alloc_init/fini fails noisily because the pool
    manager kobj isn't zeroed out between uses (we could do just that but
    statically allocated kobjects are generally considered a bad thing).
    Move it to kzalloc'ed memory.

    Note that this patch drops the refcounting behavior of the pool
    allocator init/fini functions: it would have led to a race condition
    in its current form, and anyway it was never exploited.

    This fixes a regression with reloading kms modules at runtime, since
    page allocator was introduced.

    Signed-off-by: Francisco Jerez
    Signed-off-by: Dave Airlie

    Francisco Jerez
     
  • This patch introduces 3 VFS accessors: 'sb_mark_dirty()',
    'sb_mark_clean()', and 'sb_is_dirty()'. They simply
    set 'sb->s_dirt' or test 'sb->s_dirt'. The plan is to make
    every FS use these accessors later instead of manipulating
    the 'sb->s_dirt' flag directly.

    Ultimately, this change is a preparation for the periodic
    superblock synchronization optimization which is about
    preventing the "sync_supers" kernel thread from waking up
    even if there is nothing to synchronize.

    This patch does not do any functional change, just adds
    accessor functions.

    Signed-off-by: Artem Bityutskiy
    Signed-off-by: Linus Torvalds

    Artem Bityutskiy
     
  • …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:
    rbtree: Undo augmented trees performance damage and regression
    x86, Calgary: Limit the max PHB number to 256

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
    ceph: fix crush device 'out' threshold to 1.0, not 0.1
    ceph: fix caps usage accounting for import (non-reserved) case
    ceph: only release clean, unused caps with mds requests
    ceph: fix crush CHOOSE_LEAF when type is already a leaf
    ceph: fix crush recursion
    ceph: fix caps debugfs entry
    ceph: delay umount until all mds requests drop inode+dentry refs
    ceph: handle splice_dentry/d_materialize_unique error in readdir_prepopulate
    ceph: fix crush map update decoding
    ceph: fix message memory leak, uninitialized variable
    ceph: fix map handler error path
    ceph: some endianity fixes

    Linus Torvalds
     
  • * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: do not initialize the present flag too late.

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (22 commits)
    MIPS: Return after handling coprocessor 2 exception
    MIPS: BCM47xx: Add NVRAM support devices
    MIPS: Loongson: Define rtc device on MC146818-equipped systems
    MIPS: MT: Fix FPU affinity.
    MIPS: Oprofile: Fixup of loongson2_exit()
    MIPS: Alchemy: sleepcode without compile-time cputype dependencies
    MIPS: Tracing: Cleanup of address space checking
    MIPS: Tracing: Cleanup of function graph tracer
    MIPS: Tracing: Reduce the overhead of dynamic Function Tracer
    MIPS: Tracing: Cleanup of instructions used
    MIPS: Tracing: Fix 32-bit support with -mmcount-ra-address
    MIPS: Tracing: Fix argument passing of the 32bit support with gcc 4.5
    MIPS: Tracing: Cleanup comments
    MIPS: Tracing: Cleanup the arguments passing of prepare_ftrace_return
    MIPS: Tracing: Merge adjacent #ifdefs with same condition.
    MIPS: AR7, BCM63xx: fix gpio_to_irq() return value
    MIPS: Restore signalling NaN behaviour for abs.[sd]
    MIPS: Loongson: CS5536: Fix ISA support
    MIPS: Loongson: Add a missing break statement in CS5536 IDE code
    MIPS: Loongson: CS5536: Add missing RDMSRs for IDE and USB
    ...

    Linus Torvalds
     
  • Commit 0a564b2 broke LOCALVERSION for O=... builds. Ouch.

    Reported-by: Stephen Rothwell
    Reported-and-tested-by: Rafael J. Wysocki
    Reported-by: Peter Anvin
    Signed-off-by: Michal Marek
    Signed-off-by: Linus Torvalds

    Michal Marek
     
  • Sumeet Lahorani reported that the IPoIB
    child entries are world-writable; however we don't want ordinary users
    to be able to create and destroy child interfaces, so fix them to be
    writable only by root.

    Signed-off-by: Or Gerlitz
    Cc:
    Signed-off-by: Roland Dreier

    Or Gerlitz
     
  • If qib_init() fails, the driver fails to free memory, unregister
    device files, and unregister with the PCIe framework. The driver will
    unload without error but a subsequent driver load will cause the
    system to panic. This was found by changing the 7220 code to load the
    serdes microcode separately and not installing the microcode file.

    Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell
     
  • Workqueues aren't exactly equivalent to tasklets since the callback
    function may be called from multiple CPUs before the callback returns.
    This causes completion notification callbacks to have MT bugs since
    they weren't expecting this behavior. The fix is to use a single
    threaded work queue.

    Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell
     
  • Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell
     
  • The hardware error register needs to be cleared or another interrupt
    will be generated, thus causing an infinite loop. This is a
    regression introduced when removing debug output.

    Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell
     
  • The eager buffers are not being cleared before being mmapped into a
    new user address space. This is a potential security risk and should
    be fixed. Note that the eager header queue is already being cleared.

    Signed-off-by: Ralph Campbell
    Signed-off-by: Roland Dreier

    Ralph Campbell