ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
<zerdox> simpledrm was not the issue
<zerdox> also i tried to enable almost all of the mesa's use flags. also tried to downgrade package
cylm_ has joined #asahi-alt
cylm_ has quit [Ping timeout: 480 seconds]
jjanzic has quit [Ping timeout: 480 seconds]
jjanzic has joined #asahi-alt
cylm_ has joined #asahi-alt
cylm_ has quit [Ping timeout: 480 seconds]
<chadmed> zerdox: gentoo's libdir is /usr/lib64 and /usr
<chadmed> if hyprland is looking for stuff in /usr/local its not going to find it
<chadmed> s/and/and its prefix is/
<zerdox> chadmed: nah for me its looking in usr/lib64
<zerdox> the problem is that i satisfied all mesa loader warnings and still got the same gl errors, even on sway. I tried everything and still struggling for days
<jannau> zerdox: it shouldn't search for simpledrm_dri.so. do you have CONFIG_DRM_APPLE in your kernel?
<zerdox> [ERROR] [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
<zerdox> [ERROR] [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
<zerdox> [ERROR] [render/egl.c:320] Software rendering detected, please use the WLR_RENDERER_ALLOW_SOFTWARE environment variable to proceed
<zerdox> [ERROR] [render/egl.c:567] Failed to initialize EGL context
<zerdox> [ERROR] [render/gles2/renderer.c:704] Could not initialize EGL
<zerdox> jannau: yes, it's set to m
<chadmed> config_drm_asahi?
<zerdox> the strange thing is that sway launches with same errors, so it's not about window manager
<zerdox> grep DRM_ASAHI doesn't even print me any lines. is this a new setting?
<jannau> is it used? `journalctl -k | grep dcp | head -n10`
<zerdox> jannau: i don't have systemd. it is used, i can get it from proc/config.gz
<jannau> use dmesg after booting then. the first line should have "reserved mem"
<zerdox> jannau: yep i have these lines
<zerdox> i have found messages in #asahi-dev about missing DRM_ASAHI and solution to it. now i am trying to make olddefconfig prepare but new options doesn't appear. how do i properly "regenerate" config preserving my old selections?
<jannau> zerdox: I want the output of 'dmesg | grep dcp | head -n10' the first line is only to check no messages have been dropped. it is a fixed size buffer
zerdox_ has joined #asahi-alt
<zerdox_> [ 0.000000] OF: reserved mem: 0x0000000be5efc000..0x0000000be61fbfff (3072 KiB) nomap non-reusable dcp_data@be5efc000
<zerdox_> jannau: this is all i got
<jannau> something is wrong then. can you try to load the modules? I don't think that will do anything. I suspect there is still a dtb issue
zerdox has quit [Ping timeout: 480 seconds]
<zerdox_> how do i do it? load the module
<zerdox_> s
<jannau> zerdox_: can copy the output of `dtc -I fs -O dts -o - /proc/device-tree | sed -n '/^\t\tdcp@/,/^\t\t};/p'` to a pastebin
zerdox has joined #asahi-alt
zerdox_ has quit [Remote host closed the connection]
<jannau> zerdox: that looks ok. https://github.com/jannau/linux/commit/764871947e2aa817666f4ef819d740199e5db99e might fix things but I'd expect different symptoms if that was the cause
<jannau> load modules with `modprobe apple_dcp && modprobe appledrm`
<zerdox> do i patch it directly in /boot?
<zerdox> oh no. this is not the file that is being copied. sorry
<jannau> no, you patch the kernel source, `make dtbs` in the kernel repo, run update-m1n1 and reboot
<zerdox> tried to load modules. could not insert: no such device :(
<zerdox> k. ill try to make and update now
<zerdox> same about loading modules
<zerdox> thats strange. double checked that config_drm_apple=m
<mps> zerdox: do you trying to get GPU working? in that case you should have CONFIG_DRM_ASAHI=m or CONFIG_DRM_ASAHI=y
<zerdox> yeah, i am. the problem (i guess not the only) is that i dont have CONFIG_DRM_ASAHI in my config. and yes, i have rust support in the kernel
<chadmed> search for DRM_ASAHI in menuconfig and see whats blocking it then
<zerdox> mps: and make oldconfig doesn't bring me this line. i am on 6.4.0 kernel
<mps> strange, it usually appers if the rust is installed
<ChaosPrincess> what does `make rustavailable` say
<mps> depends on (ARM64 && ARCH_APPLE) || (COMPILE_TEST && !GENERIC_ATOMIC64)
<mps> could be unsupported rust version is installed
<zerdox> ChaosPrincess: bindgen 0.62.0 rustavailable
<zerdox> rust is available
<ChaosPrincess> then search for DRM_ASAHI and see what the search says about the values of the dependencies
<zerdox> depends on contains RUST=n
<zerdox> for some reason it was off
<zzywysm> zerdox: i think CONFIG_RUST is one of those config options that isn't user-selectable, but is auto-defined by the kernel config system. i believe that's its way of gently telling you your environment doesn't have all the dependencies installed that you need for rust kernel building
<zerdox> no, you are probably talking about RUST_IS_AVAILABLE. i just enabled CONFIG_RUST and now compiling kernel
compassion1785 has quit [Quit: lounge quit]
<zerdox> and I had all the dependencies installed, make rustavailable was saying that. i have no idea why CONFIG_RUST became disabled when I updated kernel, even other options where preserved
<zzywysm> zerdox: i made an effort a while back to get pretty minimal with an asahi kernel config. https://github.com/tpwrules/nixos-apple-silicon/pull/33
<zzywysm> zzywysm: next time i update it i'll try to remember to let you know
<zerdox> zzywysm: thank you. i left a reaction under the pr so you can get my github because i am not always in this chat
jacksonchen666 has joined #asahi-alt
anarcat[m] has joined #asahi-alt
compassion1785 has joined #asahi-alt
jacksonchen666 is now known as Guest9171
jacksonchen666 has joined #asahi-alt
cylm_ has joined #asahi-alt
Guest9171 has quit [Ping timeout: 480 seconds]
<zerdox> now i've built kernel with DRM_ASAHI but this didn't helped me. hyprland still tries to use simpledrm
<zerdox> jannau: when linux loads i can see these messages for a sec: https://pastebin.com/sMb50gpY
<zerdox> i guess i got them after kernel update, not sure. but definitely sure i haven't them before updates
<zerdox> maybe this can help finding the problem. looks like it can be related
<_jannau__> zerdox: those are harmless. your problem is still that dcp / appledrm (the display driver) is not available. I have no idea why not
<zerdox> modprobe apple_dcb error changed to module not found in directory /lib/modules/6.4.0-asahi-6-arm64
<zerdox> appledrm is still no such device
<zerdox> jannau: make LLVM=1 && make modules_install && make install && dracut && grub-mkconfig && update-m1n1
<zerdox> is everything right here? maybe i am missing some options or compiling kernel wrong
SalimTerryLi has joined #asahi-alt
SalimTer- has quit [Ping timeout: 480 seconds]
Dementor has joined #asahi-alt
compassion1785 has quit [Quit: lounge quit]
compassion1785 has joined #asahi-alt
compassion1785 has quit []
compassion1785 has joined #asahi-alt
possiblemeatball has joined #asahi-alt
zerdox has quit [Ping timeout: 480 seconds]
zerdox has joined #asahi-alt
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi-alt
nela has quit [Ping timeout: 480 seconds]
nela has joined #asahi-alt
Guest8982 has quit [Quit: Bridge terminating on SIGTERM]
rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
Jamie has joined #asahi-alt
Jamie is now known as Guest9188
rhysmdnz has joined #asahi-alt
zerdox has quit [Ping timeout: 480 seconds]
ellyq has joined #asahi-alt
possiblemeatball has quit [Quit: Quit]
ellyq has quit [Remote host closed the connection]
Enzime has joined #asahi-alt
possiblemeatball has joined #asahi-alt
ellyq has joined #asahi-alt
cylm_ has quit [Ping timeout: 480 seconds]
anarcat[m] has left #asahi-alt [#asahi-alt]