ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
<colemickens> I feel like I've seen some notes about black display but I'm not sure where that ended up
<colemickens> dang, I was so sure this was just going to work too
<vk6[m]> what happens during this "screen flash?"
<colemickens> nothing, the messages about loading the device tree and then ... exiting boot services
<colemickens> that's in the small uefi console fb in the middle of the screen
<colemickens> adn then there's a whole screen flash, presumably as the initrd/some driver loads
<colemickens> I actually wonder if i'm too over zealous with my initrd, as I've included all of the various drivers so they load fairly early.
<colemickens> hm, do I need a custom console= ... it is arm after all
<vk6[m]> i believe i'm experiencing something similar with my attempts
<vk6[m]> for me at least, the kernel start loading fine and i can see the fbcon and boot logo for a bit, then the screen goes black
<vk6[m]> my hypothesis so far is that i was missing the firmware for the gpu
<colemickens> ah hm, I dont even see boot logo
<colemickens> you mean the efi/vendor one?
<colemickens> I guess I don't think nixos is configured to really show that. It just does a verbose normal boot
<vk6[m]> i mean the line of penguins at the top left of the screen
<robclark> colemickens: I believe you still need at least some of `clk_ignore_unused pd_ignore_unused arm64.nopauth efi=novamap`
<robclark> fwiw display should come up without gpu fw
<robclark> drm/msm just tries to load gpu fw each time the device is opened until it succeeds (to avoid needing fw in initrd)
<colemickens> I have fw too, from .sera
<colemickens> I'll get 'er back out and try tagging those on system-boot on the fly
<colemickens> oh hey, look at that. I have kernel boot log. It looks like I messed up the nixos image in some other potentially silly way, but there it goes
<colemickens> I'll have to remake image anyway for kernel params and can fixup the partition label mistake I've made or rwhatever it is
<colemickens> hm, I kind of suspect I'm missing a qcom/usb initrd module
<colemickens> since I'm usb booting
<vk6[m]> i managed to get to the sddm login screen
<vk6[m]> but the keyboard and trackpad don't work
<colemickens> oh I hope it wasn't just waiting on repart :/
<FarchordSteveCossette[m]> colemickens: On the vivobook, I know you gotta use USB-C. USB-A is just a no dice.
<colemickens> this device only has em, and I'm not using an adapter, so hopefully good there
<FarchordSteveCossette[m]> yeah if I want to use a USB-A drive, I need a USB-C hub lol
<colemickens> ugh, got a message about a missing fw file that I know is in there
<colemickens> does qcom still have issues with loading compressed fw?
<colemickens> yeah, the boot log is telling me it's waiting for a /dev/disk/by-label/nixos to appear and sure enough on my computer its there :(
mahmoudajawad[m] has joined #aarch64-laptops
smpl has quit [Ping timeout: 480 seconds]
systwi has quit [Ping timeout: 480 seconds]
<robclark> loading compressed fw is a kconfig thing.. nothing arch specific
<robclark> I'm using compressed modules and fw here, fwiw
<adamcstephens> i don't think pdmapper supports zstd compression, which nixos uses, but otherwise compressed firmware should be fine
systwi has joined #aarch64-laptops
<robclark> ok, so userspace pd-mapper needs the json things to not be compressed (but I assume kernel pd-mapper doesn't have the same limitation)
<robclark> I've not been considering userspace pd-mapper since it is getting replaced with kernel pd-mapper
<steev> i don't know because i don't do compressed firmware (yet)
<steev> maybe once debian starts doing it, i will
<vk6[m]> so i copied the extra firmware files (from https://github.com/Seraphin-/linux-firmware-x1e80100-vivobook) in an attempt to get wifi and the keyboard working, but now it's crashing during the systemd startup because somehow the usb drive is getting disconnected
<vk6[m]> i'm not really sure what's going on here
<robclark> so.. I've got rootfs on nvme which might be side stepping some issue with power getting cut to usb at some point in boot (although I've not had problems with usb boot to recover from botched kernels).. clk_ignore_unused pd_ignore_unused might be related
<robclark> re kb/touchpad input I've had to manually modprobe evdev... no idea why
<robclark> I have this /etc/modules-load.d/robs-hacks.conf :
<steev> wasn't there a similar issue on x13s when some firmware or other was in the initramfs?
<vk6[m]> i guess i'll also try booting from nvme to get around that usb power issue
<robclark> pretty sure you want 'clk_ignore_unused pd_ignore_unused' at this point either way
<steev> you do
<vk6[m]> i do have those kernel args already
<robclark> steev: I moved some things that need fw (like adsp/cdsp) to modules to avoid having to get fw into initrd.. but then I need the modules-load.d trick to get them to load
<robclark> probably some missing distro things
<robclark> but I'm just a gpu driver dev so no idea how those things are _supposed_ to work
<steev> ema: have you tried out the 6.10 kernel at all? my udev rule for the wifi mac address isn't working anymore?
<steev> ohhh because ip was moved from usr/sbin to usr/bin
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
krei-se has quit [Quit: ZNC 1.9.1 - https://znc.in]
krei-se has joined #aarch64-laptops
jhovold has quit [Ping timeout: 480 seconds]
<pstef> hmm, I switched from Fedora Rawhide to Debian Trixie and it's generally nice, but I can't "Enable Bluetooth" under KDE/Plasma (even with "experimental" kernel 6.10mumble)
hightower2 has quit []
hightower2 has joined #aarch64-laptops
<mahmoudajawad[m]> Do we have people running Snapdragon X here? What devices?
<FarchordSteveCossette[m]> <mahmoudajawad[m]> "Do we have people running..." <- Mostly the Lenovo yoga and the thinkpad I believe. There's also a couple Asus Vivobooks, like myself
<FarchordSteveCossette[m]> https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3289 Seems like I might start maybe perhaps get a bit of an easier fun at this....
<mahmoudajawad[m]> <FarchordSteveCossette[m]> "Mostly the Lenovo yoga and the..." <- Awesome! Thanks for replying.
<mahmoudajawad[m]> Anyone here compiling list of reports on distros, what is working what not, installation steps on these devices?
<FarchordSteveCossette[m]> mahmoudajawad[m]: Yeah that's been asked before. Info is spread a bit everywhere right now. To be fair, I don't think anything is 100% working, all laptops are in various states
<FarchordSteveCossette[m]> There's quite a bit of file ripping being needed from Windows right now too
<FarchordSteveCossette[m]> Once I get my Fedora install running (Sometimes in the next century lol) I'll make a guide
checkfoc_us has quit []
checkfoc_us has joined #aarch64-laptops
<steev> pstef: did you do the bluetooth mac addr fix?
<pstef> steev: I know I tried to, but maybe it was the wrong fix
<pstef> that helped, so I tried something weird
<pstef> steev: thanks
f_ has quit [Ping timeout: 480 seconds]
<steev> pstef: fwiw, i followed ema's excellent instructions in https://wiki.debian.org/InstallingDebianOn/Thinkpad/X13s#Wi-Fi_and_Bluetooth
<steev> the only thing in trixie/sid is that the wifi part of that rule should be /usr/bin/ip now
<steev> i only noticed the change because i started getting a notification of a new wifi device every time i rebooted it
<pstef> I tried to do exactly that but failed at reading
<steev> :D
f_ has joined #aarch64-laptops
<pstef> from a quick glance I was under the impression that the udev part is only for wifi and I never had any problems with it, so I skipped to the systemd unit part... which turns out to depend on the udev part
<steev> ahhh :D
<steev> hmm, so debian starting with kernel 6.10 is gonna offer a 16K pagesize kernel it looks like
<steev> for me, most things work, but zed, for some reason just immediately dies saying it's out of memory
<dgilmore> fedora has 16k and 64k configs but is not currently building images. I believe that the Ashai remix is building a 16k kernel for use on mac's. RHEL offers 4k and 64k builds
<FarchordSteveCossette[m]> <dgilmore> "fedora has 16k and 64k configs..." <- I have a really annoying problem with the fedora kernel
<FarchordSteveCossette[m]> Imagine I download a fresh .raw.xz image of workstation, and I put it on the drive. The image will boot. But imagine I uninstall that kernel (kernel-install remove <name> and reinstall it (depmod -a, kernel-install, fix the boot entry) with that exact same kernel, it no longer boots
<FarchordSteveCossette[m]> I have no idea why
<dgilmore> There is many reasons that may happen. But the usecase is not something people typically do
<FarchordSteveCossette[m]> fair enough XD
smpl has joined #aarch64-laptops
<HdkR> Asahi's kernel also requires 16k pages. So there's no getting away from it there :P
tobhe has joined #aarch64-laptops
<steev> you can change it to 4K, just iirc, marcan didn't want to as he wanted to force people to fix their stuff, since it should work (rightly so imo)
<robclark> something other than 4k is going to be problematic for fex if you want windows games (otherwise I tend to think apple was right with going for larger page size.. it is kinda one of the secret perf advantages that apple has)
<steev> robclark: as far as i can tell, on the linux side of things, aside from this weird crash saying it's out of host memory, most things work fine (i'm not much of a windows gamer, or gamer in general)
<JensGlathe[m]> 🤯 video calls are working on element, I'm not safe anymore
<FarchordSteveCossette[m]> lol
Mathew has joined #aarch64-laptops
mcbridematt has quit [Read error: Connection reset by peer]
<robclark> steev: I don't expect windows games or gpu to actually work completely with 4k pages, I'm just interested to compare cpu benchmarks with mX 4k pages vs mX 16k pages vs x1e 4k vs x1e 16k
<robclark> I know mX gpu mmu and iommu's don't really work with 4k pg size, but that shouldn't matter for cpu benchmarks
<colemickens> [@_oftc_robclark:matrix.org](https://matrix.to/#/@_oftc_robclark:matrix.org) So I confirmed my image was correct, added the kernel params, enabled emergency console and sure enough, I don't see my USB storage device showing up. Nothing under dev block except the nvme
<colemickens> If you have any more ideas or someone else I can bug, please let me know
<HdkR> robclark: Yea, the dart being limited to 16k page size makes anything beyond CPU loads spicy on Apple Silicon. Hacking around the limitations is a lot worse than just using a 4k page size vm :D
<HdkR> Just need to fix all the issues with the VM now, which is a lot easier
<robclark> Yeah, like I said I was only interested in CPU benchmarks for that
<robclark> I want to know what the pagesize uplift is
<HdkR> Pretty sure they did some benchmarking initially
smpl has quit [Remote host closed the connection]
<HdkR> There was some mention of a 20% perf hit going from 16k to 4k, but it must have been a pretty spicy bench to hit that number
jannau has joined #aarch64-laptops
<jannau> robclark: iirc I saw a 15% perf uplift for kernel compilation with 16k pages
<steev> https://browser.geekbench.com/v6/cpu/compare/7086459?baseline=7086686 this is what i see on the x13s - 6459 is the 4K pagesize, 6686 is 16K
<gabertron> anybody managed to get audio working on the x1 laptops so far? On my t14s and got widevine working and can see the Olympics but can’t hear anything :) was hoping I could look at somebody’s tplg settings for the yoga or something for reference
<HdkR> steev: 3.5% uplift is more in line with expectations
<steev> gabertron: the .conf files are the source for the tplg file
<steev> i suppose the .m4 is the actual source?
<gabertron> Cool will take a look