2023-09-22.log

sigridI wonder if nxp has a separate document for their CAAM00:02
sigridsoc datasheet has nothing about it, really00:03
- jacobk (QUIT: Ping timeout: 246 seconds) (~quassel@129.110.242.224)00:12
- S0rin (QUIT: Ping timeout: 244 seconds) (~S0rin@user/s0rin)00:18
+ S0rin (~S0rin@user/s0rin)00:20
minutesigrid: there is a security manual which you get only on request00:21
sigridah I see. I found one for imx6*, guess it'd look like that one00:27
+ jacobk (~quassel@utdpat242016.utdallas.edu)00:31
minutesigrid: does it feature caam?00:40
sigridyeah. almost 200 pages00:42
sigridthe whole manual is 650 pages00:43
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@utdpat242016.utdallas.edu)00:43
minutesigrid: ok cool! my wild guess is that they probably didn't change a lot00:46
+ jacobk (~quassel@129.110.242.224)00:47
abortretryfailWhere can i find the .dts file for the imx8mq reform kernel? Trying to enable spi so i can tell the LPC to turn on its uart00:52
abortretryfaili wonder if reflashing the LPC with the dumb thing enabled by default is easier...00:52
abortretryfailits not anywhere in the source.mnt.re/reform/reform repo01:05
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@129.110.242.224)01:13
+ jacobk (~quassel@utdpat241106.utdallas.edu)01:20
abortretryfailnevermind, reflashing the LPC is way easier.01:28
+ mjw (~mjw@193.115.216.78)01:43
- mjw (QUIT: Ping timeout: 258 seconds) (~mjw@193.115.216.78)01:50
- mtm (QUIT: Ping timeout: 245 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:04
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)02:25
- jacobk (QUIT: Ping timeout: 240 seconds) (~quassel@utdpat241106.utdallas.edu)02:26
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:10
joschabortretryfail: the dts is here: https://source.mnt.re/reform/reform-debian-packages/-/blob/main/linux/imx8mq-mnt-reform2.dts04:14
abortretryfailno compatible = "spidev" explains why i couldn't get it to work as expected heh, thanks josch 04:15
joschcool :)04:16
abortretryfailI decided to not go that far down a debug rabbit hole until I try minute's suggestion here to tweak the brownout detect https://community.mnt.re/t/debugging-power-related-firmware/1657/204:18
joschminute: your conclusion to run update-initramfs in mkimage.sh is correct but this only needs to happen for ls1028a, no? But why did you replace running flash-kernel with update-initramfs? I'm surprised this works because update-initramfs does not run flash-kernel or does it?04:19
joschessentially, this: https://source.mnt.re/reform/reform-system-image/-/merge_requests/8204:28
joschokay, cleaned up reform-tools MRs and left a new one for review: https://source.mnt.re/reform/reform-tools/-/merge_requests/5505:03
joschthat removes some of the duplication and makes sure that only those options are set that are required on each platform05:04
+ jacobk (~quassel@129.110.242.173)05:10
abortretryfail100%. Time to see if tweaking BODRSTLEV helps.05:15
- bluerise (QUIT: Ping timeout: 245 seconds) (~bluerise@pc19f8f03.dip0.t-ipconnect.de)07:01
+ bluerise_ (~bluerise@pc19f8c08.dip0.t-ipconnect.de)07:01
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@129.110.242.173)07:22
+ jacobk (~quassel@64.189.201.150)07:37
- bluerise_ (QUIT: Ping timeout: 240 seconds) (~bluerise@pc19f8c08.dip0.t-ipconnect.de)08:07
+ bluerise (~bluerise@pc19f855b.dip0.t-ipconnect.de)08:08
- qbit (QUIT: Quit: WeeChat 3.8) (~qbit@h.suah.dev)09:01
vkoskivminute: re: cryptomgr disable, that worked, it now suspends and comes back up, but the sleepy nvme issue is still there. I'll do some digging to see if I can find a workaround09:39
vkoskivI initially missed the fact that the cryptomgr issue was the thing that prevented suspend, I thought it was just a separate issue09:39
vkoskivAdding that to the kernel cmdline resolves it, seemingly.09:40
Boostisbetterminute: so far very good performance on 6.5.0.1. I have been kind of doing things that I've observed to improve standby performance. Like only suspending and resuming while on AC power. But I brought the Reform to work with me today, and I am using it in now in the car, and it resumed without any problems. Very awesome. 10:04
- nsc (QUIT: Ping timeout: 240 seconds) (~nicolas@83-97-142-46.pool.kielnet.net)10:17
+ nsc (~nicolas@159-97-142-46.pool.kielnet.net)10:19
+ mjw (~mjw@195.89.33.213)10:34
- mjw (QUIT: Ping timeout: 245 seconds) (~mjw@195.89.33.213)10:45
+ bluerise_ (~bluerise@p5b0ac137.dip0.t-ipconnect.de)10:48
- bluerise (QUIT: Ping timeout: 248 seconds) (~bluerise@pc19f855b.dip0.t-ipconnect.de)10:48
- sevan (QUIT: Ping timeout: 264 seconds) (~sevan@user/venture37)10:51
+ sevan (~sevan@2001:470:1f1d:1d6:5a55:caff:fe24:ed4)10:57
- sevan (QUIT: Ping timeout: 246 seconds) (~sevan@2001:470:1f1d:1d6:5a55:caff:fe24:ed4)11:13
- klardotsh (QUIT: Ping timeout: 240 seconds) (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)11:24
+ mjw (~mjw@195.89.33.213)11:33
- mjw (QUIT: Ping timeout: 248 seconds) (~mjw@195.89.33.213)11:39
+ sevan (~sevan@2001:470:1f1d:1d6:5a55:caff:fe24:ed4)11:44
- GNUmoon (QUIT: Ping timeout: 252 seconds) (~GNUmoon@gateway/tor-sasl/gnumoon)12:33
Boostisbetterjust resumed again today while at work. Worked like a charm. Really cool that iteration of the kernel are naturally fixing the issue. Good thing the imx8 is such a popular soc around Linux. 12:35
Boostisbetterbatteries running lower than I thought they would. I guess the lifepo batteries I have in here are a bit old at this point and they are not holding their charge or can't hold as much as they used to. 12:37
BoostisbetterSometimes I wonder about the quality of eremit batteries. Does anyone have a point of reference on whether or not these are high quality?12:37
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)12:42
- bluerise_ (QUIT: Ping timeout: 258 seconds) (~bluerise@p5b0ac137.dip0.t-ipconnect.de)12:46
+ bluerise (~bluerise@pc19f81f3.dip0.t-ipconnect.de)12:49
+ mjw (~mjw@195.89.33.213)12:53
- sevan (QUIT: Changing host) (~sevan@2001:470:1f1d:1d6:5a55:caff:fe24:ed4)12:54
+ sevan (~sevan@user/venture37)12:54
abortretryfailBODRSTLEV=2 didn't fix it, trying 1 now.13:07
abortretryfailBoostisbetter: is it cutting off abruptly because one cell drops too low?13:07
- Boostisbetter (QUIT: Ping timeout: 240 seconds) (4a410829d7@irc.cheogram.com)13:09
minutei will now build a ls1028a test reform to see if it burns off the user's legs or not13:10
abortretryfaillol oh no13:18
abortretryfaildon your asbestos trousers13:18
+ Boostisbetter (4a410829d7@irc.cheogram.com)13:28
- jacobk (QUIT: Ping timeout: 246 seconds) (~quassel@64.189.201.150)13:40
- bluerise (QUIT: Ping timeout: 252 seconds) (~bluerise@pc19f81f3.dip0.t-ipconnect.de)13:41
+ bluerise (~bluerise@p5b0ac138.dip0.t-ipconnect.de)13:41
- mjw (QUIT: Ping timeout: 245 seconds) (~mjw@195.89.33.213)13:55
- bluerise (QUIT: Ping timeout: 244 seconds) (~bluerise@p5b0ac138.dip0.t-ipconnect.de)14:00
+ bluerise (~bluerise@p5b0acf0d.dip0.t-ipconnect.de)14:03
- mtm (QUIT: Ping timeout: 258 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:03
- S0rin (QUIT: Ping timeout: 258 seconds) (~S0rin@user/s0rin)14:29
+ S0rin (~S0rin@user/s0rin)14:36
Boostisbetterall the cells show good voltages. So I think it is just a result of age and decreased capacity. 14:40
BoostisbetterI got back before it cut out though. Was at 12% but that was from being taken off the charger at 7 this morning, and getting home at 2 pm. Where as normally on the original 1800 maH batteries I could go all the way to 5 pm and still have about 25% left. 14:44
BoostisbetterThis is always with about an hour or 2 of usage during the day. 14:44
abortretryfailWas that 12% from the OLED or via some battery app like the one in Waybar? It seems some of those apps try to do their own math and get it way wrong, overestimating the % remaining.14:48
abortretryfailYou can see what I mean even if the OLED says ???%, do cat /sys/class/power_supply/8xlifepo4/capacity and compare it to the app14:49
+ qbit (~qbit@2602:ff16:3:0:1:3a0:0:1)15:00
+ jacobk (~quassel@71.40.95.51)15:02
BoostisbetterI almost always get the battery level from the oled. 15:04
BoostisbetterIt has been pretty accurate for me. 15:04
abortretryfailYeah mine is good when it works. Lately I've been digging into the LPC code to try and fix it.15:27
+ mjw (~mjw@195.89.33.213)15:38
minutelol, music on ls1028a is running at like half speed/pitch15:39
minuteor 75%15:39
minutesound really spooky15:42
minuteah well, the explanation is clear15:44
minutethe board has a 12mhz mclk oscillator15:44
minutebut dts says 25mhz15:44
abortretryfailHmm... 2.5 hours powered off and it's back to ???% with BODRSTLEV2=1. I'm going to try disabling the BOD entirely.15:48
sevanminute: play some gabba! :)15:49
abortretryfailplay smooth jazz - vaporwave mode15:50
sevans/gabba/gabber15:50
joschsevan: the speakers are too quiet for that :D15:55
minutehehe15:55
sevanjosch: :D15:56
minutehmm, need to solve this issue:15:58
minute[   14.801640] usb usb1-port1: couldn't allocate usb_device15:58
minute[   27.091461] usb usb2-port1: couldn't allocate usb_device15:58
joschminute: what's the verdict? does it burn off my legs?15:58
minutejosch: not sure yet, need to be able to close it :D15:58
minuteneed to figure out what is flooding the usb system16:00
+ arminweigl (~arminweig@sourcehut/user/arminweigl)16:05
minuteinteresting, rmmod dwc3 & modprobe dwc3 seems to be a workaround16:05
minuteso possibly a dwc3 regression16:05
minute[   26.818268] xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID: Command Aborted16:06
minute[   26.828260] xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.16:06
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:09
minutehmm, why is the default cpu governor "schedutil" on this platform16:13
minuteondemand is better i think16:13
BoostisbetterYou know, I am going to go out on a limb here and say that 6.5 has fixed suspend on the imx816:23
minuteok, audio is fine now on ls1028a16:23
minuteusb workaround is ugly but works too16:24
minuteok, will put in battery for battery testing and close this up16:25
Boostisbetterminute: most excellent. 16:25
- mjw (QUIT: Ping timeout: 244 seconds) (~mjw@195.89.33.213)16:36
- jacobk (QUIT: Ping timeout: 246 seconds) (~quassel@71.40.95.51)16:45
minuteok, so thermally connecting the heatsink to the back of the case with a thin strip of thermal gap filler helps a lot16:55
jfredI was wondering about heat dissipation requirements a bit... because I've been thinking about trying to build a wooden desktop case for the Reform mobo16:56
jfredMight need active cooling I suppose 16:58
sknebelI'd guess that in a desktop case a single slow running fan would help a lot16:58
sknebel(desktop its easier to make a shape where you can fit a larger (=quieter) fan16:58
minuteyeah16:58
jfredI'm thinking something VT100-inspired so yeah that should be totally doable 17:03
minuteafter an hour of load average 2.6 and charging, temp is around 73 degrees17:24
minutebut the question is also why does firefox playing back some music on navidrome suck up so much cpu %17:25
+ mjw (~mjw@195.89.33.213)17:25
minuteok, and temperature went down to 68 degrees after a while at 0.19 load17:48
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)17:50
minuteyeah, seems to have sort of an equilibrium at 6718:08
minuteconnected nvidia gpu via our egpu adapter now18:20
- mjw (QUIT: Ping timeout: 260 seconds) (~mjw@195.89.33.213)18:23
+ mjw (~mjw@195.89.33.213)18:28
+ jacobk (~quassel@129.110.242.224)18:36
- jacobk (QUIT: Ping timeout: 240 seconds) (~quassel@129.110.242.224)18:43
- mjw (QUIT: Ping timeout: 240 seconds) (~mjw@195.89.33.213)18:47
+ jacobk (~quassel@129.110.242.224)18:57
Boostisbettermost excellent. 19:09
- buckket (QUIT: Quit: buckket) (~buckket@vps.buckket.org)19:11
+ buckket (~buckket@vps.buckket.org)19:11
- S0rin (QUIT: Ping timeout: 258 seconds) (~S0rin@user/s0rin)19:44
+ S0rin (~S0rin@user/s0rin)19:46
joschminute: what is the "debian system" that you mention in https://source.mnt.re/reform/reform-system-image/-/merge_requests/82#note_6245 -- what version is it?19:47
joschminute: Debian has had merged-/usr for several years now19:47
minuteoh hm.19:51
minutejosch: sorry, my bad :D19:52
minuteanyway, i think we can start shipping the first ls1028as next week19:52
Boostisbetterminute: that is great news. 20:19
minutei'm now back on pocket reform motherboard layout finishing20:19
BoostisbetterYES!!! Can't wait! 20:20
joschme neither :)20:25
minutei hope to be finished with the new motherboard on tuesday20:29
joschwasn't there a post on mastodon in june that you sent motherboard 2.5 to pcbway?20:30
minutethat was mnt reform motherboard20:30
minutethey're already produced and in stock20:31
minutewe already built 28 reforms with them and sent them to crowd supply20:31
joschi... somehow cannot find it in the shop?20:31
joschwe are talking about motherboard 2.5, right?20:32
minutethat was a few days ago. we now have shipped everything that we owed crowd supply / mouser to them from the original stocking20:32
minutejosch: correct. it's not in the shop20:32
joschah okay :)20:32
minuteit's just... here :D20:32
joschwell, once it's in the shop my order goes up :)20:32
minutewe need to estimate how many we need to build reforms :320:32
joschhah :)20:32
minutethe mb2.5 batch was 100 units. we have around 30 reforms yet to ship, and we want to keep a few mbs in stock to be able to build more on demand20:35
minuteso we'll only offer a relatively small number of mbs in the shop20:35
minutebut you'll hear of it first here!20:35
joschnice!20:35
joschACTION turns of the while sleep 1m; do curl ... script20:35
minutelol :D20:35
minutewe can reserve you one for sure20:36
minuteso no worries20:36
joschoh no extrawurst please :)20:36
minutehaha20:36
joschi'll be lurking here anyways as usual20:36
minutehmm, so the latest system image doesn't work correctly anymore on a311d. i suspect there's something wrong with the cmdline... there's a bit of output from the kernel on the display but no login20:46
minuteso maybe no console on tty120:47
minutehuh20:52
minute> Timed out for waiting the udev queue being empty.20:53
minute[  185.235814] panfrost ffe40000.gpu: devfreq_add_device: Unable to find governor for the device20:53
minute[  185.238895] panfrost ffe40000.gpu: [drm:panfrost_devfreq_init [panfrost]] *ERROR* Couldn't initialize GPU devfreq20:53
minute[  185.248981] panfrost ffe40000.gpu: devfreq init failed -51220:53
minute[  185.254533] panfrost ffe40000.gpu: Fatal error during GPU init20:53
minuteinteresting that mentions "governor"20:53
+ klardotsh (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)20:56
minuteok the problem is pcie/nvme20:57
+ cinap_lenrek (~cinap_len@188.26.222.244)20:58
cinap_lenrekhallo :)20:58
minutehi cinap_lenrek 20:59
cinap_lenreki just observed that the keyboard was somehow unresponsive on my reform so i could not turn it on20:59
cinap_lenrekno oled menu when circle key20:59
minutemeh21:00
cinap_lenreki opened it up and disconnected the keyboard from the lpc connector21:00
cinap_lenrekand re-plugged it and everything is fine again21:00
minuteoh21:00
minutewell, that's good21:00
cinap_lenreki was just wondering, how this could happen21:00
minutemaybe it crashed while in sleep21:00
cinap_lenrekyeah21:00
cinap_lenreki wonder if we could implement like maybe a watchdog in the keyboard firmware?21:00
cinap_lenrekor maybe that has already been done21:00
joschminute: if you are back at a311d for a bit, could you find out the u-boot env value for ${board} so that i can put it into https://source.mnt.re/reform/reform-tools/-/merge_requests/55 thank you!21:01
cinap_lenreki'll take a look21:01
abortretryfailcinap_lenrek: did you by chance press circle+x?21:02
cinap_lenrekabortretryfail: i dont know what this does21:02
abortretryfailthat puts it into its bootloader and it gets stuck there until the next reset21:02
cinap_lenrekabortretryfail: but i cannot exclude that possibility21:02
cinap_lenrekoh21:02
cinap_lenrekinteresting21:02
abortretryfailYou can hit the reset button and it will come back, but no amount of key mashing will. :)21:02
minutejosch: lol ahem > => print board21:02
minuteboard=u20021:02
minutejosch: i guess this should be fixed before shipping21:03
cinap_lenrekabortretryfail: good to know!21:03
minutei have no idea what "u200" is / where it comes from21:03
cinap_lenrekanyway, my oled has a burn in of the reform logo now :D21:03
abortretryfail:(21:03
cinap_lenrekbecause when i power on it keeps showing the logo21:03
cinap_lenreki'll see if i can fix that21:04
minuteyeah, that's sorely missing a timeout/screensaver21:04
cinap_lenrekwe need a oled screen saver :D21:04
vkoskivYeah the logo should def. have a timeout. It's on my list, but the list is long.21:04
joschminute: ah i was trying to look up the board name from the u-boot config file but it doesn't say anything so i guess it just has to be set there?21:04
abortretryfailDVD player mode go21:04
minutejosch: yeah probably21:04
abortretryfailIs it a bug that the keyboard can be flashed without the flash switch being on? 21:04
vkoskivI've actually written some pretty cool stuff for the OLED, I'm just not ready to show it off yet21:04
cinap_lenrekvkoskiv: oh, cool21:04
vkoskivOh, geez. I pulled up the repo and the last commit is from almost exactly a year ago :'D21:05
vkoskivBut it exists, and I want to finish it up.21:05
minutehmm my working a311d install has pci=pcie_bus_perf, no nomsi21:08
minutejosch: ok, i just verified: pci=nomsi wreaks havoc on a311d. so only imx8mq shall have it21:12
sigridbtw, why does imx8mq need it?21:12
abortretryfailminute: I commented out brownout_setup() entirely and my LPC still forgets what 100% was and goes to ???. I'm wondering if there's some kind of overflow/crash happening. https://community.mnt.re/t/debugging-power-related-firmware/1657/221:12
minutesigrid: IIRC wifi card doesn't work without it21:12
sigridhmmm weird21:12
minuteabortretryfail: hmm, it is possible. looks like we need a crash handler21:12
abortretryfail(I'll reply in that thread once my account is approved)21:12
minutesigrid: IIRC msi is broken on imx8mq21:13
cinap_lenrekhuh?21:13
minuteit's not?21:13
cinap_lenreki'm pretty sure we use msi exclusively in 9front on the reform on all pcie devices21:13
sigridI don't think we do anything in 9front for pcie quirks21:13
sigridyeah21:13
minutehmmmm ok21:14
sigridat least intel's wifi modules seem to work fine21:14
cinap_lenreki didnt even bother implementing other interrupt modes21:14
minutesomeone could test it with linux then21:14
cinap_lenreksigrid: and nvme21:14
minutejosch: ok so u200 is set because arch/arm/mach-meson/Kconfig has that as the default for MESON_G12A21:19
sigridI don't have the official atheros wifi for the reform, but I could try it with the one I stole from x22021:19
minuteso we need to set CONFIG_SYS_BOARD21:19
minutejosch: ok so i think this should set "board" https://source.mnt.re/reform/reform-a311d-uboot/-/commit/fb3f08e3189ab04e27cf98c5c4c82c4211fe57a021:22
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@129.110.242.224)21:23
+ jacobk (~quassel@utdpat241106.utdallas.edu)21:38
joschminute: while you are at it, maybe it makes sense to also set CONFIG_SYS_VENDOR and CONFIG_SYS_SOC to something meaningful. They are freescale,fsl-layerscape and boundary,imx8m for ls1028a and imx8mq, respectively21:39
Boostisbetterif the LPC is reporting that I have a cell at 4V, is this cause for alarm?22:16
BoostisbetterWell I mean it says that while on the charger, but when I unplug that one goes down to 3.4V22:17
BoostisbetterSo I wonder if it is just a fluke, because I but new batteries in. 22:17
BoostisbetterALso just to recap the LPC wont know what the charge is until you run the batteries down right?22:17
minutejosch: ok sure, also the build failed, but i was just biking home. i think we should just call the board a311d perhaps22:31
minuteBoostisbetter: 4V while charging is not a biggie i would say. keep an eye on it though22:32
Boostisbetterminute: thanks! 22:33
vkoskivAm I misremembering or was it concluded that the randomly completely unresponsive keyboard was due to the missing pull{up|down} resistor on the reset button on the earlier keyboards?22:34
vkoskivIf so, I'll seek a resistor and put one in22:34
vkoskivs/seek/source22:34
minutejosch: ah the "board" has meaning > scripts/Makefile.build:57: board/amlogic/meson-g12b-bananapi-cm4-mnt-reform2/Makefile: No such file or directory22:38
minutevkoskiv: yep, that was a known cause22:38
joschminute: thank you for the heads-up with pci=pcie_bus_perf and pci=nomsi -- my reform-tools MR sets it exactly the way you recommend23:24
minutejosch: i did some cmdline massaging to the best of my knowledge https://source.mnt.re/reform/reform-tools/-/merge_requests/55/diffs#e2fffd60637388716cbf4459d978b6dd7c68f25c23:37
minutejosch: i also set your role as maintainer now for reform-tools23:38
minutejosch: i can test all 3 boards then again on monday23:38
joschnice! :)23:40
joschand thank you for adding me to reform-tools maintainers23:40
minutelong overdue!23:42
joschnah, it hasn't caused much inconvenience not to have those privileges23:45
- cwebber (QUIT: Remote host closed the connection) (~user@user/cwebber)23:58

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!