linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/12] SMP cleanup and new features
@ 2018-09-06  8:05 Atish Patra
  2018-09-06  8:05 ` [PATCH v3 01/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Atish Patra
                   ` (11 more replies)
  0 siblings, 12 replies; 29+ messages in thread
From: Atish Patra @ 2018-09-06  8:05 UTC (permalink / raw)
  To: palmer, linux-riscv, hch, anup
  Cc: mark.rutland, atish.patra, tglx, linux-kernel, Damien.LeMoal,
	marc.zyngier, jeremy.linton, gregkh, jason, catalin.marinas,
	dmitriy, ard.biesheuvel

This patch series has updated the assorted cleanup series by palmer.
The original cleanup patch series can be found here.
http://lists.infradead.org/pipermail/linux-riscv/2018-August/001232.html

It also implemented following smp related features.
Some of the work has been inspired from ARM64.

1. Decouple linux logical cpu ids from hardware cpu id
2. Support cpu hotplug.

Tested on QEMU & HighFive Unleashed board with/without SMP enabled.

Both the patch series have been combined to avoid conflicts as a lot
of common code is changed in both the series. I have mostly addressed
review comments and fixed checkpatch errors from palmer's series.

Palmer: I hope it's not a problem. I would be happy to drop the patches
if you want to take over.

v1->v2:

1. Dropped cpu_ops patch.
2. Moved back IRQ cause definitions to irq.h
3. Keep boot cpu hart id and assign zero as the cpu id for boot cpu.
4. Renamed cpu id and hart id correctly.

v2-v3:

1. Added cleanup patches from palmer.
2. Moved the hotplug related functions to it's own file.
3. Updated stub functions as per coding guidelines.
4. Renamed __cpu_logical_map to a more coherent name.

Atish Patra (5):
  RISC-V: Disable preemption before enabling interrupts
  RISC-V: User WRITE_ONCE instead of direct access
  RISC-V: Add logical CPU indexing for RISC-V
  RISC-V: Use Linux logical cpu number instead of hartid
  RISC-V: Support cpu hotplug.

Palmer Dabbelt (7):
  RISC-V: Don't set cacheinfo.{physical_line_partition,attributes}
  RISC-V: Filter ISA and MMU values in cpuinfo
  RISC-V: Comment on the TLB flush in smp_callin()
  RISC-V: Provide a cleaner raw_smp_processor_id()
  RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid
  RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu
  RISC-V: Use mmgrab()

 arch/riscv/Kconfig                 | 12 +++++-
 arch/riscv/include/asm/irq.h       |  1 +
 arch/riscv/include/asm/processor.h |  2 +-
 arch/riscv/include/asm/smp.h       | 66 +++++++++++++++++++++++++-----
 arch/riscv/include/asm/tlbflush.h  | 16 ++++++--
 arch/riscv/kernel/Makefile         |  1 +
 arch/riscv/kernel/cacheinfo.c      |  7 ----
 arch/riscv/kernel/cpu-hotplug.c    | 72 +++++++++++++++++++++++++++++++++
 arch/riscv/kernel/cpu.c            | 83 ++++++++++++++++++++++++++++++++------
 arch/riscv/kernel/head.S           | 17 +++++++-
 arch/riscv/kernel/irq.c            | 24 +++++++++++
 arch/riscv/kernel/setup.c          | 27 ++++++++++++-
 arch/riscv/kernel/smp.c            | 49 +++++++++++++++-------
 arch/riscv/kernel/smpboot.c        | 53 ++++++++++++++++--------
 arch/riscv/kernel/traps.c          |  6 +--
 drivers/clocksource/riscv_timer.c  | 12 ++++--
 drivers/irqchip/irq-sifive-plic.c  | 10 +++--
 17 files changed, 379 insertions(+), 79 deletions(-)
 create mode 100644 arch/riscv/kernel/cpu-hotplug.c

-- 
2.7.4


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2018-09-11 18:36 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06  8:05 [PATCH v3 00/12] SMP cleanup and new features Atish Patra
2018-09-06  8:05 ` [PATCH v3 01/12] RISC-V: Don't set cacheinfo.{physical_line_partition,attributes} Atish Patra
2018-09-06  8:05 ` [PATCH v3 02/12] RISC-V: Filter ISA and MMU values in cpuinfo Atish Patra
2018-09-10 11:24   ` Christoph Hellwig
2018-09-11  1:35     ` Atish Patra
2018-09-06  8:05 ` [PATCH v3 03/12] RISC-V: Comment on the TLB flush in smp_callin() Atish Patra
2018-09-10 11:24   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 04/12] RISC-V: Disable preemption before enabling interrupts Atish Patra
2018-09-10 11:24   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 05/12] RISC-V: Provide a cleaner raw_smp_processor_id() Atish Patra
2018-09-10 11:25   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 06/12] RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid Atish Patra
2018-09-10 11:25   ` Christoph Hellwig
2018-09-11  1:36     ` Atish Patra
2018-09-11  6:17       ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 07/12] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Atish Patra
2018-09-10 11:26   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 08/12] RISC-V: Use mmgrab() Atish Patra
2018-09-06  8:05 ` [PATCH v3 09/12] RISC-V: User WRITE_ONCE instead of direct access Atish Patra
2018-09-10 11:27   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 10/12] RISC-V: Add logical CPU indexing for RISC-V Atish Patra
2018-09-10 11:27   ` Christoph Hellwig
2018-09-06  8:05 ` [PATCH v3 11/12] RISC-V: Use Linux logical cpu number instead of hartid Atish Patra
2018-09-10 11:29   ` Christoph Hellwig
2018-09-11  1:35     ` Atish Patra
2018-09-06  8:05 ` [PATCH v3 12/12] RISC-V: Support cpu hotplug Atish Patra
2018-09-06 10:20   ` Mark Rutland
2018-09-06 18:25     ` Atish Patra
2018-09-11 18:36       ` Atish Patra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).