#
#asahi-dev · 2026-06-05 21:49
yukano
#asahi-dev · 2026-06-05 21:49
jannauthe spmi debugfs interface isn't upstream?
#asahi-dev · 2026-06-05 21:47
yukaI thought we would probably want to wait for the interface to be stabilized / upstreamed
#asahi-dev · 2026-06-05 21:47
jannauyuka: is there a reason that https://github.com/AsahiLinux/tuxvdmtool/pull/9 is a draft?
#asahi-dev · 2026-06-05 21:10
yukaI already added it to tuxvdmtool today so it should be rather easy to copy that
#asahi-dev · 2026-06-05 21:09
mildsunriseyuka: yes, the spmi controller driver is fair game, but hpm/tps9598x you should stay clear... the docs (https://asahilinux.org/docs/hw/peripherals/ace3/) should be enough to implement the spmi transport
#asahi-dev · 2026-06-05 19:20
yukaok so the spmi.c itself is already upstreamed. I would try to re-do the tps6598 transport part based on my tuxvdmtool code to stay clear of any copyright doubts
#asahi-dev · 2026-06-05 19:14
yukathx
#asahi-dev · 2026-06-05 19:12
chaos_princesshttps://github.com/mildsunrise/m1n1/commits/scratchpad/
#asahi-dev · 2026-06-05 19:11
yukamildsunrise, noopwafel: I couldn't immediately find any attempts to implement the spmi transport in m1n1, is this correct?
#asahi-dev · 2026-06-05 18:33
yukaI will test it later
#asahi-dev · 2026-06-05 18:33
yukaThen we also need to do that on the new spmi based ones, and then usb in u-boot might start working
#asahi-dev · 2026-06-05 18:33
yukaseems like it
#asahi-dev · 2026-06-05 18:29
yukadoes m1n1 do that via tps6598x_powerup?
#asahi-dev · 2026-06-05 18:28
yukaBut something needs to turn on the power?
#asahi-dev · 2026-06-05 18:26
jannauwithout hotplug
#asahi-dev · 2026-06-05 18:25
yukaHow does usb work in u-boot? I can't find any drivers for the apple,cd321x in the u-boot tree
#asahi-dev · 2026-06-05 17:07
svenlet's not do that
#asahi-dev · 2026-06-05 17:07
svenyeah no
#asahi-dev · 2026-06-05 17:01
nickchanpossibly through an exported function in the sart driver
#asahi-dev · 2026-06-05 17:00
nickchanabout the firmware revision, it should be possible to tell the firmware version type inside the sart driver from the bootloader entires but that's a hack of epic proportions
#asahi-dev · 2026-06-05 16:44
svenyeah, as i said, i likely just read the specification wrong
#asahi-dev · 2026-06-05 16:43
NickChan[m]that's per nvme specification but on m1 the way m1n1 uses nvme it's still 0x1000 bytes outputted
#asahi-dev · 2026-06-05 16:42
NickChan[m]supposedly cdw12 = 1 would output 0x2000 bytes worth of data
#asahi-dev · 2026-06-05 16:42
NickChan[m]cdw12 is definitely bug
#asahi-dev · 2026-06-05 16:03
jannaudid someone make sweeps over the nvme mmio space and compared < 15 with >= 15?
#asahi-dev · 2026-06-05 16:02
sveni guess new compatible it is then
#asahi-dev · 2026-06-05 16:02
svenboth are too late for us to determine the right mmio offsets though
#asahi-dev · 2026-06-05 16:02
svensounds like either a regular nvme command or one of those special debug nvme commands then
#asahi-dev · 2026-06-05 16:01
jannauprinted just before it initialises namespaces
#asahi-dev · 2026-06-05 16:01
svenand that's too late :(
#asahi-dev · 2026-06-05 16:00
jannaumacos boot logs contain the FW version but it seems to be queried over nvme itself
#asahi-dev · 2026-06-05 15:59
sventhere was no way to tell the fw version from inside the nvme driver directly, was there?
#asahi-dev · 2026-06-05 15:58
svenokay, some real hw change then i guess
#asahi-dev · 2026-06-05 15:58
yukaon 26.5.1
#asahi-dev · 2026-06-05 15:58
yukaM3 is fine
#asahi-dev · 2026-06-05 15:54
jannauSErrors on M4 with 15.1 and 26.0 with the changes from the gist so hopefully a m4 and later device change and not another firmware change affecting all devices
#asahi-dev · 2026-06-05 15:37
yukaLet me check m3
#asahi-dev · 2026-06-05 15:36
svenwould be very annoying if that also changed on m1/2/3 with that fw
#asahi-dev · 2026-06-05 15:36
yukaFW 26.5.1
#asahi-dev · 2026-06-05 15:32
yukaor nvme_base + NVME_ASQ
#asahi-dev · 2026-06-05 15:32
svenugh
#asahi-dev · 2026-06-05 15:32
yukaSErrors when writing to nvme_base + NVME_MAX_PEND_CMDS_CTRL
#asahi-dev · 2026-06-05 15:31
svenwhat kind of errors?
#asahi-dev · 2026-06-05 15:31
yukaJust tried it again on the A18 Pro and I get errors in multiple place
#asahi-dev · 2026-06-05 15:30
yukaYes, that
#asahi-dev · 2026-06-05 15:30
svenwhat makes you think that? does changing the two register offsets not make them work?
#asahi-dev · 2026-06-05 15:29
sveneven more annoying :(
#asahi-dev · 2026-06-05 15:29
yukaLater devices (or firmware) are substantially different I think
#asahi-dev · 2026-06-05 15:28
jannauiirc 15.0 (could be 15.1)

plus ›