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

[Xen-ia64-devel] [PATCH][MCA] Fix for queueing the MCA error logs

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH][MCA] Fix for queueing the MCA error logs
From: SUZUKI Kazuhiro <kaz@xxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2006 17:45:39 +0900 (JST)
Delivery-date: Mon, 20 Nov 2006 00:45:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

   This patch fixes bugs of queueing the MCA error logs. It is
necessary to queue the error log, when the MCA polling handler is
called. And it is also needed to queue when cpe interrupt handler is
called.

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>

Thanks,
KAZ

diff -r ac5330d4945a xen/arch/ia64/linux-xen/mca.c
--- a/xen/arch/ia64/linux-xen/mca.c     Wed Nov 15 12:15:34 2006 -0700
+++ b/xen/arch/ia64/linux-xen/mca.c     Thu Nov 20 11:04:33 2006 +0900
@@ -496,9 +496,9 @@ ia64_mca_cpe_int_handler (int cpe_irq, v
        /* Get the CPE error record and log it */
        ia64_mca_log_sal_error_record(SAL_INFO_TYPE_CPE);
 #else
+       ia64_log_queue(SAL_INFO_TYPE_CPE, VIRQ_MCA_CPE);
        /* CPE error does not inform to dom0 but the following codes are 
           reserved for future implementation */
-/*     ia64_log_queue(SAL_INFO_TYPE_CPE, VIRQ_MCA_CPE); */
 /*     send_guest_vcpu_virq(dom0->vcpu[0], VIRQ_MCA_CPE); */
 #endif
 
@@ -1325,6 +1325,10 @@ ia64_mca_cmc_int_caller(int cmc_irq, voi
 
 #ifndef XEN
        ia64_mca_cmc_int_handler(cmc_irq, arg, ptregs);
+#else
+       IA64_MCA_DEBUG("%s: received polling vector = %#x on CPU %d\n",
+                      __FUNCTION__, cmc_irq, smp_processor_id());
+       ia64_log_queue(SAL_INFO_TYPE_CMC, VIRQ_MCA_CMC);
 #endif
 
        for (++cpuid ; cpuid < NR_CPUS && !cpu_online(cpuid) ; cpuid++);
@@ -1409,6 +1413,10 @@ ia64_mca_cpe_int_caller(int cpe_irq, voi
 
 #ifndef XEN
        ia64_mca_cpe_int_handler(cpe_irq, arg, ptregs);
+#else
+       IA64_MCA_DEBUG("%s: received polling vector = %#x on CPU %d\n",
+                      __FUNCTION__, cpe_irq, smp_processor_id());
+       ia64_log_queue(SAL_INFO_TYPE_CPE, VIRQ_MCA_CPE);
 #endif
 
        for (++cpuid ; cpuid < NR_CPUS && !cpu_online(cpuid) ; cpuid++);
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>