Skip to content

MN10300: Add SMP support and AM34 CPU core support

David Howells linux-arch lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest43 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/43Partially revert patch that encloses asm-offset.h numbers in bracketsKbuild+1 -10 replies
2/43MN10300: BUG to BUG_ON changesarch/mn10300/kernel/irq.c arch/mn10300/mm/init.c arch/mn10300/mm/misalignment.c +2 more+5 -100 replies
3/43bitops: Change the bitmap index from int to unsigned long [mn10300]arch/mn10300/include/asm/bitops.h arch/mn10300/lib/bitops.c+8 -80 replies
4/43mn10300: Use pci_claim_resourcearch/mn10300/unit-asb2305/pci-asb2305.c+6 -100 replies
5/43MN10300: Prevent cnt32_to_63() from being preempted in sched_clock()arch/mn10300/kernel/time.c+5 -00 replies
6/43Typedef SMP call function pointerinclude/linux/smp.h kernel/smp.c+14 -130 replies
7/43MN10300: Don't cast away the volatile in test_bit()arch/mn10300/include/asm/bitops.h+1 -10 replies
8/43MN10300: Add reads[bwl]() and writes[bwl]()arch/mn10300/include/asm/io.h+13 -00 replies
9/43MN10300: Provide the functions to fully disable maskable interruptsarch/mn10300/include/asm/irqflags.h+77 -00 replies
10/43MN10300: Differentiate AM33_2 and AM33_3 in configarch/mn10300/Kconfig+9 -20 replies
11/43MN10300: Move DMA engine control reg defs to MN103E010 processor directoryarch/mn10300/include/asm/dmactl-regs.h arch/mn10300/proc-mn103e010/include/proc/dmactl-regs.h+103 -860 replies
12/43MN10300: Don't hard code the cacheline size in register defsarch/mn10300/include/asm/cache.h+9 -50 replies
13/43MN10300: Add CPU register bits for AM34arch/mn10300/Kconfig arch/mn10300/include/asm/cpu-regs.h+74 -50 replies
14/43MN10300: Remove monitor/JTAG functionsarch/mn10300/include/asm/exceptions.h arch/mn10300/kernel/entry.S arch/mn10300/kernel/traps.c +1 more+2 -550 replies
15/43MN10300: Cache: Split cache bits out of arch Kconfigarch/mn10300/Kconfig arch/mn10300/mm/Kconfig.cache+33 -280 replies
16/43MN10300: Provide a MN10300_CACHE_ENABLED config optionarch/mn10300/include/asm/cacheflush.h arch/mn10300/include/asm/gdb-stub.h arch/mn10300/include/asm/processor.h +3 more+13 -100 replies
17/43MN10300: Reorder asm/cacheflush.h to put primitives firstarch/mn10300/include/asm/cacheflush.h+44 -440 replies
18/43MN10300: AM34: The current cacheflush routines operate by controlling tag regsarch/mn10300/mm/Kconfig.cache arch/mn10300/mm/Makefile arch/mn10300/mm/cache-flush-by-tag.S +3 more+504 -4830 replies
19/43MN10300: Cacheflush functions should take unsigned long addressesarch/mn10300/include/asm/cacheflush.h arch/mn10300/mm/cache-flush-by-tag.S+15 -150 replies
20/43MN10300: SMP: Differentiate local cache flushingarch/mn10300/include/asm/cacheflush.h arch/mn10300/mm/cache-flush-by-tag.S arch/mn10300/mm/cache-inv-by-tag.S +1 more+289 -1120 replies
21/43MN10300: AM34: Add cacheflushing by using the AM34 purge registersarch/mn10300/mm/Kconfig.cache arch/mn10300/mm/Makefile arch/mn10300/mm/cache-flush-by-reg.S +1 more+678 -10 replies
22/43MN10300: Allow some cacheflushes to be avoided if cache snooping is availablearch/mn10300/Kconfig arch/mn10300/include/asm/cacheflush.h arch/mn10300/kernel/kprobes.c +6 more+309 -960 replies
23/43MN10300: Cache: Implement SMP global cache flushingarch/mn10300/mm/Kconfig.cache arch/mn10300/mm/Makefile arch/mn10300/mm/cache-flush-icache.c +6 more+535 -150 replies
24/43MN10300: Make the boot wrapper able to use writeback cachingarch/mn10300/boot/compressed/head.S+48 -10 replies
25/43MN10300: AM34 erratum requires MMUCTR read and write on exception entryarch/mn10300/Kconfig arch/mn10300/kernel/entry.S arch/mn10300/mm/tlb-mn10300.S+37 -60 replies
26/43MN10300: Rename __flush_tlb*() to local_flush_tlb*()arch/mn10300/include/asm/highmem.h arch/mn10300/include/asm/mmu_context.h arch/mn10300/include/asm/tlbflush.h +3 more+42 -280 replies
27/43MN10300: Make the use of PIDR to mark TLB entries controllablearch/mn10300/Kconfig arch/mn10300/include/asm/mmu_context.h arch/mn10300/include/asm/tlbflush.h +1 more+84 -620 replies
28/43MN10300: Use the [ID]PTEL2 registers rather than [ID]PTEL for TLB controlarch/mn10300/include/asm/cpu-regs.h arch/mn10300/include/asm/pgtable.h arch/mn10300/mm/tlb-mn10300.S+65 -470 replies
29/43MN10300: SMP TLB flushingarch/mn10300/include/asm/mmu_context.h arch/mn10300/include/asm/tlbflush.h arch/mn10300/mm/Makefile +1 more+290 -290 replies
30/43MN10300: Make the FPU operate in non-lazy mode under SMParch/mn10300/Kconfig arch/mn10300/include/asm/elf.h arch/mn10300/include/asm/exceptions.h +11 more+440 -2480 replies
31/43MN10300: Implement atomic ops using atomic ops unitarch/mn10300/include/asm/atomic.h arch/mn10300/include/asm/system.h+351 -470 replies
32/43MN10300: Optimise do_csum()arch/mn10300/lib/do_csum.S+22 -270 replies
33/43MN10300: Make various interrupt priority settings configurablearch/mn10300/Kconfig arch/mn10300/include/asm/irqflags.h+76 -60 replies
34/43MN10300: Delete idle_timestamp from irq_cpustat_tarch/mn10300/include/asm/hardirq.h arch/mn10300/kernel/process.c+0 -30 replies
35/43MN10300: And Panasonic AM34 subarch and implement SMPMAINTAINERS arch/mn10300/Kconfig arch/mn10300/Makefile +77 more+4495 -4822 replies
36/43MN10300: ASB2364: Add support for SMSC911X and SMC911Xarch/mn10300/Kconfig arch/mn10300/include/asm/smsc911x.h arch/mn10300/unit-asb2364/Makefile +5 more+292 -40 replies
37/43MN10300: Map userspace atomic op regs as a vmalloc pagearch/mn10300/include/asm/pgtable.h arch/mn10300/mm/init.c+24 -00 replies
38/43MN10300: Specify an ELF HWCAP flag for MN10300 Atomic Operations Unit supportarch/mn10300/include/asm/elf.h+10 -00 replies
39/43MN10300: Generic time supportarch/mn10300/Kconfig arch/mn10300/include/asm/timex.h arch/mn10300/kernel/Makefile +9 more+401 -1150 replies
40/43MN10300: Update the ASB2303 defconfigarch/mn10300/configs/asb2303_defconfig+2 -00 replies
41/43MN10300: Create a defconfig for the ASB2364 boardarch/mn10300/configs/asb2364_defconfig+98 -00 replies
42/43MN10300: Change "Matsushita" to "Panasonic".arch/mn10300/Kconfig arch/mn10300/kernel/setup.c arch/mn10300/proc-mn103e010/include/proc/proc.h+5 -50 replies
43/43MN10300: Save frame pointer in thread_info struct rather than global vararch/mn10300/include/asm/frame.inc arch/mn10300/include/asm/irq_regs.h arch/mn10300/include/asm/pgalloc.h +12 more+76 -1460 replies

Reviews trailers per patch

2 of 43 patches have a Reviewed-by or Acked-by.

PatchBjorn HelgaasAkira Takeuchi
1/43
2/43
3/43R-b
4/43
5/43
6/43
7/43
8/43
9/43
10/43
11/43
12/43
13/43
14/43
15/43
16/43
17/43
18/43
19/43
20/43
21/43
22/43
23/43
24/43
25/43
26/43
27/43
28/43
29/43
30/43
31/43
32/43
33/43
34/43
35/43
36/43
37/43
38/43
39/43
40/43
41/43
42/43
43/43A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/43] MN10300: Add SMP support and AM34 CPU core support

These patches support for the AM34 CPU core variant of the MN10300 arch. This is an SMP capable core, so SMP support is added also.

Further, support for the MN2WS0060 processor (which is AM34 based), and the ASB2364 evaluation board are added to make use of that.

I've placed the SMP caching and TLB code into preliminary patches (#15-#24 and #26-#29) within the series, though the code in them can't be fully utilised until the main SMP patch (#35) is applied. This makes the main SMP cache patch smaller. Similarly, patches for kernel atomic ops (#31) and SMP FPU support (#30) preface the main patch.

There are a couple of patches here that touch code outside of the arch:

(#1) A patch to revert parenthesisation of numbers in asm-offset.h which
breaks the MN10300 assembly code.

(#6) A patch to typedef the smpcall function pointer as it's used in many
places.

(#36) Some changes to the SMSC 911x driver to provide it with hooks by which it
can manipulate the interrupt regs on the ASB2364 board FPGA and find the MAC address in an alternate location.

David