11 Jan, 2012

1 commit


08 Dec, 2011

2 commits

  • Since commit [e58aa3d2: genirq: Run irq handlers with interrupts disabled],
    We run all interrupt handlers with interrupts disabled and we even check
    and yell when an interrupt handler returns with interrupts enabled (see
    commit [b738a50a: genirq: Warn when handler enables interrupts]).

    So now this flag is a NOOP and can be removed.

    [ralf@linux-mips.org: Fixed up conflicts in
    arch/mips/alchemy/common/dbdma.c, arch/mips/cavium-octeon/smp.c and
    arch/mips/kernel/perf_event.c.]

    Signed-off-by: Yong Zhang
    To: linux-kernel@vger.kernel.org
    Cc: tglx@linutronix.de
    linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2835/
    Signed-off-by: Ralf Baechle

    Yong Zhang
     
  • Panic() invokes printk() to add a \n internally, so panic arguments should
    not themselves end in \n. Panic invocations in arch/mips and elsewhere
    are inconsistently sometimes terminating in \n, sometimes not.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

08 Nov, 2011

1 commit

  • Cause is a misplaced bracket.

    The code

    strlen(buf+1)

    will be two bytes less than

    strlen(buf)+1

    The +1 is in this code to reserve space for an additional space character.

    [ralf@linux-mips.org: Thomas' original patch fixed the issue only for
    Yosemite but the same bug exists also in Emma.]

    Signed-off-by: Thomas Jarosch
    Patchwork: https://patchwork.linux-mips.org/patch/2861/
    Signed-off-by: Ralf Baechle

    Thomas Jarosch
     

04 Nov, 2011

1 commit

  • * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (37 commits)
    MIPS: O32: Provide definition of registers ta0 .. ta3.
    MIPS: perf: Add Octeon support for hardware perf.
    MIPS: perf: Add support for 64-bit perf counters.
    MIPS: perf: Reorganize contents of perf support files.
    MIPS: perf: Cleanup formatting in arch/mips/kernel/perf_event.c
    MIPS: Add accessor macros for 64-bit performance counter registers.
    MIPS: Add probes for more Octeon II CPUs.
    MIPS: Add more CPU identifiers for Octeon II CPUs.
    MIPS: XLR, XLS: Add comment for smp setup
    MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
    MIPS: JZ4740: GPIO: Simplify IRQ demuxer
    MIPS: JZ4740: Use generic irq chip
    MIPS: Alchemy: remove all CONFIG_SOC_AU1??? defines
    MIPS: Alchemy: kill au1xxx.h header
    MIPS: Alchemy: clean DMA code of CONFIG_SOC_AU1??? defines
    MIPS, IDE: Alchem, au1xxx-ide: Remove pb1200/db1200 header dep
    MIPS: Alchemy: Redo PCI as platform driver
    MIPS: Alchemy: more base address cleanup
    MIPS: Alchemy: rewrite USB platform setup.
    MIPS: Alchemy: abstract USB block control register access
    ...

    Fix up trivial conflicts in:
    arch/mips/alchemy/devboards/db1x00/platform.c
    drivers/ide/Kconfig
    drivers/mmc/host/au1xmmc.c
    drivers/video/Kconfig
    sound/mips/Kconfig

    Linus Torvalds
     

26 Oct, 2011

1 commit

  • * 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (79 commits)
    TTY: serial_core: Fix crash if DCD drop during suspend
    tty/serial: atmel_serial: bootconsole removed from auto-enumerates
    Revert "TTY: call tty_driver_lookup_tty unconditionally"
    tty/serial: atmel_serial: add device tree support
    tty/serial: atmel_serial: auto-enumerate ports
    tty/serial: atmel_serial: whitespace and braces modifications
    tty/serial: atmel_serial: change platform_data variable name
    tty/serial: RS485 bindings for device tree
    TTY: call tty_driver_lookup_tty unconditionally
    TTY: pty, release tty in all ptmx_open fail paths
    TTY: make tty_add_file non-failing
    TTY: drop driver reference in tty_open fail path
    8250_pci: Fix kernel panic when pch_uart is disabled
    h8300: drivers/serial/Kconfig was moved
    parport_pc: release IO region properly if unsupported ITE887x card is found
    tty: Support compat_ioctl get/set termios_locked
    hvc_console: display printk messages on console.
    TTY: snyclinkmp: forever loop in tx_load_dma_buffer()
    tty/n_gsm: avoid fifo overflow in gsm_dlci_data_output
    tty/n_gsm: fix a bug in gsm_dlci_data_output (adaption = 2 case)
    ...

    Fix up Conflicts in:
    - drivers/tty/serial/8250_pci.c
    Trivial conflict with removed duplicate device ID
    - drivers/tty/serial/atmel_serial.c
    Annoying silly conflict between "specify the port num via
    platform_data" and other changes to atmel_console_init

    Linus Torvalds
     

20 Oct, 2011

2 commits

  • After the recent cleanup of the register_*_smp_ops() functions msp71xx
    wasn't fixed to include the now necessary header resulting in:

    /home/ralf/src/linux/upstream-linus/arch/mips/pmc-sierra/msp71xx/msp_setup.c: In function ‘prom_init’:
    /home/ralf/src/linux/upstream-linus/arch/mips/pmc-sierra/msp71xx/msp_setup.c:231:2: error: implicit declaration of function ‘register_vsmp_smp_ops’ [-Werror=implicit-function-declaration]
    cc1: all warnings being treated as errors

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • This reverts commit 97475f8b42e83be2966aa2d70ab9c98477701c53 (lmo) /
    82b89152f00f7ad17844d5614d5011e8d7944ac9 (kernel.org) [MIPS: LD/SD o32
    macro GAS fix update].

    Turns out this patch is producing many build errors with gcc 4.2. Based
    on further testing with a test case extracted from the build errors found
    further build errors and suboptimal generation even in violation of the
    "R" constraint.

    To make matters worse, the binutils changes also don't work quite as
    intended so revert this patch for now.

    Ralf Baechle
     

21 Sep, 2011

2 commits

  • CC arch/mips/pmc-sierra/msp71xx/msp_irq.o
    /home/ralf/src/linux/linux-mips/arch/mips/pmc-sierra/msp71xx/msp_irq.c:112:2: error: request for member ‘flags’ in something not a structure or union
    /home/ralf/src/linux/linux-mips/arch/mips/pmc-sierra/msp71xx/msp_irq.c:118:2: error: request for member ‘flags’ in something not a structure or union
    make[4]: *** [arch/mips/pmc-sierra/msp71xx/msp_irq.o] Error 1

    caused by 57336bc1056798d89714b7fb1b1d197e6bda6819 [MIPS: Mark cascade and
    low level interrupts IRQF_NO_THREAD].

    Commas to separate struct initializers generally are considered useful to
    enhance the compilation experience of the user.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Mark interrupts with no_action handler, cascade interrupts, low level
    interrupts (bus error, halt ..) with IRQF_NO_THREAD to exclude them
    from forced threading.

    Signed-off-by: Wu Zhangjin
    Signed-off-by: Thomas Gleixner
    Cc: linux-mips@linux-mips.org
    Cc: Wu Zhangjin
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

24 Aug, 2011

2 commits

  • The Synopsys DesignWare UART in pmc-sierra msp71xx has an extra feature
    where the UART detects a write attempt to the LCR whilst busy and raises
    an interrupt. The driver needs to clear the interrupt and rewrite the
    LCR. Move this into platform code and out of the 8250 driver.

    Acked-by: Ralf Baechle
    Acked-by: Alan Cox
    Signed-off-by: Jamie Iles
    Signed-off-by: Greg Kroah-Hartman

    Jamie Iles
     
  • Convert to pr_foo() helpers rather than printk(KERN_.*).

    Acked-by: Ralf Baechle
    Acked-by: Anoop P A
    Acked-by: Alan Cox
    Signed-off-by: Jamie Iles
    Signed-off-by: Greg Kroah-Hartman

    Jamie Iles
     

21 Jul, 2011

1 commit

  • Since 6be63bbbdab66b9185dc6f67c8b1bacb6f37f946 (lmo) rsp.
    af3a1f6f4813907e143f87030cde67a9971db533 (kernel.org) the Malta code does
    no longer probe for presence of GCMP if CMP is not configured. This means
    that the variable gcmp_present well be left at its default value of -1
    which normally is meant to indicate that GCMP has not yet been mmapped.
    This non-zero value is now interpreted as GCMP being present resulting
    in a write attempt to a GCMP register resulting in a crash.

    Reported and a build fix on top of my fix by Rob Landley .

    Reported-by: Rob Landley
    Signed-off-by: Ralf Baechle
    Patchwork: https://patchwork.linux-mips.org/patch/2413/

    Ralf Baechle
     

20 May, 2011

1 commit

  • …kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

    * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (60 commits)
    sched: Fix and optimise calculation of the weight-inverse
    sched: Avoid going ahead if ->cpus_allowed is not changed
    sched, rt: Update rq clock when unthrottling of an otherwise idle CPU
    sched: Remove unused parameters from sched_fork() and wake_up_new_task()
    sched: Shorten the construction of the span cpu mask of sched domain
    sched: Wrap the 'cfs_rq->nr_spread_over' field with CONFIG_SCHED_DEBUG
    sched: Remove unused 'this_best_prio arg' from balance_tasks()
    sched: Remove noop in alloc_rt_sched_group()
    sched: Get rid of lock_depth
    sched: Remove obsolete comment from scheduler_tick()
    sched: Fix sched_domain iterations vs. RCU
    sched: Next buddy hint on sleep and preempt path
    sched: Make set_*_buddy() work on non-task entities
    sched: Remove need_migrate_task()
    sched: Move the second half of ttwu() to the remote cpu
    sched: Restructure ttwu() some more
    sched: Rename ttwu_post_activation() to ttwu_do_wakeup()
    sched: Remove rq argument from ttwu_stat()
    sched: Remove rq->lock from the first half of ttwu()
    sched: Drop rq->lock from sched_exec()
    ...

    * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched: Fix rt_rq runtime leakage bug

    Linus Torvalds
     

11 May, 2011

1 commit

  • CC arch/mips/pmc-sierra/msp71xx/msp_irq_per.o
    arch/mips/pmc-sierra/msp71xx/msp_irq_per.c:101:2: error: expected identifier before '.' token
    make[2]: *** [arch/mips/pmc-sierra/msp71xx/msp_irq_per.o] Error 1

    Signed-off-by: Yoichi Yuasa
    Patchwork: https://patchwork.linux-mips.org/patch/2246/
    Cc: linux-mips
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     

14 Apr, 2011

1 commit

  • For future rework of try_to_wake_up() we'd like to push part of that
    function onto the CPU the task is actually going to run on.

    In order to do so we need a generic callback from the existing scheduler IPI.

    This patch introduces such a generic callback: scheduler_ipi() and
    implements it as a NOP.

    BenH notes: PowerPC might use this IPI on offline CPUs under rare conditions!

    Acked-by: Russell King
    Acked-by: Martin Schwidefsky
    Acked-by: Chris Metcalf
    Acked-by: Jesper Nilsson
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Ralf Baechle
    Reviewed-by: Frank Rowand
    Cc: Mike Galbraith
    Cc: Nick Piggin
    Cc: Linus Torvalds
    Cc: Andrew Morton
    Signed-off-by: Ingo Molnar
    Signed-off-by: Peter Zijlstra
    Link: http://lkml.kernel.org/r/20110405152728.744338123@chello.nl

    Peter Zijlstra
     

31 Mar, 2011

1 commit


29 Mar, 2011

1 commit


26 Mar, 2011

6 commits

  • Signed-off-by: Thomas Gleixner
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2197/
    Signed-off-by: Ralf Baechle

    Thomas Gleixner
     
  • Some of MSP family SoC's come with legacy 100Mbps mspeth while some comes
    with newer Gigabit TSMAC.Following patch adds platform support for both
    types of MAC's.
    If TSMAC is not selected assume platform having legacy mspeth. Add
    gpio_macros as well which is required for resetting the PHY.

    [Ralf: Killed all typedefs.]

    Signed-off-by: Anoop P A
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/2048/
    Signed-off-by: Ralf Baechle

    Anoop P A
     
  • Signed-off-by: Anoop P A
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    Cc: Anoop P A
    Patchwork: https://patchwork.linux-mips.org/patch/2043/
    Signed-off-by: Ralf Baechle

    Anoop P A
     
  • [Ralf: Fixed more checkpatch assertions and inclusion of unnecessary header
    .]

    Signed-off-by: Anoop P A
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/2042/
    Signed-off-by: Ralf Baechle

    Anoop P A
     
  • This patch will add vectored interrupt setups required for MIPS MT modes.
    irq_cic has been restructured and moved per irq handler to different file.
    irq_cic has been re wrote to support mips MT modes ( VSMP / SMTC )

    [Ralf: fixed some more checkpatch warnings.]

    Signed-off-by: Anoop P A
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    To: dhowells@redhat.com
    Patchwork: https://patchwork.linux-mips.org/patch/2041/
    Signed-off-by: Ralf Baechle

    Anoop P A
     
  • VPE1 timer will be required for VSMP / SMTC.

    [Ralf: Fixed a bunch of issues raised by checkpatch.]

    Signed-off-by: Anoop P A
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/2049/
    Signed-off-by: Ralf Baechle

    Anoop P A
     

17 Mar, 2011

1 commit


15 Mar, 2011

1 commit


17 Dec, 2010

1 commit

  • I am about to commit:

    http://sourceware.org/ml/binutils/2010-10/msg00033.html

    that fixes a problem with the LD/SD macro currently implemented by GAS for
    the o32 ABI in an inconsistent way. This is best illustrated with a
    simple program, which I'm copying here from the message above for easier
    reference:

    $ cat ld.s
    ld $5,32767($4)
    ld $5,32768($4)

    This gets assebled into the following output:

    $ mips-linux-as -32 -mips3 -o ld.o ld.s
    $ mips-linux-objdump -d ld.o

    ld.o: file format elf32-tradbigmips

    Disassembly of section .text:

    00000000 :
    0: dc857fff ld a1,32767(a0)
    4: 3c010001 lui at,0x1
    8: 00810821 addu at,a0,at
    c: 8c258000 lw a1,-32768(at)
    10: 8c268004 lw a2,-32764(at)
    ...

    Oops!

    The GAS fix makes the macro behave in a consistent way and pairs of LW/SW
    instructions to be output as appropriate regardless of the size of the
    offset associated with the address used. The machine instruction is still
    available, but to reach it macros have to be disabled first. This has a
    side effect of requiring the use of a machine-addressable memory operand.

    As some platforms require 64-bit operations for accesses to some I/O
    registers LD/SD instructions are used in a couple of places in Linux
    regardless of the ABI selected. Here's a fix for some pieces of code
    affected I've been able to track down. The fix should be backwards
    compatible with all supported binutils releases in existence and can be
    used as a reference for any other places or off-tree code. The use of the
    "R" constraint guarantees a machine-addressable operand.

    Signed-off-by: Maciej W. Rozycki
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1680/
    Signed-off-by: Ralf Baechle

    Maciej W. Rozycki
     

07 Oct, 2010

1 commit

  • Add missing #inclusions of to a whole bunch of files that should
    really include it. Note that this can replace #inclusions of .

    This is required for the patch to sort out irqflags handling function naming to
    compile on MIPS.

    The problem is that these files require access to things like setup_irq() -
    which isn't available by #including

    Signed-off-by: David Howells
    Acked-by: Ralf Baechle

    David Howells
     

05 Aug, 2010

4 commits

  • CONFIG_PMCTWILED doesn't exist in Kconfig, therefore removing all
    references for it from the source code.

    Signed-off-by: Christoph Egger
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    Cc: vamos@i4.informatik.uni-erlangen.de
    Acked-by: Shane McDonald
    Patchwork: https://patchwork.linux-mips.org/patch/1373/
    Signed-off-by: Ralf Baechle

    Christoph Egger
     
  • CONFIG_GDB_CONSOLE doesn't exist in Kconfig, therefore removing all
    references for it from the source code.

    Signed-off-by: Christoph Egger
    To: David Daney
    To: Yang Shi
    To: Herbert Xu
    To: Tejun Heo
    To: linux-mips@linux-mips.org
    To: linux-kernel@vger.kernel.org
    Cc: vamos@i4.informatik.uni-erlangen.de
    Patchwork: https://patchwork.linux-mips.org/patch/1368/
    Acked-by: David Daney
    Signed-off-by: Ralf Baechle

    Christoph Egger
     
  • Signed-off-by: Shane McDonald
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1354/
    Signed-off-by: Ralf Baechle

    Shane McDonald
     
  • arch/mips/pmc-sierra/yosemite/ht-irq.c:38: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:39: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:40: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:43: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:44: ERROR: code indent should use tabs where possible
    arch/mips/pmc-sierra/yosemite/ht-irq.c:45: ERROR: code indent should use tabs where possible

    Signed-off-by: Andrea Gelmini
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1268/
    Signed-off-by: Ralf Baechle

    Andrea Gelmini
     

30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

27 Feb, 2010

4 commits


23 Feb, 2010

2 commits


24 Sep, 2009

1 commit

  • We're weaning the core code off handing cpumask's around on-stack.
    This introduces arch_send_call_function_ipi_mask(), and by defining
    it, the old arch_send_call_function_ipi is defined by the core code.

    We also take the chance to wean the implementations off the
    obsolescent for_each_cpu_mask(): making send_ipi_mask take the pointer
    seemed the most natural way to ensure all implementations used
    for_each_cpu.

    Signed-off-by: Rusty Russell

    Rusty Russell