Xen4.2 S3 regression?
Quoted 49 lines · Ben Guthro
Quoted 39 lines
I did some more bisecting here, and I came up with another changeset that seems to be problematic, Re: IRQs
After bisecting the problem discussed earlier in this thread to the changeset below,
http://xenbits.xen.org/hg/xen-unstable.hg/rev/0695a5cdcb42I worked past that issue by the following hack:
xen/common/event_channel.c +3
-1@@ -1103,7 +1103,7 @@ void evtchn_destroy_final(struct domain *d)void evtchn_move_pirqs (struct vcpu *v) {struct domain *d = v->domain; -const cpumask_t *mask =cpumask_of (v->processor); +//const cpumask_t *mask = cpumask_of(v->processor); unsigned int port;struct evtchn *chn;@@ -1111,7 +1111,9 @@ void evtchn_move_pirqs(struct vcpu *v)for ( port = v->pirq_evtchn_head; port; port = chn->u.pirq.next_port ) { chn =evtchn_from_port (d, port); +#if 0 pirq_set_affinity (d, chn->u.pirq.irq, mask); +#endif }spin_unlock (&d->event_lock); }This seemed to work for this rather old changeset, but it was not sufficient to fix it against the 4.1, or unstable trees.
I further bisected, in combination with this hack, and found the following changeset to also be problematic:
Quoted 6 lines
http://xenbits.xen.org/hg/xen-unstable.hg/rev/c2cb776a5365
That is, before this change I could resume reliably (with the hack above) - and after I could not.
This was surprising to me, as this change also looks rather innocuous.And by the looks of that changeset, the logic in
fixup_irqs()inirq.cwas changed.
Quoted 4 lines
Jan: The commit message says "simplify operations [in] a few cases". Was the change in
fixup_irqs()deliberate?~Andrew
Ben: Could you test the attached patch? It is for unstable and undoes the logical change to fixup_irqs()
~Andrew
Quoted 8 lines
Quoted 4 lines
Naturally, backing out this change seems to be non-trivial against the tip, since so much around it has changed.
-- Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
_______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
# HG changeset patch
# Parent b02ac80ff6899e98b4089842843104fd8572a7cd
xen/arch/x86/irq.c +1 -1
@@ -2151,7 +2151,7 @@ void fixup_irqs(void)spin_lock (&desc->lock);cpumask_copy (&affinity, desc->affinity); -if ( !desc->action ||cpumask_subset (&affinity, &cpu_online_map) ) +if ( !desc->action ||cpumask_equal (&affinity, &cpu_online_map) ) {spin_unlock (&desc->lock);continue ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
No such luck.
Panic below:
(XEN) Preparing system for ACPI S3 state. (XEN) Disabling non-boot CPUs ...
(XEN) ----[ Xen-4.2.0-rc3-pre x86_64 debug=y Tainted: C ]----
(XEN) CPU: 1
(XEN) RIP: e008:[<ffff82c48016773e>] irq_complete_move+0x42/0xb4
(XEN) RFLAGS: 0000000000010086 CONTEXT: hypervisor
(XEN) rax: 0000000000000000 rbx: ffff830148a81880 rcx: 0000000000000001 (XEN) rdx: ffff82c480301e48 rsi: 0000000000000028 rdi: ffff830148a81880 (XEN) rbp: ffff830148a77d80 rsp: ffff830148a77d50 r8: 0000000000000004 (XEN) r9: ffff82c3fffff000 r10: ffff82c4803027c0 r11: 0000000000000246 (XEN) r12: 0000000000000018 r13: ffff830148a818a4 r14: 0000000000000000 (XEN) r15: 0000000000000001 cr0: 000000008005003b cr4: 00000000001026b0 (XEN) cr3: 00000000aa2c5000 cr2: 000000000000007c (XEN) ds: 002b es: 002b fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) Xen stack trace from rsp=ffff830148a77d50: (XEN) 0000000000000086 ffff830148a809a4 0000000000000000 0000000000000001 (XEN) ffff830148a77d80 ffff830148ae2620 ffff830148a77da0 ffff82c480144013 (XEN) ffff830148a81880 0000000000000018 ffff830148a77e10 ffff82c4801696b6 (XEN) 0000000000000086 00000001030d8ac4 0000000000000001 0000000000000000 (XEN) 0000000000000000 0000000000000000 0000000000000202 0000000000000010 (XEN) ffff82c480302938 0000000000000001 0000000000000001 ffff82c480302938 (XEN) ffff830148a77e70 ffff82c48017e132 0000001048a77e70 ffff82c480302930 (XEN) ffff82c480302938 0000000000000001 000000010115fa86 0000000000000003 (XEN) ffff830148a77f18 0000000000000001 ffffffffffffffff ffff830148ac3080 (XEN) ffff830148a77e80 ffff82c4801013e3 ffff830148a77ea0 ffff82c480125fb6 (XEN) ffff830148ac30c0 ffff830148ac30f0 ffff830148a77ec0 ffff82c48012753e (XEN) ffff82c4801256aa ffff830148ac3110 ffff830148a77ef0 ffff82c4801278a9 (XEN) 00000000ffffffff ffff830148a77f18 ffff830148a77f18 00000008030d8ac4 (XEN) ffff830148a77f10 ffff82c48015888d ffff8300aa303000 ffff8300aa303000 (XEN) ffff830148a77e10 0000000000000000 0000000000000000 0000000000000000 (XEN) ffffffff81aafda0 ffff88003976df10 ffff88003976dfd8 0000000000000246 (XEN) 00000000deadbeef 0000000000000000 aaaaaaaaaaaaaaaa 0000000000000000 (XEN) ffffffff8100130a 00000000deadbeef 00000000deadbeef 00000000deadbeef (XEN) 0000010000000000 ffffffff8100130a 000000000000e033 0000000000000246 (XEN) ffff88003976def8 000000000000e02b d0354dcf5bcd9824 9ea5d0ef618deca5 (XEN) Xen call trace: (XEN) [<ffff82c48016773e>] irq_complete_move+0x42/0xb4 (XEN) [<ffff82c480144013>] dma_msi_mask+0x1d/0x49 (XEN) [<ffff82c4801696b6>] fixup_irqs+0x19b/0x2ff (XEN) [<ffff82c48017e132>] __cpu_disable+0x337/0x37e (XEN) [<ffff82c4801013e3>] take_cpu_down+0x43/0x4a (XEN) [<ffff82c480125fb6>] stopmachine_action+0x8a/0xb3 (XEN) [<ffff82c48012753e>] do_tasklet_work+0x8d/0xc7 (XEN) [<ffff82c4801278a9>] do_tasklet+0x6b/0x9b (XEN) [<ffff82c48015888d>] idle_loop+0x67/0x71 (XEN) (XEN) Pagetable walk from 000000000000007c: (XEN) L4[0x000] = 0000000148adf063 ffffffffffffffff (XEN) L3[0x000] = 0000000148ade063 ffffffffffffffff (XEN) L2[0x000] = 0000000148add063 ffffffffffffffff (XEN) L1[0x000] = 0000000000000000 ffffffffffffffff
(XEN)
(XEN) **************************************** (XEN) Panic on CPU 1:
(XEN) FATAL PAGE FAULT
(XEN) [error_code=0000]
(XEN) Faulting linear address: 000000000000007c (XEN) **************************************** (XEN)
(XEN) Reboot in five seconds...
Quoted 80 lines · Andrew Cooper
On 23/08/12 19:03, Ben Guthro wrote:
I did some more bisecting here, and I came up with another changeset that seems to be problematic, Re: IRQs
After bisecting the problem discussed earlier in this thread to the changeset below,
http://xenbits.xen.org/hg/xen-unstable.hg/rev/0695a5cdcb42I worked past that issue by the following hack:
xen/common/event_channel.c +3
-1@@ -1103,7 +1103,7 @@ void evtchn_destroy_final(struct domain *d)void evtchn_move_pirqs (struct vcpu *v) {struct domain *d = v->domain; -const cpumask_t *mask =cpumask_of (v->processor); +//const cpumask_t *mask = cpumask_of(v->processor); unsigned int port;struct evtchn *chn;@@ -1111,7 +1111,9 @@ void evtchn_move_pirqs(struct vcpu *v)for ( port = v->pirq_evtchn_head; port; port = chn->u.pirq.next_port ) { chn =evtchn_from_port (d, port); +#if 0 pirq_set_affinity (d, chn->u.pirq.irq, mask); +#endif }spin_unlock (&d->event_lock); }This seemed to work for this rather old changeset, but it was not sufficient to fix it against the 4.1, or unstable trees.
I further bisected, in combination with this hack, and found the following changeset to also be problematic:
http://xenbits.xen.org/hg/xen-unstable.hg/rev/c2cb776a5365
That is, before this change I could resume reliably (with the hack above) - and after I could not.
This was surprising to me, as this change also looks rather innocuous.And by the looks of that changeset, the logic in
fixup_irqs()inirq.cwas changed.Jan: The commit message says "simplify operations [in] a few cases". Was the change in
fixup_irqs()deliberate?~Andrew
Ben: Could you test the attached patch? It is for unstable and undoes the logical change to
fixup_irqs()~Andrew
Naturally, backing out this change seems to be non-trivial against the tip, since so much around it has changed.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
Interestingly enough, just updating to the parent of this changeset, without the hack mentioned previously seems to be enough to suspend/resume multiple times on this machine.
Quoted 148 lines · Ben Guthro
No such luck.
Panic below:
(XEN) Preparing system for ACPI S3 state. (XEN) Disabling non-boot CPUs ...
(XEN) ----[ Xen-4.2.0-rc3-prex86_64debug=y Tainted: C ]----
(XEN) CPU: 1
(XEN) RIP: e008:[<ffff82c48016773e>]irq_complete_move+0x42/0xb4
(XEN) RFLAGS: 0000000000010086 CONTEXT: hypervisor(XEN) rax: 0000000000000000 rbx: ffff830148a81880 rcx: 0000000000000001 (XEN) rdx: ffff82c480301e48 rsi: 0000000000000028 rdi: ffff830148a81880 (XEN) rbp: ffff830148a77d80 rsp: ffff830148a77d50 r8: 0000000000000004 (XEN) r9: ffff82c3fffff000 r10: ffff82c4803027c0 r11: 0000000000000246 (XEN) r12: 0000000000000018 r13: ffff830148a818a4 r14: 0000000000000000 (XEN) r15: 0000000000000001 cr0: 000000008005003b cr4: 00000000001026b0 (XEN) cr3: 00000000aa2c5000 cr2: 000000000000007c (XEN) ds: 002b es: 002b fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) Xen stack trace from rsp=ffff830148a77d50: (XEN) 0000000000000086 ffff830148a809a4 0000000000000000 0000000000000001 (XEN) ffff830148a77d80 ffff830148ae2620 ffff830148a77da0 ffff82c480144013 (XEN) ffff830148a81880 0000000000000018 ffff830148a77e10 ffff82c4801696b6 (XEN) 0000000000000086 00000001030d8ac4 0000000000000001 0000000000000000 (XEN) 0000000000000000 0000000000000000 0000000000000202 0000000000000010 (XEN) ffff82c480302938 0000000000000001 0000000000000001 ffff82c480302938 (XEN) ffff830148a77e70 ffff82c48017e132 0000001048a77e70 ffff82c480302930 (XEN) ffff82c480302938 0000000000000001 000000010115fa86 0000000000000003 (XEN) ffff830148a77f18 0000000000000001 ffffffffffffffff ffff830148ac3080 (XEN) ffff830148a77e80 ffff82c4801013e3 ffff830148a77ea0 ffff82c480125fb6 (XEN) ffff830148ac30c0 ffff830148ac30f0 ffff830148a77ec0 ffff82c48012753e (XEN) ffff82c4801256aa ffff830148ac3110 ffff830148a77ef0 ffff82c4801278a9 (XEN) 00000000ffffffff ffff830148a77f18 ffff830148a77f18 00000008030d8ac4 (XEN) ffff830148a77f10 ffff82c48015888d ffff8300aa303000 ffff8300aa303000 (XEN) ffff830148a77e10 0000000000000000 0000000000000000 0000000000000000 (XEN) ffffffff81aafda0 ffff88003976df10 ffff88003976dfd8 0000000000000246 (XEN) 00000000deadbeef 0000000000000000 aaaaaaaaaaaaaaaa 0000000000000000 (XEN) ffffffff8100130a 00000000deadbeef 00000000deadbeef 00000000deadbeef (XEN) 0000010000000000 ffffffff8100130a 000000000000e033 0000000000000246 (XEN) ffff88003976def8 000000000000e02b d0354dcf5bcd9824 9ea5d0ef618deca5 (XEN) Xen call trace: (XEN) [<ffff82c48016773e>] irq_complete_move+0x42/0xb4 (XEN) [<ffff82c480144013>] dma_msi_mask+0x1d/0x49 (XEN) [<ffff82c4801696b6>] fixup_irqs+0x19b/0x2ff (XEN) [<ffff82c48017e132>] __cpu_disable+0x337/0x37e (XEN) [<ffff82c4801013e3>] take_cpu_down+0x43/0x4a (XEN) [<ffff82c480125fb6>] stopmachine_action+0x8a/0xb3 (XEN) [<ffff82c48012753e>] do_tasklet_work+0x8d/0xc7 (XEN) [<ffff82c4801278a9>] do_tasklet+0x6b/0x9b (XEN) [<ffff82c48015888d>] idle_loop+0x67/0x71 (XEN) (XEN) Pagetable walk from 000000000000007c: (XEN) L4[0x000] = 0000000148adf063 ffffffffffffffff (XEN) L3[0x000] = 0000000148ade063 ffffffffffffffff (XEN) L2[0x000] = 0000000148add063 ffffffffffffffff (XEN) L1[0x000] = 0000000000000000 ffffffffffffffff(XEN)
(XEN) **************************************** (XEN) Panic on CPU 1:
(XEN) FATAL PAGE FAULT
(XEN) [error_code=0000]
(XEN) Faulting linear address:000000000000007c(XEN) **************************************** (XEN)
(XEN) Reboot in five seconds...Quoted 80 lines · Andrew Cooper
On 23/08/12 19:03, Ben Guthro wrote:
I did some more bisecting here, and I came up with another changeset that seems to be problematic, Re: IRQs
After bisecting the problem discussed earlier in this thread to the changeset below,
http://xenbits.xen.org/hg/xen-unstable.hg/rev/0695a5cdcb42I worked past that issue by the following hack:
xen/common/event_channel.c +3
-1@@ -1103,7 +1103,7 @@ void evtchn_destroy_final(struct domain *d)void evtchn_move_pirqs (struct vcpu *v) {struct domain *d = v->domain; -const cpumask_t *mask =cpumask_of (v->processor); +//const cpumask_t *mask = cpumask_of(v->processor); unsigned int port;struct evtchn *chn;@@ -1111,7 +1111,9 @@ void evtchn_move_pirqs(struct vcpu *v)for ( port = v->pirq_evtchn_head; port; port = chn->u.pirq.next_port ) { chn =evtchn_from_port (d, port); +#if 0 pirq_set_affinity (d, chn->u.pirq.irq, mask); +#endif }spin_unlock (&d->event_lock); }This seemed to work for this rather old changeset, but it was not sufficient to fix it against the 4.1, or unstable trees.
I further bisected, in combination with this hack, and found the following changeset to also be problematic:
http://xenbits.xen.org/hg/xen-unstable.hg/rev/c2cb776a5365
That is, before this change I could resume reliably (with the hack above) - and after I could not.
This was surprising to me, as this change also looks rather innocuous.And by the looks of that changeset, the logic in
fixup_irqs()inirq.cwas changed.Jan: The commit message says "simplify operations [in] a few cases". Was the change in
fixup_irqs()deliberate?~Andrew
Ben: Could you test the attached patch? It is for unstable and undoes the logical change to
fixup_irqs()~Andrew
Naturally, backing out this change seems to be non-trivial against the tip, since so much around it has changed.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
Quoted 1 line · Ben Guthro
No such luck.
Huh. It was a shot in the dark, but I was really not expecting this.
Quoted 54 lines
Panic below:
(XEN) Preparing system for ACPI S3 state. (XEN) Disabling non-boot CPUs ...
(XEN) ----[ Xen-4.2.0-rc3-prex86_64debug=y Tainted: C ]----
(XEN) CPU: 1
(XEN) RIP: e008:[<ffff82c48016773e>]irq_complete_move+0x42/0xb4
(XEN) RFLAGS: 0000000000010086 CONTEXT: hypervisor(XEN) rax: 0000000000000000 rbx: ffff830148a81880 rcx: 0000000000000001 (XEN) rdx: ffff82c480301e48 rsi: 0000000000000028 rdi: ffff830148a81880 (XEN) rbp: ffff830148a77d80 rsp: ffff830148a77d50 r8: 0000000000000004 (XEN) r9: ffff82c3fffff000 r10: ffff82c4803027c0 r11: 0000000000000246 (XEN) r12: 0000000000000018 r13: ffff830148a818a4 r14: 0000000000000000 (XEN) r15: 0000000000000001 cr0: 000000008005003b cr4: 00000000001026b0 (XEN) cr3: 00000000aa2c5000 cr2: 000000000000007c (XEN) ds: 002b es: 002b fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) Xen stack trace from rsp=ffff830148a77d50: (XEN) 0000000000000086 ffff830148a809a4 0000000000000000 0000000000000001 (XEN) ffff830148a77d80 ffff830148ae2620 ffff830148a77da0 ffff82c480144013 (XEN) ffff830148a81880 0000000000000018 ffff830148a77e10 ffff82c4801696b6 (XEN) 0000000000000086 00000001030d8ac4 0000000000000001 0000000000000000 (XEN) 0000000000000000 0000000000000000 0000000000000202 0000000000000010 (XEN) ffff82c480302938 0000000000000001 0000000000000001 ffff82c480302938 (XEN) ffff830148a77e70 ffff82c48017e132 0000001048a77e70 ffff82c480302930 (XEN) ffff82c480302938 0000000000000001 000000010115fa86 0000000000000003 (XEN) ffff830148a77f18 0000000000000001 ffffffffffffffff ffff830148ac3080 (XEN) ffff830148a77e80 ffff82c4801013e3 ffff830148a77ea0 ffff82c480125fb6 (XEN) ffff830148ac30c0 ffff830148ac30f0 ffff830148a77ec0 ffff82c48012753e (XEN) ffff82c4801256aa ffff830148ac3110 ffff830148a77ef0 ffff82c4801278a9 (XEN) 00000000ffffffff ffff830148a77f18 ffff830148a77f18 00000008030d8ac4 (XEN) ffff830148a77f10 ffff82c48015888d ffff8300aa303000 ffff8300aa303000 (XEN) ffff830148a77e10 0000000000000000 0000000000000000 0000000000000000 (XEN) ffffffff81aafda0 ffff88003976df10 ffff88003976dfd8 0000000000000246 (XEN) 00000000deadbeef 0000000000000000 aaaaaaaaaaaaaaaa 0000000000000000 (XEN) ffffffff8100130a 00000000deadbeef 00000000deadbeef 00000000deadbeef (XEN) 0000010000000000 ffffffff8100130a 000000000000e033 0000000000000246 (XEN) ffff88003976def8 000000000000e02b d0354dcf5bcd9824 9ea5d0ef618deca5 (XEN) Xen call trace: (XEN) [<ffff82c48016773e>] irq_complete_move+0x42/0xb4 (XEN) [<ffff82c480144013>] dma_msi_mask+0x1d/0x49 (XEN) [<ffff82c4801696b6>] fixup_irqs+0x19b/0x2ff (XEN) [<ffff82c48017e132>] __cpu_disable+0x337/0x37e (XEN) [<ffff82c4801013e3>] take_cpu_down+0x43/0x4a (XEN) [<ffff82c480125fb6>] stopmachine_action+0x8a/0xb3 (XEN) [<ffff82c48012753e>] do_tasklet_work+0x8d/0xc7 (XEN) [<ffff82c4801278a9>] do_tasklet+0x6b/0x9b (XEN) [<ffff82c48015888d>] idle_loop+0x67/0x71 (XEN) (XEN) Pagetable walk from 000000000000007c: (XEN) L4[0x000] = 0000000148adf063 ffffffffffffffff (XEN) L3[0x000] = 0000000148ade063 ffffffffffffffff (XEN) L2[0x000] = 0000000148add063 ffffffffffffffff (XEN) L1[0x000] = 0000000000000000 ffffffffffffffff
Quoted 9 lines
(XEN)
(XEN) **************************************** (XEN) Panic on CPU 1:
(XEN) FATAL PAGE FAULT
(XEN) [error_code=0000]
(XEN) Faulting linear address:000000000000007c(XEN) **************************************** (XEN)
(XEN) Reboot in five seconds...
Looks like some pointer has turned to NULL, although I cant identify exactly which.
Either way, I would not pay it too much heed.
~Andrew
Quoted 84 lines
Quoted 80 lines · Andrew Cooper
On 23/08/12 19:03, Ben Guthro wrote:
I did some more bisecting here, and I came up with another changeset that seems to be problematic, Re: IRQs
After bisecting the problem discussed earlier in this thread to the changeset below,
http://xenbits.xen.org/hg/xen-unstable.hg/rev/0695a5cdcb42I worked past that issue by the following hack:
xen/common/event_channel.c +3
-1@@ -1103,7 +1103,7 @@ void evtchn_destroy_final(struct domain *d)void evtchn_move_pirqs (struct vcpu *v) {struct domain *d = v->domain; -const cpumask_t *mask =cpumask_of (v->processor); +//const cpumask_t *mask = cpumask_of(v->processor); unsigned int port;struct evtchn *chn;@@ -1111,7 +1111,9 @@ void evtchn_move_pirqs(struct vcpu *v)for ( port = v->pirq_evtchn_head; port; port = chn->u.pirq.next_port ) { chn =evtchn_from_port (d, port); +#if 0 pirq_set_affinity (d, chn->u.pirq.irq, mask); +#endif }spin_unlock (&d->event_lock); }This seemed to work for this rather old changeset, but it was not sufficient to fix it against the 4.1, or unstable trees.
I further bisected, in combination with this hack, and found the following changeset to also be problematic:
http://xenbits.xen.org/hg/xen-unstable.hg/rev/c2cb776a5365
That is, before this change I could resume reliably (with the hack above) - and after I could not.
This was surprising to me, as this change also looks rather innocuous.And by the looks of that changeset, the logic in
fixup_irqs()inirq.cwas changed.Jan: The commit message says "simplify operations [in] a few cases". Was the change in
fixup_irqs()deliberate?~Andrew
Ben: Could you test the attached patch? It is for unstable and undoes the logical change to
fixup_irqs()~Andrew
Naturally, backing out this change seems to be non-trivial against the tip, since so much around it has changed.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
Quoted 5 lines · Andrew Cooper
Quoted 1 line · Ben Guthro
No such luck.
Huh. It was a shot in the dark, but I was really not expecting this.
Thanks for taking a look.
I tested the equivalent change against the offending changeset, and it did, in fact solve the S3 issue back then (but not against the 4.1.3 tag)
I guess I'll do some more bisecting, with this change in place.
Ben
The attached patch is essentially the change you suggested, plus a check for NULL in irq_complete_move()
This patch seems to fix some of the issues I was seeing, but not all. MSI's are now delivered, after a handful of suspend / resumes, which is the issue I was setting out to solve here.
However, once I get out of my debugging mode, and run without a serial console - things start to go bad.
I am unable to get the machine to resume from S3. The fan comes on, but I never see any graphics, or HDD activity. Of course, without a console, I have no clues to go on, as to what is wrong.
This is similar to the other S3 problem I have observed on laptops that never get out of the "pulsing power button" state.
I suspect they are related, but with the behavior changing so drastically while running with the serial connection enabled - it is rather difficult to narrow down where it might be...
Quoted 10 lines · Ben Guthro
Quoted 5 lines · Andrew Cooper
Quoted 1 line · Ben Guthro
No such luck.
Huh. It was a shot in the dark, but I was really not expecting this.
Thanks for taking a look.
Quoted 7 lines
I tested the equivalent change against the offending changeset, and it did, in fact solve the S3 issue back then (but not against the 4.1.3 tag)
I guess I'll do some more bisecting, with this change in place.
Ben
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Ben Guthro
The attached patch is essentially the change you suggested, plus a check for NULL in
irq_complete_move()This patch seems to fix some of the issues I was seeing, but not all. MSI's are now delivered, after a handful of suspend / resumes, which is the issue I was setting out to solve here.
But I'm afraid this is just masking some other problem (see my response to Andrew's mail that I just sent).
Further more, the NULL check here seems pretty odd - I'd be very curious what code path could get us there with the IRQ regs pointer being NULL. It would likely be that code path that needs fixing, not irq_complete_move(). Could you add a call to dump_execution_state() to the early return path that you added?
Jan
Quoted 35 lines
Quoted 1 line
Quoted 1 line · Ben Guthro
Quoted 8 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Ben Guthro
The attached patch is essentially the change you suggested, plus a check for NULL in
irq_complete_move()This patch seems to fix some of the issues I was seeing, but not all. MSI's are now delivered, after a handful of suspend / resumes, which is the issue I was setting out to solve here.
Quoted 8 lines
But I'm afraid this is just masking some other problem (see my response to Andrew's mail that I just sent).
Further more, the NULL check here seems pretty odd - I'd be very curious what code path could get us there with the IRQ regs pointer being NULL. It would likely be that code path that needs fixing, not
irq_complete_move(). Could you add a call todump_execution_state()to the early return path that you added?Apologies that I'm just getting back to this.
The call trace in this early return patch looks like this:
(XEN) Xen call trace:
(XEN) [<ffff82c480167d1a>] irq_complete_move+0x3e/0xd9 (XEN) [<ffff82c48014424a>] dma_msi_mask+0x1d/0x49 (XEN) [<ffff82c480169cc2>] fixup_irqs+0x19c/0x300 (XEN) [<ffff82c48017e762>] __cpu_disable+0x337/0x37e (XEN) [<ffff82c4801013e3>] take_cpu_down+0x43/0x4a (XEN) [<ffff82c480125fe6>] stopmachine_action+0x8a/0xb3 (XEN) [<ffff82c48012756e>] do_tasklet_work+0x8d/0xc7 (XEN) [<ffff82c4801278d9>] do_tasklet+0x6b/0x9b (XEN) [<ffff82c480158cbd>] idle_loop+0x67/0x71
Quoted 1 line
This seems to get printed 4 times - twice on CPU1, and CPU2
This one appears to be relatively clear, and I'll add a tentative fix to the next version of debugging patch that I'm in the process of preparing: irq_complete_move() is supposed to be getting called from the hw_irq_controllers' .ack methods, yet VT-d currently uses the same handler for .ack and .disable (and calling irq_complete_move() in the context of .disable is certainly wrong) - this appears to have been the case forever, but a flaw like this may of course get uncovered with completely unrelated changes.
Jan
(also restored the Cc list)