Skip to content

Commit

Permalink
linux-5.4.46: Build IPMI drivers as modules
Browse files Browse the repository at this point in the history
The IPMI drivers are not needed on all systems, and we try to avoid
that interface. This also resolves a conflict with other watchdog
timers.

    handsomejack:~$ dmesg --level=err
    [   11.618887] watchdog: iTCO_wdt: cannot register miscdev on minor=130 (err=-16).
    [   11.627956] watchdog: iTCO_wdt: a legacy watchdog module is probably present.
    handsomejack:~$ dmesg | grep -e iTCO -e watchdog
    [   11.603138] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
    [   11.609888] iTCO_wdt: Found a Wellsburg TCO device (Version=2, TCOBASE=0x0460)
    [   11.618887] watchdog: iTCO_wdt: cannot register miscdev on minor=130 (err=-16).
    [   11.627956] watchdog: iTCO_wdt: a legacy watchdog module is probably present.
    [   11.636462] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [   11.643679] iTCO_vendor_support: vendor-support=0

The Linux error when shutting down *sympathyforthedevil* – not in the logs,
only on the monitor or the serial console – is also gone now, as the drivers
are not automatically loaded.

    [  189.063113] reboot: Power down
    [  189.068549] IPMI poweroff: Powering down via IPMI chassis control command
    [  189.075498] ------------[ cut here ]------------
    [  189.080259] sched: Unexpected reschedule of offline CPU#8!
    [  189.085898] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/apic/ipi.c:67 native_smp_send_reschedule+0x34/0x40
    [  189.095605] Modules linked in: 8021q garp stp mrp llc amd64_edac_mod edac_mce_amd kvm_amd kvm input_leds led_class irqbypass ixgbe crc32c_intel acpi_cpufreq nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables x_tables unix ipv6 nf_defrag_ipv6 autofs4
    [  189.118332] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.4.39.mx64.334 #1
    [  189.125774] Hardware name: Supermicro Super Server/H11DSU-iN, BIOS 1.3 01/30/2020
    [  189.133482] RIP: 0010:native_smp_send_reschedule+0x34/0x40
    [  189.139114] Code: 05 31 9c 52 01 73 15 48 8b 05 a8 7f 2d 01 be fd 00 00 00 48 8b 40 30 e9 6a 8b db 00 89 fe 48 c7 c7 20 9e 21 82 e8 5c 1d 02 00 <0f> 0b c3 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 8b 05 74 7f
    [  189.158198] RSP: 0018:ffffc9001892fbc8 EFLAGS: 00010086
    [  189.163571] RAX: 0000000000000000 RBX: ffff889faa6f5200 RCX: ffffffff82454348
    [  189.170858] RDX: 0000000000000001 RSI: 0000000000000092 RDI: ffffffff82b2cbec
    [  189.178139] RBP: 0000000000028b00 R08: 0000000000000796 R09: 0000000000000000
    [  189.185420] R10: ffffc9001892fbb8 R11: 00000000000000f0 R12: 0000000000000008
    [  189.192706] R13: 0000000000000000 R14: ffff889faa6f589c R15: 0000000000000046
    [  189.199988] FS:  00007f7a26e6f800(0000) GS:ffff889faec00000(0000) knlGS:0000000000000000
    [  189.208299] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  189.214192] CR2: 00007f950950c8a0 CR3: 000000ff9f3b4000 CR4: 00000000003406f0
    [  189.221473] Call Trace:
    [  189.224068]  try_to_wake_up+0x3bd/0x5a0
    [  189.228045]  check_start_timer_thread.part.12+0x2a/0x50
    [  189.233418]  sender+0x65/0x70
    [  189.236527]  i_ipmi_request+0x2de/0x9d0
    [  189.240507]  ipmi_request_supply_msgs+0x102/0x130
    [  189.245358]  ipmi_request_in_rc_mode+0x2f/0x80
    [  189.249944]  ipmi_poweroff_chassis+0xa0/0x110
    [  189.254452]  __do_sys_reboot+0x150/0x1e0
    [  189.258517]  ? do_writev+0xd8/0x120
    [  189.262146]  ? do_writev+0xd8/0x120
    [  189.265779]  do_syscall_64+0x48/0x130
    [  189.269586]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
    [  189.274782] RIP: 0033:0x7f7a2662a2a3
    [  189.278501] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 89 fa be 69 19 12 28 bf ad de e1 fe b8 a9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 f3 c3 0f 1f 00 48 8b 15 b1 4b 2c 00 f7 d8
    [  189.297584] RSP: 002b:00007ffed7660078 EFLAGS: 00000206 ORIG_RAX: 00000000000000a9
    [  189.305376] RAX: ffffffffffffffda RBX: 000000004321fedc RCX: 00007f7a2662a2a3
    [  189.312663] RDX: 000000004321fedc RSI: 0000000028121969 RDI: 00000000fee1dead
    [  189.319944] RBP: 0000000000000000 R08: 0000000000000040 R09: 0000000000000005
    [  189.327224] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
    [  189.334512] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
    [  189.341794] ---[ end trace 4c38720b40d3b851 ]---
  • Loading branch information
pmenzel committed Jul 28, 2020
1 parent b052381 commit 8413eb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions linux-5.4.46-337.bee
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,11 @@ mee_configure() {
CONFIG_SERIAL_DEV_BUS=m
CONFIG_PRINTER=y
CONFIG_VIRTIO_CONSOLE=m
CONFIG_IPMI_HANDLER=y
CONFIG_IPMI_DEVICE_INTERFACE=y
CONFIG_IPMI_SI=y
CONFIG_IPMI_WATCHDOG=y
CONFIG_IPMI_POWEROFF=y
CONFIG_IPMI_HANDLER=m
CONFIG_IPMI_DEVICE_INTERFACE=m
CONFIG_IPMI_SI=m
CONFIG_IPMI_WATCHDOG=m
CONFIG_IPMI_POWEROFF=m
CONFIG_HPET=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_AMD756=m
Expand Down

0 comments on commit 8413eb2

Please sign in to comment.