Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1579333
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) |
| Date | 2017-02-13 01:40 +0100 |
| Message-ID | <tacQp-4I2-1@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <t9MVY-5nZ-13@gated-at.bofh.it> <t9NyF-5QT-1@gated-at.bofh.it> <ta8Wt-2nt-5@gated-at.bofh.it> <ta9IS-2Tv-27@gated-at.bofh.it> <taaOB-3wx-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Feb 12, 2017 at 11:21:13PM +0100, Gabriel C wrote:
> http://ftp.frugalware.org/pub/other/people/crazy/kernel/t/crash_initcall_debug.mp4
> http://ftp.frugalware.org/pub/other/people/crazy/kernel/t/crash_intcall_debug_ucode_off.mp4
Thanks and interesting. In both cases, mcheck_init_device() doesn't
return or we don't see the "initcall returned" message.
Ok, let's try a silly sprinkling of printks in that function and try to
pinpoint how far we manage to come.
Apply, build, boot and shoot video again :-)
Thanks.
---
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 8e9725c607ea..70268867cb33 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -2565,37 +2565,57 @@ static __init int mcheck_init_device(void)
enum cpuhp_state hp_online;
int err;
+ pr_err("%s: entry\n", __func__);
+
if (!mce_available(&boot_cpu_data)) {
err = -EIO;
goto err_out;
}
+ pr_err("%s: mce_available\n", __func__);
+
if (!zalloc_cpumask_var(&mce_device_initialized, GFP_KERNEL)) {
err = -ENOMEM;
goto err_out;
}
+ pr_err("%s: zalloc_cpumask_var\n", __func__);
+
mce_init_banks();
+ pr_err("%s: mce_init_banks\n", __func__);
+
err = subsys_system_register(&mce_subsys, NULL);
if (err)
goto err_out_mem;
+ pr_err("%s: subsys_system_register\n", __func__);
+
err = cpuhp_setup_state(CPUHP_X86_MCE_DEAD, "x86/mce:dead", NULL,
mce_cpu_dead);
if (err)
goto err_out_mem;
+ pr_err("%s: x86/mce:dead\n", __func__);
+
err = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "x86/mce:online",
mce_cpu_online, mce_cpu_pre_down);
if (err < 0)
goto err_out_online;
+
+ pr_err("%s: x86/mce:online\n", __func__);
+
hp_online = err;
register_syscore_ops(&mce_syscore_ops);
+ pr_err("%s: register_syscore_ops\n", __func__);
+
/* register character device /dev/mcelog */
err = misc_register(&mce_chrdev_device);
+
+ pr_err("%s: misc_register, err: 0x%x\n", __func__, err);
+
if (err)
goto err_register;
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-06 18:40 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Greg KH <gregkh@linuxfoundation.org> - 2017-02-06 18:50 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) "Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco)" <rruslich@cisco.com> - 2017-02-06 20:10 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-06 21:40 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Linus Torvalds <torvalds@linux-foundation.org> - 2017-02-07 00:10 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Thomas Gleixner <tglx@linutronix.de> - 2017-02-07 22:10 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Thomas Gleixner <tglx@linutronix.de> - 2017-02-07 22:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-11 00:20 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-11 02:50 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Thomas Gleixner <tglx@linutronix.de> - 2017-02-11 10:10 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-11 14:10 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Borislav Petkov <bp@alien8.de> - 2017-02-11 15:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-11 22:00 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Borislav Petkov <bp@alien8.de> - 2017-02-11 22:40 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-12 21:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Borislav Petkov <bp@alien8.de> - 2017-02-12 22:20 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-12 23:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Borislav Petkov <bp@alien8.de> - 2017-02-13 01:40 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Gabriel C <nix.or.die@gmail.com> - 2017-02-13 02:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Mike Galbraith <efault@gmx.de> - 2017-02-13 03:40 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Thomas Gleixner <tglx@linutronix.de> - 2017-02-13 09:50 +0100
[tip:timers/urgent] tick/broadcast: Prevent deadlock on tick_broadcast_lock tip-bot for Mike Galbraith <tipbot@zytor.com> - 2017-02-13 10:00 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Borislav Petkov <bp@alien8.de> - 2017-02-13 11:30 +0100
Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box ) Thomas Gleixner <tglx@linutronix.de> - 2017-02-07 23:10 +0100
csiph-web