27 Apr, 2009

1 commit

  • This patch is preparation for replacing all uses of ".head.text" or
    ".text.head" in the kernel with macros, so that the section name can
    later be changed without having to touch a lot of the kernel.

    Since some linker scripts do more complex things than referencing
    HEAD_TEXT, we add a HEAD_TEXT_SECTION macro that just contains the
    actual name.

    I've defined HEAD_TEXT_SECTION in a new header,
    include/linux/section-names.h, so that this section name only needs to
    appear in one place. I anticipate creating similar macro structures
    for a number of other section names.

    The long-term goal here is to be able to change the kernel's magic
    section names to those that are compatible with -ffunction-sections
    -fdata-sections. This requires renaming all magic sections with names
    of the form ".text.foo".

    Signed-off-by: Tim Abbott
    Signed-off-by: Linus Torvalds

    Tim Abbott
     

24 Apr, 2009

14 commits

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (34 commits)
    ACPI, i915: Register ACPI video even when not modesetting
    Revert "ACPICA: delete check for AML access to port 0x81-83"
    I/O port protection: update for windows compatibility.
    sony-laptop: always try to unblock rfkill on load
    sony-laptop: fix bogus error message display on resume
    ACPI: EC: Fix ACPI EC resume non-query interrupt message
    sony-laptop: SNC input event 38 fix
    sony-laptop: SNC 127 Initialization Fix
    sony-laptop: Duplicate SNC 127 Event Fix
    ACPI: prevent processor.max_cstate=0 boot crash
    ACPI/hpet: prevent boot hang when hpet=force used on ICH-4M
    ACPI: delete obsolete "bus master activity" proc field
    ACPI: idle: mark_tsc_unstable() at init-time, not run-time
    ACPI: add /sys/firmware/acpi/interrupts/sci_not counter
    ACPI video: fix an error when the brightness levels on AC and on Battery are same
    acpi-cpufreq: Do not let get_measured perf depend on internal variable
    acpi-cpufreq: style-only: add parens to math expression
    acpi-cpufreq: Cleanup: Use printk_once
    x86, acpi_cpufreq: Fix the NULL pointer dereference in get_measured_perf
    thinkpad-acpi: bump up version to 0.23
    ...

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: Fix potential inode allocation soft lockup in Orlov allocator
    ext4: Make the extent validity check more paranoid
    jbd: use SWRITE_SYNC_PLUG when writing synchronous revoke records
    jbd2: use SWRITE_SYNC_PLUG when writing synchronous revoke records
    ext4: really print the find_group_flex fallback warning only once

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 5460/1: Orion: reduce namespace pollution
    [ARM] 5458/1: pcmcia: pxa2xx-sharpsl: check if we do have Scoop config
    [ARM] 5457/1: mach-imx gpio buildfix
    [ARM] 5456/1: add sys_preadv and sys_pwritev
    [ARM] pxa/pcm990: start external GPIOs immediately after built-in ones
    [ARM] pxa/palm27x: General fix for Palm27x aSoC driver
    [ARM] pxa/mioa701: use GPIO95 as AC97 reset line
    [ARM] pxa: merge AC97 platform data structures
    [ARM] pxa/magician: remove un-necessary #include of pxa-regs.h and hardware.h

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: pwc : do not pass stack allocated buffers to USB core.
    USB: otg: Fix bug on remove path without transceiver
    USB: correct error handling in cdc-wdm
    USB: removal of tty->low_latency hack dating back to the old serial code
    USB: serial: sierra driver bug fix for composite interface
    USB: gadget: omap_udc uses platform_driver_probe()
    USB: ci13xxx_udc: fix build error
    USB: musb: Prevent multiple includes of musb.h
    USB: pass mem_flags to dma_alloc_coherent
    USB: g_file_storage: fix use-after-free bug when closing files
    USB: ehci-sched.c: EHCI SITD scheduling bugfix
    USB: fix mos7840 problem with minor numbers
    USB: mos7840: add new device id
    USB: musb: fix build when !CONFIG_PM
    USB: musb: Remove my email address from few musb related drivers
    USB: Gadget: MIPS CI13xxx UDC bugfixes
    USB: Unusual Device support for Gold MP3 Player Energy
    USB: serial: fix lifetime and locking problems

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
    GFS2: Ensure that the inode goal block settings are updated
    GFS2: Fix bug in block allocation
    bitops: Add __ffs64 bitop

    Linus Torvalds
     
  • * 'kvm-updates/2.6.30' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: Unregister cpufreq notifier on unload
    KVM: x86: release time_page on vcpu destruction
    KVM: Fix overlapping check for memory slots
    KVM: MMU: disable global page optimization
    KVM: ia64: fix locking order entering guest
    KVM: MMU: Fix off-by-one calculating large page count

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    cfq-iosched: cache prio_tree root in cfqq->p_root
    cfq-iosched: fix bug with aliased request and cooperation detection
    cfq-iosched: clear ->prio_trees[] on cfqd alloc
    block: fix intermittent dm timeout based oops
    umem: fix request_queue lock warning
    block: simplify I/O stat accounting
    pktcdvd.h should include mempool.h
    cfq-iosched: use the default seek distance when there aren't enough seek samples
    cfq-iosched: make seek_mean converge more quickly
    block: make blk_abort_queue() ignore non-request based devices
    block: include empty disks in /proc/diskstats
    bio: use bio_kmalloc() in copy/map functions
    bio: fix bio_kmalloc()
    block: fix queue bounce limit setting
    block: fix SG_IO vector request data length handling
    scatterlist: make sure sg_miter_next() doesn't return 0 sized mappings

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (94 commits)
    netfilter: ctnetlink: fix gcc warning during compilation
    net/netrom: Fix socket locking
    netlabel: Always remove the correct address selector
    ucc_geth.c: Fix upsmr setting in RMII mode
    8139too: fix HW initial flow
    af_iucv: Fix race when queuing incoming iucv messages
    af_iucv: Test additional sk states in iucv_sock_shutdown
    af_iucv: Reject incoming msgs if RECV_SHUTDOWN is set
    af_iucv: fix oops in iucv_sock_recvmsg() for MSG_PEEK flag
    af_iucv: consider state IUCV_CLOSING when closing a socket
    iwlwifi: DMA fixes
    iwlwifi: add debugging for TX path
    mwl8: fix build warning.
    mac80211: fix alignment calculation bug
    mac80211: do not print WARN if config interface
    iwl3945: use cancel_delayed_work_sync to cancel rfkill_poll
    iwlwifi: fix EEPROM validation mask to include OTP only devices
    atmel: fix netdev ops conversion
    pcnet_cs: add cis(firmware) of the Allied Telesis LA-PCM
    mlx4_en: Fix cleanup if workqueue create in mlx4_en_add() fails
    ...

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    powerpc: Fix modular build of ide-pmac when mediabay is built in
    powerpc/pasemi: Fix build error on UP
    powerpc: Make macintosh/mediabay driver depend on CONFIG_BLOCK
    maintainers: Fix PS3 patterns
    powerpc/ps3: Fix CONFIG_PS3_FLASH=n build warning
    powerpc/32: Don't clobber personality flags on exec
    powerpc: Fix crash on CPU hotplug
    powerpc/85xx: Remove defconfigs that mpc85xx_{smp_}defconfig cover
    powerpc/85xx: Added SMP defconfig
    powerpc/85xx: Enabled a bunch of FSL specific drivers/options
    powerpc/85xx: Updated generic mpc85xx_defconfig
    powerpc: don't disable SATA interrupts on Freescale MPC8610 HPCD
    fsl_rio: Pass the proper device to dma mapping routines
    powerpc: Fix of_node_put() exit path in of_irq_map_one()
    powerpc/5200: defconfig updates
    powerpc/5200: Add FLASH nodes to lite5200 device tree
    powerpc/device-tree: Document MTD nodes with multiple "reg" tuples
    powerpc/of-device-tree: Factor MTD physmap bindings out of booting-without-of
    powerpc/5200: Bring the legacy fsl_spi_platform_data hooks back

    Linus Torvalds
     
  • This simplifies I/O stat accounting switching code and separates it
    completely from I/O scheduler switch code.

    Requests are accounted according to the state of their request queue
    at the time of the request allocation. There is no need anymore to
    flush the request queue when switching I/O accounting state.

    Signed-off-by: Jerome Marchand
    Signed-off-by: Jens Axboe

    Jerome Marchand
     
  • Fix this build error:
    In file included from fs/compat_ioctl.c:104:
    include/linux/pktcdvd.h:285: error: expected specifier-qualifier-list before 'mempool_t'

    Signed-off-by: Alexander Beregalov
    Signed-off-by: Jens Axboe

    Alexander Beregalov
     
  • Len Brown
     
  • Len Brown
     
  • Add #ifndef to musb header file to prevent multiple inclusions.

    Signed-off-by: Mark A. Greer
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Mark A. Greer
     

23 Apr, 2009

2 commits

  • Finds the first set bit in a 64 bit word. This is required in order
    to fix a bug in GFS2, but I think it should be a generic function
    in case of future users.

    Signed-off-by: Steven Whitehouse
    Reviewed-by: Christoph Lameter
    Reviewed-by: Willy Tarreau

    Steven Whitehouse
     
  • Linux-2.6.29 deleted the legacy ACPI idle handler, leaving
    the CPU_IDLE handler, which does not track bus master activity.

    So delete the unused bm_activity field -- it is confusing to
    print an always zero value.

    This patch could break programs that parse
    /proc/acpi/processor/*/power, since it deletes this
    line from that file:

    bus master activity: 00000000

    http://bugzilla.kernel.org/show_bug.cgi?id=13145
    is not fixed by this patch, but provoked this patch.

    Signed-off-by: Len Brown

    Len Brown
     

22 Apr, 2009

14 commits

  • When checking for overlapping slots on registration of a new one, kvm
    currently also considers zero-length (ie. deleted) slots and rejects
    requests incorrectly. This finally denies user space from joining slots.
    Fix the check by skipping deleted slots and advertise this via a
    KVM_CAP_JOIN_MEMORY_REGIONS_WORKS.

    Cc: stable@kernel.org
    Signed-off-by: Jan Kiszka
    Signed-off-by: Avi Kivity

    Jan Kiszka
     
  • /proc/diskstats used to show stats for all disks whether they're
    zero-sized or not and their non-zero partitions. Commit
    074a7aca7afa6f230104e8e65eba3420263714a5 accidentally changed the
    behavior such that it doesn't print out zero sized disks. This patch
    implements DISK_PITER_INCL_EMPTY_PART0 flag to partition iterator and
    uses it in diskstats_show() such that empty part0 is shown in
    /proc/diskstats.

    Reported and bisectd by Dianel Collins.

    Signed-off-by: Tejun Heo
    Reported-by: Daniel Collins
    Signed-off-by: Jens Axboe

    Tejun Heo
     
  • Impact: fix bio_kmalloc() and its destruction path

    bio_kmalloc() was broken in two ways.

    * bvec_alloc_bs() first allocates bvec using kmalloc() and then
    ignores it and allocates again like non-kmalloc bvecs.

    * bio_kmalloc_destructor() didn't check for and free bio integrity
    data.

    This patch fixes the above problems. kmalloc patch is separated out
    from bio_alloc_bioset() and allocates the requested number of bvecs as
    inline bvecs.

    * bio_alloc_bioset() no longer takes NULL @bs. None other than
    bio_kmalloc() used it and outside users can't know how it was
    allocated anyway.

    * Define and use BIO_POOL_NONE so that pool index check in
    bvec_free_bs() triggers if inline or kmalloc allocated bvec gets
    there.

    * Relocate destructors on top of each allocation function so that how
    they're used is more clear.

    Jens Axboe suggested allocating bvecs inline.

    Signed-off-by: Tejun Heo
    Signed-off-by: Jens Axboe

    Tejun Heo
     
  • Paul Mackerras
     
  • There is currently only one way for userspace to say "wait for my storage
    device to get ready for the modules I just loaded": to load the
    scsi_wait_scan module. Expectations of userspace are that once this
    module is loaded, all the (storage) devices for which the drivers
    were loaded before the module load are present.

    Now, there are some issues with the implementation, and the async
    stuff got caught in the middle of this: The existing code only
    waits for the scsy async probing to finish, but it did not take
    into account at all that probing might not have begun yet.
    (Russell ran into this problem on his computer and the fix works for him)

    This patch fixes this more thoroughly than the previous "fix", which
    had some bad side effects (namely, for kernel code that wanted to wait for
    the scsi scan it would also do an async sync, which would deadlock if you did
    it from async context already.. there's a report about that on lkml):
    The patch makes the module first wait for all device driver probes, and then it
    will wait for the scsi parallel scan to finish.

    Signed-off-by: Arjan van de Ven
    Tested-by: Russell King
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Fix a comment typo in slow-work.h

    ...a trivial mistake, but it will mess up kerneldoc if nothing else.

    Signed-off-by: Jonathan Corbet
    Signed-off-by: Linus Torvalds

    Jonathan Corbet
     
  • Collect the DECLARE/DEFINE declarations together in linux/percpu-defs.h so
    that they're in one place, and give them descriptive comments, particularly
    the SHARED_ALIGNED variant.

    It would be nice to collect these in linux/percpu.h, but that's not possible
    without sorting out the severe #include recursion between the x86 arch headers
    and the general headers (and possibly other arches too).

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • In non-SMP mode, the variable section attribute specified by DECLARE_PER_CPU()
    does not agree with that specified by DEFINE_PER_CPU(). This means that
    architectures that have a small data section references relative to a base
    register may throw up linkage errors due to too great a displacement between
    where the base register points and the per-CPU variable.

    On FRV, the .h declaration says that the variable is in the .sdata section, but
    the .c definition says it's actually in the .data section. The linker throws
    up the following errors:

    kernel/built-in.o: In function `release_task':
    kernel/exit.c:78: relocation truncated to fit: R_FRV_GPREL12 against symbol `per_cpu__process_counts' defined in .data section in kernel/built-in.o
    kernel/exit.c:78: relocation truncated to fit: R_FRV_GPREL12 against symbol `per_cpu__process_counts' defined in .data section in kernel/built-in.o

    To fix this, DECLARE_PER_CPU() should simply apply the same section attribute
    as does DEFINE_PER_CPU(). However, this is made slightly more complex by
    virtue of the fact that there are several variants on DEFINE, so these need to
    be matched by variants on DECLARE.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • This is a doc-only patch which I hope will reduce the number of
    spi_master controller driver patches starting out with a common
    implementation bug.

    (As in: almost every spi_master driver I see starts out with its
    version of this bug. Sigh.)

    It just re-emphasizes that the setup() method may be called for one
    device while a transfer is active on another ... which means that most
    driver implementations shouldn't touch any registers.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • mm->owner should be accessed with rcu_dereference().

    Reported-by: KOSAKI Motohiro
    Signed-off-by: KAMEZAWA Hiroyuki
    Acked-by: Balbir Singh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Enable userspace to receive messages that a BMC transmits using an OEM
    medium. This is used by the HP iLO2.

    Based on code originally written by Patrick Schoeller.

    Signed-off-by: dann frazier
    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    dann frazier
     
  • The IPMI driver would attempt to use the event buffer even if that
    didn't exist on the BMC. This patch modified the IPMI driver to check
    for the event buffer's existence before trying to use it.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Add enable() and disable() callbacks for clocksources.

    This allows us to put unused clocksources in power save mode. The
    functions clocksource_enable() and clocksource_disable() wrap the
    callbacks and are inserted in the timekeeping code to enable before use
    and disable after switching to a new clocksource.

    Signed-off-by: Magnus Damm
    Acked-by: John Stultz
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     
  • Pass clocksource pointer to the read() callback for clocksources. This
    allows us to share the callback between multiple instances.

    [hugh@veritas.com: fix powerpc build of clocksource pass clocksource mods]
    [akpm@linux-foundation.org: cleanup]
    Signed-off-by: Magnus Damm
    Acked-by: John Stultz
    Cc: Thomas Gleixner
    Signed-off-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     

21 Apr, 2009

7 commits


20 Apr, 2009

2 commits