-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upst…
…ream-linus Pull MIPS updates from Ralf Baechle: - Minor updates and fixes to the Octeon ethernet driver in staging - A fix to VGA_MAP_MEM() for 64 bit platforms - Fix a workaround for 74K/1074K processors - The symlink arch/mips/boot/dts/include/dt-bindings was pointing to a a file with a name ending in \n. I think this may have been caused by a git bug with with patches sent by email - A build fix for VGA console on BCM1480-based systems - Fix PCI device access via "/sys/bus/pci/.../resource0" or similar work for Alchemy platforms - Fix potential data leak on MIPS R5 cores. This doesn't add proper support for any R5 features, just ensures a kernel without such support will be secure to run - Adding a macros for the CP0 Config5 register to be used by the R5 fix - Make get_cycles() actually return something useful where possible This also requires a preparatory patch for performance sake - Fix a warning about the use of smp_processor_id() in preemptible code. Again this includes a preparatory patch adding the infrastructure to be used by the actual patch - Finally remove pointless one-line comment * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: Fix invalid symbolic link file MIPS: PCI: pci-bcm1480: Include missing vt.h header MIPS: Disable usermode switching of the FR bit for MIPS R5 CPUs. MIPS: Add MIPS R5 config5 register. MIPS: PCI: Use pci_resource_to_user to map pci memory space properly MIPS: 74K/1074K: Correct erratum workaround. MIPS: Cleanup CP0 PRId and CP1 FPIR register access masks MIPS: Remove useless comment about kprobe from arch/mips/Makefile MIPS: Fix VGA_MAP_MEM macro. MIPS: Reimplement get_cycles(). MIPS: Optimize current_cpu_type() for better code. MIPS: Fix accessing to per-cpu data when flushing the cache MIPS: Provide nice way to access boot CPU's data. staging: octeon-ethernet: rgmii: enable interrupts that we can handle staging: octeon-ethernet: remove skb alloc failure warnings staging: octeon-ethernet: make dropped packets to consume NAPI budget
- Loading branch information
Showing
40 changed files
with
404 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../../../../include/dt-bindings | ||
../../../../../include/dt-bindings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2003, 2004 Ralf Baechle | ||
* Copyright (C) 2004 Maciej W. Rozycki | ||
*/ | ||
#ifndef __ASM_CPU_TYPE_H | ||
#define __ASM_CPU_TYPE_H | ||
|
||
#include <linux/smp.h> | ||
#include <linux/compiler.h> | ||
|
||
static inline int __pure __get_cpu_type(const int cpu_type) | ||
{ | ||
switch (cpu_type) { | ||
#if defined(CONFIG_SYS_HAS_CPU_LOONGSON2E) || \ | ||
defined(CONFIG_SYS_HAS_CPU_LOONGSON2F) | ||
case CPU_LOONGSON2: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_LOONGSON1B | ||
case CPU_LOONGSON1: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R1 | ||
case CPU_4KC: | ||
case CPU_ALCHEMY: | ||
case CPU_BMIPS3300: | ||
case CPU_BMIPS4350: | ||
case CPU_PR4450: | ||
case CPU_BMIPS32: | ||
case CPU_JZRISC: | ||
#endif | ||
|
||
#if defined(CONFIG_SYS_HAS_CPU_MIPS32_R1) || \ | ||
defined(CONFIG_SYS_HAS_CPU_MIPS32_R2) | ||
case CPU_4KEC: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R2 | ||
case CPU_4KSC: | ||
case CPU_24K: | ||
case CPU_34K: | ||
case CPU_1004K: | ||
case CPU_74K: | ||
case CPU_M14KC: | ||
case CPU_M14KEC: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_MIPS64_R1 | ||
case CPU_5KC: | ||
case CPU_5KE: | ||
case CPU_20KC: | ||
case CPU_25KF: | ||
case CPU_SB1: | ||
case CPU_SB1A: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_MIPS64_R2 | ||
/* | ||
* All MIPS64 R2 processors have their own special symbols. That is, | ||
* there currently is no pure R2 core | ||
*/ | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R3000 | ||
case CPU_R2000: | ||
case CPU_R3000: | ||
case CPU_R3000A: | ||
case CPU_R3041: | ||
case CPU_R3051: | ||
case CPU_R3052: | ||
case CPU_R3081: | ||
case CPU_R3081E: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_TX39XX | ||
case CPU_TX3912: | ||
case CPU_TX3922: | ||
case CPU_TX3927: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_VR41XX | ||
case CPU_VR41XX: | ||
case CPU_VR4111: | ||
case CPU_VR4121: | ||
case CPU_VR4122: | ||
case CPU_VR4131: | ||
case CPU_VR4133: | ||
case CPU_VR4181: | ||
case CPU_VR4181A: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R4300 | ||
case CPU_R4300: | ||
case CPU_R4310: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R4X00 | ||
case CPU_R4000PC: | ||
case CPU_R4000SC: | ||
case CPU_R4000MC: | ||
case CPU_R4200: | ||
case CPU_R4400PC: | ||
case CPU_R4400SC: | ||
case CPU_R4400MC: | ||
case CPU_R4600: | ||
case CPU_R4700: | ||
case CPU_R4640: | ||
case CPU_R4650: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_TX49XX | ||
case CPU_TX49XX: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R5000 | ||
case CPU_R5000: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R5432 | ||
case CPU_R5432: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R5500 | ||
case CPU_R5500: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R6000 | ||
case CPU_R6000: | ||
case CPU_R6000A: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_NEVADA | ||
case CPU_NEVADA: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R8000 | ||
case CPU_R8000: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_R10000 | ||
case CPU_R10000: | ||
case CPU_R12000: | ||
case CPU_R14000: | ||
#endif | ||
#ifdef CONFIG_SYS_HAS_CPU_RM7000 | ||
case CPU_RM7000: | ||
case CPU_SR71000: | ||
#endif | ||
#ifdef CONFIG_SYS_HAS_CPU_RM9000 | ||
case CPU_RM9000: | ||
#endif | ||
#ifdef CONFIG_SYS_HAS_CPU_SB1 | ||
case CPU_SB1: | ||
case CPU_SB1A: | ||
#endif | ||
#ifdef CONFIG_SYS_HAS_CPU_CAVIUM_OCTEON | ||
case CPU_CAVIUM_OCTEON: | ||
case CPU_CAVIUM_OCTEON_PLUS: | ||
case CPU_CAVIUM_OCTEON2: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_BMIPS4380 | ||
case CPU_BMIPS4380: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_BMIPS5000 | ||
case CPU_BMIPS5000: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_XLP | ||
case CPU_XLP: | ||
#endif | ||
|
||
#ifdef CONFIG_SYS_HAS_CPU_XLR | ||
case CPU_XLR: | ||
#endif | ||
break; | ||
default: | ||
unreachable(); | ||
} | ||
|
||
return cpu_type; | ||
} | ||
|
||
static inline int __pure current_cpu_type(void) | ||
{ | ||
const int cpu_type = current_cpu_data.cputype; | ||
|
||
return __get_cpu_type(cpu_type); | ||
} | ||
|
||
static inline int __pure boot_cpu_type(void) | ||
{ | ||
const int cpu_type = cpu_data[0].cputype; | ||
|
||
return __get_cpu_type(cpu_type); | ||
} | ||
|
||
#endif /* __ASM_CPU_TYPE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.