linux_dsm_epyc7002/arch/mips/include/asm/mach-loongson
Huacai Chen c4a987db1b MIPS: Loongson 3: Add CPU hotplug support
Tips of Loongson's CPU hotplug:
1, To fully shutdown a core in Loongson 3, the target core should go to
   CKSEG1 and flush all L1 cache entries at first. Then, another core
   (usually Core 0) can safely disable the clock of the target core. So
   play_dead() call loongson3_play_dead() via CKSEG1 (both uncached and
   unmmaped).
2, The default clocksource of Loongson is MIPS. Since clock source is a
   global device, timekeeping need the CP0' Count registers of each core
   be synchronous. Thus, when a core is up, we use a SMP_ASK_C0COUNT IPI
   to ask Core-0's Count.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Hongliang Tao <taohl@lemote.com>
Signed-off-by: Hua Yan <yanh@lemote.com>
Tested-by: Alex Smith <alex.smith@imgtec.com>
Reviewed-by: Alex Smith <alex.smith@imgtec.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/6639
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-03-31 18:17:12 +02:00
..
cs5536 MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
boot_param.h MIPS: Loongson: Add UEFI-like firmware interface (LEFI) support 2014-03-31 18:17:12 +02:00
cpu-feature-overrides.h MIPS: Build uasm-generated code only once to avoid CPU Hotplug problem 2013-05-08 01:19:06 +02:00
dma-coherence.h MIPS: Loongson: Add swiotlb to support All-Memory DMA 2014-03-31 18:17:12 +02:00
gpio.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
irq.h MIPS: Loongson 3: Add CPU hotplug support 2014-03-31 18:17:12 +02:00
loongson.h MIPS: Loongson 3: Add CPU hotplug support 2014-03-31 18:17:12 +02:00
machine.h MIPS: Loongson 3: Add Lemote-3A machtypes definition 2014-03-31 18:17:12 +02:00
mc146818rtc.h MIPS: Loongson: Change naming methods 2009-09-17 20:07:47 +02:00
mem.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
pci.h MIPS: Loongson 3: Add HT-linked PCI support 2014-03-31 18:17:12 +02:00
spaces.h MIPS: Loongson: Add basic Loongson-3 definition 2014-03-31 18:17:12 +02:00
war.h MIPS: PMC-Sierra Yosemite: Remove support. 2012-12-13 18:15:30 +01:00