License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2020-01-14 17:54:01 +00:00
|
|
|
config PPC32
|
|
|
|
bool
|
|
|
|
default y if !PPC64
|
2020-01-14 17:54:02 +00:00
|
|
|
select KASAN_VMALLOC if KASAN && MODULES
|
2020-01-14 17:54:01 +00:00
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config PPC64
|
|
|
|
bool "64-bit kernel"
|
2015-02-05 19:36:04 +00:00
|
|
|
select ZLIB_DEFLATE
|
2007-06-12 16:30:17 +00:00
|
|
|
help
|
|
|
|
This option selects whether a 32-bit or a 64-bit kernel
|
|
|
|
will be built.
|
|
|
|
|
|
|
|
menu "Processor support"
|
|
|
|
choice
|
|
|
|
prompt "Processor Type"
|
|
|
|
depends on PPC32
|
|
|
|
help
|
2007-06-17 23:06:52 +00:00
|
|
|
There are five families of 32 bit PowerPC chips supported.
|
2020-09-29 06:48:35 +00:00
|
|
|
The most common ones are the desktop and server CPUs (603,
|
2007-06-17 23:06:52 +00:00
|
|
|
604, 740, 750, 74xx) CPUs from Freescale and IBM, with their
|
2008-01-28 17:28:53 +00:00
|
|
|
embedded 512x/52xx/82xx/83xx/86xx counterparts.
|
2020-11-17 05:07:58 +00:00
|
|
|
The other embedded parts, namely 4xx, 8xx and e500
|
2007-06-17 23:06:52 +00:00
|
|
|
(85xx) each form a family of their own that is not compatible
|
|
|
|
with the others.
|
|
|
|
|
|
|
|
If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx.
|
|
|
|
|
2020-10-22 06:29:42 +00:00
|
|
|
config PPC_BOOK3S_32
|
2020-09-29 06:48:35 +00:00
|
|
|
bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx"
|
2020-08-18 17:19:18 +00:00
|
|
|
imply PPC_FPU
|
2018-11-17 10:24:58 +00:00
|
|
|
select PPC_HAVE_PMU_SUPPORT
|
2019-03-11 08:30:35 +00:00
|
|
|
select PPC_HAVE_KUEP
|
2019-03-11 08:30:38 +00:00
|
|
|
select PPC_HAVE_KUAP
|
2020-12-08 05:24:19 +00:00
|
|
|
select HAVE_ARCH_VMAP_STACK
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
config PPC_85xx
|
|
|
|
bool "Freescale 85xx"
|
|
|
|
select E500
|
|
|
|
|
|
|
|
config PPC_8xx
|
|
|
|
bool "Freescale 8xx"
|
2021-05-05 01:38:13 +00:00
|
|
|
select ARCH_SUPPORTS_HUGETLBFS
|
2007-06-12 16:30:17 +00:00
|
|
|
select FSL_SOC
|
2019-03-11 08:30:33 +00:00
|
|
|
select PPC_HAVE_KUEP
|
2019-03-11 08:30:34 +00:00
|
|
|
select PPC_HAVE_KUAP
|
2019-12-21 08:32:35 +00:00
|
|
|
select HAVE_ARCH_VMAP_STACK
|
2020-05-19 05:49:22 +00:00
|
|
|
select HUGETLBFS
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
config 40x
|
|
|
|
bool "AMCC 40x"
|
|
|
|
select PPC_DCR_NATIVE
|
2007-12-21 04:39:26 +00:00
|
|
|
select PPC_UDBG_16550
|
2008-03-27 14:43:31 +00:00
|
|
|
select 4xx_SOC
|
2018-11-15 19:05:32 +00:00
|
|
|
select HAVE_PCI
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
config 44x
|
2010-03-05 10:43:12 +00:00
|
|
|
bool "AMCC 44x, 46x or 47x"
|
2007-06-12 16:30:17 +00:00
|
|
|
select PPC_DCR_NATIVE
|
2007-10-18 12:55:13 +00:00
|
|
|
select PPC_UDBG_16550
|
2008-03-27 14:43:31 +00:00
|
|
|
select 4xx_SOC
|
2018-11-15 19:05:32 +00:00
|
|
|
select HAVE_PCI
|
2008-09-24 16:01:24 +00:00
|
|
|
select PHYS_64BIT
|
2021-06-02 06:42:10 +00:00
|
|
|
select PPC_HAVE_KUEP
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-10-22 06:29:44 +00:00
|
|
|
config PPC_BOOK3S_603
|
|
|
|
bool "Support for 603 SW loaded TLB"
|
|
|
|
depends on PPC_BOOK3S_32
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Provide support for processors based on the 603 cores. Those
|
|
|
|
processors don't have a HASH MMU and provide SW TLB loading.
|
|
|
|
|
|
|
|
config PPC_BOOK3S_604
|
|
|
|
bool "Support for 604+ HASH MMU" if PPC_BOOK3S_603
|
|
|
|
depends on PPC_BOOK3S_32
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Provide support for processors not based on the 603 cores.
|
|
|
|
Those processors have a HASH MMU.
|
|
|
|
|
2009-07-23 23:15:59 +00:00
|
|
|
choice
|
|
|
|
prompt "Processor Type"
|
2009-06-02 21:17:37 +00:00
|
|
|
depends on PPC64
|
2009-07-23 23:15:59 +00:00
|
|
|
help
|
|
|
|
There are two families of 64 bit PowerPC chips supported.
|
|
|
|
The most common ones are the desktop and server CPUs
|
2018-02-20 19:08:29 +00:00
|
|
|
(POWER5, 970, POWER5+, POWER6, POWER7, POWER8, POWER9 ...)
|
2009-07-23 23:15:59 +00:00
|
|
|
|
|
|
|
The other are the "embedded" processors compliant with the
|
|
|
|
"Book 3E" variant of the architecture
|
|
|
|
|
|
|
|
config PPC_BOOK3S_64
|
|
|
|
bool "Server processors"
|
2009-06-02 21:17:37 +00:00
|
|
|
select PPC_FPU
|
2011-07-13 05:00:41 +00:00
|
|
|
select PPC_HAVE_PMU_SUPPORT
|
2016-04-29 13:26:31 +00:00
|
|
|
select HAVE_ARCH_TRANSPARENT_HUGEPAGE
|
2021-05-05 01:38:21 +00:00
|
|
|
select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION
|
2021-08-19 11:39:54 +00:00
|
|
|
select ARCH_ENABLE_SPLIT_PMD_PTLOCK
|
2018-09-20 18:09:47 +00:00
|
|
|
select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE
|
2021-05-05 01:38:13 +00:00
|
|
|
select ARCH_SUPPORTS_HUGETLBFS
|
2013-11-18 09:28:13 +00:00
|
|
|
select ARCH_SUPPORTS_NUMA_BALANCING
|
2021-07-08 01:10:24 +00:00
|
|
|
select HAVE_MOVE_PMD
|
|
|
|
select HAVE_MOVE_PUD
|
2014-04-07 22:39:08 +00:00
|
|
|
select IRQ_WORK
|
2019-04-26 15:58:04 +00:00
|
|
|
select PPC_MM_SLICES
|
2021-03-18 03:48:29 +00:00
|
|
|
select PPC_HAVE_KUEP
|
|
|
|
select PPC_HAVE_KUAP
|
2009-06-02 21:17:37 +00:00
|
|
|
|
2009-07-23 23:15:59 +00:00
|
|
|
config PPC_BOOK3E_64
|
|
|
|
bool "Embedded processors"
|
|
|
|
select PPC_FPU # Make it a choice ?
|
2011-05-10 19:29:42 +00:00
|
|
|
select PPC_SMP_MUXED_IPI
|
2012-11-14 18:49:49 +00:00
|
|
|
select PPC_DOORBELL
|
2021-07-01 01:52:20 +00:00
|
|
|
select ZONE_DMA
|
2009-07-23 23:15:59 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2012-04-17 18:45:28 +00:00
|
|
|
choice
|
|
|
|
prompt "CPU selection"
|
|
|
|
default GENERIC_CPU
|
|
|
|
help
|
|
|
|
This will create a kernel which is optimised for a particular CPU.
|
|
|
|
The resulting kernel may not run on other CPUs, so use this with care.
|
|
|
|
|
|
|
|
If unsure, select Generic.
|
|
|
|
|
|
|
|
config GENERIC_CPU
|
2018-02-20 19:08:30 +00:00
|
|
|
bool "Generic (POWER4 and above)"
|
2018-06-07 10:10:20 +00:00
|
|
|
depends on PPC64 && !CPU_LITTLE_ENDIAN
|
2012-04-17 18:45:28 +00:00
|
|
|
|
2018-02-20 19:08:30 +00:00
|
|
|
config GENERIC_CPU
|
|
|
|
bool "Generic (POWER8 and above)"
|
2018-06-07 10:10:20 +00:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN
|
2018-02-20 19:08:30 +00:00
|
|
|
select ARCH_HAS_FAST_MULTIPLIER
|
|
|
|
|
2018-06-07 10:10:20 +00:00
|
|
|
config GENERIC_CPU
|
|
|
|
bool "Generic 32 bits powerpc"
|
|
|
|
depends on PPC32 && !PPC_8xx
|
|
|
|
|
2012-04-17 18:45:28 +00:00
|
|
|
config CELL_CPU
|
|
|
|
bool "Cell Broadband Engine"
|
2013-10-22 00:05:25 +00:00
|
|
|
depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
|
2012-04-17 18:45:28 +00:00
|
|
|
|
|
|
|
config POWER5_CPU
|
|
|
|
bool "POWER5"
|
2013-10-22 00:05:25 +00:00
|
|
|
depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
|
2012-04-17 18:45:28 +00:00
|
|
|
|
|
|
|
config POWER6_CPU
|
|
|
|
bool "POWER6"
|
2013-10-22 00:05:25 +00:00
|
|
|
depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
|
2012-04-17 18:45:28 +00:00
|
|
|
|
|
|
|
config POWER7_CPU
|
|
|
|
bool "POWER7"
|
2013-08-21 00:55:36 +00:00
|
|
|
depends on PPC_BOOK3S_64
|
2014-09-16 00:49:14 +00:00
|
|
|
select ARCH_HAS_FAST_MULTIPLIER
|
2013-08-21 00:55:36 +00:00
|
|
|
|
2014-09-16 00:47:49 +00:00
|
|
|
config POWER8_CPU
|
|
|
|
bool "POWER8"
|
|
|
|
depends on PPC_BOOK3S_64
|
2014-09-16 00:49:14 +00:00
|
|
|
select ARCH_HAS_FAST_MULTIPLIER
|
2013-08-21 00:55:36 +00:00
|
|
|
|
2018-02-20 19:08:32 +00:00
|
|
|
config POWER9_CPU
|
|
|
|
bool "POWER9"
|
|
|
|
depends on PPC_BOOK3S_64
|
|
|
|
select ARCH_HAS_FAST_MULTIPLIER
|
|
|
|
|
2013-08-21 00:55:36 +00:00
|
|
|
config E5500_CPU
|
|
|
|
bool "Freescale e5500"
|
|
|
|
depends on E500
|
|
|
|
|
|
|
|
config E6500_CPU
|
|
|
|
bool "Freescale e6500"
|
|
|
|
depends on E500
|
2012-04-17 18:45:28 +00:00
|
|
|
|
2018-06-07 10:10:20 +00:00
|
|
|
config 860_CPU
|
|
|
|
bool "8xx family"
|
|
|
|
depends on PPC_8xx
|
|
|
|
|
2018-06-07 10:10:22 +00:00
|
|
|
config E300C2_CPU
|
|
|
|
bool "e300c2 (832x)"
|
|
|
|
depends on PPC_BOOK3S_32
|
|
|
|
|
|
|
|
config E300C3_CPU
|
|
|
|
bool "e300c3 (831x)"
|
|
|
|
depends on PPC_BOOK3S_32
|
|
|
|
|
2019-01-14 20:13:04 +00:00
|
|
|
config G4_CPU
|
|
|
|
bool "G4 (74xx)"
|
|
|
|
depends on PPC_BOOK3S_32
|
|
|
|
select ALTIVEC
|
|
|
|
|
2012-04-17 18:45:28 +00:00
|
|
|
endchoice
|
|
|
|
|
2018-06-07 10:10:18 +00:00
|
|
|
config TARGET_CPU_BOOL
|
|
|
|
bool
|
|
|
|
default !GENERIC_CPU
|
|
|
|
|
|
|
|
config TARGET_CPU
|
|
|
|
string
|
|
|
|
depends on TARGET_CPU_BOOL
|
|
|
|
default "cell" if CELL_CPU
|
|
|
|
default "power5" if POWER5_CPU
|
|
|
|
default "power6" if POWER6_CPU
|
|
|
|
default "power7" if POWER7_CPU
|
|
|
|
default "power8" if POWER8_CPU
|
|
|
|
default "power9" if POWER9_CPU
|
2018-06-07 10:10:20 +00:00
|
|
|
default "860" if 860_CPU
|
2018-06-07 10:10:22 +00:00
|
|
|
default "e300c2" if E300C2_CPU
|
|
|
|
default "e300c3" if E300C3_CPU
|
2019-01-14 20:13:04 +00:00
|
|
|
default "G4" if G4_CPU
|
2018-06-07 10:10:18 +00:00
|
|
|
|
2009-06-14 14:45:50 +00:00
|
|
|
config PPC_BOOK3S
|
|
|
|
def_bool y
|
|
|
|
depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
|
2009-03-10 17:53:27 +00:00
|
|
|
|
2009-07-23 23:15:59 +00:00
|
|
|
config PPC_BOOK3E
|
|
|
|
def_bool y
|
|
|
|
depends on PPC_BOOK3E_64
|
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config E500
|
2008-02-05 00:27:55 +00:00
|
|
|
select FSL_EMB_PERFMON
|
2010-10-08 13:32:11 +00:00
|
|
|
select PPC_FSL_BOOK3E
|
2007-06-12 16:30:17 +00:00
|
|
|
bool
|
|
|
|
|
2008-06-16 14:41:32 +00:00
|
|
|
config PPC_E500MC
|
|
|
|
bool "e500mc Support"
|
|
|
|
select PPC_FPU
|
2013-04-09 08:46:26 +00:00
|
|
|
select COMMON_CLK
|
2008-06-16 14:41:32 +00:00
|
|
|
depends on E500
|
2012-07-11 00:26:48 +00:00
|
|
|
help
|
|
|
|
This must be enabled for running on e500mc (and derivatives
|
|
|
|
such as e5500/e6500), and must be disabled for running on
|
|
|
|
e500v1 or e500v2.
|
2008-06-16 14:41:32 +00:00
|
|
|
|
2020-08-18 17:19:17 +00:00
|
|
|
config PPC_FPU_REGS
|
|
|
|
bool
|
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config PPC_FPU
|
2020-08-18 17:19:18 +00:00
|
|
|
bool "Support for Floating Point Unit (FPU)" if PPC_MPC832x
|
2007-06-12 16:30:17 +00:00
|
|
|
default y if PPC64
|
2020-08-18 17:19:17 +00:00
|
|
|
select PPC_FPU_REGS
|
2020-08-18 17:19:18 +00:00
|
|
|
help
|
|
|
|
This must be enabled to support the Floating Point Unit
|
|
|
|
Most 6xx have an FPU but e300c2 core (mpc832x) don't have
|
|
|
|
an FPU, so when building an embedded kernel for that target
|
|
|
|
you can disable FPU support.
|
|
|
|
|
|
|
|
If unsure say Y.
|
2007-06-12 16:30:17 +00:00
|
|
|
|
2009-10-16 23:31:48 +00:00
|
|
|
config FSL_EMB_PERFMON
|
|
|
|
bool "Freescale Embedded Perfmon"
|
|
|
|
depends on E500 || PPC_83xx
|
|
|
|
help
|
|
|
|
This is the Performance Monitor support found on the e500 core
|
|
|
|
and some e300 cores (c3 and c4). Select this only if your
|
|
|
|
core supports the Embedded Performance Monitor APU
|
|
|
|
|
2010-02-26 00:09:45 +00:00
|
|
|
config FSL_EMB_PERF_EVENT
|
|
|
|
bool
|
|
|
|
depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
|
|
|
|
default y
|
|
|
|
|
|
|
|
config FSL_EMB_PERF_EVENT_E500
|
|
|
|
bool
|
|
|
|
depends on FSL_EMB_PERF_EVENT && E500
|
|
|
|
default y
|
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config 4xx
|
|
|
|
bool
|
|
|
|
depends on 40x || 44x
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BOOKE
|
|
|
|
bool
|
2020-11-17 05:07:58 +00:00
|
|
|
depends on E500 || 44x || PPC_BOOK3E
|
2007-06-12 16:30:17 +00:00
|
|
|
default y
|
|
|
|
|
|
|
|
config FSL_BOOKE
|
|
|
|
bool
|
2020-11-17 05:07:58 +00:00
|
|
|
depends on E500 && PPC32
|
2007-06-12 16:30:17 +00:00
|
|
|
default y
|
|
|
|
|
2010-10-08 13:32:11 +00:00
|
|
|
# this is for common code between PPC32 & PPC64 FSL BOOKE
|
|
|
|
config PPC_FSL_BOOK3E
|
|
|
|
bool
|
2021-05-05 01:38:13 +00:00
|
|
|
select ARCH_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
|
2010-10-08 13:32:11 +00:00
|
|
|
select FSL_EMB_PERFMON
|
2011-05-10 19:29:42 +00:00
|
|
|
select PPC_SMP_MUXED_IPI
|
2012-11-14 18:49:49 +00:00
|
|
|
select PPC_DOORBELL
|
2010-10-08 13:32:11 +00:00
|
|
|
default y if FSL_BOOKE
|
2008-02-05 00:27:55 +00:00
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config PTE_64BIT
|
|
|
|
bool
|
2008-09-24 16:01:24 +00:00
|
|
|
depends on 44x || E500 || PPC_86xx
|
|
|
|
default y if PHYS_64BIT
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
config PHYS_64BIT
|
2008-09-24 16:01:24 +00:00
|
|
|
bool 'Large physical address support' if E500 || PPC_86xx
|
|
|
|
depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
|
2018-04-03 14:24:20 +00:00
|
|
|
select PHYS_ADDR_T_64BIT
|
2020-06-13 16:50:22 +00:00
|
|
|
help
|
2007-06-12 16:30:17 +00:00
|
|
|
This option enables kernel support for larger than 32-bit physical
|
2008-09-24 16:01:24 +00:00
|
|
|
addresses. This feature may not be available on all cores.
|
|
|
|
|
|
|
|
If you have more than 3.5GB of RAM or so, you also need to enable
|
|
|
|
SWIOTLB under Kernel Options for this to work. The actual number
|
|
|
|
is platform-dependent.
|
2007-06-12 16:30:17 +00:00
|
|
|
|
|
|
|
If in doubt, say N here.
|
|
|
|
|
|
|
|
config ALTIVEC
|
|
|
|
bool "AltiVec Support"
|
2018-11-17 10:24:58 +00:00
|
|
|
depends on PPC_BOOK3S_32 || PPC_BOOK3S_64 || (PPC_E500MC && PPC64)
|
2021-04-21 21:06:47 +00:00
|
|
|
select PPC_FPU
|
2020-06-13 16:50:22 +00:00
|
|
|
help
|
2007-06-12 16:30:17 +00:00
|
|
|
This option enables kernel support for the Altivec extensions to the
|
|
|
|
PowerPC processor. The kernel currently supports saving and restoring
|
|
|
|
altivec registers, and turning on the 'altivec enable' bit so user
|
|
|
|
processes can execute altivec instructions.
|
|
|
|
|
|
|
|
This option is only usefully if you have a processor that supports
|
|
|
|
altivec (G4, otherwise known as 74xx series), but does not have
|
|
|
|
any affect on a non-altivec cpu (it does, however add code to the
|
|
|
|
kernel).
|
|
|
|
|
|
|
|
If in doubt, say Y here.
|
|
|
|
|
2008-06-25 04:07:18 +00:00
|
|
|
config VSX
|
|
|
|
bool "VSX Support"
|
2014-07-10 02:29:25 +00:00
|
|
|
depends on PPC_BOOK3S_64 && ALTIVEC && PPC_FPU
|
2020-06-13 16:50:22 +00:00
|
|
|
help
|
2008-06-25 04:07:18 +00:00
|
|
|
|
|
|
|
This option enables kernel support for the Vector Scaler extensions
|
|
|
|
to the PowerPC processor. The kernel currently supports saving and
|
|
|
|
restoring VSX registers, and turning on the 'VSX enable' bit so user
|
|
|
|
processes can execute VSX instructions.
|
|
|
|
|
|
|
|
This option is only useful if you have a processor that supports
|
|
|
|
VSX (P7 and above), but does not have any affect on a non-VSX
|
|
|
|
CPUs (it does, however add code to the kernel).
|
|
|
|
|
|
|
|
If in doubt, say Y here.
|
|
|
|
|
2014-08-20 13:09:03 +00:00
|
|
|
config SPE_POSSIBLE
|
|
|
|
def_bool y
|
2020-11-17 05:07:58 +00:00
|
|
|
depends on E500 && !PPC_E500MC
|
2014-08-20 13:09:03 +00:00
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config SPE
|
|
|
|
bool "SPE Support"
|
2014-08-20 13:09:03 +00:00
|
|
|
depends on SPE_POSSIBLE
|
2007-06-12 16:30:17 +00:00
|
|
|
default y
|
2020-06-13 16:50:22 +00:00
|
|
|
help
|
2007-06-12 16:30:17 +00:00
|
|
|
This option enables kernel support for the Signal Processing
|
|
|
|
Extensions (SPE) to the PowerPC processor. The kernel currently
|
|
|
|
supports saving and restoring SPE registers, and turning on the
|
|
|
|
'spe enable' bit so user processes can execute SPE instructions.
|
|
|
|
|
|
|
|
This option is only useful if you have a processor that supports
|
|
|
|
SPE (e500, otherwise known as 85xx series), but does not have any
|
|
|
|
effect on a non-spe cpu (it does, however add code to the kernel).
|
|
|
|
|
|
|
|
If in doubt, say Y here.
|
|
|
|
|
2016-04-29 13:25:53 +00:00
|
|
|
config PPC_RADIX_MMU
|
|
|
|
bool "Radix MMU Support"
|
2019-05-14 06:03:02 +00:00
|
|
|
depends on PPC_BOOK3S_64
|
2019-05-14 00:19:04 +00:00
|
|
|
select ARCH_HAS_GIGANTIC_PAGE
|
2016-04-29 13:25:53 +00:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable support for the Power ISA 3.0 Radix style MMU. Currently this
|
|
|
|
is only implemented by IBM Power9 CPUs, if you don't have one of them
|
|
|
|
you can probably disable this.
|
|
|
|
|
2017-10-24 15:48:49 +00:00
|
|
|
config PPC_RADIX_MMU_DEFAULT
|
|
|
|
bool "Default to using the Radix MMU when possible"
|
|
|
|
depends on PPC_RADIX_MMU
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
When the hardware supports the Radix MMU, default to using it unless
|
|
|
|
"disable_radix[=yes]" is specified on the kernel command line.
|
|
|
|
|
|
|
|
If this option is disabled, the Hash MMU will be used by default,
|
|
|
|
unless "disable_radix=no" is specified on the kernel command line.
|
|
|
|
|
|
|
|
If you're unsure, say Y.
|
|
|
|
|
2019-04-18 06:51:19 +00:00
|
|
|
config PPC_HAVE_KUEP
|
|
|
|
bool
|
|
|
|
|
|
|
|
config PPC_KUEP
|
|
|
|
bool "Kernel Userspace Execution Prevention"
|
|
|
|
depends on PPC_HAVE_KUEP
|
2021-06-03 08:41:45 +00:00
|
|
|
default y
|
2019-04-18 06:51:19 +00:00
|
|
|
help
|
|
|
|
Enable support for Kernel Userspace Execution Prevention (KUEP)
|
|
|
|
|
|
|
|
If you're unsure, say Y.
|
|
|
|
|
2019-04-18 06:51:20 +00:00
|
|
|
config PPC_HAVE_KUAP
|
|
|
|
bool
|
|
|
|
|
|
|
|
config PPC_KUAP
|
|
|
|
bool "Kernel Userspace Access Protection"
|
|
|
|
depends on PPC_HAVE_KUAP
|
2021-06-03 08:41:45 +00:00
|
|
|
default y
|
2019-04-18 06:51:20 +00:00
|
|
|
help
|
|
|
|
Enable support for Kernel Userspace Access Protection (KUAP)
|
|
|
|
|
|
|
|
If you're unsure, say Y.
|
|
|
|
|
2019-04-18 06:51:24 +00:00
|
|
|
config PPC_KUAP_DEBUG
|
|
|
|
bool "Extra debugging for Kernel Userspace Access Protection"
|
2020-04-17 11:58:36 +00:00
|
|
|
depends on PPC_KUAP && (PPC_RADIX_MMU || PPC32)
|
2019-04-18 06:51:24 +00:00
|
|
|
help
|
|
|
|
Add extra debugging for Kernel Userspace Access Protection (KUAP)
|
|
|
|
If you're unsure, say N.
|
|
|
|
|
2020-11-27 04:44:05 +00:00
|
|
|
config PPC_PKEY
|
|
|
|
def_bool y
|
|
|
|
depends on PPC_BOOK3S_64
|
|
|
|
depends on PPC_MEM_KEYS || PPC_KUAP || PPC_KUEP
|
|
|
|
|
2017-07-06 22:39:05 +00:00
|
|
|
|
2008-12-18 19:13:24 +00:00
|
|
|
config PPC_MMU_NOHASH
|
|
|
|
def_bool y
|
2018-11-17 10:25:07 +00:00
|
|
|
depends on !PPC_BOOK3S
|
2008-12-18 19:13:24 +00:00
|
|
|
|
2009-02-12 22:12:40 +00:00
|
|
|
config PPC_BOOK3E_MMU
|
|
|
|
def_bool y
|
2009-07-23 23:15:59 +00:00
|
|
|
depends on FSL_BOOKE || PPC_BOOK3E
|
2009-02-12 22:12:40 +00:00
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config PPC_MM_SLICES
|
|
|
|
bool
|
|
|
|
|
2009-06-17 11:50:04 +00:00
|
|
|
config PPC_HAVE_PMU_SUPPORT
|
2019-11-21 03:21:01 +00:00
|
|
|
bool
|
2009-06-17 11:50:04 +00:00
|
|
|
|
2020-02-14 08:06:06 +00:00
|
|
|
config PMU_SYSFS
|
|
|
|
bool "Create PMU SPRs sysfs file"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option enables sysfs file creation for PMU SPRs like MMCR* and PMC*.
|
|
|
|
|
2009-06-17 11:50:04 +00:00
|
|
|
config PPC_PERF_CTRS
|
2019-11-21 03:21:01 +00:00
|
|
|
def_bool y
|
|
|
|
depends on PERF_EVENTS && PPC_HAVE_PMU_SUPPORT
|
|
|
|
help
|
|
|
|
This enables the powerpc-specific perf_event back-end.
|
2009-06-17 11:50:04 +00:00
|
|
|
|
2017-04-05 02:44:49 +00:00
|
|
|
config FORCE_SMP
|
|
|
|
# Allow platforms to force SMP=y by selecting this
|
|
|
|
bool
|
|
|
|
select SMP
|
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
config SMP
|
2010-03-05 10:43:12 +00:00
|
|
|
depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
|
2017-04-05 07:54:49 +00:00
|
|
|
select GENERIC_IRQ_MIGRATION
|
2017-04-05 02:44:49 +00:00
|
|
|
bool "Symmetric multi-processing support" if !FORCE_SMP
|
2020-06-13 16:50:22 +00:00
|
|
|
help
|
2007-06-12 16:30:17 +00:00
|
|
|
This enables support for systems with more than one CPU. If you have
|
|
|
|
a system with only one CPU, say N. If you have a system with more
|
|
|
|
than one CPU, say Y. Note that the kernel does not currently
|
|
|
|
support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
|
|
|
|
since they have inadequate hardware support for multiprocessor
|
|
|
|
operation.
|
|
|
|
|
|
|
|
If you say N here, the kernel will run on single and multiprocessor
|
|
|
|
machines, but will use only one CPU of a multiprocessor machine. If
|
|
|
|
you say Y here, the kernel will run on single-processor machines.
|
|
|
|
On a single-processor machine, the kernel will run faster if you say
|
|
|
|
N here.
|
|
|
|
|
|
|
|
If you don't know what to do here, say N.
|
|
|
|
|
|
|
|
config NR_CPUS
|
2021-05-07 09:24:43 +00:00
|
|
|
int "Maximum number of CPUs (2-8192)" if SMP
|
|
|
|
range 2 8192 if SMP
|
|
|
|
default "1" if !SMP
|
2007-06-12 16:30:17 +00:00
|
|
|
default "32" if PPC64
|
|
|
|
default "4"
|
|
|
|
|
|
|
|
config NOT_COHERENT_CACHE
|
|
|
|
bool
|
2020-11-17 05:07:58 +00:00
|
|
|
depends on 4xx || PPC_8xx || PPC_MPC512x || \
|
2018-12-16 17:19:44 +00:00
|
|
|
GAMECUBE_COMMON || AMIGAONE
|
2019-08-14 13:22:30 +00:00
|
|
|
select ARCH_HAS_DMA_PREP_COHERENT
|
2019-02-13 07:01:29 +00:00
|
|
|
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
|
|
|
|
select ARCH_HAS_SYNC_DMA_FOR_CPU
|
2019-08-14 13:22:30 +00:00
|
|
|
select DMA_DIRECT_REMAP
|
2010-03-05 10:43:12 +00:00
|
|
|
default n if PPC_47x
|
2007-06-12 16:30:17 +00:00
|
|
|
default y
|
|
|
|
|
2007-07-17 22:21:29 +00:00
|
|
|
config CHECK_CACHE_COHERENCY
|
2007-06-12 16:30:17 +00:00
|
|
|
bool
|
|
|
|
|
2012-11-14 18:49:49 +00:00
|
|
|
config PPC_DOORBELL
|
|
|
|
bool
|
|
|
|
|
2007-06-12 16:30:17 +00:00
|
|
|
endmenu
|
2013-11-20 11:15:05 +00:00
|
|
|
|
2015-05-11 10:01:02 +00:00
|
|
|
config VDSO32
|
|
|
|
def_bool y
|
2020-08-27 13:17:13 +00:00
|
|
|
depends on PPC32 || COMPAT
|
2015-05-11 10:01:02 +00:00
|
|
|
help
|
|
|
|
This symbol controls whether we build the 32-bit VDSO. We obviously
|
|
|
|
want to do that if we're building a 32-bit kernel. If we're building
|
2020-08-27 13:17:13 +00:00
|
|
|
a 64-bit kernel then we only want a 32-bit VDSO if we're also enabling
|
|
|
|
COMPAT.
|
2015-05-11 10:01:02 +00:00
|
|
|
|
2013-11-21 05:33:55 +00:00
|
|
|
choice
|
|
|
|
prompt "Endianness selection"
|
|
|
|
default CPU_BIG_ENDIAN
|
2013-11-20 11:15:05 +00:00
|
|
|
help
|
|
|
|
This option selects whether a big endian or little endian kernel will
|
|
|
|
be built.
|
|
|
|
|
2013-11-21 05:33:55 +00:00
|
|
|
config CPU_BIG_ENDIAN
|
|
|
|
bool "Build big endian kernel"
|
|
|
|
help
|
|
|
|
Build a big endian kernel.
|
|
|
|
|
|
|
|
If unsure, select this option.
|
|
|
|
|
|
|
|
config CPU_LITTLE_ENDIAN
|
|
|
|
bool "Build little endian kernel"
|
2015-04-22 05:36:50 +00:00
|
|
|
depends on PPC_BOOK3S_64
|
2014-04-24 07:23:39 +00:00
|
|
|
select PPC64_BOOT_WRAPPER
|
2013-11-21 05:33:55 +00:00
|
|
|
help
|
|
|
|
Build a little endian kernel.
|
|
|
|
|
2013-11-20 11:15:05 +00:00
|
|
|
Note that if cross compiling a little endian kernel,
|
|
|
|
CROSS_COMPILE must point to a toolchain capable of targeting
|
|
|
|
little endian powerpc.
|
2013-11-21 05:33:55 +00:00
|
|
|
|
|
|
|
endchoice
|
2014-04-24 07:23:39 +00:00
|
|
|
|
|
|
|
config PPC64_BOOT_WRAPPER
|
|
|
|
def_bool n
|
|
|
|
depends on CPU_LITTLE_ENDIAN
|