Problem with 4.6-rc2

Started by Mason on Apr 18, 2016 · 7 messages from 4 authors · Last reply Apr 19, 2016

open the first message on its own page

Message details and related content
Hello,

I'm running into this panic. I will take a closer look tomorrow.
Any ideas?

[    0.353333] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.359999] console [ttyS0] disabled
[    0.366666] 10700.serial: ttyS0 at MMIO 0x10700 (irq = 22, base_baud = 460800) is a Palmchip BK-3103
[    0.373333] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    0.383333] pgd = c0004000
[    0.386666] [00000000] *pgd=00000000
[    0.389999] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
[    0.393333] Modules linked in:
[    0.396666] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc2+ #73
[    0.403333] Hardware name: Sigma Tango DT
[    0.409999] task: e741ca80 ti: e743c000 task.ti: e743c000
[    0.413333] PC is at io_serial_out+0x20/0x28
[    0.419999] LR is at arm_heavy_mb+0x24/0x40
[    0.423333] pc : [<c02de66c>]    lr : [<c01143f0>]    psr: 60000093
[    0.423333] sp : e743da40  ip : e743da30  fp : e743da54
[    0.433333] r10: c05c9968  r9 : e7506c40  r8 : 40000013
[    0.439999] r7 : e76dc490  r6 : c0710910  r5 : 00000000  r4 : 00000000
[    0.446666] r3 : 00000000  r2 : 00000730  r1 : 00000000  r0 : c074b810
[    0.453333] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.459999] Control: 10c5387d  Table: 8000404a  DAC: 00000051
[    0.466666] Process swapper/0 (pid: 1, stack limit = 0xe743c218)
[    0.473333] Stack: (0xe743da40 to 0xe743e000)
[    0.476666] da40: c02de64c 00000000 e743da6c e743da58 c02de024 c02de658 e76dc400 c074b810
[    0.486666] da60: e743da7c e743da70 c02de04c c02ddfd4 e743db14 e743da80 c02db32c c02de034
[    0.493333] da80: 00000000 e743daa8 00000016 00070800 c05b7d30 c074b810 00070800 c05a9798
[    0.503333] daa0: 00000016 00000000 4f494d4d 31783020 30303730 00000000 00000000 e76dc490
[    0.509999] dac0: e743dadc e743dad0 c02c265c c074b810 e76dc400 00000000 e76dc490 c074b810
[    0.519999] dae0: 0000001d 00000000 e743db14 c074b810 e743dc54 c074b92c b9000000 c074b810
[    0.526666] db00: 00000000 00000000 e743db4c e743db18 c02dd18c c02dafd0 e743db4c e743db28
[    0.536666] db20: c036ce80 c043ef98 e7af31d4 e7504a00 e7504a10 00000002 e76ded00 0000001d
[    0.543333] db40: e743ddcc e743db50 c02e199c c02dcf00 00708000 e743db60 00000002 00000000
[    0.549999] db60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.559999] db80: 00000000 00000000 00000000 00000000 00000000 00000000 00000016 00000000
[    0.566666] dba0: 00708000 00000000 00040200 00000000 00000000 00000000 00000000 00000000
[    0.576666] dbc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

73 more lines

Message details and related content
On 04/18/2016 09:24 AM, Mason wrote:
Hello,

I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though

Regards,
Peter Hurley

[    0.353333] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.359999] console [ttyS0] disabled
[    0.366666] 10700.serial: ttyS0 at MMIO 0x10700 (irq = 22, base_baud = 460800) is a Palmchip BK-3103
[    0.373333] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    0.383333] pgd = c0004000
[    0.386666] [00000000] *pgd=00000000
[    0.389999] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
[    0.393333] Modules linked in:
[    0.396666] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc2+ #73
[    0.403333] Hardware name: Sigma Tango DT
[    0.409999] task: e741ca80 ti: e743c000 task.ti: e743c000
[    0.413333] PC is at io_serial_out+0x20/0x28
[    0.419999] LR is at arm_heavy_mb+0x24/0x40
[    0.423333] pc : [<c02de66c>]    lr : [<c01143f0>]    psr: 60000093
[    0.423333] sp : e743da40  ip : e743da30  fp : e743da54
[    0.433333] r10: c05c9968  r9 : e7506c40  r8 : 40000013
[    0.439999] r7 : e76dc490  r6 : c0710910  r5 : 00000000  r4 : 00000000
[    0.446666] r3 : 00000000  r2 : 00000730  r1 : 00000000  r0 : c074b810
[    0.453333] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.459999] Control: 10c5387d  Table: 8000404a  DAC: 00000051
[    0.466666] Process swapper/0 (pid: 1, stack limit = 0xe743c218)
[    0.473333] Stack: (0xe743da40 to 0xe743e000)
[    0.476666] da40: c02de64c 00000000 e743da6c e743da58 c02de024 c02de658 e76dc400 c074b810
[    0.486666] da60: e743da7c e743da70 c02de04c c02ddfd4 e743db14 e743da80 c02db32c c02de034
[    0.493333] da80: 00000000 e743daa8 00000016 00070800 c05b7d30 c074b810 00070800 c05a9798
[    0.503333] daa0: 00000016 00000000 4f494d4d 31783020 30303730 00000000 00000000 e76dc490
[    0.509999] dac0: e743dadc e743dad0 c02c265c c074b810 e76dc400 00000000 e76dc490 c074b810
[    0.519999] dae0: 0000001d 00000000 e743db14 c074b810 e743dc54 c074b92c b9000000 c074b810
[    0.526666] db00: 00000000 00000000 e743db4c e743db18 c02dd18c c02dafd0 e743db4c e743db28
[    0.536666] db20: c036ce80 c043ef98 e7af31d4 e7504a00 e7504a10 00000002 e76ded00 0000001d
[    0.543333] db40: e743ddcc e743db50 c02e199c c02dcf00 00708000 e743db60 00000002 00000000
[    0.549999] db60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.559999] db80: 00000000 00000000 00000000 00000000 00000000 00000000 00000016 00000000
[    0.566666] dba0: 00708000 00000000 00040200 00000000 00000000 00000000 00000000 00000000
[    0.576666] dbc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.583333] dbe0: 00000000 00000000 00000000 b9000000 00000000 00000000 00000000 00000000
[    0.593333] dc00: 0000001d 00000000 00000000 00000000 00000000 00010700 00000030 e7504a10
[    0.599999] dc20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.609999] dc40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.616666] dc60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

69 more quoted lines

Message details and related content
On 18/04/2016 20:06, Peter Hurley wrote:
On 04/18/2016 09:24 AM, Mason wrote:
quoted
I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though
Peter,

Thanks for pointing out the problem.

Greg,

My ARM-based SoC uses this hardware (Palmchip BK-3103) and it
now panics on boot.

Can we revert 8d2acdb9fc3a in time for v4.7?

Regards.
Message details and related content
On 18/04/2016 20:29, Mason wrote:
On 18/04/2016 20:06, Peter Hurley wrote:
quoted
On 04/18/2016 09:24 AM, Mason wrote:
quoted
I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though
Peter,

Thanks for pointing out the problem.

Greg,

My ARM-based SoC uses this hardware (Palmchip BK-3103) and it
now panics on boot.

Can we revert 8d2acdb9fc3a in time for v4.7?
Errr... I meant v4.6 final.

Regards.
Message details and related content
Hi Peter, Mason,

On Mon, 18 Apr 2016 20:29:47 +0200, Mason wrote:
On 18/04/2016 20:06, Peter Hurley wrote:
quoted
On 04/18/2016 09:24 AM, Mason wrote:
quoted
I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though
Greg applied v1 of my patch. In v2 I added ARCH_TANGO as a possible
dependency, but Greg did pick the update. Mason, is your target machine
an ARCH_TANGO machine, or something else?
Peter,

Thanks for pointing out the problem.
Mason, did you check if reverting this commit and re-enabling
SERIAL_8250_RT288X actually solves your problem?
Greg,

My ARM-based SoC uses this hardware (Palmchip BK-3103) and it
now panics on boot.

Can we revert 8d2acdb9fc3a in time for v4.6?
If not selecting SERIAL_8250_RT288X results in a crash at boot on some
systems, then reverting my commit is not the proper fix. Even after
reverting, you can still omit selecting the option, and get the same
crash. In other words, my commit is not introducing the crash, it must
have been there lurking before.

Whatever code crashes in this case should be made more robust to
properly deal with the situation. Or if it is too much work or too ugly
(not being familiar with the code, I have no idea), then we could
finally go with Peter's earlier proposal of dropping the
SERIAL_8250_RT288X option altogether and unconditionally including the
code in question. In fact I think Peter was supposed to send a patch
doing exactly that.

-- 
Jean Delvare
SUSE L3 Support
Message details and related content
On 18/04/2016 21:23, Jean Delvare wrote:
Hi Peter, Mason,

On Mon, 18 Apr 2016 20:29:47 +0200, Mason wrote:
quoted
On 18/04/2016 20:06, Peter Hurley wrote:
quoted
On 04/18/2016 09:24 AM, Mason wrote:
quoted
I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though
Greg applied v1 of my patch. In v2 I added ARCH_TANGO as a possible
dependency, but Greg did pick the update. Mason, is your target machine
an ARCH_TANGO machine, or something else?
Correct, ARCH_TANGO.
http://lxr.free-electrons.com/source/arch/arm/mach-tango/Kconfig
quoted
Peter,

Thanks for pointing out the problem.
Mason, did you check if reverting this commit and re-enabling
SERIAL_8250_RT288X actually solves your problem?
I will test tomorrow. But I'm quite confident that enabling
SERIAL_8250_RT288X will make the problem go away (see below).
quoted
My ARM-based SoC uses this hardware (Palmchip BK-3103) and it
now panics on boot.

Can we revert 8d2acdb9fc3a in time for v4.6?
If not selecting SERIAL_8250_RT288X results in a crash at boot on some
systems, then reverting my commit is not the proper fix. Even after
reverting, you can still omit selecting the option, and get the same
crash. In other words, my commit is not introducing the crash, it must
have been there lurking before.
I wanted to have
select SERIAL_8250_RT288X if SERIAL_8250
in my platform Kconfig, but Arnd shot that down :-(
(What good is a SoC without a console?)

http://thread.gmane.org/gmane.linux.ports.arm.kernel/444131/focus=444197

"Picking SERIAL_8250 but not SERIAL_8250_RT288X makes the kernel
panic. Doesn't that qualify for selecting it?"

The problem has existed for a while.
Whatever code crashes in this case should be made more robust to
properly deal with the situation. Or if it is too much work or too ugly
(not being familiar with the code, I have no idea), then we could
finally go with Peter's earlier proposal of dropping the
SERIAL_8250_RT288X option altogether and unconditionally including the
code in question. In fact I think Peter was supposed to send a patch
doing exactly that.
Regards.
Message details and related content
On Mon, Apr 18, 2016 at 08:29:47PM +0200, Mason wrote:
On 18/04/2016 20:06, Peter Hurley wrote:
quoted
On 04/18/2016 09:24 AM, Mason wrote:
quoted
I'm running into this panic. I will take a closer look tomorrow.
Any ideas?
commit 8d2acdb9fc3a544ab0442634531834d6007b5467
Author: Jean Delvare [off-list ref]
Date:   Mon Feb 22 09:00:39 2016 +0100

    serial: 8250: Add hardware dependency to RT288X option
    
    Kconfig option SERIAL_8250_RT288X seems to be only relevant on MIPS
    platforms, so do not present it on other architectures, unless
    build-testing.
    
    Signed-off-by: Jean Delvare [off-list ref]
    Cc: Mans Rullgard [off-list ref]
    Cc: Jiri Slaby [off-list ref]
    Acked-by: John Crispin [off-list ref]
    Signed-off-by: Greg Kroah-Hartman [off-list ref]


Not sure why Greg picked this up over my objections though
Peter,

Thanks for pointing out the problem.

Greg,

My ARM-based SoC uses this hardware (Palmchip BK-3103) and it
now panics on boot.

Can we revert 8d2acdb9fc3a in time for v4.7?
Now reverted in time for 4.6, sorry about this.

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help