#
…

2022-11-27

00:00capta1nt0ad has quit [Quit: Konversation terminated!]
00:01capta1nt0ad has joined #asahi-dev
00:05capta1nt0ad has quit [Remote host closed the connection]
00:08capta1nt0ad has joined #asahi-dev
00:12capta1nt0ad has quit []
00:29capta1nt0ad has joined #asahi-dev
00:30capta1nt0ad has quit [Remote host closed the connection]
00:53gff_ has quit [Read error: Connection reset by peer]
00:54gff_ has joined #asahi-dev
01:01theKH has joined #asahi-dev
01:42theKH has quit [Ping timeout: 480 seconds]
01:43weitcis has joined #asahi-dev
01:51weitcis has quit [Ping timeout: 480 seconds]
01:52theKH has joined #asahi-dev
01:55theKH has quit [Remote host closed the connection]
01:55theKH has joined #asahi-dev
02:08theKH has quit [Ping timeout: 480 seconds]
02:14theKH has joined #asahi-dev
02:17theKH has quit [Remote host closed the connection]
02:17theKH has joined #asahi-dev
02:55theKH has quit [Ping timeout: 480 seconds]
03:24gff_ has quit [Read error: Connection reset by peer]
03:25gff_ has joined #asahi-dev
03:49cynthia has quit [Server closed connection]
03:49cynthia has joined #asahi-dev
03:50fmstrat has quit [Server closed connection]
03:50fmstrat has joined #asahi-dev
03:54_whitelogger has joined #asahi-dev
03:55nirya has quit [Server closed connection]
03:55nirya has joined #asahi-dev
03:57TheLink has quit [Server closed connection]
03:57TheLink has joined #asahi-dev
04:01cy8aer has quit [Server closed connection]
04:02cy8aer has joined #asahi-dev
04:02foxtrot has quit [Server closed connection]
04:03Method_ has quit [Server closed connection]
04:04foxtrot has joined #asahi-dev
04:04Method has joined #asahi-dev
04:05ChaosPrincess has quit [Server closed connection]
04:05ChaosPrincess has joined #asahi-dev
04:06Gaelan has quit [Server closed connection]
04:06Gaelan has joined #asahi-dev
04:09lewurm_ has quit [Server closed connection]
04:09jix__ has quit [Server closed connection]
04:09lewurm_ has joined #asahi-dev
04:10jix__ has joined #asahi-dev
04:10nico_32_ has quit [Server closed connection]
04:11nico_32 has joined #asahi-dev
04:12phire has quit [Server closed connection]
04:12phire has joined #asahi-dev
04:13null has quit [Server closed connection]
04:14chadmed has quit [Server closed connection]
04:14chadmed has joined #asahi-dev
04:14null has joined #asahi-dev
04:14esden has quit [Server closed connection]
04:15esden has joined #asahi-dev
04:15null is now known as Guest29
04:15robher has quit [Server closed connection]
04:15robher has joined #asahi-dev
04:20Tramtrist has quit [Server closed connection]
04:21Tramtrist has joined #asahi-dev
04:21rmk has quit [Server closed connection]
04:21rmk has joined #asahi-dev
04:28flying_sausages_ has quit [Server closed connection]
04:29flying_sausages has joined #asahi-dev
04:35balrog has quit [Server closed connection]
04:36mattgirv has quit [Server closed connection]
04:36mattgirv has joined #asahi-dev
04:38balrog has joined #asahi-dev
04:38winter has quit [Server closed connection]
04:39winter has joined #asahi-dev
04:42khilman has quit [Server closed connection]
04:42khilman has joined #asahi-dev
04:49johey has quit [Server closed connection]
04:50johey has joined #asahi-dev
04:51cylm has joined #asahi-dev
04:53kit_ty_kate has quit [Server closed connection]
04:53jonmasters_ has quit [Server closed connection]
04:53jonmasters_ has joined #asahi-dev
04:53kit_ty_kate has joined #asahi-dev
04:54_alice has quit [Server closed connection]
04:54_alice has joined #asahi-dev
04:54cylm_ has joined #asahi-dev
04:55liszt has quit [Server closed connection]
04:55liszt has joined #asahi-dev
04:55arekm has quit [Server closed connection]
04:55arekm has joined #asahi-dev
04:56jbowen has quit [Server closed connection]
04:56jbowen has joined #asahi-dev
04:57qyousef has quit [Server closed connection]
04:57qyousef has joined #asahi-dev
05:00Puto has quit [Server closed connection]
05:00Puto has joined #asahi-dev
05:01cylm has quit [Ping timeout: 480 seconds]
05:06austriancoder has quit [Server closed connection]
05:06austriancoder has joined #asahi-dev
05:18msteffen has quit [Server closed connection]
05:18msteffen has joined #asahi-dev
05:19XeR has quit [Server closed connection]
05:19XeR has joined #asahi-dev
05:20daniels has quit [Server closed connection]
05:20daniels has joined #asahi-dev
05:36Avaflow has quit [Server closed connection]
05:36Avaflow has joined #asahi-dev
05:37psanford has quit [Server closed connection]
05:37psanford has joined #asahi-dev
05:43n1c has quit [Server closed connection]
05:43n1c has joined #asahi-dev
05:47kevans91 has quit [Server closed connection]
05:48kevans91 has joined #asahi-dev
06:01tired has quit [Server closed connection]
06:01tired has joined #asahi-dev
06:03VinDuv has quit [Server closed connection]
06:03VinDuv has joined #asahi-dev
06:05Swiftloke has quit [Server closed connection]
06:07Swiftloke has joined #asahi-dev
06:09refi64 has quit [Server closed connection]
06:09refi64 has joined #asahi-dev
06:16JTL has quit [Server closed connection]
06:16JTL has joined #asahi-dev
06:28yuyichao has quit [Server closed connection]
06:28yuyichao has joined #asahi-dev
06:32gtk2 has quit [Server closed connection]
06:33gtk2 has joined #asahi-dev
06:33princesszoey has quit [Server closed connection]
06:33steffen[m] has quit [Server closed connection]
06:33steffen[m] has joined #asahi-dev
06:34princesszoey has joined #asahi-dev
06:35nuup has quit [Server closed connection]
06:36nuup has joined #asahi-dev
06:38akemin_dayo has quit [Server closed connection]
06:38akemin_dayo has joined #asahi-dev
06:40vivithecanine has quit [Server closed connection]
06:40vivithecanine has joined #asahi-dev
06:41tumblingweed has quit [Server closed connection]
06:42tumblingweed has joined #asahi-dev
07:00arnd has quit [Server closed connection]
07:00arnd has joined #asahi-dev
07:02gladiac has quit [Quit: k thx bye]
07:13turo has quit [Server closed connection]
07:13turo has joined #asahi-dev
07:13Graypup_ has quit [Server closed connection]
07:13Graypup_ has joined #asahi-dev
07:47Retr0id has quit [Server closed connection]
07:47Retr0id has joined #asahi-dev
07:51leitao has joined #asahi-dev
07:53SSJ_GZ has joined #asahi-dev
07:56djorz has quit [Server closed connection]
07:58jluthra has quit [Server closed connection]
07:58maximbaz has quit [Server closed connection]
07:58maximbaz has joined #asahi-dev
07:58jluthra has joined #asahi-dev
08:00leitao has quit [Ping timeout: 480 seconds]
08:13_jannau_ has quit [Server closed connection]
08:14_jannau_ has joined #asahi-dev
08:20ah- has quit [Server closed connection]
08:20ah- has joined #asahi-dev
08:24tanty has quit [Server closed connection]
08:24tanty has joined #asahi-dev
09:03chadmeds2idle is borked on tas2764. the same four codecs every single time fail on regcache_sync()
09:04chadmedonly the left tweeter and left woofer 1 make it through, the rest fail consistently
09:20jannausigh, backlight brightness nits to dac mapping looks logarithmic but my fitted logarithm has an oscillating error in both directions
10:15chadmed_ has joined #asahi-dev
10:19leitao has joined #asahi-dev
10:27leitao has quit [Ping timeout: 480 seconds]
10:58gladiac has joined #asahi-dev
10:58chadmed_ has quit [Read error: No route to host]
11:03chadmed_ has joined #asahi-dev
11:30chadmed_it looks like the chips just disappear off the bus. the regcache sync fails with -ENXIO, and tas2764->sdz_gpio doesnt exist upon resume...
11:31chadmed_resetting them before trying to restore the registers doesnt help
11:33cylm_ has quit [Quit: WeeChat 3.6]
11:52leitao has joined #asahi-dev
11:52jannaupovik: have you done any fixups for "m1n1.adt: Parse 'segment-ranges' of coprocessor nodes"? it seems to break HV boot due to what appears an adt parse problem for pmgr
12:02leitao has quit [Ping timeout: 480 seconds]
12:21povikjannau: yes. the sio PR should have a newer version
12:23povikchadmed_: that's a known issue due to not properly handling the reset gpio line being shared between codecs
12:24povikso 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)
12:25povikthat works out during boot, since the first codec to probe pulls down the reset line for all
12:25povikbut it breaks down during the suspend/resume cycle
12:28chadmed_so i take it that means pulling SDZ low will never work on suspend for us?
12:30povikthere 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)
12:30povikor we shouldn't pull it down at all
12:31povikthe second option could be short term workaround
12:31kettenisor the resume process should be done in two stages
12:32kettenisfirst stage restores power; second stage restores the registers
12:32povikright. will kernel let us easily do it though?
12:32povikmeaning general kernel PM code
12:33povikah it's ASoC calling tas2764_codec_resume
12:33chadmed_aiui asoc spawns a tas2764 driver for each codec, so option 1 (the good option) would be quite hard
12:33chadmed_but sw shutdown quiescent current is 10x hw shutdown on two voltage rails so we really should get it working properly
12:34povikof course every codec is a separate device in kernel model
12:34povikthe issue is doing it nicely. reset subsystem does this for shared resets
12:35povikbut this is a gpio without the reset subsystem involved
12:35povikthere's been proposals on the list to create a reset controller representation out of such gpios
12:35povikthat would be one solution
12:36povikkettenis: i don't see how to convince ASoC of the two stages unfortunately
12:38chadmed_we have the benefit of not officially supporting speakers yet (and probably for a while given we havent even started working on userspace safety) so theres time to work it out
12:38axt_ has joined #asahi-dev
12:39chadmed_do we know if macos puts them into hw shutdown?
12:39povikno idea
12:39povikshouldn't matter :p
12:40chadmed_another 1UP over macos perhaps :D
12:40povikwe could split it into resume of codec as kernel device and codec as sound card component
12:41povikthat could be the two stages to go with in the kettenis' approach
12:42axt_ has quit []
12:43povikthe 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
12:44chadmed_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?
12:44povikyes. it's ugly but it will work
13:04lawrence has joined #asahi-dev
13:13chadmed_ has quit [Remote host closed the connection]
13:16chadmed_ has joined #asahi-dev
13:17chadmed_povik: works a treat
13:18chadmed_ has quit [Remote host closed the connection]
13:20chadmed_ has joined #asahi-dev
13:38roxfan has quit [Ping timeout: 480 seconds]
13:40chadmed_ has quit [Remote host closed the connection]
13:46compassion has quit [Quit: lounge quit]
13:48compassion has joined #asahi-dev
13:48joske has joined #asahi-dev
13:50___nick___ has joined #asahi-dev
13:50___nick___ has quit []
13:51kujeger has quit [Quit: ZNC 1.8.2 - https://znc.in]
13:52___nick___ has joined #asahi-dev
13:54joske has quit [Quit: Leaving]
13:55leitao has joined #asahi-dev
13:56joske has joined #asahi-dev
14:01compassion has quit [Quit: lounge quit]
14:01compassion has joined #asahi-dev
14:02compassion has quit []
14:03compassion has joined #asahi-dev
14:03leitao has quit [Ping timeout: 480 seconds]
14:04joskechadmed: povik: looking forward to that fix :-)
14:05joskeright now not using s2idle because then I lose the right channel ;-)
14:05joskeso rebooting every time
14:16joske has quit [Remote host closed the connection]
14:19joske has joined #asahi-dev
14:31joske has quit [Remote host closed the connection]
14:33joske has joined #asahi-dev
14:40zalyx has quit [Quit: later alligator]
14:40zalyx has joined #asahi-dev
14:45joske has quit [Quit: Leaving]
14:52eiln has joined #asahi-dev
14:53eilnrealistically what processes could leverage the ane
14:55eilndon't know what i should be focusing on rn
14:57eilnlow precision (fp16) basic number crunching
14:58eilnbest for chaining i.e. doing the last calculation with a different input again
15:23povikyou can write a convolver so that we delegate all speaker DSP to it :p
15:24povikthough at fp16 some audiophiles may complain about the quantization noise
15:31roxfan has joined #asahi-dev
15:36eilnthat's really fitting. looking into it rn
15:40hir0pro has joined #asahi-dev
15:55eiln has quit [Remote host closed the connection]
15:56leitao has joined #asahi-dev
16:04hir0pro has quit [Quit: hir0pro]
16:05leitao has quit [Ping timeout: 480 seconds]
16:05poviki wasn't being exactly serious
16:05povikbut if you feel like it's a good demonstration, go ahead!
16:08eiln has joined #asahi-dev
16:09eiln has quit []
16:12svenyou can also coerce/train most ML models with 16bit precision and still get decent performance fwiw
17:13hir0pro has joined #asahi-dev
17:51svenduh, 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
17:52svenofc I’m nowhere near my M1s to test that :D
17:58leitao has joined #asahi-dev
17:59leitao has quit [Read error: No route to host]
18:04hir0pro has quit [Quit: hir0pro]
18:05cylm has joined #asahi-dev
18:26poviknot 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
18:30yamii has quit [Quit: WeeChat 3.6]
18:31jannaudon't do that, dart can only handle whole pages for now. how does macos deal with that? does it map with sub-page protection?
18:31yamii has joined #asahi-dev
18:33jannauit of course shouldn't hit an infinite loop but it certainly wasn't designed for this
18:36povikthis is some auxiliary firmware data which can be freely placed (in iova space too)
18:36povikmacos allocated a full page for each piece of it
18:36povikwhich i do too (with some optimization) but i left the unaligned sizes in DT
18:40jannauhow are those annotated in the ADT? is that aop segment __ETEXT?
18:47povikno, the data is embedded in sio properties such as map-range=, dmashim=, and device-type=
18:48povikrather 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
18:48povikand reserving those and considering it auxiliary firmware :p
19:52leitao has joined #asahi-dev
20:00leitao has quit [Ping timeout: 480 seconds]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:08ChaosPrincessim 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.
21:14povikwhat device is that?
21:15ChaosPrincesswell, the digitizer part, it is connected to spi0
21:15poviki mean what machine
21:16povikspi.CTRL.val = 0xd
21:16povikthat asserts chip select among other things, right?
21:16ChaosPrincessm1 mbp, j293
21:17ChaosPrincessthat spi naturally comes out of reset with cs auto-enable on
21:17ChaosPrincessand it does send and receive correct data during firmware upload phase
21:18povikyes, but the device might be sensitive on chip select transitions
21:18povikyou might need to do them right
21:18povikthey can delimit a transaction and so
21:18povikjust an idea...
21:18povikyou should really do the hex<->binary conversion before and after-the-fact
21:19poviknot interspersed with I/O code, that makes it hard to read
21:20ChaosPrincessgp.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
21:20ChaosPrincessyou think that might be important?
21:21povikdefinitely might
21:22ChaosPrincessty, ill try handling that one 'correctly' and seeing what will happen
21:44ChaosPrincesspovik: did you know that you are amazing? cause if you didnt - you should know that you are.
21:48povikdid it work?
21:48ChaosPrincessnow to parse yet-another-apple's-hid-wrapper
22:41jannausven: copying dwc->dr_desired_role under dwc->lock and using the stack copy inside __dwc3_set_mode prevents the race. feel free to add my Tested-by:
22:47svenI haven’t even written that patch yet :D
22:47svenfeel free to submit your solution instead ;)
22:48svenill otherwise do it tomorrow once I’m back home
22:54fossdd has quit [Server closed connection]
22:54jannaunot really my solution I'll just did a little bit of typing like a monkey
22:54fossdd has joined #asahi-dev
22:55jannaubut I can reply to your mail
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:03SSJ_GZ has quit [Ping timeout: 480 seconds]
23:24lewurm has quit [Server closed connection]
23:24lewurm has joined #asahi-dev
23:30dabaum|2er0 has quit [Server closed connection]
23:42mps has quit [Server closed connection]
23:42mps has joined #asahi-dev
23:57Emantor has quit [Server closed connection]
23:57Emantor_ has joined #asahi-dev
…