11 Aug, 2010

4 commits

  • * 'for-2.6.36' of git://git.kernel.dk/linux-2.6-block: (149 commits)
    block: make sure that REQ_* types are seen even with CONFIG_BLOCK=n
    xen-blkfront: fix missing out label
    blkdev: fix blkdev_issue_zeroout return value
    block: update request stacking methods to support discards
    block: fix missing export of blk_types.h
    writeback: fix bad _bh spinlock nesting
    drbd: revert "delay probes", feature is being re-implemented differently
    drbd: Initialize all members of sync_conf to their defaults [Bugz 315]
    drbd: Disable delay probes for the upcomming release
    writeback: cleanup bdi_register
    writeback: add new tracepoints
    writeback: remove unnecessary init_timer call
    writeback: optimize periodic bdi thread wakeups
    writeback: prevent unnecessary bdi threads wakeups
    writeback: move bdi threads exiting logic to the forker thread
    writeback: restructure bdi forker loop a little
    writeback: move last_active to bdi
    writeback: do not remove bdi from bdi_list
    writeback: simplify bdi code a little
    writeback: do not lose wake-ups in bdi threads
    ...

    Fixed up pretty trivial conflicts in drivers/block/virtio_blk.c and
    drivers/scsi/scsi_error.c as per Jens.

    Linus Torvalds
     
  • This patch is against the 2.6.34 source.

    Paraphrased from the 1989 BSD patch by David Borman @ cray.com:

    These are the changes needed for the kernel to support
    LINEMODE in the server.

    There is a new bit in the termios local flag word, EXTPROC.
    When this bit is set, several aspects of the terminal driver
    are disabled. Input line editing, character echo, and mapping
    of signals are all disabled. This allows the telnetd to turn
    off these functions when in linemode, but still keep track of
    what state the user wants the terminal to be in.

    New ioctl:
    TIOCSIG Generate a signal to processes in the
    current process group of the pty.

    There is a new mode for packet driver, the TIOCPKT_IOCTL bit.
    When packet mode is turned on in the pty, and the EXTPROC bit
    is set, then whenever the state of the pty is changed, the
    next read on the master side of the pty will have the TIOCPKT_IOCTL
    bit set. This allows the process on the server side of the pty
    to know when the state of the terminal has changed; it can then
    issue the appropriate ioctl to retrieve the new state.

    Since the original BSD patches accompanied the source code for telnet
    I've left that reference here, but obviously the feature is useful for
    any remote terminal protocol, including ssh.

    The corresponding feature has existed in the BSD tty driver since 1989.
    For historical reference, a good copy of the relevant files can be found
    here:

    http://anonsvn.mit.edu/viewvc/krb5/trunk/src/appl/telnet/?pathrev=17741

    Signed-off-by: Howard Chu
    Cc: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    hyc@symas.com
     
  • As Jeff Dike pointed out, the Hayes ESP driver was removed in commit
    f53a2ade0bb9f2a81f473e6469155172a96b7c38, so these ioctl definitions
    should also be removed. This cleans up the remaining arch-specific
    locations of this ioctl value.

    Thanks to Arnd for pointing these out.

    Cc: Jeff Dike
    Cc: Arnd Bergmann
    Cc: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (96 commits)
    no need for list_for_each_entry_safe()/resetting with superblock list
    Fix sget() race with failing mount
    vfs: don't hold s_umount over close_bdev_exclusive() call
    sysv: do not mark superblock dirty on remount
    sysv: do not mark superblock dirty on mount
    btrfs: remove junk sb_dirt change
    BFS: clean up the superblock usage
    AFFS: wait for sb synchronization when needed
    AFFS: clean up dirty flag usage
    cifs: truncate fallout
    mbcache: fix shrinker function return value
    mbcache: Remove unused features
    add f_flags to struct statfs(64)
    pass a struct path to vfs_statfs
    update VFS documentation for method changes.
    All filesystems that need invalidate_inode_buffers() are doing that explicitly
    convert remaining ->clear_inode() to ->evict_inode()
    Make ->drop_inode() just return whether inode needs to be dropped
    fs/inode.c:clear_inode() is gone
    fs/inode.c:evict() doesn't care about delete vs. non-delete paths now
    ...

    Fix up trivial conflicts in fs/nilfs2/super.c

    Linus Torvalds
     

10 Aug, 2010

2 commits

  • kunmap_atomic() is currently at level -4 on Rusty's "Hard To Misuse"
    list[1] ("Follow common convention and you'll get it wrong"), except in
    some architectures when CONFIG_DEBUG_HIGHMEM is set[2][3].

    kunmap() takes a pointer to a struct page; kunmap_atomic(), however, takes
    takes a pointer to within the page itself. This seems to once in a while
    trip people up (the convention they are following is the one from
    kunmap()).

    Make it much harder to misuse, by moving it to level 9 on Rusty's list[4]
    ("The compiler/linker won't let you get it wrong"). This is done by
    refusing to build if the type of its first argument is a pointer to a
    struct page.

    The real kunmap_atomic() is renamed to kunmap_atomic_notypecheck()
    (which is what you would call in case for some strange reason calling it
    with a pointer to a struct page is not incorrect in your code).

    The previous version of this patch was compile tested on x86-64.

    [1] http://ozlabs.org/~rusty/index.cgi/tech/2008-04-01.html
    [2] In these cases, it is at level 5, "Do it right or it will always
    break at runtime."
    [3] At least mips and powerpc look very similar, and sparc also seems to
    share a common ancestor with both; there seems to be quite some
    degree of copy-and-paste coding here. The include/asm/highmem.h file
    for these three archs mention x86 CPUs at its top.
    [4] http://ozlabs.org/~rusty/index.cgi/tech/2008-03-30.html
    [5] As an aside, could someone tell me why mn10300 uses unsigned long as
    the first parameter of kunmap_atomic() instead of void *?

    Signed-off-by: Cesar Eduardo Barros
    Cc: Russell King (arch/arm)
    Cc: Ralf Baechle (arch/mips)
    Cc: David Howells (arch/frv, arch/mn10300)
    Cc: Koichi Yasutake (arch/mn10300)
    Cc: Kyle McMartin (arch/parisc)
    Cc: Helge Deller (arch/parisc)
    Cc: "James E.J. Bottomley" (arch/parisc)
    Cc: Benjamin Herrenschmidt (arch/powerpc)
    Cc: Paul Mackerras (arch/powerpc)
    Cc: "David S. Miller" (arch/sparc)
    Cc: Thomas Gleixner (arch/x86)
    Cc: Ingo Molnar (arch/x86)
    Cc: "H. Peter Anvin" (arch/x86)
    Cc: Arnd Bergmann (include/asm-generic)
    Cc: Rusty Russell ("Hard To Misuse" list)
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cesar Eduardo Barros
     
  • Add a flags field to help glibc implementing statvfs(3) efficiently.

    We copy the flag values from glibc, and add a new ST_VALID flag to
    denote that f_flags is implemented.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     

08 Aug, 2010

1 commit


07 Aug, 2010

2 commits

  • …x/kernel/git/tip/linux-2.6-tip

    * 'timers-timekeeping-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    um: Fix read_persistent_clock fallout
    kgdb: Do not access xtime directly
    powerpc: Clean up obsolete code relating to decrementer and timebase
    powerpc: Rework VDSO gettimeofday to prevent time going backwards
    clocksource: Add __clocksource_updatefreq_hz/khz methods
    x86: Convert common clocksources to use clocksource_register_hz/khz
    timekeeping: Make xtime and wall_to_monotonic static
    hrtimer: Cleanup direct access to wall_to_monotonic
    um: Convert to use read_persistent_clock
    timkeeping: Fix update_vsyscall to provide wall_to_monotonic offset
    powerpc: Cleanup xtime usage
    powerpc: Simplify update_vsyscall
    time: Kill off CONFIG_GENERIC_TIME
    time: Implement timespec_add
    x86: Fix vtime/file timestamp inconsistencies

    Trivial conflicts in Documentation/feature-removal-schedule.txt

    Much less trivial conflicts in arch/powerpc/kernel/time.c resolved as
    per Thomas' earlier merge commit 47916be4e28c ("Merge branch
    'powerpc.cherry-picks' into timers/clocksource")

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (162 commits)
    tracing/kprobes: unregister_trace_probe needs to be called under mutex
    perf: expose event__process function
    perf events: Fix mmap offset determination
    perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
    perf, powerpc: Convert the FSL driver to use local64_t
    perf tools: Don't keep unreferenced maps when unmaps are detected
    perf session: Invalidate last_match when removing threads from rb_tree
    perf session: Free the ref_reloc_sym memory at the right place
    x86,mmiotrace: Add support for tracing STOS instruction
    perf, sched migration: Librarize task states and event headers helpers
    perf, sched migration: Librarize the GUI class
    perf, sched migration: Make the GUI class client agnostic
    perf, sched migration: Make it vertically scrollable
    perf, sched migration: Parameterize cpu height and spacing
    perf, sched migration: Fix key bindings
    perf, sched migration: Ignore unhandled task states
    perf, sched migration: Handle ignored migrate out events
    perf: New migration tool overview
    tracing: Drop cpparg() macro
    perf: Use tracepoint_synchronize_unregister() to flush any pending tracepoint call
    ...

    Fix up trivial conflicts in Makefile and drivers/cpufreq/cpufreq.c

    Linus Torvalds
     

06 Aug, 2010

2 commits

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb:
    debug_core,kdb: fix crash when arch does not have single step
    kgdb,x86: use macro HBP_NUM to replace magic number 4
    kgdb,mips: remove unused kgdb_cpu_doing_single_step operations
    mm,kdb,kgdb: Add a debug reference for the kdb kmap usage
    KGDB: Remove set but unused newPC
    ftrace,kdb: Allow dumping a specific cpu's buffer with ftdump
    ftrace,kdb: Extend kdb to be able to dump the ftrace buffer
    kgdb,powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE
    arm,kgdb: Add ability to trap into debugger on notify_die
    gdbstub: do not directly use dbg_reg_def[] in gdb_cmd_reg_set()
    gdbstub: Implement gdbserial 'p' and 'P' packets
    kgdb,arm: Individual register get/set for arm
    kgdb,mips: Individual register get/set for mips
    kgdb,x86: Individual register get/set for x86
    kgdb,kdb: individual register set and and get API
    gdbstub: Optimize kgdb's "thread:" response for the gdb serial protocol
    kgdb: remove custom hex_to_bin()implementation

    Linus Torvalds
     
  • * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
    modpost: support objects with more than 64k sections
    trivial: fix a typo in a filename
    frv: clean up arch/frv/Makefile
    kbuild: allow assignment to {A,C}FLAGS_KERNEL on the command line
    kbuild: allow assignment to {A,C,LD}FLAGS_MODULE on the command line
    Kbuild: Add option to set -femit-struct-debug-baseonly
    Makefile: "make kernelrelease" should show the correct full kernel version
    Makefile.build: make KBUILD_SYMTYPES work again

    Linus Torvalds
     

05 Aug, 2010

29 commits

  • The mips kgdb specific code does not support software or HW single
    stepping so it should not implement

    Signed-off-by: Jason Wessel
    Signed-off-by: Dongdong Deng
    Acked-by: Ralf Baechle
    CC: linux-mips@linux-mips.org

    Jason Wessel
     
  • Implement the ability to individually get and set registers for kdb
    and kgdb for mips.

    Signed-off-by: Jason Wessel
    Acked-by: Ralf Baechle
    CC: linux-mips@linux-mips.org

    Jason Wessel
     
  • Separate USB code into a file separate from asic/asic_devices.

    Separating the USB code from everything else in asic/asic_devices.c goes
    a long way toward reducing the use of that file as a dumping ground for
    everything that didn't seem to fit anywhere else.

    Signed-off-by: David VomLehn
    To: linux-mips@linux-mips.org
    Cc: greg@kroah.com
    Cc: linux-usb@vger.kernel.org
    Patchwork: http://patchwork.linux-mips.org/patch/1522/
    Signed-off-by: Ralf Baechle

    David VomLehn
     
  • This patch use "strip -s" to strip the .symtab and .strtab sections of
    vmlinuz.

    Note: This patch is based on http://patchwork.linux-mips.org/patch/1324/

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1383/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • We have calculated VMLINUZ_LOAD_ADDRESS in shell, which is indecipherable. This
    patch rewrites it in C.

    Signed-off-by: Wu Zhangjin
    To: linux-mips
    Cc: Alexander Clouter
    Cc: Manuel Lauss
    Cc: Sam Ravnborg
    Acked-by: Sam Ravnborg
    Reviewed-by: Alexander Clouter
    Patchwork: https://patchwork.linux-mips.org/patch/1324/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • - Remove several outdated comments
    - Clearify the definition of zimage_start and zimage_size and the their
    usage

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1382/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • - Remove unused symbols: _fdata, _text; only _edata and _end are needed by
    head.S
    - Remove unused sections: .sbss, .stab, .gptab.sdata, .gptab.sbss
    - Change the alignment to 16 bytes to ensure it is greater than any
    fundamental type of a MIPS compiler.
    - Clean up comments

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1381/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • The compressed vmlinux.bin is only a temp file so it's ok to use the same
    suffix .z for them (.gz,.lzo,.lzma...) to remove several lines and simpify
    the maintenance (no need to add the "suffix_$(xxx) := suffix" line).

    Signed-off-by: Wu Zhangjin
    To: linux-mips
    Cc: Alexander Clouter
    Cc: Manuel Lauss
    Cc: Sam Ravnborg
    Patchwork: https://patchwork.linux-mips.org/patch/1323/
    Signed-off-by: Ralf Baechle

    ---

    Wu Zhangjin
     
  • Define ASIC address, memory preallocations, and initialization code for the
    Gaia platform.

    Signed-off-by: David VomLehn
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1519/
    Signed-off-by: Ralf Baechle

    David VomLehn
     
  • Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on
    success and -9 if the value was not found. If the input was wrong -8
    will be returned by cfe_getenv. Change nvram_getenv to do the same.

    Signed-off-by: Hauke Mehrtens
    Cc: Waldemar Brodkorb
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1520/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • We reserve the 3.75GB - 4GB region of PCIe address space for device to
    device transfers, making the corresponding physical memory under
    direct mapping unavailable for DMA.

    To allow for PCIe DMA to all physical memory we map this chunk of
    physical memory with BAR1. Because of the resulting discontinuity in
    the mapping function, we remove a page of memory at each end of the
    range so multi-page DMA buffers can never be allocated that span the
    range.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1535/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The sixth argument of notify_die() is a signal number, the fifth is a
    trap number.

    Instead of passing a signal number in a randomly selected argument,
    pass it in the sixth. Extract the exception code from regs and pass
    that as the trap number.

    Get rid of redundant cast, and remove some gratuitous spaces.

    Nobody actually does anything with the signal number or trap number,
    but we might as well populate them with sensible values.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1532/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • It is initialized to zero and only ever read. Remove it, and pass zero in
    its place.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1531/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • This patch is based on previous work by Sony and Himanshu Chauhan.

    I have done some cleanup and implemented JProbes and KRETPROBES. The
    KRETPROBES part is pretty much copied verbatim from powerpc. A possible
    future enhance might be to factor out the common code.

    Signed-off-by: David Daney
    Cc: Himanshu Chauhan
    To: linux-mips@linux-mips.org
    To: ananth@in.ibm.com,
    To: anil.s.keshavamurthy@intel.com
    To: davem@davemloft.net
    To: masami.hiramatsu.pt@hitachi.com
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1525/
    Patchwork: https://patchwork.linux-mips.org/patch/1530/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: ananth@in.ibm.com
    To: anil.s.keshavamurthy@intel.com
    To: davem@davemloft.net
    To: masami.hiramatsu.pt@hitachi.com
    Cc: linux-kernel@vger.kernel.org
    Cc: hschauhan@nulltrace.org
    Patchwork: https://patchwork.linux-mips.org/patch/1524/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: ananth@in.ibm.com
    To: anil.s.keshavamurthy@intel.com
    To: davem@davemloft.net
    To: masami.hiramatsu.pt@hitachi.com
    Cc: linux-kernel@vger.kernel.org,
    Cc: hschauhan@nulltrace.org
    Patchwork: https://patchwork.linux-mips.org/patch/1529/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • This belongs into userland.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • MSI-X interrupts are not supported yet for Octeon, return error if
    MSI-X interrupts are requested by driver so that the driver will fall
    back to use MSI interrupts.

    Signed-off-by: Chandrakala Chavva
    To: linux-mips@linux-mips.org
    Cc: David Daney
    Patchwork: https://patchwork.linux-mips.org/patch/1506/
    Signed-off-by: Ralf Baechle
    Signed-off-by: David Daney

    Chandrakala Chavva
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1507/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The struct cpuinfo_mips.core field should be populated with the
    physical core number. For R2 CPUs, this is carried in the low 10 bits
    of Ebase.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1505/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • While at it, drop 0x prefix.

    Signed-off-by: Kulikov Vasiliy
    To: kernel-janitors@vger.kernel.org
    Cc: Chris Dearman
    Cc: "Robert P. J. Day"
    Cc: Rusty Russell
    Cc: André Goddard Rosa
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1458/
    Signed-off-by: Ralf Baechle

    Kulikov Vasiliy
     
  • LOONGSON2_PERFCNT_IRQ is used for the irq number of the performance
    overflow interrupts; LOONGSON_PERFCNT_IRQ is unused so remove it.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1494/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • On FuLoong-2F IP6 is shared by the performance counter overflow interrupt
    and the Bonito northbridge interrupt. To reduce overhead only call
    do_IRQ() when oprofile is enabled to reduce overhead.

    This patch adds an inline function do_perfcnt_IRQ() to hide the #if's ,
    which can be shared by the other Loongson machines, i.e. gdium.

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1492/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • set_irq_trigger_mode() is not needed on all platforms so remove it
    and move the related source code to mach_init_irq().

    This will allow gdium to share the common irq.c without adding an empty
    set_irq_trigger_mode().

    Signed-off-by: Wu Zhangjin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1493/
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • This is used by the forthcoming OCTEON watchdog patch.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: wim@iguana.be
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1498/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The forthcoming Octeon watchdog driver will use them.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: wim@iguana.be
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1499/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • The forthcoming watchdog driver will use it.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: wim@iguana.be
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1499/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • A 'select EXPORT_UASM' in Kconfig will cause the uasm to be exported
    for use in modules. When it is exported, all the uasm data and code
    cease to be __init and __initdata.

    Also daddiu_bug cannot be __cpuinitdata if uasm is exported. The
    cleanest thing is to just make it normal data.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: wim@iguana.be
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1500/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • These are OCTEON specific instructions.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: wim@iguana.be
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/1496/
    Signed-off-by: Ralf Baechle

    David Daney