#
✕ nick:amw
#asahi · 2021-08-10 10:11
amwj_ey: No - but I am passing that disable command line option via linux.py
#asahi · 2021-08-10 10:09
amwj_ey: now crashing SError in spi probe on the clk_enable - I might try commenting it out of the DT
#asahi · 2021-08-10 09:52
amwpipcet[m]: I'm just going shortest path at the moment (very long one it seems though :-()
#asahi · 2021-08-10 09:51
amwj_ey: Hmm on the corellium they put the interrupt-parent in the keyboard section
#asahi · 2021-08-10 09:47
amwOk - apple-gpio-pinctrl 23c100000.pinctrl: Apple GPIO must have at least one IRQ
#asahi · 2021-08-10 09:45
amwDidn't remove anything from the patches I took - didn't take b8ecd5924678 "SMP on Apple M1" or "Support for Apple Interrupt Controller (AIC)" but perhaps that's ok
#asahi · 2021-08-10 09:07
amwpipcet[m]: As in just took the whole DT entry for those spi/keyboard with the IRQ but didn't take any code patches for the IRQs
#asahi · 2021-08-10 09:04
amwj_ey: Yep - just ignored anything related to the interrupts....
#asahi · 2021-08-10 09:02
amwLiterally just the pinctrl + spi + keyboard .... - that plus ignorance and hope :-)
#asahi · 2021-08-10 09:01
amwI was thinking trying to get polling working rather than work through all the interrupt stuff I'm not not familar with
#asahi · 2021-08-10 09:00
amwOk - falling over trying to get an interrupt - but I was expecting something like that - didn't try to take that stuff
#asahi · 2021-08-10 08:58
amwpipcet[m]: Good call! - That was it - it's now booting up...
#asahi · 2021-08-10 08:55
amwj_ey: The stack trace shows it's called from clk_disable_unused from do_one_initcall() - so it's not happy
#asahi · 2021-08-10 08:52
amwThanks again - much happier now!
#asahi · 2021-08-10 08:52
amwOk - I have to go now - but I'm not surprised my raw patches crash - at least the code is being run now....
#asahi · 2021-08-10 08:50
amwpipcet[m]: Yep I did pass that in the CMDLINE config
#asahi · 2021-08-10 08:50
amwOk - thanks very much j_ey and pipcet[m] - was really getting frustrated with no output
#asahi · 2021-08-10 08:49
amwOk - now I'm probing! ... Get's an SError in clk_apple_pmgr_gate_disable - but that I can investigate
#asahi · 2021-08-10 08:36
amwI figured it would just complain in the probe when it asked for it - not totally non-probe ....
#asahi · 2021-08-10 08:35
amwYep - I didn't try to take that as I don't really understand that code...
#asahi · 2021-08-10 08:34
amwI think I have to plaster the platform probing stuff with prints until I can figure out why nothing is probed.
#asahi · 2021-08-10 08:33
amwMade no difference
#asahi · 2021-08-10 08:32
amwThat last one was a pain until I added CONFIG_LEDS_CLASS - completely ignored until that is set!
#asahi · 2021-08-10 08:31
amwI believe so - those all say =y
#asahi · 2021-08-10 08:28
amwok - I thought the proper call was the line below -
#asahi · 2021-08-10 08:25
amwSorry - https://paste.debian.net/1207124
#asahi · 2021-08-10 08:24
amwMy dmesg output is at https://github.com/amworsley/AsahiLinux/tree/asahi-keyboard
#asahi · 2021-08-10 08:23
amwj_ey: Sure - https://github.com/amworsley/AsahiLinux/tree/asahi-keyboard
#asahi · 2021-08-10 08:19
amwDidn't take corellium nvme stuff
#asahi · 2021-08-10 08:19
amwI have appropriate looking device tree - must be something very fundamental
#asahi · 2021-08-10 08:18
amwHelp appreciated on debugging why platform drivers are not called - I cherry-picked the corellium pinctrl/gpio/keyboard drivers got them compiling but they are never probed!
#asahi · 2021-08-10 06:23
amwsven: CONFIG_ARM64_PAGE_SHIFT=14 - don't know how to tell about iommu - is it DT setting?
#asahi · 2021-08-10 01:20
amwdevel did corrupt USB drive after running about 10mins and then shutdown. Unrecoverable fail to recover on next boot
#asahi · 2021-08-10 01:00
amwGood news is that the devel branch worked - two times in a row so far ...
#asahi · 2021-08-10 00:40
amwIt was confusing so I added a brief note to Wiki: https://github.com/AsahiLinux/docs/wiki/SW:Linux#nvme--usb
#asahi · 2021-08-10 00:40
amwHappens on first boot and so bad I have to wipe, remake the partition
#asahi · 2021-08-10 00:39
amwsven: Just a note, dart/dev rev 6756bb246de5, very dangerous to run. It reliable corrupts my USB drive I use for rootfs
#asahi · 2021-08-09 22:13
amwThat can be called directly at the shell
#asahi · 2021-08-09 22:13
amwe.g. hv.ctx.regs[29] et cetera to see what's actually go on
#asahi · 2021-08-09 22:12
amwYou can look at bt() in proxyclient/m1n1/hv.py around line 821 and try dumping out the registers it mentions
#asahi · 2021-08-09 22:11
amwj_ey: bt under run_guest has worked for me - except when I had CONFIG_RANDOMIZE
#asahi · 2021-08-09 13:56
amwTime for bed and see if anything happens by tomorrow...
#asahi · 2021-08-09 13:55
amwI don't really understand how to get the interrupts to report under shell.py so I ignored them - but that might be a good way to check things are working
#asahi · 2021-08-09 13:54
amwPretty useless mess at the moment, but with a few more days of work might do some non-interrupt driven transfers, proof concept
#asahi · 2021-08-09 13:53
amwFor what it is worth I have pasted some very hacky notes at https://paste.debian.net/?show=1207032;lines=0
#asahi · 2021-08-09 13:52
amwI was just trying to use info in the corellium drivers and I think it was kind of talking to the spi3 and possibly pinctrl - no interrupts
#asahi · 2021-08-09 13:51
amwBut I found the keyboard uses large 256 byte, crc'ed messages so it's quite a lot of work to get some keyboard input via that
#asahi · 2021-08-09 13:50
amwFor what it's worth I was trying to use shell to test pinctrl + spi3 to get to the keyboard
#asahi · 2021-08-09 01:09
amwIt would be nice to have a linux with nvme, dart and a fresher upstream update as a basis for new work
#asahi · 2021-08-07 00:47
amwAah you don't have an Ethernet or WiFi USB dongle

plus ›