Email or username:

Password:

Forgot your password?
Top-level
Lorenzo🐧

@lina @alyssa Ohhh! Nice! Thank you!

So I guess I just need to pull the rust-wip branch of asahi kernel to get this?

Do you happen to know where Alyssa's mesa driver lives? :>) thanks!

github.com/AsahiLinux/linux/co

20 comments
Eric Engestrom 💙

@ljs gitlab.freedesktop.org/asahi/m branch `main` (the default branch); also note that this branch isn't stable and will be rebased, so be prepared for that.

Lorenzo🐧

@1ace Cheers Eric :) Yeah I run my m2 in a _mega_ unstable tip state w/custom kernel and yada yada so I'm happy to rebase and build from source.

Main thing is seeing M2 support in the device tree :>)

Lorenzo🐧

@lina @1ace Ahhh thanks that's an important one to note!

Thank you very much for your efforts, very much appreciated!

Lorenzo🐧

@lina @1ace is there a config file somewhere to use for the kernel? :) I am messing something up and seeing a freeze on startup unless I enable drm_simpledrm :(

Asahi Linya (朝日りにゃ〜)

@ljs @1ace I have a gist with a config from a few days ago, though today I had to add a bunch of M2 stuff (mostly related to the trackpad/USB since I had some of that turned off for the Mac Mini) but nothing related to video.

Oh, you also need to disable BTI (arm64.nobti)! Rust is broken with that.

Asahi Linya (朝日りにゃ〜)

@ljs @1ace You do have DRM_APPLE, right? That's the display driver ^^

Lorenzo🐧

@lina @1ace I was trying with DRM_APPLE and freeze, then only DRM_ASAHI and also freeze :) it seems to freeze if DRM_SIMPLEDRM is not set.

Do you have a link to that gist (sorry if I'm being lazy here :)?

Asahi Linya (朝日りにゃ〜)

@ljs @1ace Normally you should have all three, but make sure you don't have EFIFB (that one's problematic). The DCP driver (DRM_APPLE) should take over simpledrm. Asahi is the render only GPU driver.

gist.github.com/asahilina/8090

Lorenzo🐧

@lina @1ace Strange it seems like DRM_APPLE doesn't override simpledrm for me. Maybe I'm missing a step? I have an m2 air unless that is one that's unsupported now? 😢

Asahi Linya (朝日りにゃ〜) replied to Lorenzo🐧

@ljs @1ace Check dmesg, it should log if something went wrong. You did update m1n1 together with the device trees from the kernel branch, right? ^^

Lorenzo🐧 replied to Asahi Linya (朝日りにゃ〜)

@lina @1ace dmesg was giving me nothing on drm.

Yeah have updated m1n1 and added dtb files to boot.bin

btw I very much appreciate wasting your time with my stupid laptop issues 🤣 I realise you are doing me a favour here :)

Lorenzo🐧 replied to Asahi Linya (朝日りにゃ〜)

@lina @1ace Oh hang on I may have made a VERY stupid mistake... 🤦 let me report back....

Lorenzo🐧 replied to Lorenzo🐧

@lina @1ace OK so I made a silly mistake of not updating a script to copy the right DRB files to the boot.bin (doh!)

That's fixed now, but getting:-

apple-drm soc:display-subsystem: Failed to add to iommu group 0: -17

Lorenzo🐧 replied to Lorenzo🐧

@lina @1ace OK enabling apple_dart and iommu_io_pgtable_dart seemed to fix that, but now the display doesn't want to be available however drm_apple is loading properly and I get backlight control (yay!) but no gfx as of yet...

still investigating

Lorenzo🐧 replied to Lorenzo🐧

@lina @1ace

Seems 'cannot find any crtc or sizes' is the isue. Also 'RTKit: failed buffer request for 0x10000 bytes' from apple-dcp.

Lorenzo🐧 replied to Lorenzo🐧

@lina @1ace fwiw iova for failed dma alloc is 0x800824000

Lorenzo🐧 replied to Lorenzo🐧

@lina @1ace actually that's the pointer of the field the dma handle is put in haha so not so useful.

Looks like it's

err = rtk->ops->shmem_setup(rtk->cookie, buffer);

That is reporting -ENOMEM.

Lorenzo🐧

@alyssa @lina Thanks and thank you very much for your hard work!

Go Up