Maciej W. Rozycki
fd28b9ac8e
DEC: Document the R4k MB ASIC mini interrupt controller
...
There's an alternative 5-line mini interrupt controller in the R4k MB ASIC
used on the KN04 and KN05 CPU daughtercards. The controller is cascaded
from the CPU interrupt input that would be used for the Halt button on the
corresponding R3k systems. This change documents the findings so far.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org >
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6706/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:41 +02:00
Maciej W. Rozycki
ebff05b9c6
DEC: Add self as the maintainer
...
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org >
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6707/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:41 +02:00
Steven J. Hill
d96cc3d1ec
MIPS: Add microMIPS MSA support.
...
This patch adds support for the microMIPS implementation of the MSA
instructions.
Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com >
Reviewed-by: Paul Burton <Paul.Burton@imgtec.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6763/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:41 +02:00
Daniel Walter
8e9ecbc5e2
MIPS: Replace calls to obsolete strict_strto call with kstrto* equivalents.
...
Signed-off-by: Daniel Walter <dwalter@google.com >
Cc: linux-kernel@vger.kernel.org
Cc: richard@nod.at
Cc: akpm@linux-foundation.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:41 +02:00
Daniel Walter
8ca635bfc0
MIPS: Replace obsolete strict_strto call with kstrto
...
Signed-off-by: Daniel Walter <dwalter@google.com >
Cc: linux-kernel@vger.kernel.org
Cc: richard@nod.at
Cc: akpm@linux-foundation.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:40 +02:00
Ralf Baechle
b4f16c938e
MIPS: BFP: Simplify code slightly.
...
This keeps the if condition slightly simpler - it's going to become ore
complication.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-04 22:50:40 +02:00
Geert Uytterhoeven
5e888e8fb5
mips: Update the email address of Geert Uytterhoeven
...
All my Sony addresses are defunct.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6817/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-02 16:34:41 +02:00
Andreas Herrmann
a1eace4ba5
MIPS: Add minimal defconfig for mips_paravirt
...
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: David Daney <ddaney.cavm@gmail.com >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7008/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-02 13:40:03 +02:00
David Daney
9bc463be7d
MIPS: Enable build for new system 'paravirt'
...
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7015/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-02 12:34:20 +02:00
David Daney
ae6e7e635c
MIPS: paravirt: Add pci controller for virtio
...
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7011/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-02 12:34:20 +02:00
David Daney
18280edafe
MIPS: Add code for new system 'paravirt'
...
For para-virtualized guests running under KVM or other equivalent
hypervisor.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7004/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-06-02 12:34:20 +02:00
David Daney
90dfdc7ceb
MIPS: Add functions for hypervisor call
...
Introduce kvm_hypercall[0-3].
Define three new hypercalls for MIPS: GET_CLOCK_FREQ, EXIT_VM, and
CONSOLE_OUTPUT.
[andreas.herrmann:
* Properly define hypercalls and HC numbers for MIPS
in kvm_para.h header files]
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7005/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:11 +02:00
Andreas Herrmann
cd3f538948
MIPS: OCTEON: Add OCTEON3 to __get_cpu_type
...
Otherwise __builtin_unreachable might be called.
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: David Daney <ddaney.cavm@gmail.com >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7014/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:11 +02:00
David Daney
45b585c8dc
MIPS: Add function get_ebase_cpunum
...
This returns the CPUNum from the low order Ebase bits.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7012/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:11 +02:00
David Daney
18a8cd63c0
MIPS: Add minimal support for OCTEON3 to c-r4k.c
...
These are needed to boot a generic mips64r2 kernel on OCTEONIII.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7003/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:10 +02:00
David Daney
35d0470668
MIPS: Don't build fast TLB refill handler with 32-bit kernels
...
The fast handler only supports 64-bit kernels.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7010/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:10 +02:00
David Daney
a68d09a156
MIPS: Don't use RI/XI with 32-bit kernels on 64-bit CPUs
...
The TLB handlers cannot handle this case, so disable it for now.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7007/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:10 +02:00
David Daney
8a837cdb0a
MIPS: OCTEON: Move CAVIUM_OCTEON_CVMSEG_SIZE to CPU_CAVIUM_OCTEON
...
CVMSEG is related to the CPU core not the SoC system. So needs to be
configurable there.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7013/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:10 +02:00
David Daney
6e5111636d
MIPS: Move system level config items from CPU_CAVIUM_OCTEON to CAVIUM_OCTEON_SOC
...
They are a property of the SoC not the CPU itself.
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7009/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:10 +02:00
David Daney
a36d8225bc
MIPS: OCTEON: Enable use of FPU
...
Some versions of the assembler will not assemble CFC1 for OCTEON, so
override the ISA for these.
Add r4k_fpu.o to handle low level FPU initialization.
Modify octeon_switch.S to save the FPU registers. And include
r4k_switch.S to pick up more FPU support.
Get rid of "#define cpu_has_fpu 0"
Signed-off-by: David Daney <david.daney@cavium.com >
Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com >
Cc: linux-mips@linux-mips.org
Cc: James Hogan <james.hogan@imgtec.com >
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7006/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:09 +02:00
Paul Burton
dadaa1c2c0
MIPS: Malta: support powering down
...
This patch powers down the Malta in response to a power off command (eg.
poweroff or shutdown -P). It may then be powered back up by pressing the
"ON/NMI" button (S4) on the board. In cases where the power off state
cannot be entered (eg. because the required PCI support is disabled) the
current reset behaviour will be used as a fallback.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Tested-by: James Hogan <james.hogan@imgtec.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6907/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:09 +02:00
Paul Burton
37e5c835bb
MIPS: Malta: hang on halt
...
When the system is halted it makes little sense to reset it. Instead,
hang by executing an infinite loop.
[ralf@linux-mips.org: Remove printk from mips_machine_halt() - this is not
the place to communicate with the user.]
Suggested-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6906/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:09 +02:00
Paul Burton
9e53481eea
MIPS: Malta: Let PIIX4 respond to PCI special cycles
...
This patch enables the PIIX4 to respond to special cycles on the PCI
bus. One such special cycle must be used in order to enter a suspend
state, and if response to it is not enabled then the suspend state will
never be entered.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6904/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:09 +02:00
Paul Burton
b6911bba59
MIPS: Malta: add suspend state entry code
...
This patch introduces code which will enter a suspend state via the
PIIX4. This can only be done when PCI support is enabled since it
requires access to PCI I/O space and the generation of a special cycle
on the PCI bus. In cases where PCI is disabled the mips_pm_suspend
function will simply always return an error.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6905/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:09 +02:00
Paul Burton
643c5705bc
MIPS: Define some more PIIX4 registers & values
...
This patch simply adds definitions for some I/O registers in the PIIX4
PM device, and the magic data for a special cycle which must occur on
the PCI bus in order for the PIIX4 to enter a suspend state.
Signed-off-by: Paul Burton <paul.burton@imgtec.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6903/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2014-05-30 21:01:08 +02:00