#
…

2024-08-16

00:25Lew-J has quit [Ping timeout: 480 seconds]
00:35Lew-J has joined #asahi-alt
01:24Lew-J has quit [Ping timeout: 480 seconds]
01:24ellyqand even then i highly doubt it'll be vaapi
01:25ellyqvaapi is pretty much strictly x86, on ARM64 you can expect v4l2-m2m (which seem to only work in GStreamer)
01:32Lew-J has joined #asahi-alt
01:48jeisom has quit [Ping timeout: 480 seconds]
02:00chadmed_ has joined #asahi-alt
02:00chadmed_ellyq: there is actually a v4l2 backend for vaapi
02:01chadmed_which we will likely need to make use of for AVD to be useful for regular desktop use
02:11ellyqchadmed_: oh, TIL
02:13chadmed_could probably use a fork and a maintainer though :p
02:13ellyqtrue :D
02:14ellyqstill, interesting
03:31zerdox has quit [Ping timeout: 480 seconds]
04:23Juest is now known as Guest589
04:23Juest has joined #asahi-alt
04:30Guest589 has quit [Ping timeout: 480 seconds]
04:59chadmed_ has quit [Remote host closed the connection]
05:59Lew-J has quit [Ping timeout: 480 seconds]
06:01Lew-J has joined #asahi-alt
06:42JayBeeFOSS has quit [Ping timeout: 480 seconds]
06:43JayBeeFOSS has joined #asahi-alt
06:58zerdox has joined #asahi-alt
08:03n3ph has joined #asahi-alt
08:05n3phAnyway aside from that, have I missed a stepafter emerging asahi-kernel-6.9.12-p2 and mesa-24.2.0_pre20240727
08:14leion3ph: I assume you successfully booted into that kernel per uname -a ?
08:21n3ph has quit [Ping timeout: 480 seconds]
09:27n3ph has joined #asahi-alt
09:28n3phleio: $ uname -a
09:28n3phLinux UgokuShiro 6.9.12-p2-asahi-dist #1 SMP PREEMPT_DYNAMIC Thu Aug 15 16:28:57 CEST 2024 aarch64 GNU/Linux
09:33n3phvulkaninfo --summary
09:33n3phERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
09:33n3phCannot create Vulkan instance.
09:33n3phThis problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
09:33n3phERROR at /var/tmp/portage/dev-util/vulkan-tools-1.3.290.0/work/Vulkan-Tools-vulkan-sdk-1.3.290.0/vulkaninfo/./vulkaninfo.h:456:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
09:36n3phglxinfo -B
09:36n3phname of display: :0
09:36n3phdisplay: :0 screen: 0
09:36n3phdirect rendering: Yes
09:36n3phExtended renderer info (GLX_MESA_query_renderer):
09:36n3ph Vendor: Mesa (0xffffffff)
09:36n3ph Device: llvmpipe (LLVM 18.1.8, 128 bits) (0xffffffff)
09:36n3ph Version: 24.2.0
09:36n3ph Accelerated: no
09:36n3ph Video memory: 31644MB
09:36n3ph Unified memory: yes
09:36n3ph Preferred profile: core (0x1)
09:36n3ph Max core profile version: 4.5
09:36n3ph Max compat profile version: 4.5
09:36n3ph Max GLES1 profile version: 1.1
09:36n3ph Max GLES[23] profile version: 3.2
09:36n3phMemory info (GL_ATI_meminfo):
09:36n3ph VBO free memory - total: 63 MB, largest block: 63 MB
09:37n3ph VBO free aux. memory - total: 28307 MB, largest block: 28307 MB
09:37n3ph Texture free memory - total: 63 MB, largest block: 63 MB
09:37n3ph Texture free aux. memory - total: 28307 MB, largest block: 28307 MB
09:37n3ph Renderbuffer free memory - total: 63 MB, largest block: 63 MB
09:37n3ph Renderbuffer free aux. memory - total: 28307 MB, largest block: 28307 MB
09:37n3phMemory info (GL_NVX_gpu_memory_info):
09:37n3ph Dedicated video memory: 4294726918 MB
09:37n3ph Total available memory: 4294758562 MB
09:37n3ph Currently available dedicated video memory: 63 MB
09:37n3phOpenGL vendor string: Mesa
09:37n3phOpenGL renderer string: llvmpipe (LLVM 18.1.8, 128 bits)
09:37n3phOpenGL core profile version string: 4.5 (Core Profile) Mesa 24.2.0-asahi20240727
09:37n3phOpenGL core profile shading language version string: 4.50
09:37n3phOpenGL core profile context flags: (none)
09:37n3phOpenGL core profile profile mask: core profile
09:37n3phOpenGL version string: 4.5 (Compatibility Profile) Mesa 24.2.0-asahi20240727
09:37n3phOpenGL shading language version string: 4.50
09:37n3phOpenGL context flags: (none)
09:37n3phOpenGL profile mask: compatibility profile
09:37n3phOpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.0-asahi20240727
09:37n3phOpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
09:37n3phuff, i need to checkout multiline support, mea culpa
09:38j`ey(the vulkan thing is expected, doesn't seem like honeykrisp is merged to that branch)
09:38lynndotpy has quit [Quit: bye bye]
09:39lynndotpy has joined #asahi-alt
09:39n3ph`GL_NVX_gpu_memory_info` looks odd
09:39n3ph has quit [Quit: WeeChat 4.3.4]
09:39n3ph has joined #asahi-alt
09:41n3phj`ey: I don't know much about wayland and the driver stack yet. how was it working before, if not on vulkan?
09:43j`eyOpenGL
09:44n3phI think it's using software rending ATM
09:44n3phEverything is ridiculously slow
09:45j`eyyeah, OpenGL renderer string: llvmpipe (LLVM 18.1.8, 128 bits)
09:45n3phI've read about the new honeykrisp driver in mesa only being compatible with 6.9.12, right?
09:47j`eyn3ph: `dmesg | grep gpu` shows output?
09:48n3phno, it doesn't
09:49j`eythen you havent built the gpu driver it seems like!
09:52n3phI am using `virtual/dist-kernel`, so indirectly `sys-kernel/asahi-kernel`. I haven't built a custom one yet...
09:57j`eydoes the ebuild also install rust/bindgen etc?
09:57j`eylets ping chadmed
09:58chaos_princesscan you install asahi-sources, cd into the kernel directory and run `make rustavailable`
10:04n3phrust compiler is too new
10:05chaos_princessversion does not matter, what matters is that you do not have rust-src use flag enabled
10:05jeisom has joined #asahi-alt
10:05chaos_princessre-emerge rust with that, then rebuild the kernel and try again
10:07n3phfun, so running `USE="rust-src" emerge -1 dev-lang/rust && emerge -1 sys-kernel/asahi-kernel`?
10:07chaos_princesssth like that, yes
10:07zerdox has quit [Ping timeout: 480 seconds]
10:08chaos_princessthe kernel's makefile's handling of a missing rust compiler is super stupid, instead of erroring out, it just disables everything that depends on rust and proceeds to compile
10:08n3phha, interesting:
10:08n3phcat /etc/portage/package.use/asahi | grep rust
10:08n3ph>=dev-lang/rust-bin-1.79.0 rustfmt rust-src
10:08n3phI have that
10:08chaos_princessdo you have both rust and rust-bin installed?
10:09n3phI guess I have switched from rust-bin to rust somewhen, or both. let me check
10:10n3phI'll sync useflags first and get rid of rust-bin then
10:22n3phAh damnit, I have `virtual/rust` istalled
10:23chaos_princessthat bit of the ebuild enforces that there is at least one copy of rust that has rust-src, but there is nothing to force it to be the active one
10:24n3phsure, I have to switch between them using `eselect rust`. what I am trying to find out ATM is how to enforce both packages to be emerged with `rust-src` enabled.
10:25n3phthough, if I have the `virtual/rust` installed, both declarations are not checked at all, since it's or'ed
10:26n3phanyway, so at least one of them. :thinking:
10:26jannauno, that's (virtual/rust && (>=dev-lang/rust-bin-1.76[rust-src,rustfmt] || >=dev-lang/rust-1.76[rust-src,rustfmt]))
10:27jannauuse flag should be move to virtual/rust
10:27chaos_princessthat would not help tho
10:27n3phah, right. `|| ()` is the or expression for both package constraints
10:27n3phchaos_princess: why?
10:28chaos_princessyou could still install two copies of rust, one with no rust-src, and then set it as active
10:28chaos_princessthe only way i see is to check in src_configure or something
10:28jannautrue, it would just move the issue to virtual/rust
10:30n3phchaos_princess: you mean `src_configure` in `sys-kernel/asahi-kernel`?
10:30n3phmakes sense
10:31n3phBut it would also be _very_ helpful to just fail if make rustavailable fails.
10:34j`ey yeah it's odd
10:50n3ph has quit [Quit: WeeChat 4.3.4]
10:51leion3ph: I noticed newer mesa reporting that memory too. It looks to be pretty much total RAM with a bit removed. It reports ~189.77 GB for me and I saw it be reduced by some kB or MB the other day.
10:52leioit's sort of correct, but not counting normal RAM use when it's unified or something; not exactly available
10:52leionot sure of the story behind it otherwise
10:54n3ph has joined #asahi-alt
10:54n3ph has quit []
10:55n3ph has joined #asahi-alt
10:55n3ph dmesg | grep gpu
10:55n3ph[ 1.166822] gpu_sched: exports duplicate symbol drm_sched_entity_destroy (owned by kernel)
10:55n3phbut I am still on llvmpipe
10:58n3phhmm, under FAR `dmesg | grep gpu` is empty too
10:58chaos_princesscan you post `zcat /proc/config.gz | grep ASAHI`
11:00chaos_princesslsmod | grep -i asahi
11:00n3phnot loaded
11:00chaos_princessmodprobe drm_asahi
11:00n3phmaybe they are missing in initrd
11:01n3phui, it's missing in the main modules: `modprobe: FATAL: Module drm_asahi not found in directory /lib/modules/6.9.12-p2-asahi-dist`
11:03chaos_princessequery f asahi-kernel
11:05KxCORP589400 has quit [Ping timeout: 480 seconds]
11:12n3phchaos_princess: any recommendations how to? it's too much to `wgetpaste`. compressed archive is ~150k
11:12chaos_princessjust post first 100-ish lines, should be enough
11:14n3phgreat, now it's 500... :-/
11:16chaos_princessit is installing it to the correct location i guess
11:16chaos_princessweird that it can't find the kernel module
11:16chaos_princessmaybe try posting the build log of asahi-kernel?
11:17chadmed has quit [Quit: Konversation terminated!]
11:17chadmed has joined #asahi-alt
11:20n3phfind /usr/lib/modules -name '*asahi*'
11:20n3ph/usr/lib/modules/6.9.7-p1-asahi-dist
11:20n3ph/usr/lib/modules/6.9.7-p1-asahi-dist/kernel/drivers/gpu/drm/asahi
11:20n3ph/usr/lib/modules/6.9.7-p1-asahi-dist/kernel/drivers/gpu/drm/asahi/asahi.ko
11:20n3ph/usr/lib/modules/6.9.9-p5-asahi-dist
11:20n3ph/usr/lib/modules/6.9.9-p5-asahi-dist/kernel/drivers/gpu/drm/asahi
11:20n3ph/usr/lib/modules/6.9.9-p5-asahi-dist/kernel/drivers/gpu/drm/asahi/asahi.ko
11:20n3ph/usr/lib/modules/6.9.12-p2-asahi-dist
11:20n3ph/usr/lib/modules/6.9.12-p2-asahi-dist/kernel/drivers/gpu/drm/asahi
11:20n3ph/usr/lib/modules/6.9.12-p2-asahi-dist/kernel/drivers/gpu/drm/asahi/asahi.ko
11:20n3phmodprobe: ERROR: could not insert 'asahi': Exec format error
11:21chaos_princessanything in dmesg?
11:22n3phah sure
11:22n3phdmesg | grep drm
11:22n3ph[ 0.067895] [drm] Initialized simpledrm 1.0.0 20200625 for 107d36be880.framebuffer on minor 0
11:22n3ph[ 0.068310] simple-framebuffer 107d36be880.framebuffer: [drm] fb0: simpledrmdrmfb frame buffer device
11:22n3ph[ 1.166822] gpu_sched: exports duplicate symbol drm_sched_entity_destroy (owned by kernel)
11:22chaos_princessjust last several lines
11:22n3ph[ 1.177488] apple-drm soc:display-subsystem: Adding to iommu group 4
11:22n3ph[ 1.755355] apple-drm soc:display-subsystem: bound 38bc00000.dcp (ops hdmi_audio [apple_dcp])
11:22n3ph[ 1.757009] apple-drm soc:display-subsystem: bound 289c00000.dcp (ops hdmi_audio [apple_dcp])
11:22n3ph[ 1.757214] apple-drm soc:display-subsystem: bound 39b540000.audio-controller (ops __mod_of__of_match_device_table [apple_dcp])
11:22n3ph[ 1.896540] [drm] Initialized apple 1.0.0 20221106 for soc:display-subsystem on minor 1
11:22n3ph[ 1.897321] apple-drm soc:display-subsystem: [drm] fb0: appledrmfb frame buffer device
11:22n3ph[ 8.513802] systemd[1]: Starting Load Kernel Module drm...
11:22n3ph[ 8.522114] systemd[1]: modprobe@drm.service: Deactivated successfully.
11:22n3ph[ 8.522193] systemd[1]: Finished Load Kernel Module drm.
11:22n3ph[ 8.880152] drm_exec: exports duplicate symbol drm_exec_cleanup (owned by kernel)
11:22n3ph[ 1722.136939] drm_exec: exports duplicate symbol drm_exec_cleanup (owned by kernel)
11:22n3ph[ 1772.938317] drm_exec: exports duplicate symbol drm_exec_cleanup (owned by kernel)
11:22n3phdmesg | tail -n 10
11:22n3ph[ 12.343132] Bluetooth: RFCOMM ver 1.11
11:22n3ph[ 38.494949] sched: RT throttling activated
11:23n3ph[ 185.384548] fbcon: Taking over console
11:23n3ph[ 185.394387] Console: switching to colour frame buffer device 189x61
11:23n3ph[ 1251.992047] macsmc-rtkit 290400000.smc: RTKit: syslog message: apComms.cpp:375: SMC HID Event: 01 06 01
11:23n3ph[ 1252.020439] macsmc-rtkit 290400000.smc: RTKit: syslog message: apComms.cpp:375: SMC HID Event: 01 06 00
11:23n3ph[ 1567.408014] landlock: Disabled but requested by user space. You should enable Landlock at boot time: https://docs.kernel.org/userspace-api/landlock.html#boot-time-configuration
11:23n3ph[ 1722.136939] drm_exec: exports duplicate symbol drm_exec_cleanup (owned by kernel)
11:23n3ph[ 1772.938317] drm_exec: exports duplicate symbol drm_exec_cleanup (owned by kernel)
11:23n3ph[ 1781.481129] spi-hid-apple-of spi1.0: Read package crc mismatch
11:24chaos_princessok, just to make sure, you are booting the right kernel, and you did rebuild initramfs after installing it
11:25n3phI have seen dracut being executed. I think. I am on 6.9.12-p2 yes
11:26chaos_princessand you do _not_ have ccache or anything
11:26n3phnot intyentionally - let me check once more
11:26n3phno I don't
11:27n3phI am already reemerging `sys-kernel/asahi-kernel-6.9.12_p2` once more to get a build log
11:27chaos_princessidk what is with the duplicate symbol, can you try installing asahi-sources and using that instead of asahi-kernel
11:27n3phtmpfs on /var/tmp/portage - *sigh*
11:28chaos_princessfull tmpfs and things broke beacuse of that?
11:28n3phI don't think so... but I am double-checking at the moment
11:28n3phno, I just don't have the build log anymore, as I've rebooted
11:31n3phmodprobe -v asahi
11:31n3phinsmod /lib/modules/6.9.12-p2-asahi-dist/kernel/drivers/gpu/drm/drm_exec.ko
11:32n3phmodprobe: ERROR: could not insert 'asahi': Exec format error
11:32n3phinsmod /lib/modules/6.9.12-p2-asahi-dist/kernel/drivers/gpu/drm/drm_exec.ko
11:32n3phinsmod: ERROR: could not insert module /lib/modules/6.9.12-p2-asahi-dist/kernel/drivers/gpu/drm/drm_exec.ko: Invalid module format
11:32j`eyrun `file` on that?
11:32chaos_princessno, it is a duplicate symbol somehow as seen in dmesg above
11:35n3phlsmod | grep drm
11:35n3phappledrm 49152 5
11:35n3phapple_dcp 278528 1 appledrm
11:35n3phdrm_dma_helper 49152 3 appledrm,apple_dcp
11:36n3ph/proc/kallsyms does not help (me), how do I proof `drm_exec_cleanup()` is exported by `asahidrm`?
11:36chaos_princessi'd recommend rebuilding it from asahi-sources and seeing what happens
11:36n3phand why is it `asahidrm`. Anyhow, you're right. I'll go that way
11:38n3phhm, great. I thought I've lost the build log through rebooting. m( But I need to make use of `FEATURES="keepwork"`
12:13yuka has quit [Remote host closed the connection]
12:13cy8aer has joined #asahi-alt
12:16yuka has joined #asahi-alt
12:21zerdox has joined #asahi-alt
12:56n3phchadmed: we should try stripping down the kernel config.
12:56n3phWDYT about `make localmodconfig`?
12:57chaos_princessthe kernel config is the way it is to be able to be used as livecd kernel
12:58n3phuff. it's just too much stuff...
12:58n3phbut I see what you mean. It is basically taken from the livecd, isn't it?
12:58chaos_princesswell, thats what asahi-sources is for
12:59n3phWell, that's odd: DEPMOD /lib/modules/6.9.12-asahi-1-asahi-dist
12:59n3phsomehow it's prefixed wierdly
13:02n3ph has quit [Quit: WeeChat 4.3.4]
13:03n3ph has joined #asahi-alt
13:03n3ph\o/ OpenGL renderer string: Apple M1 Max (G13C C0)
13:05n3phSo, I wonder whats going wrong with `sys-kernel/asahi-kernel`. But TBH, i've made my boot parition too small to have more than 2 kernels laying around.
13:05chaos_princessare you using the exact same config for asahi-kernel and asahi-sources?
13:05n3phm) I'll need to fix that first for having more space available and playing proceeding debugging.
13:06n3phI've used `cat /proc/config.gz | gunzip > .config` on `sys-kernel/asahi-sources`.
13:06chaos_princessthe whole thing is weird, but w/e
13:06n3phAnd that one came from the 6.9.12 dist kernel I've already had
13:08n3phSo, I don't think it's related to the config. It couldn't be rust vs. rust-bin. I've got rid of rust-bin already
13:08n3phresizing boot is PITA
13:09n3phIDK why I made it 512M -_-
13:25chadmedn3ph: no, we should continue to follow the fedora config
13:25chadmedas is done for all gentoo distkernels
13:26chadmedthey are dist kernels for a reason
13:26chadmedif you want a stripped down kernel config, emerge asahi-sources and roll your own
13:26chadmed has quit [Quit: Konversation terminated!]
13:27chadmed has joined #asahi-alt
13:29n3ph has quit [Quit: WeeChat 4.3.4]
13:30n3ph has joined #asahi-alt
13:30n3phchadmed: where do I find the fedora config?
13:31chadmedits a bit of a PITA to get to, have a look at the asahi-kernel ebuild. we grab it straight out of the copr's git repo
13:33chadmedlook at line 34
13:47chadmedthinking we're gonna need a fex ebuild sooner rather than later
13:47chadmedthat somehow deals with whatever fex root solution alyssa sanctions
13:51n3ph has quit [Ping timeout: 480 seconds]
13:55zerdox has quit [Ping timeout: 480 seconds]
13:59chaos_princessfex even without rootfs would be quite annoying to package, just look at how much stuff it vendors
14:00jeisom_ has joined #asahi-alt
14:00jeisom has quit [Read error: Connection reset by peer]
14:03chadmedyeah thats why i havent looked at it yet
14:04chadmedmost of these should be in ::gentoo, we _might_ be fine
14:06chadmedurgh no it explicitly expects them to be vendored
14:23jeisom_ has quit [Remote host closed the connection]
14:24jeisom has joined #asahi-alt
14:27n3ph has joined #asahi-alt
15:09Schnipp has joined #asahi-alt
15:18Schnipp has quit [Ping timeout: 480 seconds]
16:18jeisom has quit [Ping timeout: 480 seconds]
16:32n3ph has quit [Ping timeout: 480 seconds]
16:50jeisom has joined #asahi-alt
16:52Halian has quit [Quit: Going offline, see ya! (www.adiirc.com)]
16:52Halian has joined #asahi-alt
17:12zerdox has joined #asahi-alt
17:40jeisom has quit [Remote host closed the connection]
17:41jeisom has joined #asahi-alt
18:10cyrinux has quit []
18:10cyrinux has joined #asahi-alt
18:37mpsdo macbooks have light sensor
18:40mpsI guess they have so correct question should be 'does asahi kernel have driver/s for light sensor'
18:41j`eyit doesn't currently, no
18:41j`eyeiln did some starting work on it, it's part of the same processor as some of the mic stuff
18:41mpsaha, ok and thanks for info
18:58jeisom has quit [Remote host closed the connection]
19:08jeisom has joined #asahi-alt
19:09jeisom has quit [Remote host closed the connection]
19:11serge__ has joined #asahi-alt
19:11serge__ has quit []
19:19zerdox has quit [Ping timeout: 480 seconds]
19:24jeisom has joined #asahi-alt
19:32fliife has quit [Quit: ZNC - https://znc.in]
19:33tjbc has joined #asahi-alt
19:35jeisom has quit [Quit: Leaving]
19:58jeisom has joined #asahi-alt
20:06jeisom has quit [Remote host closed the connection]
20:07jeisom has joined #asahi-alt
20:08jeisom has quit [Remote host closed the connection]
20:17jeisom has joined #asahi-alt
20:26jeisom has quit [Remote host closed the connection]
20:30jeisom has joined #asahi-alt
20:31jeisom has quit [Remote host closed the connection]
20:41jeisom has joined #asahi-alt
20:49jeisom has quit [Quit: Leaving]
20:51jeisom has joined #asahi-alt
20:58jeisom has quit [Remote host closed the connection]
21:01jeisom has joined #asahi-alt
23:03tobhe has quit [Remote host closed the connection]
23:05jeisom has quit [Quit: Leaving]
23:18zerdox has joined #asahi-alt
23:32jeisom has joined #asahi-alt
23:33nela has quit [Quit: bye!]
23:34nela has joined #asahi-alt
23:47tobhe has joined #asahi-alt
…