#
#asahi-dev · 2023-04-11 13:22
marcanI'm going to be annoyed if this is an outright firmware bug that macOS just never hits...
#asahi-dev · 2023-04-11 13:22
marcanit's dying switching to 60Hz mode
#asahi-dev · 2023-04-11 13:22
marcanso it works in 120Hz mode
#asahi-dev · 2023-04-11 13:22
marcanjannau: ha.
#asahi-dev · 2023-04-11 13:18
marcanI fixed the RT thing
#asahi-dev · 2023-04-11 13:18
marcanjannau: it's dying in set_digital_out_mode
#asahi-dev · 2023-04-11 13:16
_jannau_would show in the rt_bandwidth and map_reg cbs
#asahi-dev · 2023-04-11 13:14
_jannau_differences there would explain crashes
#asahi-dev · 2023-04-11 13:13
_jannau_have you checked if the reg layout is still the same? it differs between m1 and m2 iirc
#asahi-dev · 2023-04-11 13:08
marcanfixing the RT bandwidth stuff now
#asahi-dev · 2023-04-11 13:03
_jannau_at which point is this? before/after the modeset? do you have the last few calls / syslog messages before the crash?
#asahi-dev · 2023-04-11 12:58
marcanjannau: still the same crash, wasn't the dual pipe thing
#asahi-dev · 2023-04-11 12:51
marcanso custom
#asahi-dev · 2023-04-11 12:51
marcannah, needs to return true and write 0 to the argument
#asahi-dev · 2023-04-11 12:45
_jannau_so change get_tiling_state to a false callback
#asahi-dev · 2023-04-11 12:41
marcanand that's right after the callback, ok
#asahi-dev · 2023-04-11 12:40
marcanok so this is wrong, macOS gets disabled there
#asahi-dev · 2023-04-11 12:40
marcan[ 0.454192] apple-dcp 389c00000.dcp: RTKit: syslog message: PPipeDCP_H13P.cpp:17276: Dual pipe enabled offset 1
#asahi-dev · 2023-04-11 12:25
marcanyes
#asahi-dev · 2023-04-11 12:24
jannaupossibly. there should be 3 insertions before D116
#asahi-dev · 2023-04-11 12:23
marcanlots of stuff got inserted there
#asahi-dev · 2023-04-11 12:23
marcanD113 is... get_tiling_state?
#asahi-dev · 2023-04-11 12:22
jannauI didn't look at driver or firmware
#asahi-dev · 2023-04-11 12:22
marcansorry
#asahi-dev · 2023-04-11 12:22
marcanI'm dumb
#asahi-dev · 2023-04-11 12:22
marcanah wait no
#asahi-dev · 2023-04-11 12:22
jannauipc.py can handle both 12.3 and 13.2 but needs the FW version set via env variable for 13.2
#asahi-dev · 2023-04-11 12:21
marcanand D112 is still set_idle_caching_state_ap
#asahi-dev · 2023-04-11 12:20
marcanI confirmed D113 with the driver
#asahi-dev · 2023-04-11 12:20
jannauI left the call/callback list in trace_dcp as is
#asahi-dev · 2023-04-11 12:19
jannaumy dcp 13.2 m1n1 work tree is in https://github.com/jannau/m1n1/tree/m2_dptx
#asahi-dev · 2023-04-11 12:18
jannauI think create_nvram_service was inserted as D112
#asahi-dev · 2023-04-11 12:15
marcanD113 was always what I said I think?
#asahi-dev · 2023-04-11 12:15
jannauI guess either you or me have to look at macos traces
#asahi-dev · 2023-04-11 12:15
jannauso one of the new callbacks moving the others around. not used on m1*/m2
#asahi-dev · 2023-04-11 12:12
marcan[ 0.486208] apple-dcp 389c00000.dcp: FAR = 0x10000000590
#asahi-dev · 2023-04-11 12:12
marcan[ 0.486200] apple-dcp 389c00000.dcp: RTKit: co-processor has crashed
#asahi-dev · 2023-04-11 12:12
marcan[ 0.434703] apple-dcp 389c00000.dcp: RTKit: syslog message: ck_PCC2DBlm_v5.cpp:3306: Quiescing callback
#asahi-dev · 2023-04-11 12:11
marcanadded return true callbacks for all 3
#asahi-dev · 2023-04-11 12:10
marcanit's upload_trace_start
#asahi-dev · 2023-04-11 12:10
jannauplease add a noop callback for that, should be set_idle_caching_state_ap
#asahi-dev · 2023-04-11 12:06
marcangot fairly far though :)
#asahi-dev · 2023-04-11 12:06
marcanwhoops
#asahi-dev · 2023-04-11 12:06
marcan[ 0.949179] apple-dcp 389c00000.dcp: unexpected busy command channel
#asahi-dev · 2023-04-11 12:06
marcan[ 0.439608] apple-dcp 389c00000.dcp: received unknown callback D113
#asahi-dev · 2023-04-11 12:03
marcanjannau: dropped your dma-range limit since it's now implied
#asahi-dev · 2023-04-11 12:03
marcannow I can actually try DCP :)
#asahi-dev · 2023-04-11 12:03
marcanok, pushed with the fixes
#asahi-dev · 2023-04-11 12:02
jannaulol, I grepped for __builtin_clz and was then confused by 'return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;' in builtin-fls.h. I didn't parse that fully and assumed it is a macro taking the width of the argument into account
#asahi-dev · 2023-04-11 11:56
marcanjannau: lol there was another bug, we were always limiting ias to 32 due to fls() being 32-bit

plus ›