01 Nov, 2011

1 commit


22 Feb, 2011

1 commit


30 Oct, 2010

1 commit


05 Aug, 2010

2 commits

  • Power throttling make deterministic delay loops impossible.
    Re-implement delays using the cycle counter. This also allows us to
    get rid of the code that calculates loops per jiffy.

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

    David Daney
     
  • When building with a gcc-4.4.x toolchain that is configured to produce
    32-bits executables by default, we will produce __lshrti3 in sched_clock()
    which is never resolved so the kernel fails to link. Unconditionally use
    the inline assembly version as suggested by David Daney, which works around
    the issue.

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

    Florian Fainelli
     

13 Jan, 2010

2 commits

  • With typical mult and shift values, the calculation for Octeon's sched_clock
    overflows when using 64-bit arithmetic. Use 128-bit calculations instead.

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

    David Daney
     
  • With the advent of function graph tracing on MIPS, Octeon needs a high
    precision sched_clock() implementation. Without it, most timing
    numbers are reported as 0.000.

    This new sched_clock just uses the 64-bit cycle counter appropriately
    scaled.

    Signed-off-by: David Daney
    Patchwork: http://patchwork.linux-mips.org/patch/805/
    Signed-off-by: Ralf Baechle

    David Daney
     

14 May, 2009

1 commit


11 Jan, 2009

1 commit

  • These are the rest of the new files needed to add OCTEON processor
    support to the Linux kernel. Other than Makefile and Kconfig which
    should be obvious, we have:

    csrc-octeon.c -- Clock source driver for OCTEON.
    dma-octeon.c -- Helper functions for mapping DMA memory.
    flash_setup.c -- Register on-board flash with the MTD subsystem.
    octeon-irq.c -- OCTEON interrupt controller managment.
    octeon-memcpy.S -- Optimized memcpy() implementation.
    serial.c -- Register 8250 platform driver and early console.
    setup.c -- Early architecture initialization.
    smp.c -- OCTEON SMP support.
    octeon_switch.S -- Scheduler context switch for OCTEON.
    c-octeon.c -- OCTEON cache controller support.
    cex-oct.S -- OCTEON cache exception handler.

    asm/mach-cavium-octeon/*.h -- Architecture include files.

    Signed-off-by: Tomaso Paoletti
    Signed-off-by: David Daney
    Signed-off-by: Ralf Baechle

    create mode 100644 arch/mips/cavium-octeon/Kconfig
    create mode 100644 arch/mips/cavium-octeon/Makefile
    create mode 100644 arch/mips/cavium-octeon/csrc-octeon.c
    create mode 100644 arch/mips/cavium-octeon/dma-octeon.c
    create mode 100644 arch/mips/cavium-octeon/flash_setup.c
    create mode 100644 arch/mips/cavium-octeon/octeon-irq.c
    create mode 100644 arch/mips/cavium-octeon/octeon-memcpy.S
    create mode 100644 arch/mips/cavium-octeon/serial.c
    create mode 100644 arch/mips/cavium-octeon/setup.c
    create mode 100644 arch/mips/cavium-octeon/smp.c
    create mode 100644 arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
    create mode 100644 arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
    create mode 100644 arch/mips/include/asm/mach-cavium-octeon/irq.h
    create mode 100644 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h
    create mode 100644 arch/mips/include/asm/mach-cavium-octeon/war.h
    create mode 100644 arch/mips/include/asm/octeon/octeon.h
    create mode 100644 arch/mips/kernel/octeon_switch.S
    create mode 100644 arch/mips/mm/c-octeon.c
    create mode 100644 arch/mips/mm/cex-oct.S

    David Daney