Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2017 16:45:43 -0500
From:      Hyun Hwang <hhwang@sent.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 2 - I2C related kpanic @ r324169
Message-ID:  <1510868743.702301.1175172960.770CBAE8@webmail.messagingengine.com>
In-Reply-To: <1510852630.99235.381.camel@freebsd.org>
References:  <1510787451.4128802.1173973544.3E3E0813@webmail.messagingengine.com> <1510852630.99235.381.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 16, 2017, at 12:17, Ian Lepore wrote:
> I broke something. :)
Please do not take my message was to blame you; I greatly appreciate what you did to support the repeated start condition on RPi.

> Is it easily reproducible?
This happens quite randomly, but I managed to reproduce it several times more, especially within gdb(1)-ing my application.

>  I don't expect witness to add anything; given the FAR value, it looks like a NULL pointer problem.
With WITNESS (using standard sys/arm/conf/RPI2 kernel configuration), at least the panic gave me the exact instruction as well as additional messages:
```
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex bcm_bsc (bcm_bsc) r = 0 (0xc3d2f688) locked @ /usr/src/sys/arm/broadcom/bcm2835/bcm2835_bsc.c:480
stack backtrace:
Fatal kernel mode data abort: 'Translation Fault (L2)' on read
... snip (very similar to the one in the previous message) ...
Stopped at      bcm_bsc_fill_tx_fifo+0x74:      ldrb    r3, [r2]
db>
```
Hope this helps a bit more.

> could you do a "bt" at the db> propmt and paste that output, please?
Unfortunately, when the kernel panics, the USB keyboard stops working so I cannot type anything...
I will try to find other means that can give input to the debugger. (maybe UART serial?)

Thank you.
-- 
Hyun Hwang



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1510868743.702301.1175172960.770CBAE8>