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: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: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
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: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: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
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: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"
14:01kov has joined #asahi-dev
14:50nirgo has joined #asahi-dev
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: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:28tpw_rulesi've noticed some sort of race condition too. i only get sound maybe one out of every 5 reboots
18:31alyssa(specifcally causes all communication with cs42l42 to fail, starting with the ID/revision reads.)
18:53povik> [ 1.379196] tas2770 1-0031: ASoC: error at soc_component_write_no_lock on tas2770.1-0031 for register: [0x00000001] -6
19:04povikhttps://github.com/torvalds/linux/blob/871bfa02d08d9c0ed981c50082b7afd367d3700b/sound/soc/codecs/tas2770.c#L43
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:38jannauit will not be shorter but can much longer, iirc another function is recommended for low single digit msleep
21:09povikalyssa: when you have the chance please try p.read32(0x23d1f002c) after fresh boot and send me the value
23:08commandoline_ has quit [Quit: Bye!]
23:08commandoline has joined #asahi-dev