powerpc/85xx: remove P1020RDB and P2020RDB CAMP device trees
Subsystems (2)
PATCH 1/1 powerpc/85xx: remove P1020RDB and P2020RDB CAMP device trees
We only need two examples of CAMP device trees in the upstream kernel.
Co-operative Asymmetric Multi-Processing (CAMP) is a technique where two or more operating systems (typically multiple copies of the same Linux kernel) are loaded into memory, and each kernel is given a subset of the available cores to execute on. For example, on a four-core system, one kernel runs on cores 0 and 1, and the other runs on cores 2 and 3.
The devices are also partitioned among the operating systems, and this is done with customized device trees. Each kernel gets its own device tree that has only the devices that it should know about.
Unfortunately, this approach is very hackish. The kernels are trusted to only access devices in their respective device trees, and the partitioning only works for devices that can be handled. Crafting the device trees is a tricky process, and getting U-Boot to load and start all kernels is cumbersome.
But most importantly, each CAMP setup is very application-specific, since the actual partitioning of resources is done in the DTS by the system designer. Therefore, it doesn't make a lot of sense to have a lot of CAMP device trees, since we only expect them to be used as examples.
--- arch/powerpc/boot/dts/p1020rdb_camp_core0.dts | 63 ----------- arch/powerpc/boot/dts/p1020rdb_camp_core1.dts | 141 ------------------------- arch/powerpc/boot/dts/p2020rdb_camp_core0.dts | 67 ------------ arch/powerpc/boot/dts/p2020rdb_camp_core1.dts | 125 ---------------------- 4 files changed, 0 insertions(+), 396 deletions(-) delete mode 100644 arch/powerpc/boot/dts/p1020rdb_camp_core0.dts delete mode 100644 arch/powerpc/boot/dts/p1020rdb_camp_core1.dts delete mode 100644 arch/powerpc/boot/dts/p2020rdb_camp_core0.dts delete mode 100644 arch/powerpc/boot/dts/p2020rdb_camp_core1.dts
arch/powerpc/boot/dts/p1020rdb_camp_core0.dts deleted +0 -63
@@ -1,63 +0,0 @@ -/* - * P1020 RDB Core0 Device Tree Source in CAMP mode. - * - * In CAMP mode, each core needs to have its own dts. Only mpic and L2 cache - * can be shared, all the other devices must be assigned to one core only. - * This dts file allows core0 to have memory, l2, i2c, spi, gpio, tdm, dma, usb, - * eth1, eth2, sdhc, crypto, global-util, message, pci0, pci1, msi. - * - * Please note to add "-b 0" for core0's dts compiling. - * - * Copyright 2011 Freescale Semiconductor Inc. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - */ - -/include/ "p1020rdb.dts" - -/ { - model = "fsl,P1020RDB"; - compatible = "fsl,P1020RDB", "fsl,MPC85XXRDB-CAMP"; - - aliases { - ethernet1 = &enet1; - ethernet2 = &enet2; - serial0 = &serial0; - pci0 = &pci0; - pci1 = &pci1; - }; - - cpus { - PowerPC,P1020@1 { - status = "disabled"; - }; - }; - - memory { - device_type = "memory"; - }; - - localbus@ffe05000 { - status = "disabled"; - }; - - soc@ffe00000 { - serial1: serial@4600 { - status = "disabled"; - }; - - enet0: ethernet@b0000 { - status = "disabled"; - }; - - mpic: pic@40000 { - protected-sources = < - 42 29 30 34 /* serial1, enet0-queue-group0 */ - 17 18 24 45 /* enet0-queue-group1, crypto */ - >; - }; - }; -};
arch/powerpc/boot/dts/p1020rdb_camp_core1.dts deleted +0 -141
141 lines not on this page · raw message
arch/powerpc/boot/dts/p2020rdb_camp_core0.dts deleted +0 -67
67 lines not on this page · raw message
arch/powerpc/boot/dts/p2020rdb_camp_core1.dts deleted +0 -125
125 lines not on this page · raw message
Signature · 1 line
1.7.3.4
Kumar Gala
AppliedQuoted 3 lines · Timur Tabi
We only need two examples of CAMP device trees in the upstream kernel. =20
Co-operative Asymmetric Multi-Processing (CAMP) is a technique where =
two
Quoted 1 line
or more operating systems (typically multiple copies of the same Linux =
kernel)
Quoted 1 line
are loaded into memory, and each kernel is given a subset of the =
available
Quoted 1 line
cores to execute on. For example, on a four-core system, one kernel =
runs on
Quoted 3 lines
cores 0 and 1, and the other runs on cores 2 and 3.
=20
The devices are also partitioned among the operating systems, and this =
is
Quoted 1 line
done with customized device trees. Each kernel gets its own device =
tree
Quoted 3 lines
that has only the devices that it should know about.
=20
Unfortunately, this approach is very hackish. The kernels are trusted =
to
Quoted 1 line
only access devices in their respective device trees, and the =
partitioning
Quoted 1 line
only works for devices that can be handled. Crafting the device trees =
is a
Quoted 1 line
tricky process, and getting U-Boot to load and start all kernels is =
cumbersome.
Quoted 2 lines
=20
But most importantly, each CAMP setup is very application-specific, =
since
Quoted 2 lines
the actual partitioning of resources is done in the DTS by the system designer. Therefore, it doesn't make a lot of sense to have a lot of =
CAMP
Quoted 6 lines
device trees, since we only expect them to be used as examples. =20
Signed-off-by Timur Tabi <[email protected]>---
arch/powerpc/boot/dts/p1020rdb_camp_core0.dts| 63 -----------arch/powerpc/boot/dts/p1020rdb_camp_core1.dts| 141 =
-------------------------
Quoted 2 lines
arch/powerpc/boot/dts/p2020rdb_camp_core0.dts| 67 ------------arch/powerpc/boot/dts/p2020rdb_camp_core1.dts| 125 =
----------------------
Quoted 5 lines
4 files changed, 0 insertions(+), 396 deletions(-)delete mode 100644
arch/powerpc/boot/dts/p1020rdb_camp_core0.dtsdelete mode 100644arch/powerpc/boot/dts/p1020rdb_camp_core1.dtsdelete mode 100644arch/powerpc/boot/dts/p2020rdb_camp_core0.dtsdelete mode 100644arch/powerpc/boot/dts/p2020rdb_camp_core1.dts
applied to next
- k=