14 Oct, 2007

25 commits

  • commit e30408b2a99cb7b8bf529c7dc2328a19d71894cf ("JFS: fix bio-related
    build breakage") removed some "return 0;" statements, rather than
    changing them to null returns.

    Signed-off-by: Dave Kleikamp
    Cc: Jeff Garzik
    Cc: Randy Dunlap
    Cc: Jens Axboe
    Signed-off-by: Linus Torvalds

    Dave Kleikamp
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] SMP: Fix use of cpumasks.
    [MIPS] Revert "[MIPS] tlbex.c: Cleanup __init usage."
    [MIPS] CFE: Add missing parenthesis.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (27 commits)
    alim15x3: remove redundant m5229_revision check
    sc1200: fix ->dma_base equal zero handling
    cs5520: fix ->dma_base equal zero handling
    sgiioc4: add missing ->dma_base check
    cs5535: add missing ->dma_base check
    ide: remove CONFIG_IDEDMA_IVB config option
    ide: change master/slave IDENTIFY order
    ide: move ide_config_drive_speed() calls to upper layers (take 2)
    pdc202xx_new: check ide_config_drive_speed() return value
    cs5535: check ide_config_drive_speed() return value
    amd74xx/via82cxxx: check ide_config_drive_speed() return value
    au1xxx: fix au1xxx_set_pio_mode()
    icside: use ide_tune_dma()
    ide-pmac: fix PIO setup and enable autotune
    ide-pmac: use ide_tune_dma() (take 2)
    ide-pmac: remove pmac_ide_do_setfeature() (take 2)
    ide-pmac: remove nIEN clearing from pmac_ide_do_setfeature()
    ide-pmac: use __ide_wait_stat()
    ide-pmac: remove extra good status wait from pmac_ide_do_setfeature()
    ide: add __ide_wait_stat() helper
    ...

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6: (91 commits)
    [MTD] [NAND] Blackfin on-chip NAND Flash Controller driver
    [MTD] [NOR] fix ctrl-alt-del can't reboot for intel flash bug
    [MTD] [NAND] Fix compiler warning in Alauda driver
    [JFFS2] Remove stray debugging printk
    [JFFS2] Handle dirents on the flash with embedded zero bytes in names.
    [JFFS2] Check for creation of dirents with embedded zero bytes in name.
    [JFFS2] Don't count all 'very dirty' blocks except in debug mode
    [JFFS2] Check whether garbage-collection actually obsoleted its victim.
    [JFFS2] Relax threshold for triggering GC due to dirty blocks.
    [MTD] [OneNAND] Fix typo related with recent commit
    [JFFS2] Trigger garbage collection when very_dirty_list size becomes excessive
    [MTD] [NAND] Avoid deadlock in erase callback; release chip lock first.
    [MTD] [NAND] Resume method for CAFÉ NAND controller
    [MTD] [NAND] Fix PCI ident table for CAFÉ NAND controller.
    [MTD] [NAND] s3c2410: fix arch moves
    [MTD] [OneNAND] fix numerous races
    [MTD] map driver for NOR flash on the Intel Vermilion Range chipset
    [JFFS2] Fix unpoint length
    [MTD] fix CFI point method for discontiguous maps
    [MTD] MAPS: Merge Lubbock and Mainstone drivers into common PXA2xx driver
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm: (106 commits)
    KVM: Replace enum by #define
    KVM: Skip pio instruction when it is emulated, not executed
    KVM: x86 emulator: popf
    KVM: x86 emulator: fix src, dst value initialization
    KVM: x86 emulator: jmp abs
    KVM: x86 emulator: lea
    KVM: X86 emulator: jump conditional short
    KVM: x86 emulator: imlpement jump conditional relative
    KVM: x86 emulator: sort opcodes into ascending order
    KVM: Improve emulation failure reporting
    KVM: x86 emulator: pushf
    KVM: x86 emulator: call near
    KVM: x86 emulator: push imm8
    KVM: VMX: Fix exit qualification width on i386
    KVM: Move main vcpu loop into subarch independent code
    KVM: VMX: Move vm entry failure handling to the exit handler
    KVM: MMU: Don't do GFP_NOWAIT allocations
    KVM: Rename kvm_arch_ops to kvm_x86_ops
    KVM: Simplify memory allocation
    KVM: Hoist SVM's get_cs_db_l_bits into core code.
    ...

    Linus Torvalds
     
  • Since the x86 merge, lots of files that referenced their own filenames
    are no longer correct. Rather than keep them up to date, just delete
    them, as they add no real value.

    Additionally:
    - fix up comment formatting in scx200_32.c
    - Remove a credit from myself in setup_64.c from a time when we had no SCM
    - remove longwinded history from tsc_32.c which can be figured out from
    git.

    Signed-off-by: Dave Jones
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • In commit 4665079cbb2a3e17de82f2ab2940b9f97f37d65e ("[NETNS]: Move some
    code into __init section when CONFIG_NET_NS=n") we got a new section -
    .exit.text.refok (more of 'let's tell modpost that some bogus calls are
    not bogus', a-la text.init.refok).

    Unfortunately, the commit in question forgot to add it to TEXT_TEXT,
    with rather amusing results.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Breaks on any target that has copy_to_user() defined as a non-trivial
    macro.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • a) include/asm-um/arch can't just point to include/asm-$(SUBARCH) now
    b) arch/{i386,x86_64}/crypto are merged now
    c) subarch-obj needed changes
    d) cpufeature_64.h should pull "cpufeature_32.h", not
    since it can be included from asm-um/cpufeature.h
    e) in case of uml-i386 we need CONFIG_X86_32 for make and gcc, but not
    for Kconfig
    f) sysctl.c shouldn't do vdso_enabled for uml-i386 (actually, that one
    should be registered from corresponding arch/*/kernel/*, with ifdef
    going away; that's a separate patch, though).

    With that and with Stephen's patch ("[PATCH net-2.6] uml: hard_header fix")
    we have uml allmodconfig building both on i386 and amd64.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Fix networking code kernel-doc for newly added parameters.

    Warning(linux-2.6.23-git2//net/core/sock.c:879): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:570): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:594): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:617): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:641): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:667): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:722): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:959): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:1195): No description found for parameter 'dev'
    Warning(linux-2.6.23-git2//net/core/dev.c:2105): No description found for parameter 'n'
    Warning(linux-2.6.23-git2//net/core/dev.c:3272): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//net/core/dev.c:3445): No description found for parameter 'net'
    Warning(linux-2.6.23-git2//include/linux/netdevice.h:1301): No description found for parameter 'cpu'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix docbook templates for new x86 path/filenames:
    docproc: linux-2.6.23-git2/include/asm-i386/mca_dma.h: No such file or directory

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix docbook templates for new x86 path/filenames.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix docbook templates for modified x86 path/filenames.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix docbook templates for new x86 path/filenames:

    docproc: linux-2.6.23-git2/include/asm-i386/io.h: No such file or directory

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh64-2.6:
    sh64: mach-cayman: Build fixes.
    sh64: Symbol export fixups.
    sh64: linker script tidying and alignment fixups.
    sh64: Set KBUILD_IMAGE to make the rpm target happy.
    sh64: Kill off obsolete linux/blk.h reference.
    sh64: cleanup struct irqaction initializers.
    sh64: Kill off dead gdb stub symbol.
    sh64: alphanumeric display only on Cayman.
    sh64: Add defconfigs for mach-sim and mach-harp.
    sh64: update cayman defconfig.
    sh64: Tidy up Kconfig dependencies.
    sh64: Move consistent DMA routines to arch/sh64/mm/.
    sh64: Some symbol exports and build fixes.
    sh64: mach-sim: Build fixes.
    sh64: mach-harp: Build fixes.
    sh64: Kill off duplicate frame pointer option.
    sh64: Kill off dead ROM-RAM and generic boards.
    sh64: Tidy up includes for Cayman board.
    sh64: Move *_p() I/O routine variants to io.h.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (124 commits)
    sh: allow building for both r2d boards in same binary.
    sh: fix r2d board detection
    sh: Discard .exit.text/.exit.data at runtime.
    sh: Fix up some section alignments in linker script.
    sh: Fix SH-4 DMAC CHCR masking.
    sh: Rip out left-over nommu cond syscall cruft.
    sh: Make kgdb i-cache flushing less inept.
    sh: kgdb section mismatches and tidying.
    sh: cleanup struct irqaction initializers.
    sh: early_printk tidying.
    video: pvr2fb: Add TV (RGB) support to Dreamcast PVR driver.
    sh: Conditionalize gUSA support.
    sh: Follow gUSA preempt changes in __switch_to().
    sh: Tidy up gUSA preempt handling.
    sh: __copy_user() optimizations for small copies.
    sh: clkfwk: Support multi-level clock propagation.
    sh: Fix URAM start address on SH7785.
    sh: Use boot_cpu_data for CPU probe.
    sh: Support extended mode TLB on SH-X3.
    sh: Bump MAX_ACTIVE_REGIONS for SH7785.
    ...

    Linus Torvalds
     
  • ssb bus needs

    linux/drivers/ssb/main.c: In function 'ssb_ssb_read16':
    linux/drivers/ssb/main.c:518: error: implicit declaration of function 'readw'
    linux/drivers/ssb/main.c: In function 'ssb_ssb_read32':
    linux/drivers/ssb/main.c:526: error: implicit declaration of function 'readl'
    linux/drivers/ssb/main.c: In function 'ssb_ssb_write16':
    linux/drivers/ssb/main.c:534: error: implicit declaration of function 'writew'
    linux/drivers/ssb/main.c: In function 'ssb_ssb_write32':
    linux/drivers/ssb/main.c:542: error: implicit declaration of function 'writel'

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

    Geert Uytterhoeven
     
  • b43 wireless needs

    linux/drivers/net/wireless/b43/pio.h: In function 'b43_pio_write':
    linux/drivers/net/wireless/b43/pio.h:89: error: implicit declaration of function 'mmiowb'

    linux/drivers/net/wireless/b43/phy.c: In function 'b43_phy_write':
    linux/drivers/net/wireless/b43/phy.c:301: error: implicit declaration of function 'mmiowb'

    linuxdrivers/net/wireless/b43/sysfs.c: In function 'b43_attr_interfmode_store':
    linuxdrivers/net/wireless/b43/sysfs.c:147: error: implicit declaration of function 'mmiowb'

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

    Geert Uytterhoeven
     
  • m68k: fix net drivers after recent get_stats updates

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

    Geert Uytterhoeven
     
  • emc_endio returns void:
    linux/drivers/md/dm-emc.c: In function 'emc_endio':
    linux/drivers/md/dm-emc.c:58: warning: 'return' with a value, in function returning void

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

    Geert Uytterhoeven
     
  • libffi in GCC 4.2 needs cachectl.h to do its cache flushing. But we
    don't currently export it. I believe this patch should do the trick.

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

    Matthew Wilcox
     
  • m68k: ignore restart_syscall, which is not needed on m68k.

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

    Geert Uytterhoeven
     
  • m68k: Atari keyboard ACIA driver cleanup:
    - removed dead key autorepeat code
    - removed hardcoded initial keymap

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

    Geert Uytterhoeven
     
  • m68k: Atari input drivers cleanup:
    - memleak on failed init/register of input devices fixed
    - correct keycodes table (Atari keycodes are almost, but not entirely, equal
    to Linux keycodes).

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

    Geert Uytterhoeven
     

13 Oct, 2007

15 commits

  • init_dma_ali15x3() guarantees that hwif->dma_base will never be set for
    m5229_revision < 0x20 so remove redundant m5229_revision >= 0x20 check from
    init_hwif_common_ali15x3().

    While at it remove incorrect comment.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Set hwif->atapi_dma/{ultra,mwdma}_mask and drive->autodma after checking that
    ->dma_base exists. If ->dma_base is not set (== PCI BAR4 cannot be reserved)
    then DMA hooks shouldn't be initialized or bad things will happen.

    OTOH hwif->set_{pio,dma}_mode hooks should be set even if hwif->dma_base == 0.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Set hwif->ide_dma_{check,on} and hwif->autodma to 1 after checking that
    ->dma_base exists. If ->dma_base is not set (== PCI BAR4 cannot be reserved)
    then DMA hooks shouldn't be initialized or bad things will happen.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • If ->dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks
    shouldn't be initialized or bad things will happen.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • If ->dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks
    shouldn't be initialized or bad things will happen.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Devices which don't set word 93 validation bit should be now handled by
    ide-iops.c::ivb_list[] and for debugging purposes cable detection can be
    completely overriden with "idex=ata66" parameter.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Need to probe slave device first to make it release PDIAG-
    (this is required for correct device side cable detection).

    Based on libata commit f31f0cc2f0b7527072d94d02da332d9bb8d7d94c.

    Thanks to Craig for testing this patch.

    Cc: Craig Block
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Convert {ide_hwif_t,ide_pci_device_t}->host_flag to be u16.

    * Add IDE_HFLAG_POST_SET_MODE host flag to indicate the need to program
    the host for the transfer mode after programming the device. Set it
    in au1xxx-ide, amd74xx, cs5530, cs5535, pdc202xx_new, sc1200, pmac
    and via82cxxx host drivers.

    * Add IDE_HFLAG_NO_SET_MODE host flag to indicate the need to completely
    skip programming of host/device for the transfer mode ("smart" hosts).
    Set it in it821x host driver and check it in ide_tune_dma().

    * Add ide_set_pio_mode()/ide_set_dma_mode() helpers and convert all
    direct ->set_pio_mode/->speedproc users to use these helpers.

    * Move ide_config_drive_speed() calls from ->set_pio_mode/->speedproc
    methods to callers.

    * Rename ->speedproc method to ->set_dma_mode, make it void and update
    all implementations accordingly.

    * Update ide_set_xfer_rate() comments.

    * Unexport ide_config_drive_speed().

    v2:
    * Fix issues noticed by Sergei:
    - export ide_set_dma_mode() instead of moving ->set_pio_mode abuse wrt
    to setting DMA modes from sc1200_set_pio_mode() to do_special()
    - check IDE_HFLAG_NO_SET_MODE in ide_tune_dma()
    - check for (hwif->set_pio_mode) == NULL in ide_set_pio_mode()
    - check for (hwif->set_dma_mode) == NULL in ide_set_dma_mode()
    - return -1 from ide_set_{pio,dma}_mode() if ->set_{pio,dma}_mode == NULL
    - don't set ->set_{pio,dma}_mode on it821x in "smart" mode
    - fix build problem in pmac.c
    - minor fixes in au1xxx-ide.c/cs5530.c/siimage.c
    - improve patch description

    Changes in behavior caused by this patch:
    - HDIO_SET_PIO_MODE ioctl would now return -ENOSYS for attempts to change
    PIO mode if it821x controller is in "smart" mode
    - removal of two debugging printk-s (from cs5530.c and sc1200.c)
    - transfer modes 0x00-0x07 passed from user space may be programmed twice on
    the device (not really an issue since 0x00 is not supported correctly by
    any host driver ATM, 0x01 is not supported at all and 0x02-0x07 are invalid)

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Check ide_config_drive_speed() return value.

    * While at also call ide_config_drive_speed() if the transfer mode is
    XFER_PIO_SLOW (this case happens iff the transfer mode has already been
    set on the device by ide-proc.c::set_xfer_rate()) and remove redundant
    setting of ->{init,current}_speed.

    * Bump driver version.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Set transfer mode on the device before programming the host controller for
    the new timings (matches what auide_tune_chipset() is doing wrt DMA modes).

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add "good DMA drives" hack for icside to ide-dma.c::ide_find_dma_mode()
    (in the long-term it should be either removed or generalized for all hosts).

    * Use ide_tune_dma() in icside.c::icside_dma_check().

    This results in the following changes in behavior:
    - pre-EIDE SWDMA modes are now also respected
    - drive->autodma is checked instead of hwif->autodma
    (doesn't really matter as icside sets both to "1")

    * Make ide-dma.c::__ide_dma_good_drive() static and drop "__" prefix.

    Cc: Russell King
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Benjamin Herrenschmidt
     
  • * Add missing initialization of hwif->autodma and drive->autodma to
    pmac_ide_setup_dma().

    * Use ide_tune_dma() in pmac_ide_dma_check().

    While at it:

    * Fix pmac_ide_dma_check() return value if DMA mode is not programmed
    (should be "-1" otherwise ide_set_dma() will try to enable DMA).

    * Remove unnecessary drive->using_dma fiddling (->dma_off_quietly is always
    called before ide_set_dma() call and ide_set_dma() calls ->ide_dma_on if
    ->ide_dma_check returns "0").

    v2:
    * No reason to blacklist all ide_floppy devices and the old code was always
    enabling DMA anyway (without even programming controller/device if the
    device was ide_floppy).

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz