08 Dec, 2011

11 commits

  • Netlogic XLR chip has multiple cores. Each core includes four integrated
    hardware threads, and they share L1 data and instruction caches.

    If the chip is marked to be SMT capable, scheduler then could do more, say,
    idle load balancing.

    Changes are now confined only to the code of XLR, and hardware is probed
    to get core ID for correct setup.

    [jayachandranc: simplified and adapted for new merged XLR/XLP code]

    Signed-off-by: Hillf Danton
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2972/
    Signed-off-by: Ralf Baechle

    Hillf Danton
     
  • Add new processor ID to asm/cpu.h and kernel/cpu-probe.c.
    Update to new CPU frequency detection code which works on XLP 3XX
    and 8XX.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2971/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Create a common NMI and reset handler in smpboot.S and use this for
    both XLR and XLP. In the earlier code, the woken up CPUs would
    busy wait until released, switch this to wakeup by NMI.

    The initial wakeup code or XLR and XLP are differ since they are
    started from different bootloaders (XLP from u-boot and XLR from
    netlogic bootloader). But in both platforms the woken up CPUs wait
    and are released by sending an NMI.

    Add support for starting XLR and XLP in 1/2/4 threads per core.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2970/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • - Add CPU_XLP and NLM_XLR_BOARD to arch/mips/Kconfig for Netlogic XLP boards
    - Update mips Makefiles to add XLP

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2968/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • - Update common files to support XLP.
    - Add arch/mips/include/asm/netlogic/xlp-hal for register definitions
    and access macros
    - Add arch/mips/netlogic/xlp/ for XLP specific files.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2967/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • - Move code that can be shared with XLP (irq.c, smp.c, time.c and
    xlr_console.c) to arch/mips/netlogic/common
    - Add asm/netlogic/haldefs.h and asm/netlogic/common.h for common and
    io functions shared with XLP
    - remove type 'nlm_reg_t *' and use uint64_t for mmio offsets
    - Move XLR specific code in smp.c to xlr/wakeup.c
    - Move XLR specific PCI code from irq.c to mips/pci/pci-xlr.c
    - Provide API for pic functions called from common/irq.c

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2964/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • The -Werror compilation flag is already set for arch/mips - it can be removed
    from arch/mips/xlr/Makefile

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2963/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • The CPU_XLR config variable is sufficient for XLR compilation, the
    variable NLM_XLR can be removed.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2962/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • - Use platform- variable for xlr
    - Load address common for all netlogic chips

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2961/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Add basic support for MSI.

    Signed-off-by: Ganesan Ramalingam
    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2730/
    Signed-off-by: Ralf Baechle

    Ganesan Ramalingam
     
  • Move load address from 0x84000000 to 0x80100000 to avoid wasting
    memory.

    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2727/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     

25 Oct, 2011

1 commit

  • It seems that BSP could be setup twice, but the nlm_cpu_ready array is only
    set for ASPs in smpboot.S, not including BSP.

    Signed-off-by: Hillf Danton
    Cc: "Jayachandran C."
    Cc: LKML
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2695/
    Signed-off-by: Ralf Baechle ,

    Hillf Danton
     

20 Oct, 2011

2 commits

  • Use -march=xlr if available, otherwise fallback to mips64. This allows
    us to support compilation with MIPS toolchains which are not customized
    for XLR.

    [ralf@linux-mips.org: And more importantly it works around a gas bug in
    binutils 2.21 which otherwise may result in an assertion failure building
    arch/mips/kernel/genex.S. See
    http://sourceware.org/bugzilla/show_bug.cgi?id=12915 for details.]

    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2534/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Add __init and __cpuinit annotation to functions that need it.

    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2535/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     

21 Sep, 2011

1 commit

  • Usage of these flags has been deprecated for nearly 4 years by:

    commit f77bf01425b11947eeb3b5b54685212c302741b8
    Author: Sam Ravnborg
    Date: Mon Oct 15 22:25:06 2007 +0200

    kbuild: introduce ccflags-y, asflags-y and ldflags-y

    Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
    line use. By default, gmake(1) do not override command line setting, so this is
    likely to result in build failure or unexpected behavior.

    Replace their usage by Kbuild's `{as,cc,ld}flags-y'.

    To: linux-kernel@vger.kernel.org
    Cc: Sam Ravnborg
    Patchwork: https://patchwork.linux-mips.org/patch/2710/
    Cc: linux-mips@linux-mips.org
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Ralf Baechle

    Arnaud Lacombe
     

21 Jul, 2011

2 commits

  • Fix few issues in the Netlogic code:
    - Use handle_percpu_irq to handle per-cpu interrupts
    - Remove unused function nlm_common_ipi_handler()
    - Call scheduler_ipi() on SMP_RESCHEDULE_YOURSELF
    - Enable interrupts in nlm_smp_finish()

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2460/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • This patch combines linux-mips.org patches
    637d69600fb1773da56487271ec2a79c33d237ed [MIPS: Netlogic: Yank out crap.]
    and 5e3c263b9658a4b1c6c5577793e9347efb44854e [MIPS: XLR, XLS: Add Kbuild
    files for platform.]

    Signed-off-by: Ralf Baechle
    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2415/
    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

19 May, 2011

3 commits

  • Adds pci/pci-xlr.c to support for XLR PCI/PCI-X interface and XLS PCIe
    interface.
    Update irq.c to ack PCI interrupts, use irq handler data to do the
    PCI/PCIe bus ack.

    Signed-off-by: Jayachandran C
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2337/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • Add NLM_XLR_BOARD, CPU_XLR and other config options
    Makefile updates, mostly based on r4k

    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2334/
    Signed-off-by: Ralf Baechle

    Jayachandran C
     
  • * include/asm/netlogic added with files common for all Netlogic processors
    (common with XLP which will be added later)
    * include/asm/netlogic/xlr for XLR/XLS chip specific files
    * netlogic/xlr for XLR/XLS platform files

    Signed-off-by: Jayachandran C
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2334/
    Signed-off-by: Ralf Baechle

    Jayachandran C