#
…

2022-01-28

00:17chadmed has joined #asahi-dev
00:35yuyichao_ has joined #asahi-dev
00:53nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:15chadmed has quit [Quit: Konversation terminated!]
01:17chadmed has joined #asahi-dev
01:31pFalken has quit [Ping timeout: 480 seconds]
01:42pFalken has joined #asahi-dev
03:06PhilippvK has joined #asahi-dev
03:23nyx_o has joined #asahi-dev
03:26nirgo has joined #asahi-dev
04:02nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:42BenPetterborg[m] has joined #asahi-dev
05:57nirgo has joined #asahi-dev
06:20nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:47the_lanetly_052 has joined #asahi-dev
07:21jannaustill does not work with all dart-disp0 as reserved regions/mappings
07:22jannausven: I install the reserved mappings in apple_dart_setup_translation() before apple_dart_hw_enable_translation()
07:23jannauusing apple_dart_map_pages() which does not complains, addresses and sinze is what I expect
07:23svenhrm, do you get dart pagefaults?
07:24svenand doesn’t the dart driver disable all translations during probe time?
07:27jannauif the page faults are logged I don't see anything. kernel seems to hang after dcp-piodma attaches to the iommu
07:36jannauyes, it resets during probe so the simple solution to do this during device attache will not work
07:37* jannaushould have looked closer at the other patches in the thread
08:06bpye has quit [Quit: The Lounge - https://thelounge.chat]
08:11bpye has joined #asahi-dev
08:12svenif the framebuffer dart needs more than just the framebuffer maybe we need to introduce something like apple,keep-entries in the DT instead that just recreate whatever mappings it finds during probe time whenever a domain is attached
08:12svenand leaves that SID alone otherwise during probe time and also only allows DMA and UNMANAGED domains
08:13sventhat feels like a bit of hack though but oh well :-(
08:18jannauit's not too bad, there are two regions for for stream 0 and one region for stream 4
08:19ChaosPrincess has quit [Quit: WeeChat 3.4]
08:19ChaosPrincess has joined #asahi-dev
08:21jannauall are described in "/chosen/carveout-memory-map" and I have m1n1 code which verifies that the region is continously mapped in the dart stream we expect
08:21MajorBiscuit has joined #asahi-dev
08:22jannaucurrently just by checking if the last io address translates to the last physical address
08:24jannauI've have not yet thouroughly checked if the region ids are stable over devices/iboot versions
08:27svenhm.. i wonder what those non-framebuffer regions are
08:28sveneven for the DCP DART (the locked one) most (all?) of the mapped regions are just the DCP firmware sections described in the ADT fwiw
08:50jannauboth additional buffers are all 0 after iboot
09:03jannaustill zero after a full linux boot, so those might not be used/needed (for normal operation)
09:13littledust3403[m] is now known as MarxLandRover[m]
09:16MarxLandRover[m] is now known as NotHere[m]
09:58the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:04the_lanetly_052 has joined #asahi-dev
10:13the_lanetly_052 has quit [Ping timeout: 480 seconds]
12:43ViniciusSantos[m] has joined #asahi-dev
12:58svenjannau: https://f.svpe.de/0be7ceb398bd41885a0bb017f6ff7b01439a39d209ac783c5d62e57253c426a6_locked-darts-braindump.txt just wrote that during my lunch break, hope it makes at least some sense
13:00j`eysven: "you can generally attach a single to domain" a single device?
13:01svenah, no
13:01j`eyor just remove 'to' in that sentence actually
13:01svenmy lunch break is over now though ;)
13:04os0 has quit [Quit: The Lounge - https://thelounge.chat]
13:05os has joined #asahi-dev
13:46alyssasven: "apple,keep-entries in the DT instead that just recreate whatever mappings it finds"
13:46alyssaso... apple,force-locked then? :-p
14:01kov has joined #asahi-dev
14:50nirgo has joined #asahi-dev
14:58svenalyssa: one half of that, yes
15:04nirgo has quit [Ping timeout: 480 seconds]
15:09jbowen has quit [Quit: Lost terminal]
15:48the_lanetly_052 has joined #asahi-dev
15:55the_lanetly_052__ has joined #asahi-dev
16:01the_lanetly_052 has quit [Ping timeout: 480 seconds]
16:12mazis there a branch with an SMC driver somewhere? I may try and have a go at implementing PCIe hotplug during the weekend.
16:12j`eyno, marcan never pushed it
16:13alyssai had a big ol' pile of hacks somewhere but um
16:19espo has joined #asahi-dev
16:45jbowen has joined #asahi-dev
16:57espo_ has joined #asahi-dev
17:04espo has quit [Ping timeout: 480 seconds]
17:21rafaelmartins has quit [Quit: https://rgm.io/]
17:21rafaelmartins has joined #asahi-dev
18:03MajorBiscuit has quit [Quit: WeeChat 3.3]
18:05the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:23espo_ has quit [Quit: Leaving]
18:27alyssai accidentally hit backspace and gnome made the annoying chimg..
18:27alyssa...on the internal speaker
18:27alyssawhy did it probe this time when it didn't in the past? i don't know!
18:27alyssapovik: I smell a race
18:27alyssacs42l42 probed fine this time around
18:28alyssatas2770 still unhappy, tapple-mca still spams about dx DMA channels, um
18:28alyssaapple-admac added to iommu before cs42l, maybe that's different
18:28tpw_rulesalyssa: what system?
18:28alyssatpw_rules: M1 Mini
18:28alyssaonly thing I can think of is I just did a warm reboot from macOS
18:28tpw_rulesi've noticed some sort of race condition too. i only get sound maybe one out of every 5 reboots
18:29alyssaso maybe there's early hardware init that macOS did
18:29tpw_rulesi didn't try to diagnose, but the problem isn't just you
18:29alyssaand hopefully 12.x iBoot does this
18:29tpw_rulesi was on 12.0.1 so it must not
18:29poviki am running 11.x fwiw
18:30alyssadefinitely some nondeterminism happening
18:30alyssathat causes cs42l42 not to probe, sometimes
18:30povikcan't say i am happy about that, to be honest
18:31alyssa(specifcally causes all communication with cs42l42 to fail, starting with the ID/revision reads.)
18:31alyssahow does the AP talk to cs42l? is that i2c?
18:32tpw_rulesit seems to probe to me, just no sound comes out
18:32povikalyssa: yes
18:32alyssaso maybe an i2c issue?
18:37povikyours is a failure mode i haven't seen yet
18:37povikmaybe i should try running out of hypervisor a couple times
18:40poviktpw_rules: post dmesg whenever you get to it
18:42alyssalatest issue blocking valhall support in mesa ... my uh type-c ethernet is pretty dead
18:47povikhmm, ran 5 times out of hypervisor, didn't see the probe fails
18:49alyssapovik: at any rate I am currently, err, testing the driver with the Rent soundtrack
18:49poviklet me look that up
18:50alyssathey call me, they call me, Mimi!
18:53povikit wasn't for me :-p
18:53poviklook who showed up
18:53povik> [ 1.379196] tas2770 1-0031: ASoC: error at soc_component_write_no_lock on tas2770.1-0031 for register: [0x00000001] -6
18:53poviki wanted to chase that the other day but didn't get any
18:54alyssa(it was not a recommendation. unless you like bisexual 90s Queen Elsa)
18:54povikfigured
19:04povikwho wants to bet it's this write
19:09povik"Once all supplies are stable the SDZ pin can be set high to initialize the part. After a hardware or software reset additional commands to the device should be delayed for 1 mS to allow the OTP to load."
19:09povikfrom tas2770 datasheet
19:10povikyeah, that's not happening here
19:11povikdoesn't help us with the cs42l42 probe unfortunatelly
19:29kettenisyeah, you defenitely need a 1ms after powering the tas5770 chip up
19:29kettenisotherwise it doesn't respond
19:32tpw_rulesmaybe 2ms just to be safe? how accurate is msleep
19:34poviki assume it's guaranteed to be at least 1 ms
19:37Glanzmanntpw_rules: I don't have all day.
19:38jannauit will not be shorter but can much longer, iirc another function is recommended for low single digit msleep
19:39jannauusleep_range()
20:27poviki wonder what that unused TAS2770_MDELAY was there for in the driver
20:28povikanyway will switch to usleep_range then
21:09povikalyssa: when you have the chance please try p.read32(0x23d1f002c) after fresh boot and send me the value
21:09povikthat's the cs42l reset gpio
21:09povikimprobable there will be a surprise but worth checking
23:08commandoline_ has quit [Quit: Bye!]
23:08commandoline has joined #asahi-dev
…