diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-10 14:39:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-10 14:39:22 -0400 |
commit | 948869fa9f391664cfe008fa9968a1110bfd14fd (patch) | |
tree | 8cab813f6064d9bfa03fdfe6524277ca41e65305 /arch/mips/kernel/setup.c | |
parent | 2a56bb596b2c1fb612f9988afda9655c8c872a6e (diff) | |
parent | a5075e6226c42a8e64ea1b862eec7747dc46cb32 (diff) |
Merge tag 'mips_4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips
Pull MIPS updates from James Hogan:
"These are the main MIPS changes for 4.17. Rough overview:
(1) generic platform: Add support for Microsemi Ocelot SoCs
(2) crypto: Add CRC32 and CRC32C HW acceleration module
(3) Various cleanups and misc improvements
More detailed summary:
Miscellaneous:
- hang more efficiently on halt/powerdown/restart
- pm-cps: Block system suspend when a JTAG probe is present
- expand make help text for generic defconfigs
- refactor handling of legacy defconfigs
- determine the entry point from the ELF file header to fix microMIPS
for certain toolchains
- introduce isa-rev.h for MIPS_ISA_REV and use to simplify other code
Minor cleanups:
- DTS: boston/ci20: Unit name cleanups and correction
- kdump: Make the default for PHYSICAL_START always 64-bit
- constify gpio_led in Alchemy, AR7, and TXX9
- silence a couple of W=1 warnings
- remove duplicate includes
Platform support:
Generic platform:
- add support for Microsemi Ocelot
- dt-bindings: Add vendor prefix for Microsemi Corporation
- dt-bindings: Add bindings for Microsemi SoCs
- add ocelot SoC & PCB123 board DTS files
- MAINTAINERS: Add entry for Microsemi MIPS SoCs
- enable crc32-mips on r6 configs
ath79:
- fix AR724X_PLL_REG_PCIE_CONFIG offset
BCM47xx:
- firmware: Use mac_pton() for MAC address parsing
- add Luxul XAP1500/XWR1750 WiFi LEDs
- use standard reset button for Luxul XWR-1750
BMIPS:
- enable CONFIG_BRCMSTB_PM in bmips_stb_defconfig for build coverage
- add STB PM, wake-up timer, watchdog DT nodes
Octeon:
- drop '.' after newlines in printk calls
ralink:
- pci-mt7621: Enable PCIe on MT7688"
* tag 'mips_4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/mips: (37 commits)
MIPS: BCM47XX: Use standard reset button for Luxul XWR-1750
MIPS: BCM47XX: Add Luxul XAP1500/XWR1750 WiFi LEDs
MIPS: Make the default for PHYSICAL_START always 64-bit
MIPS: Use the entry point from the ELF file header
MAINTAINERS: Add entry for Microsemi MIPS SoCs
MIPS: generic: Add support for Microsemi Ocelot
MIPS: mscc: Add ocelot PCB123 device tree
MIPS: mscc: Add ocelot dtsi
dt-bindings: mips: Add bindings for Microsemi SoCs
dt-bindings: Add vendor prefix for Microsemi Corporation
MIPS: ath79: Fix AR724X_PLL_REG_PCIE_CONFIG offset
MIPS: pci-mt7620: Enable PCIe on MT7688
MIPS: pm-cps: Block system suspend when a JTAG probe is present
MIPS: VDSO: Replace __mips_isa_rev with MIPS_ISA_REV
MIPS: BPF: Replace __mips_isa_rev with MIPS_ISA_REV
MIPS: cpu-features.h: Replace __mips_isa_rev with MIPS_ISA_REV
MIPS: Introduce isa-rev.h to define MIPS_ISA_REV
MIPS: Hang more efficiently on halt/powerdown/restart
FIRMWARE: bcm47xx_nvram: Replace mac address parsing
MIPS: BMIPS: Add Broadcom STB watchdog nodes
...
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r-- | arch/mips/kernel/setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 5f8b0a9e30b3..563188ac6fa2 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -155,7 +155,8 @@ void __init detect_memory_region(phys_addr_t start, phys_addr_t sz_min, phys_add | |||
155 | add_memory_region(start, size, BOOT_MEM_RAM); | 155 | add_memory_region(start, size, BOOT_MEM_RAM); |
156 | } | 156 | } |
157 | 157 | ||
158 | bool __init memory_region_available(phys_addr_t start, phys_addr_t size) | 158 | static bool __init __maybe_unused memory_region_available(phys_addr_t start, |
159 | phys_addr_t size) | ||
159 | { | 160 | { |
160 | int i; | 161 | int i; |
161 | bool in_ram = false, free = true; | 162 | bool in_ram = false, free = true; |
@@ -453,7 +454,7 @@ static void __init bootmem_init(void) | |||
453 | pr_info("Wasting %lu bytes for tracking %lu unused pages\n", | 454 | pr_info("Wasting %lu bytes for tracking %lu unused pages\n", |
454 | (min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page), | 455 | (min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page), |
455 | min_low_pfn - ARCH_PFN_OFFSET); | 456 | min_low_pfn - ARCH_PFN_OFFSET); |
456 | } else if (min_low_pfn < ARCH_PFN_OFFSET) { | 457 | } else if (ARCH_PFN_OFFSET - min_low_pfn > 0UL) { |
457 | pr_info("%lu free pages won't be used\n", | 458 | pr_info("%lu free pages won't be used\n", |
458 | ARCH_PFN_OFFSET - min_low_pfn); | 459 | ARCH_PFN_OFFSET - min_low_pfn); |
459 | } | 460 | } |