#
#asahi-dev · 2023-01-22 16:38
marcan[ 1.346562] apple-dcp 38bc00000.dcp: dcp_hotplug: connected: 1
#asahi-dev · 2023-01-22 16:38
marcan[ 1.346558] apple-dcp 38bc00000.dcp: DCP is_main_display: 1
#asahi-dev · 2023-01-22 16:38
marcan[ 1.346268] apple-dcp 38bc00000.dcp: DCP booted
#asahi-dev · 2023-01-22 16:38
marcanthis all happens before:
#asahi-dev · 2023-01-22 16:37
marcanfull trace: https://mrcn.st/p/W4Huoggy
#asahi-dev · 2023-01-22 16:37
marcanor something like that
#asahi-dev · 2023-01-22 16:37
marcanyeah but I think the issue is that there hasn't been a swap yet, so we don't have any atomic state
#asahi-dev · 2023-01-22 16:36
jannauthe backlight device gets only registered after dcp is (re)started and reports the current brightness
#asahi-dev · 2023-01-22 16:36
marcananyway, not a big deal, just fyi
#asahi-dev · 2023-01-22 16:36
marcanI'm guessing we might need to just cache backlight values somewhere before this stuff is ready?
#asahi-dev · 2023-01-22 16:35
marcanthis happens before dcp_poweron even
#asahi-dev · 2023-01-22 16:34
marcanWARN_ON(!crtc->state) is what is firing
#asahi-dev · 2023-01-22 16:33
marcanbacklight itself works in KDE though
#asahi-dev · 2023-01-22 16:33
marcanjannau: backlight restore by systemd fails
#asahi-dev · 2023-01-22 16:33
marcan[ 1.326413] WARNING: CPU: 4 PID: 460 at drivers/gpu/drm/drm_atomic_state_helper.c:174 drm_atomic_helper_crtc_duplicate_state+0x58/0x74
#asahi-dev · 2023-01-22 16:16
marcanbut anyway, doing a build with what we have now before going to sleep
#asahi-dev · 2023-01-22 16:14
marcanwhether something else makes it in there (audio? DP?) depends on timing at that point, TBD
#asahi-dev · 2023-01-22 16:14
marcani.e. to non-edge
#asahi-dev · 2023-01-22 16:13
marcanand then when the M2 Pro/Max stuff is ready, release it together with promoting -edge stuff to stable
#asahi-dev · 2023-01-22 16:12
marcanI'm thinking I might merge lina's new UAPI/rebase stuff plus rebase on the latest rc, and then after some smoke testing of that do a release to stable to see if we regress anything (which really should only affect -edge at that point)
#asahi-dev · 2023-01-22 16:08
jannau+1
#asahi-dev · 2023-01-22 16:08
marcanok, I'll do a -dev release with this and m1n1
#asahi-dev · 2023-01-22 16:07
jannauI think the wait_ready change is not that important. it prevents a "drm: crtc missing modes" during fbdev initailization
#asahi-dev · 2023-01-22 16:06
marcanyeah, got it
#asahi-dev · 2023-01-22 16:05
jannaumarcan: component (linux/component.h) based probing starts when the last missing component is probed
#asahi-dev · 2023-01-22 16:05
marcanmakes sense
#asahi-dev · 2023-01-22 16:05
marcandcp_wait_ready() right
#asahi-dev · 2023-01-22 16:05
marcanah, I guess you just start all DCPs in the callback when the components are ready?
#asahi-dev · 2023-01-22 16:03
jannaudriver changes will be a little annoying. firmware specific call/callback tables and structures
#asahi-dev · 2023-01-22 16:03
marcanjannau: how is the race solved in the end?
#asahi-dev · 2023-01-22 16:02
jannauI'm currently working on updating trace_dcp.py for 13.2
#asahi-dev · 2023-01-22 16:01
marcanooh nice
#asahi-dev · 2023-01-22 16:01
jannauthe deferred probe / gdm startup race should be fixed now
#asahi-dev · 2023-01-22 16:01
marcanjannau: what are your plans for 13.2?
#asahi-dev · 2023-01-22 16:00
marcanthe previous one though, yeah (when I was missing the IRQ-safe patch)
#asahi-dev · 2023-01-22 16:00
marcanoh this one wasn't causing any badness, the rpm code just re-incremented the count so it was just cosmetic
#asahi-dev · 2023-01-22 15:59
jannaulooks ok. nice though that the reset recovered from this. I still consider the module reload and reset handling as unsupported
#asahi-dev · 2023-01-22 15:54
marcanbut at least this works now
#asahi-dev · 2023-01-22 15:54
marcanhonestly the mechanism I used there is kind of flaky and should probably be rethought
#asahi-dev · 2023-01-22 15:53
marcanjannau: fixed now
#asahi-dev · 2023-01-22 15:52
marcanwait I messed up
#asahi-dev · 2023-01-22 15:51
marcanjannau: pushed a fixup with a comment
#asahi-dev · 2023-01-22 15:49
jannauI see it here with a timeout for setDCPPower() and there's a syslog message after that
#asahi-dev · 2023-01-22 15:45
marcanno it's just a race
#asahi-dev · 2023-01-22 15:45
jannaumarcan: reproduced with "soc: apple: apple-pmgr-pwrstate: Switch to IRQ-safe mode" reverted
#asahi-dev · 2023-01-22 15:45
marcanyeah, it's a race
#asahi-dev · 2023-01-22 15:43
marcanI suspect I know what this is
#asahi-dev · 2023-01-22 15:24
jannauI see neither on t8103-j274 without always-on for ps_disp0_cpu0. testing now with always-on
#asahi-dev · 2023-01-22 15:17
marcanafter a couple sleep cycles it stopped saying that
#asahi-dev · 2023-01-22 15:16
marcan(it does work nonetheless though)

plus ›