12 Dec, 2009

13 commits

  • The simplest method was to add an extra asm-offsets.h
    file in arch/$ARCH/include/asm that references the generated file.

    We can now migrate the architectures one-by-one to reference
    the generated file direct - and when done we can delete the
    temporary arch/$ARCH/include/asm/asm-offsets.h file.

    Signed-off-by: Sam Ravnborg
    Cc: Al Viro
    Signed-off-by: Michal Marek

    Sam Ravnborg
     
  • …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/amd-iommu: Fix PCI hotplug with passthrough mode
    x86/amd-iommu: Fix passthrough mode
    x86: mmio-mod.c: Use pr_fmt
    x86: kmmio.c: Add and use pr_fmt(fmt)
    x86: i8254.c: Add pr_fmt(fmt)
    x86: setup_percpu.c: Use pr_<level> and add pr_fmt(fmt)
    x86: es7000_32.c: Use pr_<level> and add pr_fmt(fmt)
    x86: Print DMI_BOARD_NAME as well as DMI_PRODUCT_NAME from __show_regs()
    x86: Factor duplicated code out of __show_regs() into show_regs_common()
    arch/x86/kernel/microcode*: Use pr_fmt() and remove duplicated KERN_ERR prefix
    x86, mce: fix confusion between bank attributes and mce attributes
    x86/mce: Set up timer unconditionally
    x86: Fix bogus warning in apic_noop.apic_write()
    x86: Fix typo in arch/x86/mm/kmmio.c
    x86: ASUS P4S800 reboot=bios quirk

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

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (57 commits)
    x86, perf events: Check if we have APIC enabled
    perf_event: Fix variable initialization in other codepaths
    perf kmem: Fix unused argument build warning
    perf symbols: perf_header__read_build_ids() offset'n'size should be u64
    perf symbols: dsos__read_build_ids() should read both user and kernel buildids
    perf tools: Align long options which have no short forms
    perf kmem: Show usage if no option is specified
    sched: Mark sched_clock() as notrace
    perf sched: Add max delay time snapshot
    perf tools: Correct size given to memset
    perf_event: Fix perf_swevent_hrtimer() variable initialization
    perf sched: Fix for getting task's execution time
    tracing/kprobes: Fix field creation's bad error handling
    perf_event: Cleanup for cpu_clock_perf_event_update()
    perf_event: Allocate children's perf_event_ctxp at the right time
    perf_event: Clean up __perf_event_init_context()
    hw-breakpoints: Modify breakpoints without unregistering them
    perf probe: Update perf-probe document
    perf probe: Support --del option
    trace-kprobe: Support delete probe syntax
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://codeaurora.org/quic/kernel/dwalker/linux-msm:
    HTC Dream: mmc compilation fixes
    video: Allow selecting MSM framebuffer in Kconfig
    Add arm msm maintainer entry
    msm: Add memory map for HTC Dream
    msm: add minimal board file for HTC Dream device
    msm: make debugging UART (for DEBUG_LL) configurable

    Linus Torvalds
     
  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [ACPI/CPUFREQ] Introduce bios_limit per cpu cpufreq sysfs interface
    [CPUFREQ] make internal cpufreq_add_dev_* static
    [CPUFREQ] use an enum for speedstep processor identification
    [CPUFREQ] Document units for transition latency
    [CPUFREQ] Use global sysfs cpufreq structure for conservative governor tunings
    [CPUFREQ] Documentation: ABI: /sys/devices/system/cpu/cpu#/cpufreq/
    [CPUFREQ] powernow-k6: set transition latency value so ondemand governor can be used
    [CPUFREQ] cpumask: don't put a cpumask on the stack in x86...cpufreq/powernow-k8.c

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (58 commits)
    tty: split the lock up a bit further
    tty: Move the leader test in disassociate
    tty: Push the bkl down a bit in the hangup code
    tty: Push the lock down further into the ldisc code
    tty: push the BKL down into the handlers a bit
    tty: moxa: split open lock
    tty: moxa: Kill the use of lock_kernel
    tty: moxa: Fix modem op locking
    tty: moxa: Kill off the throttle method
    tty: moxa: Locking clean up
    tty: moxa: rework the locking a bit
    tty: moxa: Use more tty_port ops
    tty: isicom: fix deadlock on shutdown
    tty: mxser: Use the new locking rules to fix setserial properly
    tty: mxser: use the tty_port_open method
    tty: isicom: sort out the board init logic
    tty: isicom: switch to the new tty_port_open helper
    tty: tty_port: Add a kref object to the tty port
    tty: istallion: tty port open/close methods
    tty: stallion: Convert to the tty_port_open/close methods
    ...

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: (21 commits)
    ext3: PTR_ERR return of wrong pointer in setup_new_group_blocks()
    ext3: Fix data / filesystem corruption when write fails to copy data
    ext4: Support for 64-bit quota format
    ext3: Support for vfsv1 quota format
    quota: Implement quota format with 64-bit space and inode limits
    quota: Move definition of QFMT_OCFS2 to linux/quota.h
    ext2: fix comment in ext2_find_entry about return values
    ext3: Unify log messages in ext3
    ext2: clear uptodate flag on super block I/O error
    ext2: Unify log messages in ext2
    ext3: make "norecovery" an alias for "noload"
    ext3: Don't update the superblock in ext3_statfs()
    ext3: journal all modifications in ext3_xattr_set_handle
    ext2: Explicitly assign values to on-disk enum of filetypes
    quota: Fix WARN_ON in lookup_one_len
    const: struct quota_format_ops
    ubifs: remove manual O_SYNC handling
    afs: remove manual O_SYNC handling
    kill wait_on_page_writeback_range
    vfs: Implement proper O_SYNC semantics
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (122 commits)
    USB: mos7840: add device IDs for B&B electronics devices
    USB: ftdi_sio: add USB device ID's for B&B Electronics line
    USB: musb: musb_host: fix sparse warning
    USB: musb: musb_gadget: fix sparse warning
    USB: musb: omap2430: fix sparse warning
    USB: core: message: fix sparse warning
    USB: core: hub: fix sparse warning
    USB: core: fix sparse warning for static function
    USB: Added USB_ETH_RNDIS to use instead of CONFIG_USB_ETH_RNDIS
    USB: Check bandwidth when switching alt settings.
    USB: Refactor code to find alternate interface settings.
    USB: xhci: Fix command completion after a drop endpoint.
    USB: xhci: Make reverting an alt setting "unfailable".
    USB: usbtmc: Use usb_clear_halt() instead of custom code.
    USB: xhci: Add correct email and files to MAINTAINERS entry.
    USB: ehci-omap.c: introduce missing kfree
    USB: xhci-mem.c: introduce missing kfree
    USB: add remove_id sysfs attr for usb drivers
    USB: g_multi kconfig: fix depends and help text
    USB: option: add pid for ZTE
    ...

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb:
    kgdb: Always process the whole breakpoint list on activate or deactivate
    kgdb: continue and warn on signal passing from gdb
    kgdb,x86: do not set kgdb_single_step on x86
    kgdb: allow for cpu switch when single stepping
    kgdb,i386: Fix corner case access to ss with NMI watch dog exception
    kgdb: Replace strstr() by strchr() for single-character needles
    kgdbts: Read buffer overflow
    kgdb: Read buffer overflow
    kgdb,x86: remove redundant test

    Linus Torvalds
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Greg Kroah-Hartman

    Alexey Dobriyan
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/viro/mmap:
    Add missing alignment check in arch/score sys_mmap()
    fix broken aliasing checks for MAP_FIXED on sparc32, mips, arm and sh
    Get rid of open-coding in ia64_brk()
    sparc_brk() is not needed anymore
    switch do_brk() to get_unmapped_area()
    Take arch_mmap_check() into get_unmapped_area()
    fix a struct file leak in do_mmap_pgoff()
    Unify sys_mmap*
    Cut hugetlb case early for 32bit on ia64
    arch_mmap_check() on mn10300
    Kill ancient crap in s390 compat mmap
    arm: add arch_mmap_check(), get rid of sys_arm_mremap()
    file ->get_unmapped_area() shouldn't duplicate work of get_unmapped_area()
    kill useless checks in sparc mremap variants
    fix pgoff in "have to relocate" case of mremap()
    fix the arch checks in MREMAP_FIXED case
    fix checks for expand-in-place mremap
    do_mremap() untangling, part 3
    do_mremap() untangling, part 2
    untangling do_mremap(), part 1

    Linus Torvalds
     
  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (109 commits)
    PCI: fix coding style issue in pci_save_state()
    PCI: add pci_request_acs
    PCI: fix BUG_ON triggered by logical PCIe root port removal
    PCI: remove ifdefed pci_cleanup_aer_correct_error_status
    PCI: unconditionally clear AER uncorr status register during cleanup
    x86/PCI: claim SR-IOV BARs in pcibios_allocate_resource
    PCI: portdrv: remove redundant definitions
    PCI: portdrv: remove unnecessary struct pcie_port_data
    PCI: portdrv: minor cleanup for pcie_port_device_register
    PCI: portdrv: add missing irq cleanup
    PCI: portdrv: enable device before irq initialization
    PCI: portdrv: cleanup service irqs initialization
    PCI: portdrv: check capabilities first
    PCI: portdrv: move PME capability check
    PCI: portdrv: remove redundant pcie type calculation
    PCI: portdrv: cleanup pcie_device registration
    PCI: portdrv: remove redundant pcie_port_device_probe
    PCI: Always set prefetchable base/limit upper32 registers
    PCI: read-modify-write the pcie device control register when initiating pcie flr
    PCI: show dma_mask bits in /sys
    ...

    Fixed up conflicts in:
    arch/x86/kernel/amd_iommu_init.c
    drivers/pci/dmar.c
    drivers/pci/hotplug/acpiphp_glue.c

    Linus Torvalds
     
  • The Freescale MX27 and MX31 SoCs have a EHCI controller onboard.
    The controller is capable of USB on the go. This patch adds
    a driver to support all three of them.

    Users have to pass details about serial interface configuration in the
    platform data.

    The USB OTG core used here is the ARC core, so the driver should
    be renamed and probably be merged with ehci-fsl.c eventually.

    Signed-off-by: Sascha Hauer
    Signed-off-by: Daniel Mack
    Cc: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Daniel Mack
     

11 Dec, 2009

20 commits

  • On an SMP system the kgdb_single_step flag has the possibility to
    indefinitely hang the system in the case. Consider the case where,
    CPU 1 has the schedule lock and CPU 0 is set to single step, there is
    no way for CPU 0 to run another task.

    The easy way to observe the problem is to make 2 cpus busy, and run
    the kgdb test suite. You will see that it hangs the system very
    quickly.

    while [ 1 ] ; do find /proc > /dev/null 2>&1 ; done &
    while [ 1 ] ; do find /proc > /dev/null 2>&1 ; done &
    echo V1 > /sys/module/kgdbts/parameters/kgdbts

    The side effect of this patch is that there is the possibility
    to miss a breakpoint in the case that a single step operation
    was executed to step over a breakpoint in common code.

    The trade off of the missed breakpoint is preferred to
    hanging the kernel. This can be fixed in the future by
    using kprobes or another strategy to step over planted
    breakpoints with out of line execution.

    CC: Ingo Molnar
    Signed-off-by: Jason Wessel

    Jason Wessel
     
  • It is possible for the user_mode_vm(regs) check to return true on the
    i368 arch for a non master kgdb cpu or when the master kgdb cpu
    handles the NMI watch dog exception.

    The solution is simply to select the correct gdb_ss location
    based on the check to user_mode_vm(regs).

    CC: Ingo Molnar
    Acked-by: H. Peter Anvin
    Signed-off-by: Jason Wessel

    Jason Wessel
     
  • The for loop starts with a breakno of 0, and ends when it's 4. so
    this test is always true.

    Signed-off-by: Roel Kluin
    Signed-off-by: Andrew Morton
    Signed-off-by: Jason Wessel

    Roel Kluin
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • We want addr - (pgoff << PAGE_SHIFT) consistently coloured...

    Acked-by: Paul Mundt
    Acked-by: Hugh Dickins
    Signed-off-by: Al Viro

    Al Viro
     
  • The comment in there used to be true, but these days do_brk() does
    the arch-specific check that covers what we open-coded here. So we
    can use sys_brk() just fine, only need to do force_successful_syscall_return()
    after it.

    See commit 3a459756810912d2c2bf188cef566af255936b4d - that's when the
    checks in do_brk() had been originally added.

    Acked-by: Hugh Dickins
    Signed-off-by: Al Viro

    Al Viro
     
  • the checks it's doing are duplicated in sys_brk() and failing
    them early makes no sense, AFAICT.

    Acked-by: David S. Miller
    Acked-by: Hugh Dickins
    Signed-off-by: Al Viro

    Al Viro
     
  • New helper - sys_mmap_pgoff(); switch syscalls to using it.

    Acked-by: David S. Miller
    Signed-off-by: Al Viro

    Al Viro
     
  • It won't work anyway (hugetlb addresses there are way beyond 4Gb)
    and it's easier to stop it here.

    Signed-off-by: Al Viro

    Al Viro
     
  • Signed-off-by: Al Viro

    Al Viro
     
  • We've had TASK_SIZE set to 1<
    Signed-off-by: Al Viro

    Al Viro
     
  • Acked-by: Russell King
    Signed-off-by: Al Viro

    Al Viro
     
  • ... we should call mm ->get_unmapped_area() instead and let our caller
    do the final checks.

    Acked-by: David S. Miller
    Signed-off-by: Al Viro

    Al Viro
     
  • Acked-by: David S. Miller
    Acked-by: Hugh Dickins
    Signed-off-by: Al Viro

    Al Viro
     
  • * 'for-linus' of git://gitorious.org/linux-omap-dss2/linux:
    MAINTAINERS: Add OMAP2/3 DSS and OMAPFB maintainer
    OMAP: SDP: Enable DSS2 for OMAP3 SDP board
    OMAP: DSS2: Taal DSI command mode panel driver
    OMAP: DSS2: Add generic and Sharp panel drivers
    OMAP: DSS2: omapfb driver
    OMAP: DSS2: DSI driver
    OMAP: DSS2: SDI driver
    OMAP: DSS2: RFBI driver
    OMAP: DSS2: Video encoder driver
    OMAP: DSS2: DPI driver
    OMAP: DSS2: DISPC
    OMAP: DSS2: Add more core files
    OMAP: DSS2: Display Subsystem Driver core
    OMAP: DSS2: Documentation for DSS2
    OMAP: Add support for VRFB rotation engine
    OMAP: Add VRAM manager
    OMAP: OMAPFB: add omapdss device
    OMAP: OMAPFB: split omapfb.h
    OMAP2: Add funcs for writing SMS_ROT_* registers

    Linus Torvalds
     
  • Add missing include for msm_sdcc compilation, and remove pwrsink
    support that is not mainline, yet.

    Signed-off-by: Pavel Machek
    [dwalker@codeaurora.org : fixed indent in mmc.h]
    Signed-off-by: Daniel Walker

    Pavel Machek
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
    workqueue: Add debugobjects support

    Linus Torvalds
     
  • * 'bugfix' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen:
    xen: try harder to balloon up under memory pressure.
    Xen balloon: fix totalram_pages counting.
    xen: explicitly create/destroy stop_machine workqueues outside suspend/resume region.
    xen: improve error handling in do_suspend.
    xen: don't leak IRQs over suspend/resume.
    xen: call clock resume notifier on all CPUs
    xen: use iret for return from 64b kernel to 32b usermode
    xen: don't call dpm_resume_noirq() with interrupts disabled.
    xen: register runstate info for boot CPU early
    xen: register runstate on secondary CPUs
    xen: register timer interrupt with IRQF_TIMER
    xen: correctly restore pfn_to_mfn_list_list after resume
    xen: restore runstate_info even if !have_vcpu_info_placement
    xen: re-register runstate area earlier on resume.
    xen: wait up to 5 minutes for device connetion
    xen: improvement to wait_for_devices()
    xen: fix is_disconnected_device/exists_disconnected_device
    xen/xenbus: make DEVICE_ATTR()s static

    Linus Torvalds
     
  • Ralf Hildebrandt reported this boot warning:

    | Running a vanilla 2.6.32 as Xen DomU, I'm getting:
    |
    | [ 0.000999] CPU: Physical Processor ID: 0
    | [ 0.000999] CPU: Processor Core ID: 1
    | [ 0.000999] Performance Events: AMD PMU driver.
    | [ 0.000999] ------------[ cut here ]------------
    | [ 0.000999] WARNING: at arch/x86/kernel/apic/apic.c:249 native_apic_write_dummy

    So we need to check if APIC functionality is available, and
    not just in the P6 driver but elsewhere as well.

    Reported-by: Ralf Hildebrandt
    Signed-off-by: Cyrill Gorcunov
    Cc: Peter Zijlstra
    Cc: Mike Galbraith
    Cc: Paul Mackerras
    Cc: Arnaldo Carvalho de Melo
    Cc: Frederic Weisbecker
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Cyrill Gorcunov
     
  • Signed-off-by: Xiao Guangrong
    Cc: Peter Zijlstra
    Cc: Frederic Weisbecker
    Cc: Paul Mackerras
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Xiao Guangrong
     

10 Dec, 2009

7 commits

  • While Linux provided an O_SYNC flag basically since day 1, it took until
    Linux 2.4.0-test12pre2 to actually get it implemented for filesystems,
    since that day we had generic_osync_around with only minor changes and the
    great "For now, when the user asks for O_SYNC, we'll actually give
    O_DSYNC" comment. This patch intends to actually give us real O_SYNC
    semantics in addition to the O_DSYNC semantics. After Jan's O_SYNC
    patches which are required before this patch it's actually surprisingly
    simple, we just need to figure out when to set the datasync flag to
    vfs_fsync_range and when not.

    This patch renames the existing O_SYNC flag to O_DSYNC while keeping it's
    numerical value to keep binary compatibility, and adds a new real O_SYNC
    flag. To guarantee backwards compatiblity it is defined as expanding to
    both the O_DSYNC and the new additional binary flag (__O_SYNC) to make
    sure we are backwards-compatible when compiled against the new headers.

    This also means that all places that don't care about the differences can
    just check O_DSYNC and get the right behaviour for O_SYNC, too - only
    places that actuall care need to check __O_SYNC in addition. Drivers and
    network filesystems have been updated in a fail safe way to always do the
    full sync magic if O_DSYNC is set. The few places setting O_SYNC for
    lower layers are kept that way for now to stay failsafe.

    We enforce that O_DSYNC is set when __O_SYNC is set early in the open path
    to make sure we always get these sane options.

    Note that parisc really screwed up their headers as they already define a
    O_DSYNC that has always been a no-op. We try to repair it by using it for
    the new O_DSYNC and redefinining O_SYNC to send both the traditional
    O_SYNC numerical value _and_ the O_DSYNC one.

    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Grant Grundler
    Cc: "David S. Miller"
    Cc: Ingo Molnar
    Cc: "H. Peter Anvin"
    Cc: Thomas Gleixner
    Cc: Al Viro
    Cc: Andreas Dilger
    Acked-by: Trond Myklebust
    Acked-by: Kyle McMartin
    Acked-by: Ulrich Drepper
    Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • …joro/linux-2.6-iommu into x86/urgent

    Ingo Molnar
     
  • The device change notifier is initialized in the dma_ops
    initialization path. But this path is never executed for
    iommu=pt. Move the notifier initialization to IOMMU hardware
    init code to fix this.

    Signed-off-by: Joerg Roedel

    Joerg Roedel
     
  • The data structure changes to use dev->archdata.iommu field
    broke the iommu=pt mode because in this case the
    dev->archdata.iommu was left uninitialized. This moves the
    inititalization of the devices into the main init function
    and fixes the problem.

    Signed-off-by: Joerg Roedel

    Joerg Roedel
     
  • - Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
    - Remove #define NAME
    - Remove NAME from pr_

    Signed-off-by: Joe Perches
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Joe Perches
     
  • - Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
    - Strip "kmmio: " from pr_s

    Signed-off-by: Joe Perches
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Joe Perches
     
  • - Add pr_fmt(fmt) "pit: " fmt
    - Strip pit: prefixes from pr_debug

    Signed-off-by: Joe Perches
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Joe Perches