#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:14
povikwhat device is that?#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: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: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 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: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 12:44
povikyes. it's ugly but it will work#asahi-dev · 2022-11-27 12:43
povikthe issue is that SDZ is currently raised in probe of codec as a sound card component, but probably no issue in changing it for consistence#asahi-dev · 2022-11-27 12:41
povikthat could be the two stages to go with in the kettenis' approach#asahi-dev · 2022-11-27 12:40
povikwe could split it into resume of codec as kernel device and codec as sound card component#asahi-dev · 2022-11-27 12:39
povikshouldn't matter :p#asahi-dev · 2022-11-27 12:39
povikno idea#asahi-dev · 2022-11-27 12:36
povikkettenis: i don't see how to convince ASoC of the two stages unfortunately#asahi-dev · 2022-11-27 12:35
povikthat would be one solution#asahi-dev · 2022-11-27 12:35
povikthere's been proposals on the list to create a reset controller representation out of such gpios#asahi-dev · 2022-11-27 12:35
povikbut this is a gpio without the reset subsystem involved#asahi-dev · 2022-11-27 12:34
povikthe issue is doing it nicely. reset subsystem does this for shared resets#asahi-dev · 2022-11-27 12:34
povikof course every codec is a separate device in kernel model#asahi-dev · 2022-11-27 12:33
povikah it's ASoC calling tas2764_codec_resume#asahi-dev · 2022-11-27 12:32
povikmeaning general kernel PM code#asahi-dev · 2022-11-27 12:32
povikright. will kernel let us easily do it though?#asahi-dev · 2022-11-27 12:31
povikthe second option could be short term workaround#asahi-dev · 2022-11-27 12:30
povikor we shouldn't pull it down at all#asahi-dev · 2022-11-27 12:30
povikthere either needs to be a bit of logic that pulls SDZ low after all codecs agree on it (like is done elsewhere in kernel in dealing with shared resets)#asahi-dev · 2022-11-27 12:25
povikbut it breaks down during the suspend/resume cycle#asahi-dev · 2022-11-27 12:25
povikthat works out during boot, since the first codec to probe pulls down the reset line for all#asahi-dev · 2022-11-27 12:24
povikso the first codec in probe wins in obtaining the gpio reference, others on the same line fail (but that's ok, since the gpio is optional)#asahi-dev · 2022-11-27 12:23
povikchadmed_: that's a known issue due to not properly handling the reset gpio line being shared between codecs#asahi-dev · 2022-11-27 12:21
povikjannau: yes. the sio PR should have a newer version#asahi-dev · 2022-11-26 22:04
povikpushed the kboot.c segment-ranges code to https://github.com/AsahiLinux/m1n1/pull/266#asahi-dev · 2022-11-26 21:23
povik:)#asahi-dev · 2022-11-26 21:23
povik[ 0.500180] apple-sio 236400000.sio: RTKit: Initializing (protocol version 11)#asahi-dev · 2022-11-26 21:18
povikah i am not adding the memory-region prop to sio node *facepalm*#asahi-dev · 2022-11-26 21:17
povikit gets to booting the SIO and a DART miss#asahi-dev · 2022-11-26 21:17
povikyes#asahi-dev · 2022-11-26 21:13
povikwill try to debug a bit#asahi-dev · 2022-11-26 21:13
povikstill no mapping after making that call unconditional, hm#asahi-dev · 2022-11-26 21:13
povikjannau: maybe even asc-specific compatibles in addition if we need special handling in future to fix something#asahi-dev · 2022-11-26 21:07
povikor is that the custom?#asahi-dev · 2022-11-26 21:07
povikshouldn't it be something other than apple,dcp since that's exactly the dcp binding?#asahi-dev · 2022-11-26 21:05
povikbut the io_pgtable_dart_setup_locked needs to remain conditioned, i suppose#asahi-dev · 2022-11-26 21:04
povikTODO: error handling! :p