Options for FBSD support with LCD device - new project [[Maybe related: I2c issues on the Pi2]]

Karl Denninger karl at denninger.net
Mon Mar 25 19:26:16 UTC 2019


On 3/25/2019 12:37, Ian Lepore wrote:
> On Mon, 2019-03-25 at 12:16 -0500, Karl Denninger wrote:
>> On 3/25/2019 12:05, Ian Lepore wrote:
>>> On Mon, 2019-03-25 at 11:58 -0500, Karl Denninger wrote:
>>>> [...]
>>> Is the interrupt rate consistent from second to second?  Running
>>> 'vmstat 1' for a while might be useful to see that.  That many
>>> interrupts almost sounds like a line is floating, but if that were the
>>> case I'd expect a widely varying number of int/sec.
>>>
>>> If you build custom kernels, it might be helpful to apply r345475
>>> locally... it will display partial device names instead of just '+'
>>> when the name doesn't fit in the vmstat output.
>>>
>>> -- Ian
>> No, but it's in the same general range -- around 500k although it does
>> flop around some, and occasionally by a lot (e.g. if I sit and watch it
>> it'll occasionally put up VERY different numbers -- e.g. a ~730k number,
>> then it goes back, etc.)
>>
>> I don't generally build custom kernels on these but I CAN put this into
>> the STABLE tree I'm building that from since I keep a separate one for
>> Crochet builds on these boxes.  Where do I find that specific delta?  (I
>> usually just svn things and I don't want to roll it all the way back to
>> there, right -- or do I?)
>>
> Apply this patch...
>
> https://svnweb.freebsd.org/base/head/sys/kern/kern_intr.c?view=patch&r1=345475&r2=345474&pathrev=345475
>
> -- Ian

Here's where it's coming from:

root at rpi2:~ # vmstat -i
interrupt                                             total       rate
local_intc0,1:-mer0                                   80944       1361
local_intc0,3:-mer0                                32210287     541604
local_intc0,8:-ntc0                                  888341      14937
local_intc0,9: pmu0                                       2          0
intc0,1: mbox0                                           40          1
intc0,2: vchiq0                                           2          0
intc0,17:-x_dwcotg0                                 1242279      20888
intc0,28: bcm_dma0                                    74686       1256
intc0,61: iichb0                                          1          0
intc0,65: uart0                                        1856         31
intc0,70:-dhci_bcm0                                    8952        151
cpu0:rendezvous                                          13          0
cpu1:rendezvous                                          14          0
cpu2:rendezvous                                          15          0
cpu3:rendezvous                                          18          0
cpu2:ast                                                  1          0
cpu0:preempt                                           3167         53
cpu1:preempt                                          13062        220
cpu2:preempt                                          11133        187
cpu0:hardclock                                            2          0
Total                                              34534815     580690

Uh, yeah.  Cold boot, NO I2c connected.

FreeBSD 12.0-STABLE #0 r345490M: Mon Mar 25 14:05:47 CDT 2019    
karl at NewFS.denninger.net:/work/Crochet-work-ARM32/obj/work/CrossBuild-12STABLE/src/arm.armv7/sys/GENERIC

(plus the patch of course)

No .kos loaded either

root at rpi2:~ # kldstat
Id Refs Address        Size Name
 1    1 0xc0000000   ca53e4 kernel

And the load average of 1.0 + real is there:

root at rpi2:~ # uptime
 7:15PM  up 4 mins, 1 user, load averages: 1.04, 0.75, 0.35

-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4897 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20190325/2e542a9c/attachment.bin>


More information about the freebsd-arm mailing list