ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
kidplayer666 has quit [Quit: Connection closed for inactivity]
baozich has joined #asahi-dev
timokrgr has quit [Quit: User left the chat]
timokrgr has joined #asahi-dev
eiln has quit [Ping timeout: 480 seconds]
eiln has joined #asahi-dev
baozich1 has joined #asahi-dev
baozich has quit [Read error: Connection reset by peer]
baozich1 is now known as baozich
john-cabaj has quit [Ping timeout: 480 seconds]
dylanchapell has quit [Read error: Connection reset by peer]
dylanchapell has joined #asahi-dev
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
ciara has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
timokrgr has quit [Quit: User left the chat]
timokrgr has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
jeisom has quit [Ping timeout: 480 seconds]
greguu has joined #asahi-dev
kidplayer666 has joined #asahi-dev
capta1nt0ad has joined #asahi-dev
capta1nt0ad has quit [Remote host closed the connection]
capta1nt0ad has joined #asahi-dev
i509vcb has quit [Quit: Connection closed for inactivity]
ciara has joined #asahi-dev
WindowPa- has joined #asahi-dev
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #asahi-dev
WindowPain has quit [Ping timeout: 480 seconds]
capta1nt0ad has quit [Remote host closed the connection]
kidplayer666 has quit [Quit: Connection closed for inactivity]
baozich1 has joined #asahi-dev
baozich has quit [Ping timeout: 480 seconds]
baozich1 is now known as baozich
millenialhacker has joined #asahi-dev
delroth has quit [Remote host closed the connection]
delroth has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
fugi has quit [Quit: Ping timeout (120 seconds)]
fossdd has quit [Read error: Connection reset by peer]
fugi has joined #asahi-dev
<janneg> sven: could the 14 vs. 0x14 error in PIPEHANDLER_OVERRIDE_VALUES explain the broken suspend or other issue we've seen with usb3?
<sven> I don’t think so
<sven> 0x14 hardcoded some values for the phy interface when we switch the phy
<sven> it’s not used after that function is done
<sven> broken suspend is because xhci doesn’t wake up the ports, isn’t it?
fossdd has joined #asahi-dev
roxfan has joined #asahi-dev
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-dev
kidplayer666 has joined #asahi-dev
seb4nih3 has quit [Quit: -a- Connection Timed Out]
seb4nih25 has joined #asahi-dev
<kettenis> janneg: I'm seeing the wrong brightness level being restored coming out of DPMS on the 13" M1 MacBook
roxfan2 has joined #asahi-dev
<kettenis> I 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...
roxfan has quit [Ping timeout: 480 seconds]
<j`ey> are you on 13.5 fw?
<kettenis> still on 12.3 fw for this machine
<j`ey> ok ignore me then
<kettenis> but I see the same thing on the 13" M2 MacBook Air with 13.5 fw
<j`ey> there was an issue with DCP and the iomfb_cb_pr_publish callback with later fw, but that appears to be a different issue
<janneg> kettenis: 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
<janneg> this is one reason why we don't want to support Xorg on linux
<leio> could this have something to do for why I need to delay the gdm start to get a successful modeset?
<janneg> leio: no
<leio> or rather not lose picture; ok
<janneg> kettenis: for xorg/modesetting you could try if the tearfree option helps, that should do swaps but iirc I've never tested it
baozich has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Ping timeout: 480 seconds]
seb4nih25 has quit [Read error: Connection reset by peer]
XeR` has quit []
yuyichao_ has joined #asahi-dev
XeR has joined #asahi-dev
baozich has joined #asahi-dev
seb4nih35 has joined #asahi-dev
baozich has quit [Ping timeout: 480 seconds]
<kettenis> janneg: 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
<kettenis> is it really that difficult to force a flush from the iomfbep_cb_enable_backlight_message_ap_gated() callback?
<kettenis> maybe from some delayed scheduled work such that it can be avoided if a swap already happened?
zumi has quit [Remote host closed the connection]
zumi has joined #asahi-dev
<janneg> kettenis: sure, the modesetting/tearfree comment was also about improving the experience on xorg in general
<janneg> we 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
<kettenis> right, that was my idea; already has a check whether backlight.update is still set ;)
<janneg> that already has the delay to to see if a swap has happened
<kettenis> ok, I'll try that and if it works on OpenBSD I'll send you a diff to test on Linux ;)
<kettenis> the other bit that I'm still struggling with is that drm_fb_helper_blank() doesn't seem to do the right thing
<kettenis> but that probably is a problem in the drm atomic modeset code
<kettenis> and for some reason dcp sometimes refuses to start; happens more often on the M1 MacBook than on the M1 mini
jeisom has joined #asahi-dev
<janneg> drm_fb_helper_blank should result .atomic_enable / .atomic_disable calls
<janneg> refuses to start in what sense? rtkit_wakeup fails? dcp_start()?
<kettenis> hmm, so maybe this is fixed by "drm: apple: Move modeset into drm_crtc's atomic_enable" that I don't have yet
<kettenis> looks like I really should update to the latest code as soon as possible ;)
crabbedhaloablut has quit []
<janneg> kettenis: I don't think so. my motivation was to untangle modeset and dcp_flush()
crabbedhaloablut has joined #asahi-dev
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-dev
kidplayer666 has quit [Quit: Connection closed for inactivity]
kidplayer666 has joined #asahi-dev
<kettenis> nice to see that with dpms there are some significant power savings
al3xtjames has quit [Read error: Connection reset by peer]
millenialhacker has joined #asahi-dev
<janneg> marcan: asahi-soc-mailbox-6.8 is missing from asahi-soc/for-next
roxfan2 has quit [Remote host closed the connection]
roxfan has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
<j`ey> it 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?
<janneg> ah, it's already in soc/for-next
seb4nih68 has joined #asahi-dev
seb4nih35 has quit [Read error: Connection reset by peer]
seb4nih68 has quit [Read error: Connection reset by peer]
seb4nih13 has joined #asahi-dev
seb4nih13 has quit [Ping timeout: 480 seconds]
AnuthaDev has joined #asahi-dev
buroa has quit [Quit: The Lounge - https://thelounge.chat]
seb4nih79 has joined #asahi-dev
qyliss has quit [Quit: bye]
qyliss has joined #asahi-dev
seb4nih79 has quit [Read error: Connection reset by peer]
seb4nih11 has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
buroa has joined #asahi-dev
zumi_ has joined #asahi-dev
zumi has quit [Remote host closed the connection]
zumi_ is now known as zumi
kidplayer666 has quit [Quit: Connection closed for inactivity]
buroa has quit [Quit: The Lounge - https://thelounge.chat]
billak has joined #asahi-dev
buroa has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
Mary has quit [Quit: The Lounge - https://thelounge.chat]
Mary has joined #asahi-dev
AnuthaDev has quit []
millenialhacker has joined #asahi-dev
Mary has quit [Quit: The Lounge - https://thelounge.chat]
millenialhacker has quit [Ping timeout: 480 seconds]
millenialhacker has joined #asahi-dev
Mary has joined #asahi-dev
SalimTer- has joined #asahi-dev
SalimTerryLi has quit [Ping timeout: 480 seconds]
millenialhacker has quit [Ping timeout: 480 seconds]
kidplayer666 has joined #asahi-dev
lawrence has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
<cyrinux> Hello 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.
Mary has quit [Quit: The Lounge - https://thelounge.chat]
Mary has joined #asahi-dev
Mary has quit []
billak has quit [Remote host closed the connection]
Mary has joined #asahi-dev
i509vcb has joined #asahi-dev
<janneg> cyrinux: use the non-edge kernel. they are now fnuctionally the same
<janneg> there is a problem with the local version of the edge kernel
WindowPain has joined #asahi-dev
WindowPa- has quit [Ping timeout: 480 seconds]
<cyrinux> Ok janneg, thanks
<cyrinux> same for vulkan and mesa ?
Lyude has joined #asahi-dev
<Lyude> Hi! 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)
<j`ey> the driver is done :P
<Lyude> oh!!!
<chaos_princess> thats gpu, not kms
<j`ey> unless KMS means the actual display driver? thats in C
<j`ey> yeah
<j`ey> just realised
<Lyude> yeah I meant KMS :p
<chaos_princess> both asahi kms drivers are in c
<j`ey> but it's still probably helpful.. maybe
<Lyude> there's two of them?
<j`ey> Lyude: one for the touchbar
<Lyude> Oh
<Lyude> I guess that makes sense lol
<j`ey> I think there was talk a year or so ago of doing it in rust.. but the C/driver has grown a lot since then
<Lyude> Have the ABI differences with apple's firmware caused any problems for the KMS driver seeing as it's written in C?
<kettenis> the ABI differences cause problems, regardless of whether the driver is written in C or rust ;)
<janneg> cyrinux: no, just the kernel
<Lyude> kettenis: good to know :p, we're kind of in a similar situation with nova since we don't really have much of a stable ABI guarantee from nvidia at the moment with GSP
<j`ey> Lyude: DCP uses macros and 'templates' to support different versions
<janneg> Lyude: it's mostly annoying to do in C. It uses #defines with multiple inclusion of template fiels
<chaos_princess> i'd say dcp is a bit more stable-ish, since they have their cursed rpc protocol and some items are serialized dicts and not just bags of bytes.
<Lyude> chaos_princess: yeah we just get bags of bytes :(
<Lyude> at least they're documented bags though!
<janneg> I want to rewrite it in Rust but I'm not sure if I ever find time for it
<Lyude> well feel free to let me and folks like airlied/danilo/karolherbst know. We're already planning on doing the main driver in rust, while it'd be nice to be able to keep our display driver we sort of agreed the effort to make bindings between that and the main rust driver would be more effort then we'd like - and plus we'd kind of like everything to be in rust to make it more
<Lyude> attractive to new contributors anyway (and start finally pushing things forward regarding actual rust code in the mainline kernel)
<janneg> the interface is stable-ish but there is enough churn from release to release to be annoying
john-cabaj has joined #asahi-dev
john-cabaj has quit [Ping timeout: 480 seconds]
greguu has quit [Ping timeout: 480 seconds]
greguu has joined #asahi-dev
millenialhacker has joined #asahi-dev
millenialhacker has quit [Ping timeout: 480 seconds]
crabbedhaloablut has quit []