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
<dgilmore> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37
<steev> try with .41? (should be latest in the firmware repo)
krei-se- has joined #aarch64-laptops
krei-se has quit [Ping timeout: 480 seconds]
<dgilmore> linux-firmware build is less than 2 weeks old
<steev> it should be 41
<dgilmore> looks like it was updated 2 days after the last linux-firmware release
<steev> rip
<dgilmore> Updating the firmware. Hopefully it's happier
bluerise has joined #aarch64-laptops
<dgilmore> well it did not crash on boot
bluerise_ has quit [Ping timeout: 480 seconds]
<dgilmore> WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.41
<steev> that's good
<dgilmore> Well it crashed
<steev> thats not
<TSIN[m]> Failed to boot on my vivobook s15 x1e with v5 image..
<dgilmore> steev: it was the same crash. Just took about an hour rather than straight away
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
<steev> have definitely seen 6.11 be more crashy on wifi but no idea what causes it
kalebris_ has joined #aarch64-laptops
kalebris has quit [Ping timeout: 480 seconds]
kalebris_ is now known as kalebris
jhovold has joined #aarch64-laptops
<JensGlathe[m]> can confirm on EL2 box, wifi crashed twice since booting it with rc5 (yesterday)
<jhovold> dgilmore: looks like the ath11k NULL deref you hit is a known issue with a fix on its way into mainline:
<jhovold> not seeing that here, but from a quick look it seems it only affects 6 GHz
<travmurav[m]> robclark: Jens Glathe I was thinking how slbounce could interact with dtbloader and my loose idea was for dtbloader to provide a generic api that would return dtb path (i.e qcom/sc8280xp-lenovo-blah.dtb) and then slbounce could load after, request that full name and check the soc prefix to then load overlays/fixups. Then adding/removing slbounce.efi alone would enable/disable el2, but I didn't think about this too deeply yet
<travmurav[m]> the "dtb filename protocol" I will most likely implement regardless though, this way bootloaders like sd-boot could choose to have multiple dtbs/ dirs in esp. mapped to different boot options and still use dtbloader's hardware knowledge to pick what to load
<travmurav[m]> Thankfully on sc8280xp (and seemingly on x1e too) the overlay we need to load is pretty simple
<travmurav[m]> I guess there is another funny alternative
<travmurav[m]> hm
<travmurav[m]> we boot as usual, only make sure the dtb is in the configuration table when EBS is hit, slbounce checks config table -> gets dtb, reads that `/chosen/slbounce,switch-to-el2-please;` exists, and if it does exist, does the magic
<travmurav[m]> then the enable/disable of el2 is merely having a dt overlays installed or not
<travmurav[m]> which can be bound to sd-boot/grub(?) boot options
<travmurav[m]> sd-boot has overlays option I'm pretty sure
<JensGlathe[m]> and dt overlay is the best option?
<travmurav[m]> well, or custom -el2 dtb I guess, as long as slbounce has a way to know we want/don't want the switch
<travmurav[m]> I think overlays make things a bit simpler though since we can have a generic overlay that applies to all devices on soc X
<lumag> steev, bamse, travmurav[m]: while playing with c630 & Debian distro kernels I noticed that that while the unsigned kernel boots fine, the same kernel signed with distro's keys crashes the firmware very early during boot. Does anybody know a possible reason or a workaround for that?
<travmurav[m]> I should probably draft up something for that dt option idea...
<travmurav[m]> as in it gets to linux proper but still crashes?
<lumag> travmurav[m], no, doesn't even boot
<travmurav[m]> ah "in firmware"
<lumag> Yep. It happens very early during control transfer (e.g. even before EFI exit boot services messages)
<steev> lumag: i don't think i've seen that here... or maybe i have and didn't realize that is what is going on
<travmurav[m]> hm but it launches shim/grub properly?
<steev> i'm not using the debian kernel til that rcu stall stops happening :(
<lumag> travmurav[m], no shim yet, but the grub works fine.
<lumag> steev, I think it's related to the PSCI sleep states
<steev> my c630 still uses dtbloader (rob's version... or whatever)
<lumag> maybe we should add device-specific workaround.
<lumag> steev, mine too, rob's version
<lumag> I thought that there might be some kconfig or compiler option, but I've really tested linux-image-signed vs linux-image-unsigned
<travmurav[m]> I wonder if it fails to hash/validate a big binary or something like that?
<travmurav[m]> i.e. if it nevere gets to linux efistub code
<lumag> travmurav[m], any idea how to check it?
<lumag> I have a serial dongle attached, so I see 'Synchronous Exception at 0xfoo', most likely coming from EFI
<lumag> Data abort: Translation fault, third level
<travmurav[m]> Not a clear idea but assuming you sign with your keys, I guess putting a print in grub right before it loads the image might be interesting
<lumag> hmm. Maybe I should start by updating grub.
<travmurav[m]> Ugh efi should have everything identity mapped
<lumag> I think I still have a very old one
<travmurav[m]> So if it's an unmapped memory it touches then it's pretty weird
<travmurav[m]> I wonder if it's related to that thing where efi remaps functions to virtual memory, efi=novmap thing iirc?
<travmurav[m]> I don't remember at which point it comes into play though
<travmurav[m]> But digged unsigned difference would make no sense then
<lumag> updating grub didn't help.
DJ_Mulder has joined #aarch64-laptops
<travmurav[m]> (s/digged/signed/ and I should probably kill this autocorrect dictionary at this point...)
DJ_Mulder has quit []
<travmurav[m]> lumag: or hm do you even have SB enabled?
<lumag> travmurav[m], no :-D
<travmurav[m]> Perhaps the signing tool just corrupts the kernel image?
<lumag> shim doesn't work yet on c630, it needs alignment fix
<travmurav[m]> Or like something funny like it corrupts the pe header magic values that allow grub to skip efistub
<travmurav[m]> As in the first 8 bytes where it puts funny nop instruction that happens to start with "MZ"
<travmurav[m]> But would also be weird if it's a tool specifically for signing linux...
<travmurav[m]> Perhaps worth trying to load the linux image via efi shell?
<lumag> travmurav[m], the same image boots on x13s, no SB, same grub
<travmurav[m]> Weird
<lumag> Checked, the difference between PE headers is really minimal - Checksum and Security Dictionary
<lumag> Maybe I should try rewriting that part
<lumag> travmurav[m], ok, miix630 boots such kernels without issues. So it might be that something is off with C630 EFI
<lumag> maybe bamse has some ideas
ema has quit [Quit: leaving]
<anonymix007[m]> travmurav: can slbounce just implement the dt fixup protocol?
ema has joined #aarch64-laptops
<travmurav[m]> Well then it would clash with dtbloader which does the same, but also it would imply slbounce needs to know the soc again
<travmurav[m]> I think leaving dtb handling out of slbounce would simplify thi gs quite a bit
<travmurav[m]> So whether a pre-baked el2 dtb or overlay loading, letting slbounce to only read it would allow user to pick el1 vs el2 in the boot menu since most bootloader allow to set dtb in the boot option
<travmurav[m]> If slbounce unconditionally fixes up, we're back at the Initial problem of "need too much work to pick el1 or el2"
<travmurav[m]> And booting el2 only is sadly currently unfeasible due to no remoteproc booting stuff
<anonymix007[m]> The SoC name can certainly be extracted from the fdt buffer provided to the implementation, can't it? The conditionality problem is another one though. Can we maybe do it in sd-stub somehow? Recent PR has a concept of profiles, maybe it could be extended a bit to support this use-case (pass some parameter for slbounce to decide whether it actually will do any fixups)
MrCatfood[m] has joined #aarch64-laptops
<MrCatfood[m]> anyone tried gpu over thunderbolt on windows?
<HdkR> Does any PCIe GPU vendor even provide ARM64 Windows drivers?
<JensGlathe[m]> Wifi is crashy on X13s, too
<JensGlathe[m]> no real reason to be seen
<MrCatfood[m]> <HdkR> "Does any PCIe GPU vendor even..." <- windows has default display drivers, i'm not sure about the quality
<Jasper[m]> JensGlathe[m]: Yep, same issue
<Jasper[m]> got worse on 6.10
<HdkR> MrCatfood[m]: Might be enough to get display output
<HdkR> Obviously won't be doing D3D, GL, Vulkan on that driver
<travmurav[m]> anonymix007: right, as long as slbounce doesn't have to change uefi memory map, it could check board compatible and load overlays, I actually didn't think of that somehow lol... otherwise slbounce runs at/after EBS so it can do whatever it wants with the dtb I guess
<travmurav[m]> anonymix007: but yeah I guess the main question is letting slbounce know if it's "go" or "no go"
<travmurav[m]> Though I guess this still requires slbounce to cache all possible overlays in ram if it only knows which it needs at the time of ebs (when bootloader has put the dtb to efi config table)
<travmurav[m]> And actually unsure if efistub's cmdline dtb= does hm
<travmurav[m]> Sad seems like it won't register the dtb passed on cmdline
exeat has joined #aarch64-laptops
krei-se- has quit []
krei-se has joined #aarch64-laptops
weirdtreething has joined #aarch64-laptops
weirdtreething has quit [Remote host closed the connection]
<dgilmore> jhovold: ahh, two of my access points have 6Ghz radios.
iivanov_ has joined #aarch64-laptops
iivanov has quit [Ping timeout: 480 seconds]
mrkajetanp has joined #aarch64-laptops
iivanov_ has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
eac has joined #aarch64-laptops
<robclark> lumag: tell me about this serial dongle thing.. that sounds useful
weirdtreething has joined #aarch64-laptops
pstef has quit [Read error: Connection reset by peer]
pstef has joined #aarch64-laptops
mrkajetanp has quit [Ping timeout: 480 seconds]
mrkajetanp has joined #aarch64-laptops
jhovold has quit [Ping timeout: 480 seconds]
fossdd has quit [Remote host closed the connection]
fossdd has joined #aarch64-laptops
mrkajetanp has quit [Ping timeout: 480 seconds]
fossdd_ has joined #aarch64-laptops
fossdd is now known as Guest1823
fossdd_ is now known as fossdd
Guest1823 has quit [Ping timeout: 480 seconds]
Lucanis has quit [Ping timeout: 480 seconds]
iivanov has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
eac has quit [Ping timeout: 480 seconds]
<AladdinSane> Hi, what is the current state on X13s? Is the webcam working?
<steev> if your distro has a new enough libcamera, and you're using either 6.11 rcs or the wip branches, it should, mostly
mrkajetanp has joined #aarch64-laptops
mrkajetanp has quit [Ping timeout: 480 seconds]
iivanov has quit [Read error: Network is unreachable]
iivanov has joined #aarch64-laptops
ellyq has quit [Remote host closed the connection]
ellyq has joined #aarch64-laptops
<AladdinSane> Looks promising. Thanks for the link. I hope these are my last days using Windows!
<steev> there are still definitely some kinks, but i've been using it (fairly) stablely for the past 2 years on linux
Mathew has quit [Quit: Leaving]
Lucanis has joined #aarch64-laptops
mcbridematt has joined #aarch64-laptops
mcbridematt has quit [Read error: Connection reset by peer]