15 Sep, 2009

31 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: (23 commits)
    at_hdmac: Rework suspend_late()/resume_early()
    PM: Reset transition_started at dpm_resume_noirq
    PM: Update kerneldoc comments in drivers/base/power/main.c
    PM: Add convenience macro to make switching to dev_pm_ops less error-prone
    hp-wmi: Switch driver to dev_pm_ops
    floppy: Switch driver to dev_pm_ops
    PM: Trivial fixes
    PM / Hibernate / Memory hotplug: Always use for_each_populated_zone()
    PM/Hibernate: Do not try to allocate too much memory too hard (rev. 2)
    PM/Hibernate: Do not release preallocated memory unnecessarily (rev. 2)
    PM/Hibernate: Rework shrinking of memory
    PM: Fix typo in label name s/Platofrm_finish/Platform_finish/
    PM: Run-time PM platform device bus support
    PM: Introduce core framework for run-time PM of I/O devices (rev. 17)
    Driver Core: Make PM operations a const pointer
    PM: Remove platform device suspend_late()/resume_early() V2
    USB: Rework musb suspend()/resume_early()
    I2C: Rework i2c-s3c2410 suspend_late()/resume() V2
    I2C: Rework i2c-pxa suspend_late()/resume_early()
    DMA: Rework txx9dmac suspend_late()/resume_early()
    ...

    Fix trivial conflict in drivers/base/platform.c (due to same
    constification patch being merged in both sides, along with some other
    PM work in the PM branch)

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (52 commits)
    Input: bcm5974 - silence uninitialized variables warnings
    Input: wistron_btns - add keymap for AOpen 1557
    Input: psmouse - use boolean type
    Input: i8042 - use platform_driver_probe
    Input: i8042 - use boolean type where it makes sense
    Input: i8042 - try disabling and re-enabling AUX port at close
    Input: pxa27x_keypad - allow modifying keymap from userspace
    Input: sunkbd - fix formatting
    Input: i8042 - bypass AUX IRQ delivery test on laptops
    Input: wacom_w8001 - simplify querying logic
    Input: atkbd - allow setting force-release bitmap via sysfs
    Input: w90p910_keypad - move a dereference below a NULL test
    Input: add twl4030_keypad driver
    Input: matrix-keypad - add function to build device keymap
    Input: tosakbd - fix cleaning up KEY_STROBEs after error
    Input: joydev - validate axis/button maps before clobbering current ones
    Input: xpad - add USB ID for the drumkit controller from Rock Band
    Input: w90p910_keypad - rename driver name to match platform
    Input: add new driver for Sentelic Finger Sensing Pad
    Input: psmouse - allow defining read-only attributes
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: completely remove apple mightymouse from blacklist
    HID: support larger reports than 64 bytes in hiddev
    HID: local function should be static
    HID: ignore Philips IEEE802.15.4 RF Dongle
    HID: ignore all recent SoundGraph iMON devices
    HID: fix memory leak on error patch in debug code
    HID: fix overrun in quirks initialization
    HID: Drop NULL test on list_entry result
    HID: driver for Twinhan USB 6253:0100 remote control
    HID: adding __init/__exit macros to module init/exit functions
    HID: add rumble support for Thrustmaster Dual Trigger 3-in-1
    HID: ntrig tool separation and pen usages
    HID: Avoid double spin_lock_init on usbhid->lock
    HID: add force feedback support for Logitech WingMan Formula Force GP
    HID: Support new variants of Samsung USB IR receiver (0419:0001)
    HID: fix memory leak on error path in debug code
    HID: fix debugfs build with !CONFIG_DEBUG_FS
    HID: use debugfs for events/reports dumping
    HID: use debugfs for report dumping descriptor

    Linus Torvalds
     
  • * 'for-2.6.32' of git://git.kernel.dk/linux-2.6-block: (29 commits)
    block: use blkdev_issue_discard in blk_ioctl_discard
    Make DISCARD_BARRIER and DISCARD_NOBARRIER writes instead of reads
    block: don't assume device has a request list backing in nr_requests store
    block: Optimal I/O limit wrapper
    cfq: choose a new next_req when a request is dispatched
    Seperate read and write statistics of in_flight requests
    aoe: end barrier bios with EOPNOTSUPP
    block: trace bio queueing trial only when it occurs
    block: enable rq CPU completion affinity by default
    cfq: fix the log message after dispatched a request
    block: use printk_once
    cciss: memory leak in cciss_init_one()
    splice: update mtime and atime on files
    block: make blk_iopoll_prep_sched() follow normal 0/1 return convention
    cfq-iosched: get rid of must_alloc flag
    block: use interrupts disabled version of raise_softirq_irqoff()
    block: fix comment in blk-iopoll.c
    block: adjust default budget for blk-iopoll
    block: fix long lines in block/blk-iopoll.c
    block: add blk-iopoll, a NAPI like approach for block devices
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (209 commits)
    [SCSI] fix oops during scsi scanning
    [SCSI] libsrp: fix memory leak in srp_ring_free()
    [SCSI] libiscsi, bnx2i: make bound ep check common
    [SCSI] libiscsi: add completion function for drivers that do not need pdu processing
    [SCSI] scsi_dh_rdac: changes for rdac debug logging
    [SCSI] scsi_dh_rdac: changes to collect the rdac debug information during the initialization
    [SCSI] scsi_dh_rdac: move the init code from rdac_activate to rdac_bus_attach
    [SCSI] sg: fix oops in the error path in sg_build_indirect()
    [SCSI] mptsas : Bump version to 3.04.12
    [SCSI] mptsas : FW event thread and scsi mid layer deadlock in SYNCHRONIZE CACHE command
    [SCSI] mptsas : Send DID_NO_CONNECT for pending IOs of removed device
    [SCSI] mptsas : PAE Kernel more than 4 GB kernel panic
    [SCSI] mptsas : NULL pointer on big endian systems causing Expander not to tear off
    [SCSI] mptsas : Sanity check for phyinfo is added
    [SCSI] scsi_dh_rdac: Add support for Sun StorageTek ST2500, ST2510 and ST2530
    [SCSI] pmcraid: PMC-Sierra MaxRAID driver to support 6Gb/s SAS RAID controller
    [SCSI] qla2xxx: Update version number to 8.03.01-k6.
    [SCSI] qla2xxx: Properly delete rports attached to a vport.
    [SCSI] qla2xxx: Correct various NPIV issues.
    [SCSI] qla2xxx: Correct qla2x00_eh_wait_on_command() to wait correctly.
    ...

    Linus Torvalds
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (257 commits)
    [ARM] Update mach-types
    ARM: 5636/1: Move vendor enum to AMBA include
    ARM: Fix pfn_valid() for sparse memory
    [ARM] orion5x: Add LaCie NAS 2Big Network support
    [ARM] pxa/sharpsl_pm: zaurus c3000 aka spitz: fix resume
    ARM: 5686/1: at91: Correct AC97 reset line in at91sam9263ek board
    ARM: 5640/1: This patch modifies the support of AC97 on the at91sam9263 ek board
    ARM: 5689/1: Update default config of HP Jornada 700-series machines
    ARM: 5691/1: fix cache aliasing issues between kmap() and kmap_atomic() with highmem
    ARM: 5688/1: ks8695_serial: disable_irq() lockup
    ARM: 5687/1: fix an oops with highmem
    ARM: 5684/1: Add nuc960 platform to w90x900
    ARM: 5683/1: Add nuc950 platform to w90x900
    ARM: 5682/1: Add cpu.c and dev.c and modify some files of w90p910 platform
    ARM: 5626/1: add suspend/resume functions to amba-pl011 serial driver
    ARM: 5625/1: fix hard coded 4K resource size in amba bus detection
    MMC: MMCI: convert realview MMC to use gpiolib
    ARM: 5685/1: Make MMCI driver compile without gpiolib
    ARM: implement highpte
    ARM: Show FIQ in /proc/interrupts on CONFIG_FIQ
    ...

    Fix up trivial conflict in arch/arm/kernel/signal.c.

    It was due to the TIF_NOTIFY_RESUME addition in commit d0420c83f ("KEYS:
    Extend TIF_NOTIFY_RESUME to (almost) all architectures") and follow-ups.

    Linus Torvalds
     
  • console_print() is an old legacy interface mostly unused in the entire
    kernel tree. It's best to clean up its existing use and let developers
    use their own implementation of it as they feel fit.

    Signed-off-by: Anirban Sinha
    Signed-off-by: Linus Torvalds

    Anirban Sinha
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    x86, mce: do not compile mcelog message on AMD
    EDAC, AMD: decode FR MCEs
    EDAC, AMD: decode load store MCEs
    EDAC, AMD: decode bus unit MCEs
    EDAC, AMD: decode instruction cache MCEs
    EDAC, AMD: decode data cache MCEs
    EDAC, AMD: carve out decoding of MCi_STATUS ErrorCode
    EDAC, AMD: carve out MCi_STATUS decoding
    x86, mce: pass mce info to EDAC for decoding
    amd64_edac: cleanup amd64_decode_bus_error
    amd64_edac: remove memory and GART TLB error decoders
    amd64_edac: cleanup/complete NB MCE decoding
    amd64_edac: cleanup amd64_process_error_info
    EDAC: beef up ErrorCodeExt error signatures
    EDAC: move MCE error descriptions to EDAC core

    Linus Torvalds
     
  • * 'osync_cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
    fsync: wait for data writeout completion before calling ->fsync
    vfs: Remove generic_osync_inode() and sync_page_range{_nolock}()
    fat: Opencode sync_page_range_nolock()
    pohmelfs: Use new syncing helper
    xfs: Convert sync_page_range() to simple filemap_write_and_wait_range()
    ocfs2: Update syncing after splicing to match generic version
    ntfs: Use new syncing helpers and update comments
    ext4: Remove syncing logic from ext4_file_write
    ext3: Remove syncing logic from ext3_file_write
    ext2: Update comment about generic_osync_inode
    vfs: Introduce new helpers for syncing after writing to O_SYNC file or IS_SYNC inode
    vfs: Rename generic_file_aio_write_nolock
    ocfs2: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
    pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
    vfs: Remove syncing from generic_file_direct_write() and generic_file_buffered_write()
    vfs: Export __generic_file_aio_write() and add some comments
    vfs: Introduce filemap_fdatawait_range

    Linus Torvalds
     
  • This patch reworks platform driver power management code
    for at_hdmac from legacy late/early callbacks to dev_pm_ops.

    The callbacks are converted for CONFIG_SUSPEND like this:
    suspend_late() -> suspend_noirq()
    resume_early() -> resume_noirq()

    Signed-off-by: Dan Williams
    Signed-off-by: Rafael J. Wysocki

    Dan Williams
     
  • transition_started should be set once the preparation of devices for
    a PM has started, reset before starting to resume devices. When
    resuming devices, kernel calls dpm_resume_noirq then
    dpm_resume_end(dpm_resume). Thus we should reset transition_started
    at dpm_resume_noirq.

    This patch fixes ACPI warning when resuming from suspend/hibernate:

    ACPI: \_SB_.PCI0.IDE1.PRI1.MAS1 - docking
    ------------[ cut here ]------------
    WARNING: at drivers/base/power/main.c:87 device_pm_add+0x8b/0xcc()
    Hardware name: OptiPlex 760
    Device: acpi
    Parentless device registered during a PM transaction

    [rjw: Fixed up the changelog.]

    Signed-off-by: Xiaotian Feng
    Signed-off-by: Rafael J. Wysocki

    Xiaotian Feng
     
  • The kerneldoc comments in drivers/base/power/main.c are generally
    outdated and some of them don't describe the functions very
    accurately. Update them and standardize the format to use spaces
    instead of tabs.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Randy Dunlap
    Acked-by: Greg Kroah-Hartman
    Acked-by: Alan Stern

    Rafael J. Wysocki
     
  • Gets rid of the following warning:

    Platform driver 'hp-wmi' needs updating - please use dev_pm_ops

    I tested that the resume handler still works on my HP 2510p notebook.

    [rjw: Fixed up the definition of hp_wmi_pm_ops.]

    Signed-off-by: Frans Pop
    Signed-off-by: Andrew Morton
    Signed-off-by: Rafael J. Wysocki

    Frans Pop
     
  • Gets rid of the following warning:
    Platform driver 'floppy' needs updating - please use dev_pm_ops

    [rjw: Fixed up the definition of floppy_pm_ops.]

    Signed-off-by: Frans Pop
    Signed-off-by: Andrew Morton
    Signed-off-by: Rafael J. Wysocki

    Frans Pop
     
  • Rafael J. Wysocki
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1623 commits)
    netxen: update copyright
    netxen: fix tx timeout recovery
    netxen: fix file firmware leak
    netxen: improve pci memory access
    netxen: change firmware write size
    tg3: Fix return ring size breakage
    netxen: build fix for INET=n
    cdc-phonet: autoconfigure Phonet address
    Phonet: back-end for autoconfigured addresses
    Phonet: fix netlink address dump error handling
    ipv6: Add IFA_F_DADFAILED flag
    net: Add DEVTYPE support for Ethernet based devices
    mv643xx_eth.c: remove unused txq_set_wrr()
    ucc_geth: Fix hangs after switching from full to half duplex
    ucc_geth: Rearrange some code to avoid forward declarations
    phy/marvell: Make non-aneg speed/duplex forcing work for 88E1111 PHYs
    drivers/net/phy: introduce missing kfree
    drivers/net/wan: introduce missing kfree
    net: force bridge module(s) to be GPL
    Subject: [PATCH] appletalk: Fix skb leak when ipddp interface is not loaded
    ...

    Fixed up trivial conflicts:

    - arch/x86/include/asm/socket.h

    converted to in the x86 tree. The generic
    header has the same new #define's, so that works out fine.

    - drivers/net/tun.c

    fix conflict between 89f56d1e9 ("tun: reuse struct sock fields") that
    switched over to using 'tun->socket.sk' instead of the redundantly
    available (and thus removed) 'tun->sk', and 2b980dbd ("lsm: Add hooks
    to the TUN driver") which added a new 'tun->sk' use.

    Noted in 'next' by Stephen Rothwell.

    Linus Torvalds
     
  • * 'x86-xen-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: split __phys_addr out into separate file
    xen: use stronger barrier after unlocking lock
    xen: only enable interrupts while actually blocking for spinlock
    xen: make -fstack-protector work under Xen

    Linus Torvalds
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 101.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 100.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • ... according to Table 69, Fam10h BKDG (31116, rev. 3.28).

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • See Fam10h BKDG (31116, rev. 3.28), Table 95

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Those get reported in MC0_STATUS, see Table 92, F10h BKDG (31116, rev.
    3.28) for more details.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • This is the MCE error code from the MCi_STATUS banks, bits [15:0] which
    describe what type of error was encountered: GART TLB, Memory or Bus
    error. The semantics of those bits are identical across all MCE banks so
    decode those separately, irrespectively of MCE type.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • The MCi_STATUS registers have most field definitions in common so decode
    them in the general path. Do not pass ecc_type along and compute it in
    __amd64_decode_bus_error instead.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Move NB decoder along with required defines to EDAC MCE core. Add
    registration routines for further decoding of the MCE info in the AMD64
    EDAC module.

    CC: Andi Kleen
    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • * don't dump info which mcheck already does
    * update to newest BKDG
    * mv amd64_process_error_info -> amd64_decode_nb_mce
    * shorten error struct names
    * remove redundant info ptr in amd64_process_error_info
    * remove unused ErrorCodeExt[19:16] (MCx_STATUS) defines

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • * mv amd64_error_info_regs -> err_regs

    * remove redundant info ptr

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • Signed-off-by: Borislav Petkov

    Borislav Petkov
     
  • This is in preparation of adding AMD-specific MCE decoding functionality
    to the EDAC core. The error decoding macros originate from the AMD64
    EDAC driver albeit in a simplified and cleaned up version here.

    While at it, add macros to generate the error description strings and
    use them in the error type decoders directly which removes a bunch of
    code and makes the decoding functions much more readable. Also, fix
    strings and shorten macro names.

    Remove superfluous htlink_msgs.

    Signed-off-by: Borislav Petkov

    Borislav Petkov
     

14 Sep, 2009

9 commits

  • Use new generic_write_sync() helper instead of sync_page_range().

    Acked-by: Evgeniy Polyakov
    Signed-off-by: Jan Kara

    Jan Kara
     
  • generic_file_aio_write_nolock() is now used only by block devices and raw
    character device. Filesystems should use __generic_file_aio_write() in case
    generic_file_aio_write() doesn't suit them. So rename the function to
    blkdev_aio_write() and move it to fs/blockdev.c.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Jan Kara

    Christoph Hellwig
     
  • Use new helper __generic_file_aio_write(). Since the fs takes care of syncing
    by itself afterwards, there are no more changes needed.

    CC: Evgeniy Polyakov
    Signed-off-by: Jan Kara

    Jan Kara
     
  • * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86/i386: Put aligned stack-canary in percpu shared_aligned section
    x86/i386: Make sure stack-protector segment base is cache aligned
    x86: Detect stack protector for i386 builds on x86_64
    x86: allow "=rm" in native_save_fl()
    x86: properly annotate alternatives.c
    x86: Introduce GDT_ENTRY_INIT(), initialize bad_bios_desc statically
    x86, 32-bit: Use generic sys_pipe()
    x86: Introduce GDT_ENTRY_INIT(), fix APM
    x86: Introduce GDT_ENTRY_INIT()
    x86: Introduce set_desc_base() and set_desc_limit()
    x86: Remove unused patch_espfix_desc()
    x86: Use get_desc_base()

    Linus Torvalds
     
  • Implement blk_limits_io_opt() and make blk_queue_io_opt() a wrapper
    around it. DM needs this to avoid poking at the queue_limits directly.

    Signed-off-by: Martin K. Petersen
    Signed-off-by: Mike Snitzer
    Signed-off-by: Jens Axboe

    Martin K. Petersen
     
  • Currently, there is a single in_flight counter measuring the number of
    requests in the request_queue. But some monitoring tools would like to
    know how many read requests and write requests are in progress. Split the
    current in_flight counter into two seperate counters for read and write.

    This information is exported as a sysfs attribute, as changing the
    currently available stat files would break the existing tools.

    Signed-off-by: Nikanth Karthikesan
    Signed-off-by: Jens Axboe

    Nikanth Karthikesan
     
  • BugLink: http://bugzilla.kernel.org/show_bug.cgi?id=13942

    Bruno Premont noticed that aoe throws a BUG during umount of an XFS in
    2.6.31:

    [ 5259.349897] aoe: bi_io_vec is NULL
    [ 5259.349940] ------------[ cut here ]------------
    [ 5259.349958] kernel BUG at /usr/src/linux-2.6/drivers/block/aoe/aoeblk.c:177!
    [ 5259.349990] invalid opcode: 0000 [#1]

    The bio in question is a barrier. Jens Axboe suggested that such bios
    need to be recognized and ended with -EOPNOTSUPP by any driver that
    provides its own ->make_request_fn handler and does not handle
    barriers.

    In testing the changes below eliminate the BUG.

    (Better would be real barrier support, something that Ed says he'll add
    for later in the .32 cycle. For now, this at least gets rid of a bug
    with crashing on an empty barrier. Jens)

    Signed-off-by: Ed L. Cashin
    Signed-off-by: Jens Axboe

    Ed Cashin
     
  • Dmitry Torokhov
     
  • Jiri Kosina