#
✕ nick:alyssa
#asahi-dev · 2022-01-18 21:21
alyssathat's the one
#asahi-dev · 2022-01-18 21:19
alyssaah yes well
#asahi-dev · 2022-01-18 21:19
alyssa<jannau> I said nothing of the sort
#asahi-dev · 2022-01-18 21:18
alyssa🙃
#asahi-dev · 2022-01-18 21:18
alyssaunless you would, err, rather I exchange those dozen more patches for a single DCP patch that jannau was going to write this week anyway?
#asahi-dev · 2022-01-18 21:18
alyssaand plan to write a dozen more soon
#asahi-dev · 2022-01-18 21:18
alyssai wrote like a dozen patches for the gpu today
#asahi-dev · 2022-01-18 21:18
alyssasven: excuse me
#asahi-dev · 2022-01-18 21:14
alyssaIIRC I tried to rebase the code in December and stuff broke like crazy
#asahi-dev · 2022-01-18 21:14
alyssanot sure what to say, I mean, it worked for me but lots of stuff could have broken
#asahi-dev · 2022-01-18 21:14
alyssaAlright
#asahi-dev · 2022-01-18 21:14
alyssaand we can't remove the reference until after we get a swap complete from REMOVE_LAYERS
#asahi-dev · 2022-01-18 21:13
alyssaas soon as we swap, the DCP holds a reference to the framebuffer
#asahi-dev · 2022-01-18 21:13
alyssafor Linux, this should be modeled with the drm framebuffer reference counting
#asahi-dev · 2022-01-18 21:13
alyssaand only then can it free the framebuffer
#asahi-dev · 2022-01-18 21:13
alyssaand wait until getting the swap completed
#asahi-dev · 2022-01-18 21:13
alyssathe OS needs to unbind the layer (0x80000001 in our case, we only use one layer for now)
#asahi-dev · 2022-01-18 21:13
alyssawhich means if you free() the framebuffer, the DCP will reference freed memory --> crash
#asahi-dev · 2022-01-18 21:12
alyssauntil it's removed
#asahi-dev · 2022-01-18 21:12
alyssasince the DCP will keep rendering to any layer you've programmed forever
#asahi-dev · 2022-01-18 21:12
alyssaThis would be necessary to not crash the DCP
#asahi-dev · 2022-01-18 21:11
alyssain other words, "remove all layers"
#asahi-dev · 2022-01-18 21:11
alyssaif I recall, 0x80000007 = REMOVE_LAYERS | LAYER_0 | LAYER_1 | LAYER_2
#asahi-dev · 2022-01-18 21:11
alyssaafter the unplug, before the hotplug?
#asahi-dev · 2022-01-18 21:11
alyssaOoh
#asahi-dev · 2022-01-18 21:10
alyssanod
#asahi-dev · 2022-01-18 21:08
alyssathat'd be good to know
#asahi-dev · 2022-01-18 21:07
alyssathat first swap should probably be exactly 1 layer, but...
#asahi-dev · 2022-01-18 21:07
alyssajannau: random guess, something about DCP_REMOVE_LAYERS or the hack added for swaps with no layers or something interacting?
#asahi-dev · 2022-01-18 21:06
alyssanod
#asahi-dev · 2022-01-18 20:56
alyssaboot chime :-p
#asahi-dev · 2022-01-18 14:38
alyssabooting overrated
#asahi-dev · 2022-01-18 14:36
alyssaspi
#asahi-dev · 2022-01-18 13:20
alyssawoo!
#asahi-dev · 2022-01-17 20:16
alyssammmaybe i should work on Mali GPUs instead
#asahi-dev · 2022-01-17 20:15
alyssayou know I said I was going to work on the M1 GPU driver this afternoon
#asahi-dev · 2022-01-17 20:15
alyssasven: grumble mumble
#asahi-dev · 2022-01-17 20:12
alyssasven: there goes the "iBoot protocol is stable" theory :v
#asahi-dev · 2022-01-17 13:28
alyssakettenis: the DCP OS interface is stuff of nightmares
#asahi-dev · 2022-01-16 23:46
alyssagotcha
#asahi-dev · 2022-01-16 23:18
alyssadoes it work with macOS?
#asahi-dev · 2022-01-16 23:18
alyssacursed
#asahi-dev · 2022-01-16 23:12
alyssa("Why did you try--" "leave me alone!")
#asahi-dev · 2022-01-16 23:12
alyssadid not work on $RANDOM_HOTEL_TV i tried
#asahi-dev · 2022-01-16 23:11
alyssayeah even on 11.x, iboot fb was a crapshoot
#asahi-dev · 2022-01-16 20:11
alyssadcp scaling sounds like your friend there yes
#asahi-dev · 2022-01-16 20:04
alyssaj`ey: yes! :p
#asahi-dev · 2022-01-16 20:02
alyssa~sounds like a you problem~ :-p
#asahi-dev · 2022-01-16 20:01
alyssa...why is that beneficial?
#asahi-dev · 2022-01-16 20:00
alyssamarcan: the COMPAREs for timing mode, i think the <= / >= is flipped for the 60Hz and 1920 pixel checks?

plus ›