#
✕ nick:jannau
#asahi-dev · 2022-01-26 22:07
jannauwe are not sure if there 3 or 4 planes. the horrid dcp co-processor API had only 3 planes in 11.x but has 4 in 12.x
#asahi-dev · 2022-01-26 22:05
jannauthe cursor remains fully on the screen and is not clipped. it is just not rendered when the cursor fb needs to be clipped
#asahi-dev · 2022-01-26 22:02
jannauagraf: xv == xvideo extension? hopefully not with the cursor plane. but we can support overlay planes and wayland compositors should support that. I forgot most details about X11 already
#asahi-dev · 2022-01-26 20:57
jannauj`ey: yes https://www.kernel.org/doc/html/v4.13/gpu/drm-kms.html#c.drm_plane_type
#asahi-dev · 2022-01-26 20:02
jannauI remember that as well, the cursor fb can't move off screen iirc
#asahi-dev · 2022-01-26 19:58
jannaudoesn't work 100% though, the mouse cursor can not be moved completelt to the right or bottom edge
#asahi-dev · 2022-01-26 19:57
jannauthe cursor plane holds just the mouse. those to planes are then blended in hw. that means neither of the buffers have to be updated on mouse moves. only the position of the mouse cursor overlay is updated
#asahi-dev · 2022-01-26 19:54
jannauwithout cursor plane that frame buffer has constantly updated when the mouse cursor moves
#asahi-dev · 2022-01-26 19:53
jannaudcp has 3 or 4 planes which are composited and blended together in hardware. one is the primary plane which holds the framebuffer of what you consider the screen content
#asahi-dev · 2022-01-26 19:44
jannauwow, adding a cursor plane in the dcp driver just works
#asahi-dev · 2022-01-26 15:09
jannaulooks reasonable to me and is an improvement even ignoring the bug fix
#asahi-dev · 2022-01-26 15:02
jannauyou have virtual modes with an higher score than non-virtual modes?
#asahi-dev · 2022-01-26 09:14
jannauthe kernel still works without APPLE_PMGR_PWRSTATE but is mostly useless since no hardware is available
#asahi-dev · 2022-01-26 09:13
jannaubummer, I guess for 5.17 we need a way to force APPLE_PMGR_PWRSTATE on. Not sure how exactly, I guess every driver using device nodes with "power-domains" needs to to depend on APPLE_PMGR_PWRSTATE
#asahi-dev · 2022-01-25 22:11
jannaufor enabling the wifi pcie slot you have either boot via u-boot or use experiments/pcie_enable_devices.py
#asahi-dev · 2022-01-25 22:06
jannaufixed, offending commits removed
#asahi-dev · 2022-01-25 21:56
jannaualyssa: I shouldn't have pushed that, that was me blindly trying to find the crash
#asahi-dev · 2022-01-25 21:55
jannaualso requires the top 2 patches from https://github.com/jannau/linux/tree/bits/050-nvme
#asahi-dev · 2022-01-25 21:54
jannaubits/dcp is dcp standalone intended to be merged into asahi
#asahi-dev · 2022-01-25 21:52
jannauhttps://github.com/AsahiLinux/asahi-installer/blob/main/src/firmware/wifi.py
#asahi-dev · 2022-01-25 21:49
jannauI think the only feature missing in asahi + dcp compared to your tree is power-off support
#asahi-dev · 2022-01-25 21:47
jannaumac mini audio is working for a while under linux-asahi thanks to povik
#asahi-dev · 2022-01-25 21:46
jannauI suppose kettenis has working audio on OpenBSD
#asahi-dev · 2022-01-25 21:31
jannaunice, congrats
#asahi-dev · 2022-01-25 21:03
jannauI suppose your branch from december will start working too. oh, you probbaly need "power-domains = <&ps_disp0_cpu0>;" for the dcp node as well
#asahi-dev · 2022-01-25 21:01
jannaualyssa: it works with this patch https://github.com/jannau/linux/commit/20c6d2e380e0e37fa372e8d0bb51231d57a58d32
#asahi-dev · 2022-01-25 20:46
jannauit crashes with if ps_pmp is off, I guess notify_pmp should count as dependency
#asahi-dev · 2022-01-25 20:34
jannauI don't see what I'm missing but hotplug still works after adding "apple,always-on;" to a bunch of pwrstates
#asahi-dev · 2022-01-25 20:02
jannaualyssa: the problem seems to be that the power state driver powers something down dcp needs. I'm surprised it causes only problems on hdmi unplug
#asahi-dev · 2022-01-25 19:59
jannauj`ey: seems to hang as far as I can see with earlycon and keep_bootcon
#asahi-dev · 2022-01-25 19:58
jannaualyssa: strange that the enabled pmgr crashes dcp on unplug but it works normally from boot
#asahi-dev · 2022-01-25 19:56
jannaumaz: even 5.17-rc1 + typec fix doesn't boot with APPLE_PMGR_PWRSTATE disabled
#asahi-dev · 2022-01-25 19:44
jannauproblem might have been the typec crash
#asahi-dev · 2022-01-25 19:43
jannauhotplug works on dcp-v5.17-rc1
#asahi-dev · 2022-01-25 19:42
jannaualready done
#asahi-dev · 2022-01-25 19:32
jannauthat was a waste. I fear even 5.17-rc1 won't boot with CONFIG_APPLE_PMGR_PWRSTATE disabled and power-domains properties in the dtb
#asahi-dev · 2022-01-25 19:16
jannauon a hunch I'll test first with the pmgr driver disabled
#asahi-dev · 2022-01-25 19:13
jannauyes, trying to avoid linux-next
#asahi-dev · 2022-01-25 19:06
jannaudcp on top of 5.16 with the macos 12 dcp firmware has working hotplug
#asahi-dev · 2022-01-25 19:04
jannaubisecting the kernel base for the dcp branch is a little annoying
#asahi-dev · 2022-01-23 14:03
jannaufeel free to squash them in the nvme branch
#asahi-dev · 2022-01-23 13:55
jannauI did, I somehow dropped the patch changing rtkit
#asahi-dev · 2022-01-23 13:49
jannausorry, I must have messed up the rebase
#asahi-dev · 2022-01-23 13:30
jannauhttps://github.com/jannau/linux/tree/bits/050-nvme updated
#asahi-dev · 2022-01-23 13:19
jannauit works for the dcp crashlog
#asahi-dev · 2022-01-23 13:02
jannauI don't think we will ever see it in this case as we should read the crashlog buffer only once (at most) and never write
#asahi-dev · 2022-01-23 12:51
jannauare you sure it is not uncached like the framebuffer for dcp?
#asahi-dev · 2022-01-23 12:21
jannauand we don't need an is_iomem flag, we can infer that from bfr->iomem != NULL
#asahi-dev · 2022-01-23 12:13
jannauthe drivers care on destroy and rtkit only replies for AP owned buffers
#asahi-dev · 2022-01-23 12:10
jannaumemremap, that was too simple. I need anther flag to track the ownership then

plus ›