Re: PROBLEM: "kernel BUG" and not booting on ALIX with CONFIG_NET5501=y

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cc: Dan (Dan, it seems in the file mentioned in the bug the only
change between affected and non-affected verions is yours)

Thanks for the report!

On Sat, Dec 8, 2018 at 6:41 PM Gert Robben <t2@xxxxxxx> wrote:
>
> I have an ALIX 2C2 board.
> With CONFIG_NET5501=y, I get a kernel bug, after which the system
> doesn't start.
> When I unset it, no kernel bug, and it starts fine.
> It doesn't matter whether CONFIG_ALIX is set or not.
> Of course I don't need CONFIG_NET5501, but it is set in (at least)
> Debian kernels, and I think it shouldn't influence other systems.
>
> Linux 4.20-rc5 and 4.19.7 have this problem, 4.18.17 works fine.

It would be nice if you can do bisect

I googled for some simple beginner's howto and found this
https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination
it shows also some primitive commands how to work with git.

> See below for info. Do you need anything else?
> I barely know C or Git, but I'm happy to test patches or other versions.
> I am not subscribed to the list.
>
> Thank you,
> Gert
>
> [    2.101182] ------------[ cut here ]------------
> [    2.104671] kernel BUG at arch/x86/mm/pat.c:549!
> [    2.110503] invalid opcode: 0000 [#1] SMP
> [    2.114453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.20.0-rc5 #1
> [    2.114453] EIP: reserve_memtype+0x3b/0x470
> [    2.114453] Code: 8b 7d 14 89 45 dc c7 45 e0 00 00 00 00 c7 45 e8 00
> 00 00 00 89 7d d8 89 4d e4 65 8b 3d 14 00 00 00 89 7d f0 31 ff 39 c8 72
> 05 <0f> 0b 8d 76 00 80 3d 81 3e a1 c6 00 89 c3 75 35 8b 4d d8 85 c9
> [    2.114453] EAX: ffff0000 EBX: 00000001 ECX: 00000000 EDX: 00000000
> [    2.114453] ESI: 00010000 EDI: 00000000 EBP: cf0cdeb8 ESP: cf0cde80
> [    2.114453] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010286
> [    2.114453] CR0: 80050033 CR2: b7f91c64 CR3: 06b0a000 CR4: 00000090
> [    2.114453] Call Trace:
> [    2.114453]  ? device_add+0x13d/0x650
> [    2.114453]  ? walk_mem_res+0x1f/0x30
> [    2.114453]  __ioremap_caller.constprop.16+0xe3/0x2e0
> [    2.114453]  ? net5501_init+0x36/0xd2
> [    2.114453]  ? alix_init+0x105/0x105
> [    2.114453]  ioremap_nocache+0x15/0x20
> [    2.114453]  ? net5501_init+0x36/0xd2
> [    2.114453]  net5501_init+0x36/0xd2
> [    2.114453]  ? alix_init+0x105/0x105
> [    2.114453]  do_one_initcall+0x42/0x19e
> [    2.114453]  ? set_debug_rodata+0x14/0x14
> [    2.114453]  kernel_init_freeable+0x14f/0x1d4
> [    2.114453]  ? rest_init+0xa0/0xa0
> [    2.114453]  kernel_init+0xd/0xf0
> [    2.114453]  ret_from_fork+0x2e/0x38
> [    2.114453] Modules linked in:
> [    2.231896] ---[ end trace 9489b56624db3c17 ]---
> [    2.236560] EIP: reserve_memtype+0x3b/0x470
> [    2.240782] Code: 8b 7d 14 89 45 dc c7 45 e0 00 00 00 00 c7 45 e8 00
> 00 00 00 89 7d d8 89 4d e4 65 8b 3d 14 00 00 00 89 7d f0 31 ff 39 c8 72
> 05 <0f> 0b 8d 76 00 80 3d 81 3e a1 c6 00 89 c3 75 35 8b 4d d8 85 c9
> [    2.259565] EAX: ffff0000 EBX: 00000001 ECX: 00000000 EDX: 00000000
> [    2.265865] ESI: 00010000 EDI: 00000000 EBP: cf0cdeb8 ESP: c6b0e39c
> [    2.272169] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010286
> [    2.278994] CR0: 80050033 CR2: b7f91c64 CR3: 06b0a000 CR4: 00000090
> [    2.285355] Kernel panic - not syncing: Attempted to kill init!
> exitcode=0x0000000b
> [    2.289273] Kernel Offset: 0x5000000 from 0xc1000000 (relocation
> range: 0xc0000000-0xd07fffff)
> [    2.289273] ---[ end Kernel panic - not syncing: Attempted to kill
> init! exitcode=0x0000000b ]---
>
> /proc/version:
> Linux version 4.20.0-rc5 (gert@d.localdomain) (gcc version 6.3.0
> 20170516 (Debian 6.3.0-18+deb9u1)) #4 SMP Sat Dec 8 15:23:23 CET 2018
>
> /proc/cpuinfo:
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 5
> model           : 10
> model name      : Geode(TM) Integrated Processor by AMD PCS
> stepping        : 2
> cpu MHz         : 498.022
> cache size      : 128 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> apicid          : 0
> initial apicid  : 0
> fdiv_bug        : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext
> 3dnow cpuid 3dnowprefetch vmmcall
> bugs            : sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
> bogomips        : 996.04
> clflush size    : 32
> cache_alignment : 32
> address sizes   : 32 bits physical, 32 bits virtual
> power management:
>
> /proc/ioports:
> 0000-001f : dma1
> 0020-0021 : pic1
> 0040-0043 : timer0
> 0050-0053 : timer1
> 0060-0060 : keyboard
> 0064-0064 : keyboard
> 0070-0071 : rtc_cmos
>    0070-0071 : rtc0
> 0080-008f : dma page reg
> 00a0-00a1 : pic2
> 00c0-00df : dma2
> 00f0-00ff : fpu
> 0170-0177 : 0000:00:0f.2
>    0170-0177 : pata_amd
> 01f0-01f7 : 0000:00:0f.2
>    01f0-01f7 : pata_amd
> 02f8-02ff : serial
> 0376-0376 : 0000:00:0f.2
>    0376-0376 : pata_amd
> 03c0-03df : vga+
> 03f6-03f6 : 0000:00:0f.2
>    03f6-03f6 : pata_amd
> 03f8-03ff : serial
> 0cf8-0cff : PCI conf1
> 1000-10ff : 0000:00:09.0
>    1000-10ff : via-rhine
> 1400-14ff : 0000:00:0b.0
>    1400-14ff : via-rhine
> 6000-6007 : cs5535-smb
>    6000-6007 : 0000:00:0f.0
> 6100-61ff : cs5535-gpio
>    6100-61ff : 0000:00:0f.0
>      6100-61ff : cs5535-gpio
> 6200-623f : cs5535-mfgpt
>    6200-623f : 0000:00:0f.0
> 9c00-9c3f : cs5535-acpi
>    9c00-9c3f : 0000:00:0f.0
> 9d00-9d7f : cs5535-pms
>    9d00-9d7f : 0000:00:0f.0
> ff00-ff0f : 0000:00:0f.2
>    ff00-ff0f : pata_amd
>
> /proc/iomem:
> 00000000-00000fff : Reserved
> 00001000-0009ffff : System RAM
> 000a0000-000bffff : Video RAM area
> 000e0000-000effff : Extension ROM
> 000f0000-000fffff : Reserved
>    000f0000-000fffff : System ROM
> 00100000-0fffffff : System RAM
>    06000000-0672d373 : Kernel code
>    0672d374-06a183bf : Kernel data
>    06b08000-06b78fff : Kernel bss
> e0000000-e00000ff : 0000:00:09.0
>    e0000000-e00000ff : via-rhine
> e0040000-e00400ff : 0000:00:0b.0
>    e0040000-e00400ff : via-rhine
> efff4000-efff7fff : 0000:00:01.2
>    efff4000-efff7fff : geode-aes
> efffd000-efffdfff : 0000:00:0f.5
>    efffd000-efffdfff : ehci_hcd
> efffe000-efffefff : 0000:00:0f.4
>    efffe000-efffefff : ohci_hcd
> fff00000-ffffffff : Reserved
>
> lspci -vvv:
> lspci: Unable to load libkmod resources: error -12
> 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode
> companion] Host Bridge (rev 31)
>         Subsystem: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion]
> Host Bridge
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 248, Cache Line Size: 32 bytes
>         Region 0: I/O ports at 0000
>
> 00:01.2 Entertainment encryption device: Advanced Micro Devices, Inc.
> [AMD] Geode LX AES Security Block
>         Subsystem: Advanced Micro Devices, Inc. [AMD] Geode LX AES Security Block
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 0, Cache Line Size: 32 bytes
>         Interrupt: pin A routed to IRQ 9
>         Region 0: Memory at efff4000 (32-bit, non-prefetchable) [size=16K]
>         Kernel driver in use: Geode LX AES
>
> 00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III]
> (rev 96)
>         Subsystem: VIA Technologies, Inc. VT6105M [Rhine-III]
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
> Stepping+ SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 32 (750ns min, 2000ns max), Cache Line Size: 32 bytes
>         Interrupt: pin A routed to IRQ 10
>         Region 0: I/O ports at 1000 [size=256]
>         Region 1: Memory at e0000000 (32-bit, non-prefetchable) [size=256]
>         Capabilities: [40] Power Management version 2
>                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Kernel driver in use: via-rhine
>
> 00:0b.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III]
> (rev 96)
>         Subsystem: VIA Technologies, Inc. VT6105M [Rhine-III]
>         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr-
> Stepping+ SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 32 (750ns min, 2000ns max), Cache Line Size: 32 bytes
>         Interrupt: pin A routed to IRQ 15
>         Region 0: I/O ports at 1400 [size=256]
>         Region 1: Memory at e0040000 (32-bit, non-prefetchable) [size=256]
>         Capabilities: [40] Power Management version 2
>                 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Kernel driver in use: via-rhine
>
> 00:0f.0 ISA bridge: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode
> companion] ISA (rev 03)
>         Subsystem: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] ISA
>         Control: I/O+ Mem- BusMaster- SpecCycle+ MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Region 0: I/O ports at 6000 [size=8]
>         Region 1: I/O ports at 6100 [size=256]
>         Region 2: I/O ports at 6200 [size=64]
>         Region 3: I/O ports at 0000
>         Region 4: I/O ports at 9d00 [size=128]
>         Region 5: I/O ports at 9c00 [size=64]
>         Kernel driver in use: cs5535-mfd
>
> 00:0f.2 IDE interface: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode
> companion] IDE (rev 01) (prog-if 80 [ISA Compatibility mode-only
> controller, supports bus mastering])
>         Subsystem: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] IDE
>         Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 248, Cache Line Size: 32 bytes
>         Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
>         Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable)
>         Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
>         Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable)
>         Region 4: I/O ports at ff00 [size=16]
>         Kernel driver in use: pata_amd
>
> 00:0f.4 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode
> companion] OHC (rev 02) (prog-if 10 [OHCI])
>         Subsystem: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] OHC
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 0, Cache Line Size: 32 bytes
>         Interrupt: pin D routed to IRQ 12
>         Region 0: Memory at efffe000 (32-bit, non-prefetchable) [size=4K]
>         Capabilities: [40] Power Management version 2
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Kernel driver in use: ohci-pci
>
> 00:0f.5 USB controller: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode
> companion] EHC (rev 02) (prog-if 20 [EHCI])
>         Subsystem: Advanced Micro Devices, Inc. [AMD] CS5536 [Geode companion] EHC
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
>         Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
>         Latency: 0, Cache Line Size: 32 bytes
>         Interrupt: pin D routed to IRQ 12
>         Region 0: Memory at efffd000 (32-bit, non-prefetchable) [size=4K]
>         Capabilities: [40] Power Management version 2
>                 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
>                 Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>         Kernel driver in use: ehci-pci
>
>
>
> scripts/ver_linux, from BUILD system, not affected system:
> Linux d.localdomain 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27)
> x86_64 GNU/Linux
> GNU C                   6.3.0
> GNU Make                4.1
> Binutils                2.28
> Util-linux              2.29.2
> Mount                   2.29.2
> Linux C Library         2.24
> Dynamic linker (ldd)    2.24
> Procps                  3.3.12
> Kbd                     2.0.3
> Console-tools           2.0.3
> Sh-utils                8.26
> Udev                    232



-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux