00:17
chadmed has joined #asahi-dev
00:35
yuyichao_ has joined #asahi-dev
00:53
nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:15
chadmed has quit [Quit: Konversation terminated!]
01:17
chadmed has joined #asahi-dev
01:31
pFalken has quit [Ping timeout: 480 seconds]
01:42
pFalken has joined #asahi-dev
03:06
PhilippvK has joined #asahi-dev
03:23
nyx_o has joined #asahi-dev
03:26
nirgo has joined #asahi-dev
04:02
nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:42
BenPetterborg[m] has joined #asahi-dev
05:57
nirgo has joined #asahi-dev
06:20
nirgo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:47
the_lanetly_052 has joined #asahi-dev
07:21
<
jannau >
still does not work with all dart-disp0 as reserved regions/mappings
07:22
<
jannau >
sven: I install the reserved mappings in apple_dart_setup_translation() before apple_dart_hw_enable_translation()
07:23
<
jannau >
using apple_dart_map_pages() which does not complains, addresses and sinze is what I expect
07:23
<
sven >
hrm, do you get dart pagefaults?
07:24
<
sven >
and doesn’t the dart driver disable all translations during probe time?
07:27
<
jannau >
if the page faults are logged I don't see anything. kernel seems to hang after dcp-piodma attaches to the iommu
07:36
<
jannau >
yes, it resets during probe so the simple solution to do this during device attache will not work
07:37
* jannau
should have looked closer at the other patches in the thread
08:11
bpye has joined #asahi-dev
08:12
<
sven >
if 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:12
<
sven >
and leaves that SID alone otherwise during probe time and also only allows DMA and UNMANAGED domains
08:13
<
sven >
that feels like a bit of hack though but oh well :-(
08:18
<
jannau >
it's not too bad, there are two regions for for stream 0 and one region for stream 4
08:19
ChaosPrincess has quit [Quit: WeeChat 3.4]
08:19
ChaosPrincess has joined #asahi-dev
08:21
<
jannau >
all 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:21
MajorBiscuit has joined #asahi-dev
08:22
<
jannau >
currently just by checking if the last io address translates to the last physical address
08:24
<
jannau >
I've have not yet thouroughly checked if the region ids are stable over devices/iboot versions
08:27
<
sven >
hm.. i wonder what those non-framebuffer regions are
08:28
<
sven >
even 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:50
<
jannau >
both additional buffers are all 0 after iboot
09:03
<
jannau >
still zero after a full linux boot, so those might not be used/needed (for normal operation)
09:13
littledust3403[m] is now known as MarxLandRover[m]
09:16
MarxLandRover[m] is now known as NotHere[m]
09:58
the_lanetly_052 has quit [Ping timeout: 480 seconds]
10:04
the_lanetly_052 has joined #asahi-dev
10:13
the_lanetly_052 has quit [Ping timeout: 480 seconds]
12:43
ViniciusSantos[m] has joined #asahi-dev
13:00
<
j`ey >
sven: "you can generally attach a single to domain" a single device?
13:01
<
j`ey >
or just remove 'to' in that sentence actually
13:01
<
sven >
my lunch break is over now though ;)
13:05
os has joined #asahi-dev
13:46
<
alyssa >
sven: "apple,keep-entries in the DT instead that just recreate whatever mappings it finds"
13:46
<
alyssa >
so... apple,force-locked then? :-p
14:01
kov has joined #asahi-dev
14:50
nirgo has joined #asahi-dev
14:58
<
sven >
alyssa: one half of that, yes
15:04
nirgo has quit [Ping timeout: 480 seconds]
15:09
jbowen has quit [Quit: Lost terminal]
15:48
the_lanetly_052 has joined #asahi-dev
15:55
the_lanetly_052__ has joined #asahi-dev
16:01
the_lanetly_052 has quit [Ping timeout: 480 seconds]
16:12
<
maz >
is there a branch with an SMC driver somewhere? I may try and have a go at implementing PCIe hotplug during the weekend.
16:12
<
j`ey >
no, marcan never pushed it
16:13
<
alyssa >
i had a big ol' pile of hacks somewhere but um
16:19
espo has joined #asahi-dev
16:45
jbowen has joined #asahi-dev
16:57
espo_ has joined #asahi-dev
17:04
espo has quit [Ping timeout: 480 seconds]
17:21
rafaelmartins has joined #asahi-dev
18:03
MajorBiscuit has quit [Quit: WeeChat 3.3]
18:05
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:23
espo_ has quit [Quit: Leaving]
18:27
<
alyssa >
i accidentally hit backspace and gnome made the annoying chimg..
18:27
<
alyssa >
...on the internal speaker
18:27
<
alyssa >
why did it probe this time when it didn't in the past? i don't know!
18:27
<
alyssa >
povik: I smell a race
18:27
<
alyssa >
cs42l42 probed fine this time around
18:28
<
alyssa >
tas2770 still unhappy, tapple-mca still spams about dx DMA channels, um
18:28
<
alyssa >
apple-admac added to iommu before cs42l, maybe that's different
18:28
<
tpw_rules >
alyssa: what system?
18:28
<
alyssa >
tpw_rules: M1 Mini
18:28
<
alyssa >
only thing I can think of is I just did a warm reboot from macOS
18:28
<
tpw_rules >
i've noticed some sort of race condition too. i only get sound maybe one out of every 5 reboots
18:29
<
alyssa >
so maybe there's early hardware init that macOS did
18:29
<
tpw_rules >
i didn't try to diagnose, but the problem isn't just you
18:29
<
alyssa >
and hopefully 12.x iBoot does this
18:29
<
tpw_rules >
i was on 12.0.1 so it must not
18:29
<
povik >
i am running 11.x fwiw
18:30
<
alyssa >
definitely some nondeterminism happening
18:30
<
alyssa >
that causes cs42l42 not to probe, sometimes
18:30
<
povik >
can't say i am happy about that, to be honest
18:31
<
alyssa >
(specifcally causes all communication with cs42l42 to fail, starting with the ID/revision reads.)
18:31
<
alyssa >
how does the AP talk to cs42l? is that i2c?
18:32
<
tpw_rules >
it seems to probe to me, just no sound comes out
18:32
<
povik >
alyssa: yes
18:32
<
alyssa >
so maybe an i2c issue?
18:37
<
povik >
yours is a failure mode i haven't seen yet
18:37
<
povik >
maybe i should try running out of hypervisor a couple times
18:40
<
povik >
tpw_rules: post dmesg whenever you get to it
18:42
<
alyssa >
latest issue blocking valhall support in mesa ... my uh type-c ethernet is pretty dead
18:47
<
povik >
hmm, ran 5 times out of hypervisor, didn't see the probe fails
18:49
<
alyssa >
povik: at any rate I am currently, err, testing the driver with the Rent soundtrack
18:49
<
povik >
let me look that up
18:50
<
alyssa >
they call me, they call me, Mimi!
18:53
<
povik >
it wasn't for me :-p
18:53
<
povik >
look who showed up
18:53
<
povik >
> [ 1.379196] tas2770 1-0031: ASoC: error at soc_component_write_no_lock on tas2770.1-0031 for register: [0x00000001] -6
18:53
<
povik >
i wanted to chase that the other day but didn't get any
18:54
<
alyssa >
(it was not a recommendation. unless you like bisexual 90s Queen Elsa)
19:04
<
povik >
who wants to bet it's this write
19:09
<
povik >
"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:09
<
povik >
from tas2770 datasheet
19:10
<
povik >
yeah, that's not happening here
19:11
<
povik >
doesn't help us with the cs42l42 probe unfortunatelly
19:29
<
kettenis >
yeah, you defenitely need a 1ms after powering the tas5770 chip up
19:29
<
kettenis >
otherwise it doesn't respond
19:32
<
tpw_rules >
maybe 2ms just to be safe? how accurate is msleep
19:34
<
povik >
i assume it's guaranteed to be at least 1 ms
19:37
<
Glanzmann >
tpw_rules: I don't have all day.
19:38
<
jannau >
it will not be shorter but can much longer, iirc another function is recommended for low single digit msleep
19:39
<
jannau >
usleep_range()
20:27
<
povik >
i wonder what that unused TAS2770_MDELAY was there for in the driver
20:28
<
povik >
anyway will switch to usleep_range then
21:09
<
povik >
alyssa: when you have the chance please try p.read32(0x23d1f002c) after fresh boot and send me the value
21:09
<
povik >
that's the cs42l reset gpio
21:09
<
povik >
improbable there will be a surprise but worth checking
23:08
commandoline_ has quit [Quit: Bye!]
23:08
commandoline has joined #asahi-dev