#
…

2024-09-02

00:01Dan___ has joined #asahi-alt
00:09Dan___ has quit [Ping timeout: 480 seconds]
01:00KxCORP5894000 has quit [Quit: Bye!]
01:00KxCORP5894000 has joined #asahi-alt
01:03Dan___ has joined #asahi-alt
01:07ellyq has joined #asahi-alt
01:11Dan___ has quit [Ping timeout: 480 seconds]
01:23Dan___ has joined #asahi-alt
01:31Dan___ has quit [Ping timeout: 480 seconds]
01:41Dan___ has joined #asahi-alt
01:47ellyq has quit [Ping timeout: 480 seconds]
01:49Dan___ has quit [Ping timeout: 480 seconds]
02:20zerdox has quit [Ping timeout: 480 seconds]
02:24tobhe_ has joined #asahi-alt
02:31tobhe has quit [Ping timeout: 480 seconds]
02:32Dan___ has joined #asahi-alt
02:40Dan___ has quit [Ping timeout: 480 seconds]
03:06Dan___ has joined #asahi-alt
03:13Halian has joined #asahi-alt
03:14chadmed__ has quit [Remote host closed the connection]
03:14Dan___ has quit [Ping timeout: 480 seconds]
03:16chadmed__ has joined #asahi-alt
03:42Dan___ has joined #asahi-alt
03:50Dan___ has quit [Ping timeout: 480 seconds]
04:01Dan___ has joined #asahi-alt
04:09Dan___ has quit [Ping timeout: 480 seconds]
04:21zerdox has joined #asahi-alt
04:36Dan___ has joined #asahi-alt
04:44Dan___ has quit [Ping timeout: 480 seconds]
04:54Dan___ has joined #asahi-alt
05:02Dan___ has quit [Ping timeout: 480 seconds]
05:12Dan___ has joined #asahi-alt
05:17aead_ has joined #asahi-alt
05:19aead has quit [Ping timeout: 480 seconds]
05:20Dan___ has quit [Ping timeout: 480 seconds]
05:48Dan___ has joined #asahi-alt
05:54chadmed__ has quit [Quit: Page closed]
05:56Dan___ has quit [Ping timeout: 480 seconds]
06:22Dan___ has joined #asahi-alt
06:30Dan___ has quit [Ping timeout: 480 seconds]
06:41Dan___ has joined #asahi-alt
06:49Dan___ has quit [Ping timeout: 480 seconds]
06:59Dan___ has joined #asahi-alt
07:29hightower2 has quit [Remote host closed the connection]
07:29hightower2 has joined #asahi-alt
07:31Dan___ has quit [Ping timeout: 480 seconds]
07:37JayBeeFOSS has quit [Ping timeout: 480 seconds]
07:38JayBeeFOSS has joined #asahi-alt
07:38pjakobsson_ has quit []
07:41Dan___ has joined #asahi-alt
07:49Dan___ has quit [Ping timeout: 480 seconds]
08:17Dan___ has joined #asahi-alt
08:25chadmed_ has quit [Read error: Connection reset by peer]
08:44Dan___ has quit [Ping timeout: 480 seconds]
08:45zerdox_ has joined #asahi-alt
08:50zerdox has quit [Ping timeout: 480 seconds]
08:53zerdox_ is now known as zerdox
09:14qyliss has quit [Quit: bye]
09:16qyliss has joined #asahi-alt
09:18Dan___ has joined #asahi-alt
09:34zerdox_ has joined #asahi-alt
09:38zerdox has quit [Ping timeout: 480 seconds]
09:38zerdox_ is now known as zerdox
09:38leiochaos_princess: x86_64-multilib-toolchain build fails for me with https://dpaste.com/F7EYRRCSP (config.log https://bpa.st/UE6DS ), as somehow strip-unsupported-flags isn't getting rid of -march=native
09:48chaos_princessleio: fix or delete dnssec on dpaste.com
09:49leiothat's just reporting gcc can't compile in configure.log, the interesting stuff is in bpa.st
09:49chaos_princessyea, yea, i already disabled validation, but still
09:50leioit's my default go-to when doing manually because bpa.st doesn't like longer stuff, albeit that wasn't long
09:50chadmedi think we should probably just hard code some bumass basic flags for the glibs c
09:50leioyeah, right now the only way to build this is to do a package.env that forces -O2 -pipe or similar
09:50leiowhich is user intervention
09:51leioif I set some x86 -march there, it'll fail in binutils build (and probably gcc stage1 and more), as that's done with native compiler
09:51chadmedwe can pick up whichever freaky flags folks want for gcc and its binutils friends but the glibsc should just be -O2 -pipe -fomit-frame-pointer etc etc
09:51leio-fomit-frame-pointer is the default on x86, unfortunately; I'm having to override it everywhere :(
09:51leio(and default on arm64)
09:53chadmed99% of users dont care about it, dont need it, and we want the fex stuff to just be as fast as possible while staying correct (hence no O3)
09:53chadmedbuuuut we also have to be very careful with what optimisations we let gcc do, especially in the fex rootfs
09:54chadmedeg we should prevent it from emitting AVX and x87 because these are both dog slow
09:54chaos_princessinteresting that it worked here, since i have -march=armv8.4 in cflags
09:56leioI set -march=native -mcpu=native in my gcc flags override, which I need for this due to the glibc build
09:58leiobuilt without any -march/-mcpu/-mtune via the env override, with https://bpa.st/WB3IO
10:00leionow stuck with krun on https://bpa.st/7ZMA4
10:01chaos_princesscan you post your make.comf
10:01leionvm, I missed one of the env overrides I need for some bindgen stuff, it looks like
10:02leioyup, that was it. Now I'm on a real rust compile error like https://bpa.st/JDQ7E
10:03leiowhat is this ansi stuff, grr
10:03leiook, https://bpa.st/QYU44 might be more readable
10:04leiofeels like too low virglrenderer dep or some such, as I had that installed at a lower version from long ago tries of this stuff
10:04chaos_princessupdate it to the one in overlay
10:04leiothough I don't see that dep at all in krun ebuild
10:05leiolibkrun dep doesn't have a matching minimum version either
10:05leioso that wasn't upgraded either
10:05leiowell, not matching, but probably too old for it
10:06chaos_princesslibkrun does not exist
10:06chaos_princessas on old versions
10:06chaos_princessthe only version that was ever packaged is the correct one
10:07leiofine, but minimum versions should still be listed, e.g. for virglrenderer
10:07leioif older doesn't work
10:09chadmed has quit [Quit: Konversation terminated!]
10:09chadmed has joined #asahi-alt
10:14leioafter libkrun upgrade (had some old version of that too), it was fine with old virglrenderer too, as far as compiling is concerned
10:17leionot sure what the next steps were for steam here
10:18chadmedyoull need a FEX rootfs, put the x86 _and_ amd64 mesa from the fedora asahi copr in it, then install steam
10:20leiokrun is just panicking immediately
10:20chaos_princesswhat's the panic text
10:20leioError creating the Kvm object: Error(13)
10:20leiothread '<unnamed>' panicked at src/vmm/src/linux/vstate.rs:415:30:
10:20chaos_princessso, do you have kvm in your kernel?
10:21chaos_princessactually, i think 13 is eaccess or sth, add yourself to kvm group
10:22leiothat got me further, I guess `krun FEXRootFSFetcher -y -x --distro-name=fedora --distro-version=40` is out of date or smth :)
10:23leiomainly giving: Couldn't download rootfs list from the server. Try again in a minute or report on the fex-emu issue tracker.
10:23chaos_princessah, right, what dns resolver are you using
10:24leioNetworkManager just sets it up in /etc/resolv.conf
10:24chaos_princessdo you have resolvconf in PATH
10:25chadmedim buying one of those massive movie theatre popcorn makers for when we release all of this to the general public
10:26leiothat fails to apply to the overlay version
10:26chaos_princessidk, delete resolvconf from /usr/bin or something
10:27leioI'd rather we improved the out of the box experience :)
10:27chaos_princesswell, i am working on it :P
10:27* leiobackports
10:28chadmedi am genuinely 100% of the opinion that the only way this isnt going to suck arse is for linux to learn about folios and mixed-pagesize userspace
10:28zerdox has quit [Remote host closed the connection]
10:28chadmedFEX itself is incredible and Just Works(tm), its all the faffing about with krun and passt and sommelier and...
10:29leiomeh, I don't see any net.rs changes in those lines there
10:29n3ph has joined #asahi-alt
10:29leiooh, just confused, was another file
10:29chaos_princessyou need to add -e resolvconf=does-not-exist to dhcpcd arguments in crates/krun-guest/src/net.rs
10:30chaos_princessif you keep --nodev, you do not need the udev changes
10:31zerdox has joined #asahi-alt
10:31leiooverlay snapshot misses the "Add support for input device passthrough" commit, if that'll matter
10:31leiowhich is mostly why it doesn't apply
10:32chaos_princessthat is correct, it is not packaged yet
10:32chaos_princesssince that needs one more package
10:32leiograbbed it for user patches too to just apply the PR as-is, but I gather I might have a broken krun then with the missing package now
10:33chaos_princessnah, it is fine, it will just skip doing that bit if hidpipe is not installed
10:34leiostill fails to get rootfs list
10:34leioat the beginning it now says "Using default interface naming scheme 'v253'.", which it didn't before these patches
10:35chaos_princesscat /etc/resolv.conf inside the vm?
10:35leiosearch lan
10:35leionameserver 192.168.1.1
10:35leiowhat does "inside the vm" mean btw, I'm just prefixing with krun - does it have a default VM or smth?
10:35chaos_princesscheck if internet is working at all there, curl google.com or something
10:36chaos_princesskrun starts a vm for your commands, yes
10:36leiocould not resolve host
10:37leioseems to match my host one, except no ipv6
10:37chaos_princessand also curl 1.1.1.1
10:37leiothat gets a 301 back with text fine
10:38chaos_princessjust to check, 192.168.1.1 is a valid nameserver on your network, yes?
10:38leiokrun curl -4 google.com doesn't work either, fwiw
10:39zerdox has quit [Ping timeout: 480 seconds]
10:39leiothat's what I use on host, yes
10:39chaos_princessjust to check, what version of passt do you have
10:39leio2024.06.07
10:40chaos_princesswhat is gentoo package version
10:40leiothe same
10:41leioif it helps, please minversion it after appropriately :)
10:41chaos_princessi am still looking at what went wrong with x86-multilib-toolchain, but i'll get to it
10:42leiowill take time to clean up my ::gentoo local tree to pull updates in
10:42leioand running out of todays poking time for now soon
10:43leiochadmed: I guess if it's some mesa from COPR, I won't have vulkan in there
10:44chadmeddoesnt really matter anyway like i said in the dms sommelier is so crap that its effectively useless
10:44chadmedsteam looks awful, games run in a 1280x720 window with no decorations and smudged by crap scaling
10:44chaos_princesschadmed: how brave are you? :P
10:45chadmedi played i won the loudness war on all of my macs and compiled the kernel for 12 hours on a loop with the fans forced to off
10:45chaos_princessdo not skip step 8
10:47chadmedwill do tomorrow
11:01kaazoo has joined #asahi-alt
11:03iyes has joined #asahi-alt
11:07kaazoo has left #asahi-alt [#asahi-alt]
11:07kaazoo has joined #asahi-alt
11:07kaazoo has quit []
11:08chadmedokay it kinda works?
11:08chadmedi can open glxgears but it doesnt render, its just the first frame
11:09chadmedthe window has decorations and behaves like a normal window in kwin though!
11:09chaos_princessthen dax is not working
11:09chaos_princessgive me your mount output inside the vm
11:10chadmedlet me try something
11:12chadmedbash: /usr/bin/sudo: Permission denied
11:13chadmedyour libkrun branch, your krun branch
11:13chaos_princessright, sudo does not work in a vm
11:13chadmedi did chmod u+s x112virtgpu too
11:14chaos_princessno, i know the problem, it is due to cross-vm mmap not working, you need to check if vm mounted the fs properly
11:15chaos_princessmake sure the root mount has dax=always in options
11:16chadmedin the vm?
11:17chadmedhow do i check that without root access lmfao
11:17chaos_princesscat /proc/mounts
11:17chadmed*facepalm*
11:17chadmedyeah it has dax=always
11:18chaos_princesscan you give me all the commands you are using to launch all that
11:18chadmedkrun bash
11:19chadmedunset WAYLAND_DISPLAY
11:19chadmedexport DISPLAY=:0
11:19chadmedx112virtgpu &
11:19chadmedglxgears
11:20chadmeddmesg has a dax related splat in it
11:20n3ph has quit [Ping timeout: 480 seconds]
11:21chaos_princessdid glxgears detach from the terminal?
11:22iyes has quit [Quit: Konversation terminated!]
11:22chaos_princessno output from x112virtgpu?
11:24chaos_princesscan you also do a ls -la /tmp/.X11-unix/ inside the vm
11:24chaos_princessand outside too
11:24chaos_princessactually, nvm, shouldnt be the issue
11:25chadmedthe vm has X0 and X1, host has X0 only
11:25chadmedperms etc all look good
11:25chaos_princessthen do ls /dev/shm, and also try resizing the window of glxgears, just in case
11:25chadmedresizing the window just makes it black
11:26chadmednothing in /dev/shm
11:27chaos_princesscan you try with LD_PRELOAD then?
11:27chadmeddo i preload that into glxgears or into x112virtgpu
11:27chadmedbc if the former, already tried and didnt help
11:28chadmedoop now it works
11:28chaos_princessi am now more confused than ever
11:28chadmedoh now it exploded when i resized
11:29chaos_princesswith our without preload?
11:29chaos_princessand how exactly did it explode
11:29chadmedwith preload, and the window just went black and did not recover
11:29chadmedglxinfo also takes out x112virtgpu
11:30chadmedthis is on the m2 air btw, ill try with the studio tomorrow
11:30chaos_princessyes, resize is part where most bugs are expected, since this results in me having to do some super nasty things with cros-vm mmaps and all of this is just horrible
11:31chaos_princessi was testing it on m1 pro, maybe it could be an issue?
11:31Dementor9 has quit [Ping timeout: 480 seconds]
11:31chadmedi can test with that too tomorrow
11:31chadmedcbf going back downstairs now though
11:32chadmedkilling a window also doesnt signal its process to die but thats chill who cares this is already 9999999x better than sommelier
11:36chaos_princessNo, that one is specifically glxgears
11:36chaos_princesssame under sommelier
11:41chadmedeverything just looks so much better
11:43leiocurl still does not resolve after passt upgrade
11:44chaos_princesskrun bash, kill dhcpcd, run it with -d, see how it fails
11:45leiodon't have permissions to kill it :S
11:45leioas in, don't have root within krun
11:45chaos_princesscompile this, set it setuid root
11:46chaos_princessthis is the nonsense i use to get root inside vms
11:49leiowhere do I put this
11:50leiooh, it's just seeing the host stuff at this point
11:50chadmedyes the host rootfs is mounted inside the vm
11:52leiochmod u+s not enough on it?
11:53chaos_princessu+s, and chown to root
11:53chaos_princessmight also want g+s
11:55leioI only get kvm group inside krun
11:55leiook, chgrp of the executable to kvm group removed the setuid bits, working now
11:57leiodon't really see anything bad in dhcpcd -d, https://bpa.st/OAWDY
11:57chaos_princesssd_bus_open_system
11:57chaos_princessit is still trying to use resolvconf
11:58chaos_princessdid you pass the -e resolvconf=does-not-exist to it?
12:00leiostill sd_bus_open_system after krun -e resolvconf=does-not-exist bash
12:00chaos_princessthats a dhcpcd argument
12:01leiothen it's fine re there being now no sd_bus_open_system, but still doesn't resolve
12:01chaos_princesswhat is in the logs?
12:02chaos_princesswhat do you have in /lib/dhcpcd/dhcpcd-run-hooks
12:03leioand some stuff in dhcpcd-hooks
12:03chaos_princessright, sorry, i wanted what is in dhcpcd-hooks
12:04leio01-test 20-resolv.conf 30-hostname 50-ntp.conf 50-timesyncd.conf 50-yp.conf
12:05chaos_princesswhat is inside 20-resolv.conf
12:07chaos_princessand what did it put into /etc/resolv.conf
12:07chaos_princessoh, and also, send me your /proc/mounts
12:08leio20-resolv.conf is a standard file installed by dhcpcd package itself
12:08leio /etc/resolv.conf is like before, generated by NM, essentially `search lan` and `nameserver <my router IP>`
12:08chaos_princessexcept it shouldnt be
12:09leiomounts from inside krun?
12:10chaos_princesslooks correct, what is it missing
12:11chaos_princessand is resolv.conf a normal file?
12:11leioit's a normal file within both host and krun
12:12leiohost one is from NM, krun one is from dhcpcd
12:12leiosame contents besides comments, except NM has IPv6 too
12:12chaos_princesswdym krun one is from dhcpcd
12:12leiocat /etc/resolv.conf from within my `krun bash`
12:13leiothe file contents say it's generated by dhcpcd
12:13chaos_princessok, so i was looking at the wrong thing
12:13chaos_princessthen it is right
12:13chaos_princessits another issue
12:14chaos_princessecho 'nameserver 1.1.1.1 >/etc/resolv.conf' inside the vm and try again
12:14chaos_princessexcept with ' in another place
12:14leiothen it works
12:14chaos_princessand before that you had your router there, correct?
12:15leiocorrect
12:15leiocurl can't access my router by IP either, its web UI that works in host
12:15chaos_princesssend me ifconfig output please
12:17chaos_princessdo you have any other device on your network that has a http server or something?
12:17chaos_princesstry reaching that from the vm
12:17chaos_princess(device that is not the router)
12:17leioI don't, currently
12:18leiooh, I do
12:18leiothat works
12:18leioas in, curl gives me the login page for my ventilation system ;p
12:19leioso dhcpcd figures to use my router as nameserver as announced by router or something, yet things can't talk to it
12:20chaos_princessbecause from the vm, your router's ip actually directs to the host
12:20chaos_princessat least thats my current theory
12:21chaos_princessand in my case it works, since i have systemd-resolved and it runs a dns server on localhost
12:21leiosure, if I launch python http.server from the host, then curl http://192.168.1.1:8000
12:21leioinside the krun vm gives me the file listing from host
12:22chaos_princessok, yet another thing to fix in krun
12:22chaos_princessat least i know what is the issue now
12:23chaos_princessfedora probably also runs systemd-resolved so people don't hit it
12:25leioyeah, and I included the krun patch from PR 53, why did I still need to manually launch dhcpcd with the -e flag?
12:25chaos_princessbecause you were launching it from console, not from krun
12:26chaos_princessthis was not the issue, i was just not able to figure out what exactly was happening
12:26leiook, so I don't need that anymore, just need to replace resolv.conf with 1.1.1.1 after
12:26chaos_princessyes, just put any other resolver there
12:27chaos_princessor install systemd-resolved :P
12:27leioyeah, that's a disabled service.
12:29leioso now I have some sort of a FEX rootfs
12:44leiogot steam, but it's rather unhappy without the mesa bits :)
12:45zerdox has joined #asahi-alt
12:47chaos_princessto come back to toolchain, here it removes -march=native from cflags correctly
12:47chadmedyeah just pull the mesa rpms down from the copr and rpm2tarxz && tar xpvf them inside the rootf
12:47chaos_princesswould you mind telling me the exact way you set up everything relating to that package?
12:57leiowhat mesa rpms :)
12:58leiochadmed: paste.ee work for you re dnssec?
12:59chadmedseems to
12:59chadmedit was chaos_princess that had issues with it though
12:59leiowhoops, tab fail
13:01n3ph has joined #asahi-alt
13:01leiochaos_princess: something like this: https://paste.ee/p/6xKxV
13:10chaos_princessso its mcpu that is the problem, it does not filter that one out
13:22ellyq has joined #asahi-alt
13:38leiowell, the logs just have it warn about mcpu and then ignore by the x86 gcc, but fail on unknown march.
13:42chaos_princessactually, it wasnt mcpu, but something else, and i already fixed it
13:43chaos_princesspr for ebuild fix soontm
14:14zerdox has quit [Ping timeout: 480 seconds]
15:12chadmed has quit [Quit: Konversation terminated!]
15:12chadmed has joined #asahi-alt
15:12chadmed has quit []
15:12chadmed has joined #asahi-alt
15:14n3ph has quit [Ping timeout: 480 seconds]
15:42kevinchrist20 has joined #asahi-alt
15:42kevinchrist20 has quit [Remote host closed the connection]
16:02Dementor9 has joined #asahi-alt
16:25Dementor98 has joined #asahi-alt
16:31Dementor9 has quit [Ping timeout: 480 seconds]
16:31Dementor98 is now known as Dementor9
17:39Dementor9 has quit [Ping timeout: 480 seconds]
17:55john-cabaj has joined #asahi-alt
18:15iyes has joined #asahi-alt
18:32iyes has quit [Quit: Konversation terminated!]
18:32Dan___ has quit [Ping timeout: 480 seconds]
18:40iyes has joined #asahi-alt
18:43aead_ is now known as aead
18:50iyes has quit [Quit: Konversation terminated!]
18:52Dan___ has joined #asahi-alt
18:53iyes has joined #asahi-alt
18:56iyes has quit []
20:20KxCORP58940003 has joined #asahi-alt
20:20KDDLB2 has joined #asahi-alt
20:20imobilis_ has joined #asahi-alt
20:20pounce_ has joined #asahi-alt
20:21cy8aer_ has joined #asahi-alt
20:23ellyq_ has joined #asahi-alt
20:23stintel_ has joined #asahi-alt
20:24tobhe has joined #asahi-alt
20:24ellyq has quit [reticulum.oftc.net helix.oftc.net]
20:24hightower2 has quit [reticulum.oftc.net helix.oftc.net]
20:24tobhe_ has quit [reticulum.oftc.net helix.oftc.net]
20:24KxCORP5894000 has quit [reticulum.oftc.net helix.oftc.net]
20:24pounce has quit [reticulum.oftc.net helix.oftc.net]
20:24seb4nihel has quit [reticulum.oftc.net helix.oftc.net]
20:24KDDLB has quit [reticulum.oftc.net helix.oftc.net]
20:24flokli has quit [reticulum.oftc.net helix.oftc.net]
20:24mjolnir[m]1 has quit [reticulum.oftc.net helix.oftc.net]
20:24matrix_ds has quit [reticulum.oftc.net helix.oftc.net]
20:24Lew-J has quit [reticulum.oftc.net helix.oftc.net]
20:24steffen[m] has quit [reticulum.oftc.net helix.oftc.net]
20:24imobilis has quit [reticulum.oftc.net helix.oftc.net]
20:24cy8aer has quit [reticulum.oftc.net helix.oftc.net]
20:24stintel has quit [reticulum.oftc.net helix.oftc.net]
20:24KxCORP58940003 is now known as KxCORP5894000
20:24steffen[m] has joined #asahi-alt
20:24pounce_ is now known as pounce
20:25hightower2 has joined #asahi-alt
20:25ellyq has joined #asahi-alt
20:25seb91nihel has joined #asahi-alt
20:25KDDLB has joined #asahi-alt
20:25flokli has joined #asahi-alt
20:25Lew-J has joined #asahi-alt
20:25matrix_ds has joined #asahi-alt
20:25stintel has joined #asahi-alt
20:25matrix_ds has quit [Ping timeout: 480 seconds]
20:25imobilis_ is now known as imobilis
20:25stintel has quit [Ping timeout: 480 seconds]
20:25ellyq has quit [Ping timeout: 480 seconds]
20:26KDDLB has quit [Ping timeout: 480 seconds]
20:26cy8aer_ is now known as cy8aer
20:28mjolnir[m]1 has joined #asahi-alt
20:30matrix_ds has joined #asahi-alt
20:43seb4nihel has joined #asahi-alt
20:45seb91nihel has quit [Read error: Connection reset by peer]
20:54Dan___ has quit [Ping timeout: 480 seconds]
21:00Dan___ has joined #asahi-alt
21:08Dan___ has quit [Ping timeout: 480 seconds]
21:19Dan___ has joined #asahi-alt
21:45iyes has joined #asahi-alt
22:00iyes has quit [Quit: Konversation terminated!]
22:11iyes has joined #asahi-alt
22:21iyes has quit [Quit: Konversation terminated!]
22:24Dan___ has quit [Ping timeout: 480 seconds]
22:32Dan___ has joined #asahi-alt
22:40Dan___ has quit [Ping timeout: 480 seconds]
22:49phire_ has joined #asahi-alt
22:49phire is now known as Guest2312
22:49phire_ is now known as phire
22:52Guest2312 has quit [Ping timeout: 480 seconds]
23:40Dan___ has joined #asahi-alt
23:54Dan___ has quit [Ping timeout: 480 seconds]
…