Fix serial console freeze issue
PATCH 1/1 Fix serial console freeze issue
Hi,
20110:6e83b0ec2d70 is incomplete. irq_to_vector() is still required, otherwise the serial console freezes without sync_console.
I confirmed that dom0 booted up without sync_console.
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1251706346 -32400
# Node ID 014b085c7e0945ceb0adb4ad7a41412b23ef1d62 # Parent e8004f6c254a5778b50babd527e74208981640b9 [IA64] Fix serial console freeze issue
20110:6e83b0ec2d70 is incomplete. irq_to_vector() is still required, otherwise the serial console freezes without sync_console.
xen/include/xen/irq.h +6 -3
@@ -82,14 +82,17 @@extern irq_desc_t irq_desc[NR_VECTORS ];#define setup_irq (irq, action) \ - setup_irq_vector(irq, action) + setup_irq_vector(irq_to_vector(irq), action)#define release_irq (irq) \ - release_irq_vector(irq) + release_irq_vector(irq_to_vector(irq))#define request_irq (irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq, handler, irqflags, devname, devid) + request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, devid) +static inline unsigned int irq_to_vector (int ); +extern int setup_irq_vector (unsigned int ,struct irqaction *); +extern void release_irq_vector (unsigned int );extern int request_irq_vector (unsigned int vector,void (*handler)(int ,void *,struct cpu_user_regs *),unsigned long irqflags,const char * devname,void *dev_id);
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel
Kuwamura,
Maybe the fix is not enough and it may break VT-d side after you changing it back. In addition, mach_apic.h is also needed to create. I attached the whole patch, please check! :-)
Xiantao
# HG changeset patch
# User [email protected]
# Date 1251737187 14400
# Node ID dd71c509f3ff13326ddbb8fa39f638022aa814ff # Parent e8004f6c254a5778b50babd527e74208981640b9 [IA64] Fix serial console freeze issue
20110:6e83b0ec2d70 is incomplete. irq_to_vector() is still required, otherwise the serial console freezes without sync_console.
xen/drivers/passthrough/vtd/iommu.c +4 -0
@@ -892,7 +892,11 @@ static int iommu_set_interrupt(struct io irq_desc[irq].handler = &dma_msi_type; irq_to_iommu[irq] = iommu; +#ifdef CONFIG_X86 ret =request_irq (irq, iommu_page_fault,0 ,"dmar" , iommu); +#else + ret =request_irq_vector (irq, iommu_page_fault,0 ,"dmar" , iommu); +#endif if ( ret ) { irq_desc[irq].handler = &no_irq_type;
xen/include/asm-ia64/mach_apic.h new file +1 -0
@@ -0,0 +1,1 @@ +/* Leave it as blank for compilation. */
xen/include/xen/irq.h +6 -3
@@ -82,14 +82,17 @@ extern irq_desc_t irq_desc[NR_VECTORS];extern irq_desc_t irq_desc[NR_VECTORS ];#define setup_irq (irq, action) \ - setup_irq_vector(irq, action) + setup_irq_vector(irq_to_vector(irq), action)#define release_irq (irq) \ - release_irq_vector(irq) + release_irq_vector(irq_to_vector(irq))#define request_irq (irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq, handler, irqflags, devname, devid) + request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, devid) +static inline unsigned int irq_to_vector (int ); +extern int setup_irq_vector (unsigned int ,struct irqaction *); +extern void release_irq_vector (unsigned int );extern int request_irq_vector (unsigned int vector,void (*handler)(int ,void *,struct cpu_user_regs *),unsigned long irqflags,const char * devname,void *dev_id);
Quoted 8 lines · KUWAMURA Shin'ya
Hi,
20110:6e83b0ec2d70 is incomplete.
irq_to_vector()is still required, otherwise the serial console freezes withoutsync_console.I confirmed that dom0 booted up without
sync_console.Signed-off-by KUWAMURA Shin'ya <[email protected]>
# HG changeset patch
# User [email protected]
# Date 1251737187 14400
# Node ID dd71c509f3ff13326ddbb8fa39f638022aa814ff # Parent e8004f6c254a5778b50babd527e74208981640b9 [IA64] Fix serial console freeze issue
20110:6e83b0ec2d70 is incomplete. irq_to_vector() is still required, otherwise the serial console freezes without sync_console.
xen/drivers/passthrough/vtd/iommu.c +4 -0
@@ -892,7 +892,11 @@ static int iommu_set_interrupt(struct io irq_desc[irq].handler = &dma_msi_type; irq_to_iommu[irq] = iommu; +#ifdef CONFIG_X86 ret =request_irq (irq, iommu_page_fault,0 ,"dmar" , iommu); +#else + ret =request_irq_vector (irq, iommu_page_fault,0 ,"dmar" , iommu); +#endif if ( ret ) { irq_desc[irq].handler = &no_irq_type;
xen/include/asm-ia64/mach_apic.h new file +1 -0
@@ -0,0 +1,1 @@ +/* Leave it as blank for compilation. */
xen/include/xen/irq.h +6 -3
@@ -82,14 +82,17 @@ extern irq_desc_t irq_desc[NR_VECTORS];extern irq_desc_t irq_desc[NR_VECTORS ];#define setup_irq (irq, action) \ - setup_irq_vector(irq, action) + setup_irq_vector(irq_to_vector(irq), action)#define release_irq (irq) \ - release_irq_vector(irq) + release_irq_vector(irq_to_vector(irq))#define request_irq (irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq, handler, irqflags, devname, devid) + request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, devid) +static inline unsigned int irq_to_vector (int ); +extern int setup_irq_vector (unsigned int ,struct irqaction *); +extern void release_irq_vector (unsigned int );extern int request_irq_vector (unsigned int vector,void (*handler)(int ,void *,struct cpu_user_regs *),unsigned long irqflags,const char * devname,void *dev_id);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I already applied Kuwamura's original patch as xen-unstable:20139. Let me know if you both agree that a delta is needed on top of that.
Thanks,
Keir
Quoted 75 lines · Xiantao
Kuwamura,
Maybe the fix is not enough and it may break VT-d side after you changing
it back. In addition,mach_apic.his also needed to create. I attached the whole patch, please check! :-)
Xiantao# HG changeset patch
# User [email protected]
# Date 1251737187 14400
# Node IDdd71c509f3ff13326ddbb8fa39f638022aa814ff# Parente8004f6c254a5778b50babd527e74208981640b9[IA64] Fix serial console freeze issue20110:6e83b0ec2d70 is incomplete.
irq_to_vector()is still required, otherwise the serial console freezes withoutsync_console.Signed-off-by KUWAMURA Shin'ya <[email protected]>Signed-off-by Xiantao Zhang <[email protected]>diff -r
e8004f6c254a-rdd71c509f3ffxen/drivers/passthrough/vtd/iommu.cxen/drivers/passthrough/vtd/iommu.c Mon Aug 31 12:46:27 2009 -0400 renamed from xen/drivers/passthrough/vtd/iommu.c Thu Aug 27 11:25:34 2009 +0100 +4
-0@@ -892,7 +892,11 @@ static int iommu_set_interrupt(struct io irq_desc[irq].handler = &dma_msi_type; irq_to_iommu[irq] = iommu; +#ifdef CONFIG_X86 ret = request_irq(irq, iommu_page_fault, 0, "dmar", iommu); +#else + ret = request_irq_vector(irq, iommu_page_fault, 0, "dmar", iommu); +#endif if ( ret ) { irq_desc[irq].handler = &no_irq_type;diff -r
e8004f6c254a-rdd71c509f3ffxen/include/asm-ia64/mach_apic.hxen/include/asm-ia64/mach_apic.h Mon Aug 31 12:46:27 2009 -0400 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +1
-0@@ -0,0 +1,1 @@ +/* Leave it as blank for compilation. */diff -r
e8004f6c254a-rdd71c509f3ffxen/include/xen/irq.hxen/include/xen/irq.h Mon Aug 31 12:46:27 2009 -0400 renamed from xen/include/xen/irq.h Thu Aug 27 11:25:34 2009 +0100 +6
-3@@ -82,14 +82,17 @@ extern irq_desc_t irq_desc[NR_VECTORS]; extern irq_desc_t irq_desc[NR_VECTORS]; #define setup_irq(irq, action) \ - setup_irq_vector(irq, action) + setup_irq_vector(irq_to_vector(irq), action) #define release_irq(irq) \ - release_irq_vector(irq) + release_irq_vector(irq_to_vector(irq)) #define request_irq(irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq, handler, irqflags, devname, devid) + request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, devid) +static inline unsigned int irq_to_vector(int); +extern int setup_irq_vector(unsigned int, struct irqaction *); +extern void release_irq_vector(unsigned int); extern int request_irq_vector(unsigned int vector, void (*handler)(int, void *, struct cpu_user_regs *), unsigned long irqflags, const char * devname, void *dev_id);Quoted 8 lines · KUWAMURA Shin'ya
Hi,
20110:6e83b0ec2d70 is incomplete.
irq_to_vector()is still required, otherwise the serial console freezes withoutsync_console.I confirmed that dom0 booted up without
sync_console.Signed-off-by KUWAMURA Shin'ya <[email protected]>
Kuwamura,
I think it is necessary to apply the delta patch, what's your opinion ?
Xiantoa
-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, August 31, 2009 6:01 PM
To: Zhang, Xiantao; KUWAMURA Shin'ya; [email protected]; [email protected]
Subject: Re: [Xen-devel] RE: [Xen-ia64-devel] [PATCH] [IA64] Fix serial console freeze issue
I already applied Kuwamura's original patch as xen-unstable:20139. Let me know if you both agree that a delta is needed on top of that.
Thanks,
Keir
Quoted 75 lines · Xiantao
Kuwamura,
Maybe the fix is not enough and it may break VT-d side after you changing
it back. In addition,mach_apic.his also needed to create. I attached the whole patch, please check! :-)
Xiantao# HG changeset patch
# User [email protected]
# Date 1251737187 14400
# Node IDdd71c509f3ff13326ddbb8fa39f638022aa814ff# Parente8004f6c254a5778b50babd527e74208981640b9[IA64] Fix serial console freeze issue20110:6e83b0ec2d70 is incomplete.
irq_to_vector()is still required, otherwise the serial console freezes withoutsync_console.Signed-off-by KUWAMURA Shin'ya <[email protected]>Signed-off-by Xiantao Zhang <[email protected]>diff -r
e8004f6c254a-rdd71c509f3ffxen/drivers/passthrough/vtd/iommu.cxen/drivers/passthrough/vtd/iommu.c Mon Aug 31 12:46:27 2009 -0400 renamed from xen/drivers/passthrough/vtd/iommu.c Thu Aug 27 11:25:34 2009 +0100 +4
-0@@ -892,7 +892,11 @@ static int iommu_set_interrupt(struct io irq_desc[irq].handler = &dma_msi_type; irq_to_iommu[irq] = iommu; +#ifdef CONFIG_X86 ret = request_irq(irq, iommu_page_fault, 0, "dmar", iommu); +#else + ret = request_irq_vector(irq, iommu_page_fault, 0, "dmar", iommu); +#endif if ( ret ) { irq_desc[irq].handler = &no_irq_type;diff -r
e8004f6c254a-rdd71c509f3ffxen/include/asm-ia64/mach_apic.hxen/include/asm-ia64/mach_apic.h Mon Aug 31 12:46:27 2009 -0400 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +1
-0@@ -0,0 +1,1 @@ +/* Leave it as blank for compilation. */diff -r
e8004f6c254a-rdd71c509f3ffxen/include/xen/irq.hxen/include/xen/irq.h Mon Aug 31 12:46:27 2009 -0400 renamed from xen/include/xen/irq.h Thu Aug 27 11:25:34 2009 +0100 +6
-3@@ -82,14 +82,17 @@ extern irq_desc_t irq_desc[NR_VECTORS]; extern irq_desc_t irq_desc[NR_VECTORS]; #define setup_irq(irq, action) \ - setup_irq_vector(irq, action) + setup_irq_vector(irq_to_vector(irq), action) #define release_irq(irq) \ - release_irq_vector(irq) + release_irq_vector(irq_to_vector(irq)) #define request_irq(irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq, handler, irqflags, devname, devid) + request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, devid) +static inline unsigned int irq_to_vector(int); +extern int setup_irq_vector(unsigned int, struct irqaction *); +extern void release_irq_vector(unsigned int); extern int request_irq_vector(unsigned int vector, void (*handler)(int, void *, struct cpu_user_regs *), unsigned long irqflags, const char * devname, void *dev_id);Quoted 8 lines · KUWAMURA Shin'ya
Hi,
20110:6e83b0ec2d70 is incomplete.
irq_to_vector()is still required, otherwise the serial console freezes withoutsync_console.I confirmed that dom0 booted up without
sync_console.Signed-off-by KUWAMURA Shin'ya <[email protected]>
A message that is not in the archive (sent off-list or not yet received): 706158FABBBA044BAD4FE898A02E4BC201C43515DB@pdsmsx503.ccr.corp.intel.com
Hi,
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Mon, 31 Aug 2009 22:39:10 +0800
[email protected]("Zhang, Xiantao") said:Kuwamura,
I think it is necessary to apply the delta patch, what's your opinion ?
I also agree to apply the delta. It is also needed for ia64.
Best regards,
Signature · 1 line
KUWAMURA Shin'ya