aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-02 23:20:12 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-02 23:20:12 -0400
commitf5a8eb632b562bd9c16c389f5db3a5260fba4157 (patch)
tree82687234d772ff8f72a31e598fe16553885c56c9 /tools
parentc9297d284126b80c9cfd72c690e0da531c99fc48 (diff)
parentdd3b8c329aa270027fba61a02a12600972dc3983 (diff)
Merge tag 'arch-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pul removal of obsolete architecture ports from Arnd Bergmann: "This removes the entire architecture code for blackfin, cris, frv, m32r, metag, mn10300, score, and tile, including the associated device drivers. I have been working with the (former) maintainers for each one to ensure that my interpretation was right and the code is definitely unused in mainline kernels. Many had fond memories of working on the respective ports to start with and getting them included in upstream, but also saw no point in keeping the port alive without any users. In the end, it seems that while the eight architectures are extremely different, they all suffered the same fate: There was one company in charge of an SoC line, a CPU microarchitecture and a software ecosystem, which was more costly than licensing newer off-the-shelf CPU cores from a third party (typically ARM, MIPS, or RISC-V). It seems that all the SoC product lines are still around, but have not used the custom CPU architectures for several years at this point. In contrast, CPU instruction sets that remain popular and have actively maintained kernel ports tend to all be used across multiple licensees. [ See the new nds32 port merged in the previous commit for the next generation of "one company in charge of an SoC line, a CPU microarchitecture and a software ecosystem" - Linus ] The removal came out of a discussion that is now documented at https://lwn.net/Articles/748074/. Unlike the original plans, I'm not marking any ports as deprecated but remove them all at once after I made sure that they are all unused. Some architectures (notably tile, mn10300, and blackfin) are still being shipped in products with old kernels, but those products will never be updated to newer kernel releases. After this series, we still have a few architectures without mainline gcc support: - unicore32 and hexagon both have very outdated gcc releases, but the maintainers promised to work on providing something newer. At least in case of hexagon, this will only be llvm, not gcc. - openrisc, risc-v and nds32 are still in the process of finishing their support or getting it added to mainline gcc in the first place. They all have patched gcc-7.3 ports that work to some degree, but complete upstream support won't happen before gcc-8.1. Csky posted their first kernel patch set last week, their situation will be similar [ Palmer Dabbelt points out that RISC-V support is in mainline gcc since gcc-7, although gcc-7.3.0 is the recommended minimum - Linus ]" This really says it all: 2498 files changed, 95 insertions(+), 467668 deletions(-) * tag 'arch-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: (74 commits) MAINTAINERS: UNICORE32: Change email account staging: iio: remove iio-trig-bfin-timer driver tty: hvc: remove tile driver tty: remove bfin_jtag_comm and hvc_bfin_jtag drivers serial: remove tile uart driver serial: remove m32r_sio driver serial: remove blackfin drivers serial: remove cris/etrax uart drivers usb: Remove Blackfin references in USB support usb: isp1362: remove blackfin arch glue usb: musb: remove blackfin port usb: host: remove tilegx platform glue pwm: remove pwm-bfin driver i2c: remove bfin-twi driver spi: remove blackfin related host drivers watchdog: remove bfin_wdt driver can: remove bfin_can driver mmc: remove bfin_sdh driver input: misc: remove blackfin rotary driver input: keyboard: remove bf54x driver ...
Diffstat (limited to 'tools')
-rw-r--r--tools/arch/frv/include/uapi/asm/bitsperlong.h2
-rw-r--r--tools/arch/frv/include/uapi/asm/mman.h7
-rw-r--r--tools/arch/m32r/include/uapi/asm/bitsperlong.h2
-rw-r--r--tools/arch/m32r/include/uapi/asm/mman.h7
-rw-r--r--tools/arch/mn10300/include/uapi/asm/bitsperlong.h1
-rw-r--r--tools/arch/mn10300/include/uapi/asm/mman.h7
-rw-r--r--tools/arch/score/include/uapi/asm/bitsperlong.h7
-rw-r--r--tools/arch/score/include/uapi/asm/mman.h7
-rw-r--r--tools/arch/tile/include/asm/barrier.h16
-rw-r--r--tools/arch/tile/include/uapi/asm/bitsperlong.h27
-rw-r--r--tools/arch/tile/include/uapi/asm/mman.h16
-rw-r--r--tools/include/asm-generic/barrier.h2
-rw-r--r--tools/perf/perf-sys.h4
-rw-r--r--tools/scripts/Makefile.arch11
-rw-r--r--tools/testing/ktest/examples/crosstests.conf31
-rwxr-xr-xtools/testing/ktest/ktest.pl2
16 files changed, 3 insertions, 146 deletions
diff --git a/tools/arch/frv/include/uapi/asm/bitsperlong.h b/tools/arch/frv/include/uapi/asm/bitsperlong.h
deleted file mode 100644
index 76da34b10f59..000000000000
--- a/tools/arch/frv/include/uapi/asm/bitsperlong.h
+++ /dev/null
@@ -1,2 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#include <asm-generic/bitsperlong.h>
diff --git a/tools/arch/frv/include/uapi/asm/mman.h b/tools/arch/frv/include/uapi/asm/mman.h
deleted file mode 100644
index 5bc900b0bc78..000000000000
--- a/tools/arch/frv/include/uapi/asm/mman.h
+++ /dev/null
@@ -1,7 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef TOOLS_ARCH_FRV_UAPI_ASM_MMAN_FIX_H
3#define TOOLS_ARCH_FRV_UAPI_ASM_MMAN_FIX_H
4#include <uapi/asm-generic/mman.h>
5/* MAP_32BIT is undefined on frv, fix it for perf */
6#define MAP_32BIT 0
7#endif
diff --git a/tools/arch/m32r/include/uapi/asm/bitsperlong.h b/tools/arch/m32r/include/uapi/asm/bitsperlong.h
deleted file mode 100644
index 76da34b10f59..000000000000
--- a/tools/arch/m32r/include/uapi/asm/bitsperlong.h
+++ /dev/null
@@ -1,2 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#include <asm-generic/bitsperlong.h>
diff --git a/tools/arch/m32r/include/uapi/asm/mman.h b/tools/arch/m32r/include/uapi/asm/mman.h
deleted file mode 100644
index d19b82c9c290..000000000000
--- a/tools/arch/m32r/include/uapi/asm/mman.h
+++ /dev/null
@@ -1,7 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef TOOLS_ARCH_M32R_UAPI_ASM_MMAN_FIX_H
3#define TOOLS_ARCH_M32R_UAPI_ASM_MMAN_FIX_H
4#include <uapi/asm-generic/mman.h>
5/* MAP_32BIT is undefined on m32r, fix it for perf */
6#define MAP_32BIT 0
7#endif
diff --git a/tools/arch/mn10300/include/uapi/asm/bitsperlong.h b/tools/arch/mn10300/include/uapi/asm/bitsperlong.h
deleted file mode 100644
index 6dc0bb0c13b2..000000000000
--- a/tools/arch/mn10300/include/uapi/asm/bitsperlong.h
+++ /dev/null
@@ -1 +0,0 @@
1#include <asm-generic/bitsperlong.h>
diff --git a/tools/arch/mn10300/include/uapi/asm/mman.h b/tools/arch/mn10300/include/uapi/asm/mman.h
deleted file mode 100644
index b9360639974f..000000000000
--- a/tools/arch/mn10300/include/uapi/asm/mman.h
+++ /dev/null
@@ -1,7 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef TOOLS_ARCH_MN10300_UAPI_ASM_MMAN_FIX_H
3#define TOOLS_ARCH_MN10300_UAPI_ASM_MMAN_FIX_H
4#include <uapi/asm-generic/mman.h>
5/* MAP_32BIT is undefined on mn10300, fix it for perf */
6#define MAP_32BIT 0
7#endif
diff --git a/tools/arch/score/include/uapi/asm/bitsperlong.h b/tools/arch/score/include/uapi/asm/bitsperlong.h
deleted file mode 100644
index df48f2717da2..000000000000
--- a/tools/arch/score/include/uapi/asm/bitsperlong.h
+++ /dev/null
@@ -1,7 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _ASM_SCORE_BITSPERLONG_H
3#define _ASM_SCORE_BITSPERLONG_H
4
5#include <asm-generic/bitsperlong.h>
6
7#endif /* _ASM_SCORE_BITSPERLONG_H */
diff --git a/tools/arch/score/include/uapi/asm/mman.h b/tools/arch/score/include/uapi/asm/mman.h
deleted file mode 100644
index b4bd195a8586..000000000000
--- a/tools/arch/score/include/uapi/asm/mman.h
+++ /dev/null
@@ -1,7 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef TOOLS_ARCH_SCORE_UAPI_ASM_MMAN_FIX_H
3#define TOOLS_ARCH_SCORE_UAPI_ASM_MMAN_FIX_H
4#include <uapi/asm-generic/mman.h>
5/* MAP_32BIT is undefined on score, fix it for perf */
6#define MAP_32BIT 0
7#endif
diff --git a/tools/arch/tile/include/asm/barrier.h b/tools/arch/tile/include/asm/barrier.h
deleted file mode 100644
index 7ad02a591b43..000000000000
--- a/tools/arch/tile/include/asm/barrier.h
+++ /dev/null
@@ -1,16 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _TOOLS_LINUX_ASM_TILE_BARRIER_H
3#define _TOOLS_LINUX_ASM_TILE_BARRIER_H
4/*
5 * FIXME: This came from tools/perf/perf-sys.h, where it was first introduced
6 * in 620830b6954913647b7c7f68920cf48eddf6ad92, more work needed to make it
7 * more closely follow the Linux kernel arch/tile/include/asm/barrier.h file.
8 * Probably when we continue work on tools/ Kconfig support to have all the
9 * CONFIG_ needed for properly doing that.
10 */
11
12#define mb() asm volatile ("mf" ::: "memory")
13#define wmb() mb()
14#define rmb() mb()
15
16#endif /* _TOOLS_LINUX_ASM_TILE_BARRIER_H */
diff --git a/tools/arch/tile/include/uapi/asm/bitsperlong.h b/tools/arch/tile/include/uapi/asm/bitsperlong.h
deleted file mode 100644
index 57cca78c0fbb..000000000000
--- a/tools/arch/tile/include/uapi/asm/bitsperlong.h
+++ /dev/null
@@ -1,27 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * Copyright 2010 Tilera Corporation. All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation, version 2.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
12 * NON INFRINGEMENT. See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef _ASM_TILE_BITSPERLONG_H
17#define _ASM_TILE_BITSPERLONG_H
18
19#ifdef __LP64__
20# define __BITS_PER_LONG 64
21#else
22# define __BITS_PER_LONG 32
23#endif
24
25#include <asm-generic/bitsperlong.h>
26
27#endif /* _ASM_TILE_BITSPERLONG_H */
diff --git a/tools/arch/tile/include/uapi/asm/mman.h b/tools/arch/tile/include/uapi/asm/mman.h
deleted file mode 100644
index 65ec92925c6c..000000000000
--- a/tools/arch/tile/include/uapi/asm/mman.h
+++ /dev/null
@@ -1,16 +0,0 @@
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef TOOLS_ARCH_TILE_UAPI_ASM_MMAN_FIX_H
3#define TOOLS_ARCH_TILE_UAPI_ASM_MMAN_FIX_H
4#define MAP_DENYWRITE 0x0800
5#define MAP_EXECUTABLE 0x1000
6#define MAP_GROWSDOWN 0x0100
7#define MAP_HUGETLB 0x4000
8#define MAP_LOCKED 0x0200
9#define MAP_NONBLOCK 0x0080
10#define MAP_NORESERVE 0x0400
11#define MAP_POPULATE 0x0040
12#define MAP_STACK MAP_GROWSDOWN
13#include <uapi/asm-generic/mman-common.h>
14/* MAP_32BIT is undefined on tile, fix it for perf */
15#define MAP_32BIT 0
16#endif
diff --git a/tools/include/asm-generic/barrier.h b/tools/include/asm-generic/barrier.h
index 47b933903eaf..52278d880a61 100644
--- a/tools/include/asm-generic/barrier.h
+++ b/tools/include/asm-generic/barrier.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * Copied from the kernel sources to tools/perf/: 2 * Copied from the kernel sources to tools/perf/:
3 * 3 *
4 * Generic barrier definitions, originally based on MN10300 definitions. 4 * Generic barrier definitions.
5 * 5 *
6 * It should be possible to use these on really simple architectures, 6 * It should be possible to use these on really simple architectures,
7 * but it serves more as a starting point for new ports. 7 * but it serves more as a starting point for new ports.
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index 36673f98d66b..3eb7a39169f6 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -46,10 +46,6 @@
46#define CPUINFO_PROC {"Processor"} 46#define CPUINFO_PROC {"Processor"}
47#endif 47#endif
48 48
49#ifdef __metag__
50#define CPUINFO_PROC {"CPU"}
51#endif
52
53#ifdef __xtensa__ 49#ifdef __xtensa__
54#define CPUINFO_PROC {"core ID"} 50#define CPUINFO_PROC {"core ID"}
55#endif 51#endif
diff --git a/tools/scripts/Makefile.arch b/tools/scripts/Makefile.arch
index 78d90a249e88..b10b7a27c33f 100644
--- a/tools/scripts/Makefile.arch
+++ b/tools/scripts/Makefile.arch
@@ -4,8 +4,7 @@ HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
4 -e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \ 4 -e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \
5 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 5 -e s/s390x/s390/ -e s/parisc64/parisc/ \
6 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 6 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
7 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 7 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ )
8 -e s/tile.*/tile/ )
9 8
10ifndef ARCH 9ifndef ARCH
11ARCH := $(HOSTARCH) 10ARCH := $(HOSTARCH)
@@ -34,14 +33,6 @@ ifeq ($(ARCH),sh64)
34 SRCARCH := sh 33 SRCARCH := sh
35endif 34endif
36 35
37# Additional ARCH settings for tile
38ifeq ($(ARCH),tilepro)
39 SRCARCH := tile
40endif
41ifeq ($(ARCH),tilegx)
42 SRCARCH := tile
43endif
44
45LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1) 36LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
46ifeq ($(LP64), 1) 37ifeq ($(LP64), 1)
47 IS_64_BIT := 1 38 IS_64_BIT := 1
diff --git a/tools/testing/ktest/examples/crosstests.conf b/tools/testing/ktest/examples/crosstests.conf
index a1203148dfa1..6907f32590b2 100644
--- a/tools/testing/ktest/examples/crosstests.conf
+++ b/tools/testing/ktest/examples/crosstests.conf
@@ -59,7 +59,7 @@ DO_DEFAULT := 1
59 59
60# By setting both DO_FAILED and DO_DEFAULT to zero, you can pick a single 60# By setting both DO_FAILED and DO_DEFAULT to zero, you can pick a single
61# arch that you want to test. (uncomment RUN and chose your arch) 61# arch that you want to test. (uncomment RUN and chose your arch)
62#RUN := m32r 62#RUN := arm
63 63
64# At the bottom of the config file exists a bisect test. You can update that 64# At the bottom of the config file exists a bisect test. You can update that
65# test and set DO_FAILED and DO_DEFAULT to zero, and uncomment this variable 65# test and set DO_FAILED and DO_DEFAULT to zero, and uncomment this variable
@@ -106,33 +106,11 @@ TEST_START IF ${RUN} == arm || ${DO_DEFAULT}
106CROSS = arm-unknown-linux-gnueabi 106CROSS = arm-unknown-linux-gnueabi
107ARCH = arm 107ARCH = arm
108 108
109# black fin
110TEST_START IF ${RUN} == bfin || ${DO_DEFAULT}
111CROSS = bfin-uclinux
112ARCH = blackfin
113BUILD_OPTIONS = -j8 vmlinux
114
115# cris - FAILS?
116TEST_START IF ${RUN} == cris || ${RUN} == cris64 || ${DO_FAILED}
117CROSS = cris-linux
118ARCH = cris
119
120# cris32 - not right arch?
121TEST_START IF ${RUN} == cris || ${RUN} == cris32 || ${DO_FAILED}
122CROSS = crisv32-linux
123ARCH = cris
124
125# ia64 109# ia64
126TEST_START IF ${RUN} == ia64 || ${DO_DEFAULT} 110TEST_START IF ${RUN} == ia64 || ${DO_DEFAULT}
127CROSS = ia64-linux 111CROSS = ia64-linux
128ARCH = ia64 112ARCH = ia64
129 113
130# frv
131TEST_START IF ${RUN} == frv || ${DO_FAILED}
132CROSS = frv-linux
133ARCH = frv
134GCC_VER = 4.5.1
135
136# m68k fails with error? 114# m68k fails with error?
137TEST_START IF ${RUN} == m68k || ${DO_DEFAULT} 115TEST_START IF ${RUN} == m68k || ${DO_DEFAULT}
138CROSS = m68k-linux 116CROSS = m68k-linux
@@ -148,13 +126,6 @@ TEST_START IF ${RUN} == mips || ${RUN} == mips32 || ${DO_DEFAULT}
148CROSS = mips-linux 126CROSS = mips-linux
149ARCH = mips 127ARCH = mips
150 128
151# m32r
152TEST_START IF ${RUN} == m32r || ${DO_FAILED}
153CROSS = m32r-linux
154ARCH = m32r
155GCC_VER = 4.5.1
156BUILD_OPTIONS = -j8 vmlinux
157
158# parisc64 failed? 129# parisc64 failed?
159TEST_START IF ${RUN} == hppa || ${RUN} == hppa64 || ${DO_FAILED} 130TEST_START IF ${RUN} == hppa || ${RUN} == hppa64 || ${DO_FAILED}
160CROSS = hppa64-linux 131CROSS = hppa64-linux
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 0c8b61f8398e..8809f244bb7c 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -3683,8 +3683,6 @@ sub read_depends {
3683 # what directory to look at. 3683 # what directory to look at.
3684 if ($arch eq "i386" || $arch eq "x86_64") { 3684 if ($arch eq "i386" || $arch eq "x86_64") {
3685 $arch = "x86"; 3685 $arch = "x86";
3686 } elsif ($arch =~ /^tile/) {
3687 $arch = "tile";
3688 } 3686 }
3689 3687
3690 my $kconfig = "$builddir/arch/$arch/Kconfig"; 3688 my $kconfig = "$builddir/arch/$arch/Kconfig";