08 Feb, 2008

40 commits

  • Small cleanups in scsi_host.h. Few #defines make me wonder if their
    description is still up to date..?

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Pavel Machek
     
  • A lot of SCSI command replies have a protocol ID field. Add
    definitions for the interpretation of that from SPC-3.

    Signed-off-by: James Bottomley

    James Bottomley
     
  • The session age mask is only 4 bits, but session->age is 32. When
    it gets larger then 15 and we try to or the bits some bits get
    dropped and the check for session age in iscsi_verify_itt is useless.

    The ISCSI_CID_MASK related bits are also useless since cid is always
    one.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • Some iscsi class messages have the dev_printk prefix and some libiscsi
    and iscsi_tcp messages have "iscsi" or the module name as a prefix which
    is normally pretty useless when trying to figure out which session
    or connection the message is attached to. This patch adds iscsi lib
    and class dev_printks so all messages have a common prefix that
    can be used to figure out which object printed it.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • In qla4xxx's probe it will call the iscsi session setup functions
    for session that got setup on the initial start. This then makes
    it easy for the iscsi class to export a helper which indicates
    when those scans are done.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • This just adds iscsi session scanning which works like fc rport scanning.
    The future patches will hook the drivers into Mathew Wilcox's async
    scanning infrastructure, so userspace does not have to special case
    iscsi and so userspace does not have to make a extra special case for
    hardware iscsi root scanning.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • This adds a iscsi session state file which exports the session
    state for both software and hardware iscsi. It also hooks libiscsi
    in.

    Signed-off-by: Mike Christie
    Signed-off-by: James Bottomley

    Mike Christie
     
  • __iscsi_complete_pdu() can now become static.

    Signed-off-by: Adrian Bunk
    Acked-by: Mike Christie
    Signed-off-by: James Bottomley

    Adrian Bunk
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (34 commits)
    Input: i8042 - non-x86 build fix
    Input: pxa27x_keypad - also enable on PXA3xx
    Input: pxa27x_keypad - add debounce_interval to the keypad platform data
    Input: pxa27x_keypad - use device resources for I/O memory mapping and IRQ
    Input: pxa27x_keypad - enable rotary encoders and direct keys
    Input: pxa27x_keypad - introduce pxa27x_keypad_config()
    Input: pxa27x_keypad - introduce driver structure and use KEY() to define matrix keys
    Input: pxa27x_keypad - remove pin configuration from the driver
    Input: pxa27x_keypad - rename the driver (was pxa27x_keyboard)
    Input: constify function pointer tables (seq_operations)
    Input: i8042 - add Fujitsu-Siemens Amilo Pro 2010 to nomux list
    Input: i8042 - enable DMI quirks on x86-64
    Input: i8042 - add Dritek quirk for Acer Aspire 9110
    Input: add input event to APM event bridge
    Input: mousedev - use BIT_MASK instead of BIT
    Input: remove duplicate includes
    Input: remove cdev from input_dev structure
    Input: remove duplicated headers in drivers/char/keyboard.c
    Input: i8042 - add Dritek keyboard extension quirk
    Input: add Tosa keyboard driver
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC32]: Use regsets in arch_ptrace().
    [SPARC64]: Use regsets in arch_ptrace().
    [SPARC32]: Use regsets for ELF core dumping.
    [SPARC64]: Use regsets for ELF core dumping.
    [SPARC64]: Remove unintentional ptrace debugging messages.
    [SPARC]: Move over to arch_ptrace().
    [SPARC]: Remove PTRACE_SUN* handling.
    [SPARC]: Kill DEBUG_PTRACE code.
    [SPARC32]: Add user regset support.
    [SPARC64]: Add user regsets.
    [SPARC64]: Fix booting on non-zero cpu.

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6: (120 commits)
    [MTD] Fix mtdoops.c compilation
    [MTD] [NOR] fix startup lock when using multiple nor flash chips
    [MTD] [DOC200x] eccbuf is statically defined and always evaluate to true
    [MTD] Fix maps/physmap.c compilation with CONFIG_PM
    [MTD] onenand: Add panic_write function to the onenand driver
    [MTD] mtdoops: Use the panic_write function when present
    [MTD] Add mtd panic_write function pointer
    [MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support.
    [MTD] physmap.c: Add support for multiple resources
    [MTD] [NAND] Fix misparenthesization introduced by commit 78b65179...
    [MTD] [NAND] Fix Blackfin NFC ECC calculating bug with page size 512 bytes
    [MTD] [NAND] Remove wrong operation in PM function of the BF54x NFC driver
    [MTD] [NAND] Remove unused variable in plat_nand_remove
    [MTD] Unlocking all Intel flash that is locked on power up.
    [MTD] [NAND] at91_nand: Make mtdparts option can override board info
    [MTD] mtdoops: Various minor cleanups
    [MTD] mtdoops: Ensure sequential write to the buffer
    [MTD] mtdoops: Perform write operations in a workqueue
    [MTD] mtdoops: Add further error return code checking
    [MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c
    ...

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (112 commits)
    ACPI: fix build warning
    Revert "cpuidle: build fix for non-x86"
    ACPI: update intrd DSDT override console messages
    ACPI: update DSDT override documentation
    ACPI: Add "acpi_no_initrd_override" kernel parameter
    ACPI: its a directory not a folder....
    ACPI: misc cleanups
    ACPI: add missing prink prefix strings
    ACPI: cleanup acpi.h
    ACPICA: fix CONFIG_ACPI_DEBUG_FUNC_TRACE build
    ACPI: video: Ignore ACPI video devices that aren't present in hardware
    ACPI: video: reset brightness on resume
    ACPI: video: call ACPI notifier chain for ACPI video notifications
    ACPI: create notifier chain to get hotkey events to graphics driver
    ACPI: video: delete unused display switch on hotkey event code
    ACPI: video: create "brightness_switch_enabled" modparam
    cpuidle: Add a poll_idle method
    ACPI: cpuidle: Support C1 idle time accounting
    ACPI: enable MWAIT for C1 idle
    ACPI: idle: Fix acpi_safe_halt usages and interrupt enabling/disabling
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
    leds: Add HP Jornada 6xx driver
    leds: Remove the now uneeded ixp4xx driver
    leds: Add power LED to the wrap driver
    leds: Fix led-gpio active_low default brightness
    leds: hw acceleration for Clevo mail LED driver
    leds: Add support for hardware accelerated LED flashing
    leds: Standardise LED naming scheme
    leds: Add clevo notebook LED driver

    Linus Torvalds
     
  • The recently introduced page walker (walk_page_range()) calls pgd_offset with a
    const struct mm_struct pointer, causing the following compile warning on m68k:

    mm/pagewalk.c:111: warning: passing argument 1 of 'pgd_offset' discards qualifiers from pointer target type

    Make the `mm' parameter of the inline function pgd_offset() const to shut it
    up.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
    [CPUFREQ] Add missing printk levels to e_powersaver
    [CPUFREQ] Fix sparse warning in powernow-k8
    [CPUFREQ] Support Model D parts and newer in e_powersaver
    [CPUFREQ] Powernow-k8: Update to support the latest Turion processors
    [CPUFREQ] fix configuration help message
    [CPUFREQ] powernow-k8 print pstate instead of fid/did for family 10h
    [CPUFREQ] Eliminate cpufreq_userspace scaling_setspeed deadlock
    [CPUFREQ] gx-suspmod.c: use boot_cpu_data instead of current_cpu_data
    [CPUFREQ] fix incorrect comment on show_available_freqs() in freq_table.c
    [CPUFREQ] drivers/cpufreq: Add missing "space"
    [CPUFREQ] arch/x86: Add missing "space"
    [CPUFREQ] Remove pointless Kconfig dependancy

    Linus Torvalds
     
  • * 'for-2.6.25' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (69 commits)
    [POWERPC] Add SPE registers to core dumps
    [POWERPC] Use regset code for compat PTRACE_*REGS* calls
    [POWERPC] Use generic compat_sys_ptrace
    [POWERPC] Use generic compat_ptrace_request
    [POWERPC] Use generic ptrace peekdata/pokedata
    [POWERPC] Use regset code for PTRACE_*REGS* requests
    [POWERPC] Switch to generic compat_binfmt_elf code
    [POWERPC] Switch to using user_regset-based core dumps
    [POWERPC] Add user_regset compat support
    [POWERPC] Add user_regset_view definitions
    [POWERPC] Use user_regset accessors for GPRs
    [POWERPC] ptrace accessors for special regs MSR and TRAP
    [POWERPC] Use user_regset accessors for SPE regs
    [POWERPC] Use user_regset accessors for altivec regs
    [POWERPC] Use user_regset accessors for FP regs
    [POWERPC] mpc52xx: fix compile error introduce when rebasing patch
    [POWERPC] 4xx: PCIe indirect DCR spinlock fix.
    [POWERPC] Add missing native dcr dcr_ind_lock spinlock
    [POWERPC] 4xx: Fix offset value on Warp board
    [POWERPC] 4xx: Add 440EPx Sequoia ehci dts entry
    ...

    Linus Torvalds
     
  • - Cy_EVENT_OPEN_WAKEUP is simple wake_up
    - Cy_EVENT_HANGUP is wake_up + tty_hangup, which schedules its own work
    - Cy_EVENT_WRITE_WAKEUP is tty_wakeup which may be called directly too

    Signed-off-by: Jiri Slaby
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • - tty_hangup schedules a bottomhalf itself, tty_wakeup doesn't need it
    - call the CD code (part of work handler previously) directly from the code
    (it wakes somebody up or calls tty_hangup at worse)

    Signed-off-by: Jiri Slaby
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • tty_hangup schedules a work for hangup itself, no need to do it in the driver.

    Signed-off-by: Jiri Slaby
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • There is no need to schedule a bottomhalf for either of them. One is fast
    and the another schedules a bottomhalf itself.

    Signed-off-by: Jiri Slaby
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Signed-off-by: Jiri Slaby
    Cc: Alan Cox
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Use the architecture specific __cmpxchg_u32 for 32 bits cmpxchg)_local. Else,
    use the new generic cmpxchg_local (disables interrupt).

    Signed-off-by: Mathieu Desnoyers
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Miles Bader
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use cmpxchg_u32 and cmpxchg_u64 for cmpxchg_local and cmpxchg64_local. For other
    type sizes, use the new generic cmpxchg_local (disables interrupt).

    Change:
    Since the header depends on local_irqsave/local_irqrestore, it must be
    included after their declaration.

    Actually, being below the
    #include should be enough, and on sparc64 it is
    included at the beginning of system.h.

    So it makes sense to move it up for sparc64.

    Signed-off-by: Mathieu Desnoyers
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Move cmpxchg and add cmpxchg_local to system.h.
    Use the new generic cmpxchg_local (disables interrupt).

    Signed-off-by: Mathieu Desnoyers
    Cc: William Lee Irwin III
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the standard __cmpxchg for every type that can be updated atomically.
    Use the new generic cmpxchg_local (disables interrupt) for other types.

    Signed-off-by: Mathieu Desnoyers
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Add a local processor version of cmpxchg for ppc.

    Implements __cmpxchg_u32_local and uses it for 32 bits cmpxchg_local.
    It uses the non NMI safe cmpxchg_local_generic for 1, 2 and 8 bytes
    cmpxchg_local.

    Signed-off-by: Gunnar Larisch
    Signed-off-by: Mathieu Desnoyers
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Gunnar Larisch
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Kyle McMartin
    Cc: Grant Grundler
    Cc: Matthew Wilcox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Greg Ungerer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • On m32r, use the new cmpxchg_local as primitive for the local_cmpxchg
    operation.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Hirokazu Takata
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • the #endif /* CONFIG_SMP */ should cover the default condition, or it may cause
    bad parameter to be silently missed.

    To make it work correctly, we have to remove the ifdef CONFIG SMP surrounding
    __xchg_called_with_bad_pointer declaration. Thanks to Adrian Bunk for detecting
    this.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Hirokazu Takata
    Cc: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Add __xchg_local, xchg_local (define), __cmpxchg_local_u32, __cmpxchg_local,
    cmpxchg_local(macro).

    cmpxchg_local and cmpxchg64_local will use the architecture specific
    __cmpxchg_local_u32 for 32 bits arguments, and use the generic
    __cmpxchg_local_generic for 8, 16 and 64 bits arguments.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Hirokazu Takata
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Add the primitives cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64. They
    use cmpxchg_acq as underlying macro, just like the already existing ia64
    cmpxchg().

    Changelog:

    ia64 cmpxchg_local coding style fix
    Quoting Keith Owens:

    As a matter of coding style, I prefer

    #define cmpxchg_local cmpxchg
    #define cmpxchg64_local cmpxchg64

    Which makes it absolutely clear that they are the same code. With your
    patch, humans have to do a string compare of two defines to see if they
    are the same.

    Note cmpxchg is *not* a performance win vs interrupt disable / enable on IA64.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Christoph Lameter
    Cc: "Luck, Tony"
    Cc: Keith Owens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt) for 8, 16 and 64 bits
    arguments. Use the 32 bits cmpxchg available on the architecture for 32 bits
    arguments.

    Signed-off-by: Mathieu Desnoyers
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Mikael Starvik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set since nobody seems to know why __cmpxchg
    has been implemented in assembly in the first place thather than in plain C.

    Signed-off-by: Mathieu Desnoyers
    Cc: Bryan Wu
    Cc: Michael Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt) for 8, 16 and 64 bits
    cmpxchg_local. Use the __cmpxchg_u32 primitive for 32 bits cmpxchg_local.

    Note that cmpxchg only uses the __cmpxchg_u32 or __cmpxchg_u64 and will cause
    a linker error if called with 8 or 16 bits argument.

    Signed-off-by: Mathieu Desnoyers
    Acked-by: Haavard Skinnemoen
    Cc: Haavard Skinnemoen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • Use the new generic cmpxchg_local (disables interrupt). Also use the generic
    cmpxchg as fallback if SMP is not set.

    Signed-off-by: Mathieu Desnoyers
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers