[Qemu-devel] [PATCH] [ARM] i.MX25: Fix DTS tree for real hardware.

2013-05-08 Thread Jean-Christophe DUBOIS
i.MX25 PDK only has 64 MB DDR

Signed-off-by: Jean-Christophe DUBOIS j...@tribudubois.net
---
 arch/arm/board/imx25/dts/3dstack/3dstack.dtsi| 3 ++-
 arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts | 5 +
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi 
b/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
index 29ff746..9c59d93 100644
--- a/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
+++ b/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
@@ -27,9 +27,10 @@
 * unless specified by -m option. If you have
 * X MB then we will be able to access only first
 * X MB starting at physical_addr.
+ * Note: the 3Dstack board only has 64 MB DDR.
 */
physical_addr = 0x8000;
-   physical_size = 0x0800; /* 128 MB */
+   physical_size = 0x0400; /* 64 MB */
};
 
soc {
diff --git a/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts 
b/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
index e6ec7ea..7d5e2d6 100644
--- a/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
+++ b/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
@@ -10,10 +10,7 @@
 
  /* Update guest0 memory regions */
  devtree attr set /guests/guest0/aspace/mem0 
host_physical_addr physaddr 0x8200,
- devtree attr set /guests/guest0/aspace/mem0 
physical_size physsize 0x0600,
-
- /* Connect guest0/virtio-net0 netport to netbridge0 */
- devtree attr set /guests/guest0/aspace/virtio-net0 
switch string netbridge0,
+ devtree attr set /guests/guest0/aspace/mem0 
physical_size physsize 0x0200,
 
  /* Update guest0 flash region */
  devtree attr set /guests/guest0/aspace/nor_flash 
host_physical_addr physaddr 0x8100,
-- 
1.8.1.2




Re: [Qemu-devel] [PATCH] [ARM] i.MX25: Fix DTS tree for real hardware.

2013-05-08 Thread Peter Maydell
On 8 May 2013 08:51, Jean-Christophe DUBOIS j...@tribudubois.net wrote:
 i.MX25 PDK only has 64 MB DDR

 Signed-off-by: Jean-Christophe DUBOIS j...@tribudubois.net
 ---
  arch/arm/board/imx25/dts/3dstack/3dstack.dtsi| 3 ++-
  arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts | 5 +
  2 files changed, 3 insertions(+), 5 deletions(-)

 diff --git a/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi 
 b/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
 index 29ff746..9c59d93 100644
 --- a/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
 +++ b/arch/arm/board/imx25/dts/3dstack/3dstack.dtsi
 @@ -27,9 +27,10 @@
  * unless specified by -m option. If you have
  * X MB then we will be able to access only first
  * X MB starting at physical_addr.
 + * Note: the 3Dstack board only has 64 MB DDR.
  */
 physical_addr = 0x8000;
 -   physical_size = 0x0800; /* 128 MB */
 +   physical_size = 0x0400; /* 64 MB */
 };

 soc {
 diff --git a/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts 
 b/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
 index e6ec7ea..7d5e2d6 100644
 --- a/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
 +++ b/arch/arm/board/imx25/dts/3dstack/one_guest_versatile.dts
 @@ -10,10 +10,7 @@

   /* Update guest0 memory regions */
   devtree attr set /guests/guest0/aspace/mem0 
 host_physical_addr physaddr 0x8200,
 - devtree attr set /guests/guest0/aspace/mem0 
 physical_size physsize 0x0600,
 -
 - /* Connect guest0/virtio-net0 netport to netbridge0 
 */
 - devtree attr set /guests/guest0/aspace/virtio-net0 
 switch string netbridge0,

This bit of the patch doesn't seem to have anything to do with
memory size ?

 + devtree attr set /guests/guest0/aspace/mem0 
 physical_size physsize 0x0200,

   /* Update guest0 flash region */
   devtree attr set /guests/guest0/aspace/nor_flash 
 host_physical_addr physaddr 0x8100,

thanks
-- PMM