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
sally has joined #aarch64-laptops
deathmist1 has joined #aarch64-laptops
deathmist has quit [Ping timeout: 480 seconds]
svarbanov__ has joined #aarch64-laptops
svarbanov_ has quit [Ping timeout: 480 seconds]
tobhe has joined #aarch64-laptops
tobhe_ has quit [Ping timeout: 480 seconds]
hexdump01 has quit [Ping timeout: 480 seconds]
mbuhl has quit [Remote host closed the connection]
mbuhl has joined #aarch64-laptops
<JensGlathe[m]>
craftyguy steev since it just happened on a wdk2023 again: no HTC Rx errors since wednesday on X13s with iwd and msi-map off on pcie4. It's an odd workaround, but it is.
alfredo has joined #aarch64-laptops
alfredo1 has joined #aarch64-laptops
alfredo has quit [Ping timeout: 480 seconds]
alfredo1 is now known as alfredo
alfredo1 has joined #aarch64-laptops
alfredo has quit [Ping timeout: 480 seconds]
alfredo1 is now known as alfredo
janrinze has joined #aarch64-laptops
newyear25 has joined #aarch64-laptops
ungeskriptet has quit [Remote host closed the connection]
alfredo has quit [Ping timeout: 480 seconds]
hawer has quit [Ping timeout: 480 seconds]
ungeskriptet has joined #aarch64-laptops
alfredo has joined #aarch64-laptops
SpieringsAE has joined #aarch64-laptops
<SpieringsAE>
I've been doing some u-boot stuff and I had some thoughts. So u-boot currently does not implement the uefi runtime service for efivars, this makes it so stuff like efibootmgr doesn't work etc. Theoretically u-boot can do these operations just fine to some spi flash or something,
<SpieringsAE>
the issue is that this spi-flash memory most likely is not operated by special 'secure' hardware, so the linux kernel will also have access to this flash.
<SpieringsAE>
So if u-boot was still working on the spi-flash there could be a conflict with the actual kernel. So what if you just let u-boot die on boot like usually and then mount efivars directly from the spi-flash in linux.
<SpieringsAE>
you could mark some spiflash part as efivars in the dts, uboot can do its efivar business when it is running, and then linux will just take over when it gets there
<SpieringsAE>
you would add a partition called efivars, and some driver could pick that up, register the efivars/ops and boom
<SpieringsAE>
you could add maybe like a compatible = "efivars"; to one of the partitions, not sure if that would be allowed by the defenition but jeah
<macc24>
isn't the whole point of efivars the fact that efi can also read them?
<SpieringsAE>
yes which it can
<SpieringsAE>
u-boot can have full access to it while it is alive, but then give up access and pass it to linux when it boots
<SpieringsAE>
the efi runtime is still in u-boot, but I believe when exit_boot_services or something like that gets called, u-boot kinda just dies
<SpieringsAE>
I guess that does violate the efi spec, but its better than nothing untill we actually get these secure spi interfaces
ryoskzypu has joined #aarch64-laptops
ryoskzypu has left #aarch64-laptops [#aarch64-laptops]
alfredo1 has joined #aarch64-laptops
alfredo has quit [Ping timeout: 480 seconds]
alfredo1 is now known as alfredo
alfredo has quit [Ping timeout: 480 seconds]
<SpieringsAE>
just did some testing with my girlfriends FLIR thingy, it says the area around the charging/sd-card reader get up to 40+ degrees when the laptop is set on its side with no obstruction
<SpieringsAE>
when it is in a normal position as it would be on your lap, it can get up to 50+ degrees there
<SpieringsAE>
that is bottom surface of the laptop temperature on the asus vivobook s15, very spicy
<macc24>
just like the ibm thinkpads back in the day
<travmurav[m]>
SpieringsAE: iirc there was some tool in linux for "special" efivar backends like /esp/efivars.txt for u-boot
<travmurav[m]>
so like linux fully implements it internally and just updates the file/partition/whatever
<travmurav[m]>
or maybe s/was/was discussion about/
<travmurav[m]>
not sure
<travmurav[m]>
but can probably do the same way as qcom
<SpieringsAE>
yeah there is efivars as a file implemented in u-boot
<SpieringsAE>
sadly that patchset seems to have died there and then
<travmurav[m]>
but tbh without some always-running (i.e. tz on arm or whatever thing on x86) domain controlled by u-boot I don't think it's easy
<travmurav[m]>
as in
ungeskriptet_ has joined #aarch64-laptops
<travmurav[m]>
if you give up a spi controller to runtime services, you'd need the "owner" of the controller to turn it on/off to save power properly and not break low power states
<travmurav[m]>
so it'd probably be very special stuff
<travmurav[m]>
in which case lettin linux write to the txt file sounds simpler xD
<SpieringsAE>
yeah this spi controller needs to be designed to be used like this
<SpieringsAE>
which currently does not happen
<travmurav[m]>
I think on qcom/x86 the tz/whatever can "tick" whenever it wants, and especially run when the device suspends/resumes since (at least on arm) you'd call psci into tz to do so
<travmurav[m]>
so on qcom they can claim some blocks and vote them on/off safely
ungeskriptet has quit [Ping timeout: 480 seconds]
<SpieringsAE>
I just want to get rid of the firmware layer for efivars in this situation, it just doesn't exist anymore
<SpieringsAE>
so Linux is the only one controller the hardware at that point
<kettenis>
Linux and u-boot would have to agree on the format of the variable storage (and its location)
<kettenis>
but I guess you could adopt the format that u-boot already uses to store the variables in a file on the ESP
ungeskriptet_ is now known as ungeskriptet
<SpieringsAE>
there is no standard for this? but yeah in this case that seems like a fine compromise
<alpernebbi>
which I dislike because it looks like you'd have to 'lock' the device to one signed implementation forever
alfredo has quit [Ping timeout: 480 seconds]
alfredo1 is now known as alfredo
* alpernebbi
busy irl and way back on everything I have/want to do...
<alpernebbi>
macc24: o/ ^^
<macc24>
hi
<macc24>
im somehow still alive
<alpernebbi>
always glad to hear from you
<kettenis>
the emmc rpmb approach results in too much complexity
<kettenis>
and who cares about secure boot? ;)
SpieringsAE has joined #aarch64-laptops
<SpieringsAE>
I've never really used the ubootefi.var file approach, but it also doesn't really fix the big problem, it will still need to be on one specific device on one specific partition
<SpieringsAE>
spi flash would be a central position that everyone can agree on
<kettenis>
not all devices have spi flash though
<SpieringsAE>
yep for those there will be other solutions like rpmb or the file
<SpieringsAE>
but every device where you would require this will most likely have spi flash, some open source laptop thingy like the pinebook pro for example
<alpernebbi>
I've got a very pessimistic view for the trusted computing future, where everyday websites will require your computer to be "secure and attested" to provide their services to you at all
<alpernebbi>
IMO "every device where you would require this" is every device, SBCs and whatnot included
alfredo1 has joined #aarch64-laptops
<alpernebbi>
well it could have been a priority list of where it should be stored, like spi > emmc > sdcard
alfredo has quit [Ping timeout: 480 seconds]
alfredo1 has quit [Ping timeout: 480 seconds]
SpieringsAE has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #aarch64-laptops
<steev>
JensGlathe[m]: i havent seen them at all in 6.12
<JensGlathe[m]>
nice
<steev>
with just the msi-map removed
<JensGlathe[m]>
iwd ftw
<steev>
no iwd here, have not had a chance to figure out why it causes my x13s to reboot
<JensGlathe[m]>
oh it was a mess until 6.13-rc6though
<JensGlathe[m]>
this is a bit vile of iwd
<JensGlathe[m]>
they use different libraries (iwd and wpa-supplicant) so probably different ioctl patterns
<JensGlathe[m]>
but how do you tackle the debug of this I wonder
<JensGlathe[m]>
There must be something not thread/interrupt safe in the firmware
<steev>
well it doesnt happen to craftyguy, and i think hes also using debian
<steev>
but even if not, should still be 3.3
exeat has joined #aarch64-laptops
zenmov[m] has left #aarch64-laptops [#aarch64-laptops]
Elon_Musk has joined #aarch64-laptops
<Elon_Musk>
Starlink today & the 1st Month is on me ! Limited Time Offer/ PROMO CODE YOLO ! http://star.linkrelay.com/