WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [PATCH] Fix domU device tree creation for JS20/1

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [PATCH] Fix domU device tree creation for JS20/1
From: Maria Butrico <butrico@xxxxxxxxxxxxxx>
Date: Mon, 21 Aug 2006 19:34:14 -0400
Delivery-date: Mon, 21 Aug 2006 16:39:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
Summary:  Fix device tree creation for domU for js20/1 under SLOF

The device tree of dom0 on js20 and js21 with SLOF does not have the cpus'
d and i cache sets nor does it have the l2 cache subdirectory.  

Signed-off-by:  Maria Butrico <butrico@xxxxxxxxxxxxxx>

diff -r 326e6736d92b tools/python/xen/xend/FlatDeviceTree.py
--- a/tools/python/xen/xend/FlatDeviceTree.py   Mon Aug 21 10:04:37 2006 -0400
+++ b/tools/python/xen/xend/FlatDeviceTree.py   Mon Aug 21 14:38:46 2006 -0400
@@ -245,24 +245,23 @@ def build(imghandler):
         cpu.addprop('reg', i)
         cpu.addprop('cpu#', i)
         cpu.addprop('device_type', 'cpu\0')
-        for prop in ('d-cache-size', 'd-cache-line-size', 'd-cache-sets',
-                     'i-cache-size', 'i-cache-line-size', 'i-cache-sets',
-                     'clock-frequency', 'timebase-frequency',
-                     'timebases-in-sync'):
+        for prop in ('d-cache-size', 'd-cache-line-size',
+                     'i-cache-size', 'i-cache-line-size',
+                     'clock-frequency', 'timebase-frequency'):
             val = _getprop(os.path.join('cpus/PowerPC,970@0', prop))
             cpu.addprop(prop, val)
             # XXX 64-bit, more
 
         # L2 cache
-        l2 = cpu.addnode('l2-cache')
-        l2.addprop('name', 'l2-cache\0')
-        l2.addprop('device_type', 'cache\0')
-        for prop in ('d-cache-size', 'd-cache-sets',
-                     'i-cache-size', 'i-cache-sets',
-                     'cache-unified'):
-            fullprop = os.path.join('cpus/PowerPC,970@%d/l2-cache' % i, prop)
-            val = _getprop(fullprop)
-            l2.addprop(prop, val)
+        #l2 = cpu.addnode('l2-cache')
+        #l2.addprop('name', 'l2-cache\0')
+        #l2.addprop('device_type', 'cache\0')
+        #for prop in ('d-cache-size', 'd-cache-sets',
+        #             'i-cache-size', 'i-cache-sets',
+        #             'cache-unified'):
+        #    fullprop = os.path.join('cpus/PowerPC,970@%d/l2-cache' % i, prop)
+        #    val = _getprop(fullprop)
+        #    l2.addprop(prop, val)
 
         # set default CPU
         if cpu0 == None:

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>