#
#asahi-dev · 2022-11-27 21:22
ChaosPrincessty, ill try handling that one 'correctly' and seeing what will happen
#asahi-dev · 2022-11-27 21:21
povikdefinitely might
#asahi-dev · 2022-11-27 21:20
ChaosPrincessyou think that might be important?
#asahi-dev · 2022-11-27 21:20
ChaosPrincessgp.PIN[0x8b].val = 0x76a03 # - this line is enabling something that looks like an and gate on chip select, macos pulls it on an off with every packet
#asahi-dev · 2022-11-27 21:19
poviknot interspersed with I/O code, that makes it hard to read
#asahi-dev · 2022-11-27 21:18
povikyou should really do the hex<->binary conversion before and after-the-fact
#asahi-dev · 2022-11-27 21:18
povikjust an idea...
#asahi-dev · 2022-11-27 21:18
povikthey can delimit a transaction and so
#asahi-dev · 2022-11-27 21:18
ChaosPrincessoh
#asahi-dev · 2022-11-27 21:18
povikyou might need to do them right
#asahi-dev · 2022-11-27 21:18
povikyes, but the device might be sensitive on chip select transitions
#asahi-dev · 2022-11-27 21:17
ChaosPrincessand it does send and receive correct data during firmware upload phase
#asahi-dev · 2022-11-27 21:17
ChaosPrincessthat spi naturally comes out of reset with cs auto-enable on
#asahi-dev · 2022-11-27 21:16
ChaosPrincessm1 mbp, j293
#asahi-dev · 2022-11-27 21:16
povikthat asserts chip select among other things, right?
#asahi-dev · 2022-11-27 21:16
povikspi.CTRL.val = 0xd
#asahi-dev · 2022-11-27 21:15
poviki mean what machine
#asahi-dev · 2022-11-27 21:15
ChaosPrincesswell, the digitizer part, it is connected to spi0
#asahi-dev · 2022-11-27 21:15
ChaosPrincesstouchbar
#asahi-dev · 2022-11-27 21:14
povikwhat device is that?
#asahi-dev · 2022-11-27 21:09
ChaosPrincessthe init code: https://pst.klgrth.io/paste/jgxye
#asahi-dev · 2022-11-27 21:08
ChaosPrincessim trying to boot up the touchbar via m1n1, and the firmware upload seems to be working, but once it is done, trying to read reports does not work, and it seems to still speak the firmware upload protocol. Anyone have ideas as to what part of the initialization i might be missing? the spi data stream is the same as from macos.
#asahi-dev · 2022-11-27 18:48
povikand reserving those and considering it auxiliary firmware :p
#asahi-dev · 2022-11-27 18:48
povikrather than trying to figure out an fdt schema for these to some degree opaque pieces of data i figured we could have m1n1 prepare the final structures sio wants a pointer to
#asahi-dev · 2022-11-27 18:47
povikno, the data is embedded in sio properties such as map-range=, dmashim=, and device-type=
#asahi-dev · 2022-11-27 18:40
jannauhow are those annotated in the ADT? is that aop segment __ETEXT?
#asahi-dev · 2022-11-27 18:36
povikwhich i do too (with some optimization) but i left the unaligned sizes in DT
#asahi-dev · 2022-11-27 18:36
povikmacos allocated a full page for each piece of it
#asahi-dev · 2022-11-27 18:36
povikthis is some auxiliary firmware data which can be freely placed (in iova space too)
#asahi-dev · 2022-11-27 18:33
jannauit of course shouldn't hit an infinite loop but it certainly wasn't designed for this
#asahi-dev · 2022-11-27 18:31
jannaudon't do that, dart can only handle whole pages for now. how does macos deal with that? does it map with sub-page protection?
#asahi-dev · 2022-11-27 18:26
poviknot sure if this should be fixed but i seem to 've hit an infinite loop in apple_dart_setup_resv_locked reserving a region (in DT) which is not a multiple of iommu granule in size
#asahi-dev · 2022-11-27 17:52
svenofc I’m nowhere near my M1s to test that :D
#asahi-dev · 2022-11-27 17:51
svenduh, I think I just realized how to fix that dwc3 race: just create a local copy of dr_desired_role inside the spinlock at the beginning of __dwc3_set_mode
#asahi-dev · 2022-11-27 16:12
svenyou can also coerce/train most ML models with 16bit precision and still get decent performance fwiw
#asahi-dev · 2022-11-27 16:05
povikbut if you feel like it's a good demonstration, go ahead!
#asahi-dev · 2022-11-27 16:05
poviki wasn't being exactly serious
#asahi-dev · 2022-11-27 15:36
eilnthat's really fitting. looking into it rn
#asahi-dev · 2022-11-27 15:24
povikthough at fp16 some audiophiles may complain about the quantization noise
#asahi-dev · 2022-11-27 15:23
povikyou can write a convolver so that we delegate all speaker DSP to it :p
#asahi-dev · 2022-11-27 14:58
eilnbest for chaining i.e. doing the last calculation with a different input again
#asahi-dev · 2022-11-27 14:57
eilnlow precision (fp16) basic number crunching
#asahi-dev · 2022-11-27 14:55
eilndon't know what i should be focusing on rn
#asahi-dev · 2022-11-27 14:53
eilnrealistically what processes could leverage the ane
#asahi-dev · 2022-11-27 14:05
joskeso rebooting every time
#asahi-dev · 2022-11-27 14:05
joskeright now not using s2idle because then I lose the right channel ;-)
#asahi-dev · 2022-11-27 14:04
joskechadmed: povik: looking forward to that fix :-)
#asahi-dev · 2022-11-27 13:17
chadmed_povik: works a treat
#asahi-dev · 2022-11-27 12:44
povikyes. it's ugly but it will work
#asahi-dev · 2022-11-27 12:44
chadmed_so have like a tas2764_hw_{suspend,resume} that deals with the chip and then use the asoc suspend/resume just to save and restore the regs?

plus ›