04 Oct, 2006

6 commits

  • The patch below corrects multiple occurances of "the the"
    typos across several files, both in source comments and KConfig files.
    There is no actual code changed, only text. Note this only affects the /arch
    directory, and I believe I could find many more elsewhere. :)

    Signed-off-by: Adrian Bunk

    Matt LaPlante
     
  • Now that devfs is removed, there's no longer any need to document how to
    do this or that with devfs.

    This patch includes some improvements by Joe Perches.

    Signed-off-by: Adrian Bunk

    Adrian Bunk
     
  • This patch removes some obsolete contact information from
    Documentation/input/input.txt

    Signed-off-by: Adrian Bunk

    Adrian Bunk
     
  • Jesper Juhl reported that testing the software math-emulation by forcing
    "no387" doesn't work on modern CPU's.

    The reason was two-fold:
    - you also need to pass in "nofxsr" to make sure that we not only don't
    touch the old i387 legacy hardware, it also needs to disable the
    modern XMM/FXSR sequences
    - "nofxsr" didn't actually clear the capability bits immediately,
    leaving the early boot sequence still using FXSR until we got to
    the identify_cpu() stage.

    This fixes the "nofxsr" flag to take effect immediately on the boot CPU.

    Debugging by Randy Dunlap

    Acked-by: Randy Dunlap
    Cc: Jesper Juhl
    Cc: Andi Kleen
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 3848/1: pxafb: Add option of fixing video modes and spitz QVGA mode support
    [ARM] 3880/1: remove the last trace of iop31x support
    [ARM] 3879/1: ep93xx: instantiate platform devices for ep93xx ethernet
    [ARM] 3809/3: get rid of 4 megabyte kernel image size limit
    [ARM] Fix XIP_KERNEL build error in arch/arm/mm/mmu.c
    [ARM] 3874/1: Remove leftover usage of asm/timeofday.h

    Linus Torvalds
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-serial: (21 commits)
    [SERIAL] add PNP IDs for FPI based touchscreens
    [SERIAL] Magic SysRq SAK does nothing on serial consoles
    [SERIAL] tickle NMI watchdog on serial output.
    [SERIAL] Fix oops when removing suspended serial port
    [SERIAL] Fix resume handling bug
    [SERIAL] Remove wrong asm/serial.h inclusions
    [SERIAL] CONFIG_PM=n slim: drivers/serial/8250_pci.c
    [SERIAL] OMAP1510 serial fix for 115200 baud
    [SERIAL] returning proper error from serial core driver
    [SERIAL] Make uart_line_info() correctly tell MMIO from I/O port
    [SERIAL] suspend/resume handlers don't have level arg anymore
    [SERIAL] 8250 resourse management fixes
    [SERIAL] serial_cs: Add quirk for brainboxes 2-port RS232 card
    [SERIAL] serial_cs: handle Nokia multi->single port bodge via config quirk
    [SERIAL] serial_cs: add configuration quirk
    [SERIAL] serial_cs: Convert Oxford 950 / Possio GCC wakeup quirk
    [SERIAL] serial_cs: convert IBM post-init handling to a quirk
    [SERIAL] serial_cs: allow wildcarded quirks
    [SERIAL] serial_cs: convert multi-port table to quirk table
    [SERIAL] serial_cs: Use clean up multiport card detection
    ...

    Linus Torvalds
     

03 Oct, 2006

34 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fixup __raw_read_trylock().
    sh: Kill off remaining config.h references.
    sh: Initial gitignore list
    sh: build fixes for defconfigs.
    sh: Kill off more dead headers.
    sh: Set pclk default for SH7705.
    sh: defconfig updates.

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh64-2.6:
    sh64: Remove me from sh64 maintainers.
    sh64: Update cayman defconfig.

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Update defconfig.
    [SPARC64]: Do not include compat.h from asm-sparc64/signal.h any more.
    [SPARC64]: Move signal compat bits to new header file.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (29 commits)
    [POWERPC] Fix rheap alignment problem
    [POWERPC] Use check_legacy_ioport() for ISAPnP
    [POWERPC] Avoid NULL pointer in gpio1_interrupt
    [POWERPC] Enable generic rtc hook for the MPC8349 mITX
    [POWERPC] Add powerpc get/set_rtc_time interface to new generic rtc class
    [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot
    [POWERPC] fix spin lock nesting in hvc_iseries
    [POWERPC] EEH failure to mark pci slot as frozen.
    [POWERPC] update powerpc defconfig files after libata kconfig breakage
    [POWERPC] enable sysrq in pmac32_defconfig
    [POWERPC] UPIO_TSI cleanup
    [POWERPC] rewrite mkprep and mkbugboot in sane C
    [POWERPC] maple/pci iomem annotations
    [POWERPC] powerpc oprofile __user annotations
    [POWERPC] cell spufs iomem annotations
    [POWERPC] NULL noise removal: spufs
    [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c
    [POWERPC] update mpc8349_itx_defconfig and remove some debug settings
    [POWERPC] Always call cede in pseries dedicated idle loop
    [POWERPC] Fix loop logic in irq_alloc_virt()
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild:
    kbuild: trivial documentation fixes
    kconfig: fix saving alternate kconfig file in parent dir
    kbuild: make modpost processing configurable
    kconfig/menuconfig: do not let ncurses clutter screen on exit
    kconfig/lxdialog: clear long menu lines
    kbuild: do not build mconf & lxdialog unless needed
    kconfig/lxdialog: fix make mrproper
    kconfig/lxdialog: support resize
    kconfig/lxdialog: let behave as expected
    kconfig/menuconfig: lxdialog is now built-in
    kconfig/lxdialog: add a new theme bluetitle which is now default
    kconfig/lxdialog: add support for color themes and add blackbg theme
    kconfig/lxdialog: refactor color support

    Linus Torvalds
     
  • check pr_debug() arguments

    When DEBUG isn't defined pr_debug() is defined away as an empty macro. By
    throwing away the arguments we allow completely incorrect code to build.

    Instead let's make it an empty inline which checks arguments and mark it so gcc
    can check the format specification.

    This results in a seemingly insignificant code size increase. A x86-64
    allyesconfig:

    text data bss dec hex filename
    25354768 7191098 4854720 37400586 23ab00a vmlinux.before
    25354945 7191138 4854720 37400803 23ab0e3 vmlinux

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • drivers/isdn/sc/event.c: In function 'indicate_status':
    drivers/isdn/sc/event.c:49: error: 'events' undeclared (first use in this function)
    drivers/isdn/sc/event.c:49: error: (Each undeclared identifier is reported only once
    drivers/isdn/sc/event.c:49: error: for each function it appears in.)
    drivers/isdn/sc/event.c:49: warning: format '%d' expects type 'int', but argument 4 has type 'ulong'

    drivers/isdn/sc/interrupt.c: In function 'interrupt_handler':
    drivers/isdn/sc/interrupt.c:97: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'

    drivers/isdn/sc/timer.c: In function 'check_reset':
    drivers/isdn/sc/timer.c:80: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'

    Acked-by: Karsten Keil
    Cc: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • When pr_debug() is enabled:

    drivers/isdn/sc/command.c: In function 'command':
    drivers/isdn/sc/command.c:107: error: 'commands' undeclared (first use in this function)
    drivers/isdn/sc/command.c:107: error: (Each undeclared identifier is reported only once
    drivers/isdn/sc/command.c:107: error: for each function it appears in.)
    drivers/isdn/sc/command.c:122: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'dial':
    drivers/isdn/sc/command.c:199: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'answer':
    drivers/isdn/sc/command.c:221: warning: format '%s' expects type 'char *', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'hangup':
    drivers/isdn/sc/command.c:244: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'setl2':
    drivers/isdn/sc/command.c:265: error: 'l2protos' undeclared (first use in this function)
    drivers/isdn/sc/command.c: In function 'setl3':
    drivers/isdn/sc/command.c:297: error: 'l3protos' undeclared (first use in this function)
    drivers/isdn/sc/command.c:297: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'acceptb':
    drivers/isdn/sc/command.c:315: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'clreaz':
    drivers/isdn/sc/command.c:330: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    drivers/isdn/sc/command.c: In function 'seteaz':
    drivers/isdn/sc/command.c:345: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'

    Cc: Zach Brown
    Acked-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • It looks like Zach Brown's patch pr_debug-check-pr_debug-arguments
    worked as inteded. That is, it doesn't "allow completely incorrect code
    to build." :).

    The arm build fails with the following message:
    CC arch/arm/vfp/vfpsingle.o
    arch/arm/vfp/vfpsingle.c: In function `__vfp_single_normaliseround':
    arch/arm/vfp/vfpsingle.c:201: error: `func' undeclared (first use in
    this function)
    arch/arm/vfp/vfpsingle.c:201: error: (Each undeclared identifier is
    reported only once
    arch/arm/vfp/vfpsingle.c:201: error: for each function it appears in.)
    make[1]: *** [arch/arm/vfp/vfpsingle.o] Error 1
    make: *** [arch/arm/vfp] Error 2

    The following patch fixes the issue by using func only when DEBUG is
    defined.

    Signed-off-by: Frederik Deweerdt
    Cc: Russell King
    Cc: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Frederik Deweerdt
     
  • trident: use size_t length modifier in pr_debug format arguments

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • ifb: replace missing comma to separate pr_debug arguments

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • dell_rbu: fix pr_debug argument warnings

    Use size_t length modifier when outputting size_t and use %p instead of %lu for
    'u8 *'.

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • tipar: repair nonexistant pr_debug argument use

    I guessed what the pr_debug meant by 'data'.
    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • umem: repair nonexistant bh pr_debug reference

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • sysfs: use size_t length modifier in pr_debug format arguments

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • configfs: use size_t length modifier in pr_debug format argument

    Signed-off-by: Zach Brown
    Acked-by: Joel Becker
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • aio: use size_t length modifier in pr_debug format arguments

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Clements
     
  • find_first_set doesn't find the least-significant bit on bigendian machines,
    so it is really wrong to use it.

    ffs is closer, but takes an 'int' and we have a 'unsigned long'. So use
    ffz(~X) to convert a chunksize into a chunkshift.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Clements
     
  • I have had enough success reports not to believe that this is safe for 2.6.19.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Once upon a time we needed to fixed limit to the number of md devices,
    probably because we preallocated some array. This need no longer exists, but
    we still have an arbitrary limit.

    So remove MAX_MD_DEVS and allow as many devices as we can fit into the 'minor'
    part of a device number.

    Also remove some useless noise at init time (which reports MAX_MD_DEVS) and
    remove MD_THREAD_NAME_MAX which hasn't been used for a while.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • md.txt has two sections describing the 'level' sysfs attribute, and some of
    the text is out-of-date. So make just one section, and make it right.

    Cc: Christian Kujau
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • It is possible to request a 'check' of an md/raid array where the whole array
    is read and consistancies are reported.

    This uses the same mechanisms as 'resync' and so reports in the kernel logs
    that a resync is being started. This understandably confuses/worries people.

    Also the text in /proc/mdstat suggests a 'resync' is happen when it is just a
    check.

    This patch changes those messages to be more specific about what is happening.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • This is very different from other raid levels and all requests go through a
    'stripe cache', and it has congestion management already.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • raid1, raid10 and multipath don't report their 'congested' status through
    bdi_*_congested, but should.

    This patch adds the appropriate functions which just check the 'congested'
    status of all active members (with appropriate locking).

    raid1 read_balance should be modified to prefer devices where
    bdi_read_congested returns false. Then we could use the '&' branch rather
    than the '|' branch. However that should would need some benchmarking first
    to make sure it is actually a good idea.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Each backing_dev needs to be able to report whether it is congested, either by
    modulating BDI_*_congested in ->state, or by defining a ->congested_fn.
    md/raid did neither of these. This patch add a congested_fn which simply
    checks all component devices to see if they are congested.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • The error handling routines don't use proper locking, and so two concurrent
    errors could trigger a problem.

    So:
    - use test-and-set and test-and-clear to synchonise
    the In_sync bits with the ->degraded count
    - use the spinlock to protect updates to the
    degraded count (could use an atomic_t but that
    would be a bigger change in code, and isn't
    really justified)
    - remove un-necessary locking in raid5

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • It is equivalent to conf->raid_disks - conf->mddev->degraded.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • raid1d has toooo many nested block, so take the fix_read_error functionality
    out into a separate function.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Signed-off-by: Coywolf Qi Hunt
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Coywolf Qi Hunt
     
  • Add a new sysfs interface that allows the bitmap of an array to be dirtied.
    The interface is write-only, and is used as follows:

    echo "1000" > /sys/block/md2/md/bitmap

    (dirty the bit for chunk 1000 [offset 0] in the in-memory and on-disk
    bitmaps of array md2)

    echo "1000-2000" > /sys/block/md1/md/bitmap

    (dirty the bits for chunks 1000-2000 in md1's bitmap)

    This is useful, for example, in cluster environments where you may need to
    combine two disjoint bitmaps into one (following a server failure, after a
    secondary server has taken over the array). By combining the bitmaps on
    the two servers, a full resync can be avoided (This was discussed on the
    list back on March 18, 2005, "[PATCH 1/2] md bitmap bug fixes" thread).

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Clements
     
  • It isn't needed as mddev->degraded contains equivalent info.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • They are not needed. conf->failed_disks is the same as mddev->degraded and
    conf->working_disks is conf->raid_disks - mddev->degraded.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown