#
#asahi-dev · 2023-12-20 21:20
j`eyunless KMS means the actual display driver? thats in C
#asahi-dev · 2023-12-20 21:20
chaos_princessthats gpu, not kms
#asahi-dev · 2023-12-20 21:19
Lyudeoh!!!
#asahi-dev · 2023-12-20 21:19
j`eyhttps://github.com/AsahiLinux/linux/tree/asahi/drivers/gpu/drm/asahi
#asahi-dev · 2023-12-20 21:19
j`eythe driver is done :P
#asahi-dev · 2023-12-20 21:18
LyudeHi! I'm one of the folks working on nouveau/nova, and I heard that y'all might be thinking of writing a new KMS driver in rust? I was curious whether there had been any progress here or any WIP branches I could look at, since we're hoping to also write a KMS driver in rust (and to help start moving rust in the kernel forward generally)
#asahi-dev · 2023-12-20 21:09
cyrinuxsame for vulkan and mesa ?
#asahi-dev · 2023-12-20 21:07
cyrinuxOk janneg, thanks
#asahi-dev · 2023-12-20 20:46
jannegthere is a problem with the local version of the edge kernel
#asahi-dev · 2023-12-20 20:45
jannegcyrinux: use the non-edge kernel. they are now fnuctionally the same
#asahi-dev · 2023-12-20 20:09
cyrinuxHello here, just to say that the last m1n1/uboot/edge kernel of asahi-dev (archlinux) , prevent m2 air to boot. I was able to enter my luks password but then totally blind.
#asahi-dev · 2023-12-20 15:25
jannegah, it's already in soc/for-next
#asahi-dev · 2023-12-20 15:16
j`eyit appears here https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/log/?h=for-next&ofs=600 (asahi-soc) so that should be fine?
#asahi-dev · 2023-12-20 15:10
jannegmarcan: asahi-soc-mailbox-6.8 is missing from asahi-soc/for-next
#asahi-dev · 2023-12-20 14:21
kettenisnice to see that with dpms there are some significant power savings
#asahi-dev · 2023-12-20 13:30
jannegkettenis: I don't think so. my motivation was to untangle modeset and dcp_flush()
#asahi-dev · 2023-12-20 13:28
kettenislooks like I really should update to the latest code as soon as possible ;)
#asahi-dev · 2023-12-20 13:26
kettenishmm, so maybe this is fixed by "drm: apple: Move modeset into drm_crtc's atomic_enable" that I don't have yet
#asahi-dev · 2023-12-20 13:26
jannegrefuses to start in what sense? rtkit_wakeup fails? dcp_start()?
#asahi-dev · 2023-12-20 13:25
jannegdrm_fb_helper_blank should result .atomic_enable / .atomic_disable calls
#asahi-dev · 2023-12-20 13:23
kettenisand for some reason dcp sometimes refuses to start; happens more often on the M1 MacBook than on the M1 mini
#asahi-dev · 2023-12-20 13:21
kettenisbut that probably is a problem in the drm atomic modeset code
#asahi-dev · 2023-12-20 13:21
kettenisthe other bit that I'm still struggling with is that drm_fb_helper_blank() doesn't seem to do the right thing
#asahi-dev · 2023-12-20 13:18
kettenisok, I'll try that and if it works on OpenBSD I'll send you a diff to test on Linux ;)
#asahi-dev · 2023-12-20 13:16
jannegthat already has the delay to to see if a swap has happened
#asahi-dev · 2023-12-20 13:16
kettenisright, that was my idea; already has a check whether backlight.update is still set ;)
#asahi-dev · 2023-12-20 13:15
jannegwe certyainly can't issue a flush directly from iomfbep_cb_enable_backlight_message_ap_gated(). the easiest option would be to call dcp_set_brightness() from a a workqueue
#asahi-dev · 2023-12-20 13:14
jannegkettenis: sure, the modesetting/tearfree comment was also about improving the experience on xorg in general
#asahi-dev · 2023-12-20 13:08
kettenismaybe from some delayed scheduled work such that it can be avoided if a swap already happened?
#asahi-dev · 2023-12-20 13:06
kettenisis it really that difficult to force a flush from the iomfbep_cb_enable_backlight_message_ap_gated() callback?
#asahi-dev · 2023-12-20 13:04
kettenisjanneg: I still think this needs to be fixed; even if you believe Xorg should die there are other contexts where having a working dumb framebuffer is desirable
#asahi-dev · 2023-12-20 11:55
jannegkettenis: for xorg/modesetting you could try if the tearfree option helps, that should do swaps but iirc I've never tested it
#asahi-dev · 2023-12-20 11:52
leioor rather not lose picture; ok
#asahi-dev · 2023-12-20 11:52
jannegleio: no
#asahi-dev · 2023-12-20 11:52
leiocould this have something to do for why I need to delay the gdm start to get a successful modeset?
#asahi-dev · 2023-12-20 11:49
jannegthis is one reason why we don't want to support Xorg on linux
#asahi-dev · 2023-12-20 11:48
jannegkettenis: known issue. lina and I tried to workaround that but I'm not sure if that ever was relieable. not related to the gpu driver but just how the application uses the kms device
#asahi-dev · 2023-12-20 11:06
j`eythere was an issue with DCP and the iomfb_cb_pr_publish callback with later fw, but that appears to be a different issue
#asahi-dev · 2023-12-20 11:04
kettenisbut I see the same thing on the 13" M2 MacBook Air with 13.5 fw
#asahi-dev · 2023-12-20 11:03
j`eyok ignore me then
#asahi-dev · 2023-12-20 11:03
kettenisstill on 12.3 fw for this machine
#asahi-dev · 2023-12-20 11:03
j`eyare you on 13.5 fw?
#asahi-dev · 2023-12-20 11:02
kettenisI think the problem is that because I don't have a GPU driver (yet) the "next swap" that you refer to in iomfbep_cb_enable_backlight_message_ap_gated() never happens...
#asahi-dev · 2023-12-20 11:01
kettenisjanneg: I'm seeing the wrong brightness level being restored coming out of DPMS on the 13" M1 MacBook
#asahi-dev · 2023-12-20 09:57
svenbroken suspend is because xhci doesn’t wake up the ports, isn’t it?
#asahi-dev · 2023-12-20 09:57
svenit’s not used after that function is done
#asahi-dev · 2023-12-20 09:57
sven0x14 hardcoded some values for the phy interface when we switch the phy
#asahi-dev · 2023-12-20 09:56
svenI don’t think so
#asahi-dev · 2023-12-20 09:56
jannegsven: could the 14 vs. 0x14 error in PIPEHANDLER_OVERRIDE_VALUES explain the broken suspend or other issue we've seen with usb3?
#asahi-dev · 2023-12-19 21:04
mariogripah i see what you mean now, yeah, will create a seperate macos

plus ›