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-ia64-devel

RE: [Xen-ia64-devel] xen on hp rx2600

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] xen on hp rx2600
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Thu, 10 Nov 2005 14:07:31 -0700
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 10 Nov 2005 21:05:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <571ACEFD467F7749BC50E0A98C17CDD802C06988@pdsmsx403>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: LOSL
References: <571ACEFD467F7749BC50E0A98C17CDD802C06988@pdsmsx403>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2005-11-10 at 14:24 +0800, Tian, Kevin wrote:

> touch_acpi_table is called by dom_fw_init which is always called when
> construct dom0 unrelated to SMP.

   Here's the problem, we're only "touching" the first lsapic entry
because we're passing in NR_CPUS for max_entries.  Therefore we stop
parsing MADT entries after the first.  We really need to cycle through
all of them regardless of NR_CPUS.  Patch below.  Thanks,

        Alex

-- 
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>

diff -r be53bbe62f2e xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Wed Nov  9 21:31:01 2005
+++ b/xen/arch/ia64/xen/dom_fw.c        Thu Nov 10 14:02:31 2005
@@ -466,11 +466,8 @@
 /* base is physical address of acpi table */
 void touch_acpi_table(void)
 {
-       u64 count = 0;
-       count = acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_update_lsapic, 
NR_CPUS);
-       if ( count < 1)
+       if (acpi_table_parse_madt(ACPI_MADT_LSAPIC, acpi_update_lsapic, 0) < 0)
                printk("Error parsing MADT - no LAPIC entires\n");
-       printk("Total %d lsapic entry\n", count);
        acpi_table_parse(ACPI_APIC, acpi_update_madt_checksum);
 
        return;



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

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