ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630)
alpernebbi has quit [Ping timeout: 480 seconds]
alpernebbi has joined #aarch64-laptops
hexdump0815 has joined #aarch64-laptops
<Dylanger> Cheers 🍻
hexdump01 has quit [Ping timeout: 480 seconds]
<Dylanger> Does anyone know why rmtfs is required for nonlte versions of trogdor (QC 7c Gen 1) is required to get the WiFi remoteproc running?
<Dylanger> There's no modem so there shouldn't be any rmtfs/NV at all
<Dylanger> I assume it's kicking the WiFi remoteproc somewhere, I'd prefer to just do that without rmtfs
<Dylanger> Also does anyone know if `qcom/a630_sqe.fw` is super low level firmware required to run freedreno or if it's a full alternative/closed to freedreno
macc24 has joined #aarch64-laptops
iivanov has joined #aarch64-laptops
dianders_ has joined #aarch64-laptops
robclark_ has joined #aarch64-laptops
ndec has quit [Ping timeout: 480 seconds]
elder_ has quit [Ping timeout: 480 seconds]
arnd_ has quit [Ping timeout: 480 seconds]
pundir has quit [Ping timeout: 480 seconds]
steev has quit [Ping timeout: 480 seconds]
jhugo___ has quit [Ping timeout: 480 seconds]
robclark has quit [Ping timeout: 480 seconds]
unixsmurf has quit [Ping timeout: 480 seconds]
dianders has quit [Ping timeout: 480 seconds]
CosmicPenguin has quit [Ping timeout: 480 seconds]
ndec has joined #aarch64-laptops
elder_ has joined #aarch64-laptops
CosmicPenguin has joined #aarch64-laptops
steev has joined #aarch64-laptops
arnd_ has joined #aarch64-laptops
jhugo___ has joined #aarch64-laptops
unixsmurf has joined #aarch64-laptops
pundir has joined #aarch64-laptops
iivanov has quit []
iivanov has joined #aarch64-laptops
iivanov_ has joined #aarch64-laptops
iivanov_ has quit []
iivanov_ has joined #aarch64-laptops
iivanov has quit [Ping timeout: 480 seconds]
<steev> Dylanger: it isn't required unless you want 3d accel afaik
<bamse> Dylanger: the wifi firmware runs in something similar to a guest virtual machine on the modem hexagon and even in the non-lte case the host os needs to be booted and for some reason that still requires access to storage
<bamse> Dylanger: certainly annoying though...
<bamse> Dylanger: and a630_sqe.fw is firmware that goes into the gpu, regardless of which driver/userspace you're using
robclark_ has quit []
robclark_ has joined #aarch64-laptops
robclark_ has quit []
robclark has joined #aarch64-laptops
iivanov_ has quit []
iivanov has joined #aarch64-laptops
<robclark> Dylanger: wifi is still a modem.. and a630_sqe.fw (and gmu fw) are required for the gpu to work
<robclark> ahh, bamse already answered
<hexdump0815> is there a lit of minimal required firmware to run a sc7180 with gpu, wifi, bt? - i tried to reduce it to ony the essential files, but then strange things started to happen - using all the fw around on cros it works, so it looks a bit to me as if there is more needed than only a630_sqe.fw
<hexdump0815> lit=list
<robclark> on gpu side of things, for chromebooks, you need a630_sqe.fw and a630_gmu.bin .. both of which you can take from linux-firmware (which should be identical to what is in CrOS builds).. on non-chromebooks you also need a630_zap.mbn
<robclark> it's possible that things aren't super well tested if you have, for ex, sqe but not gmu fw
<robclark> for wifi/bt.. you need a bit more.. which I think is signed (meaning you need to take it from CrOS filesys)
wwilly has joined #aarch64-laptops
<macc24> robclark "CrOS filesys" why not https://googlesource.com/chromiumos/linux-firmware ?
<robclark> well, yes, the fw in the CrOS filesys does in fact come from a git tree ;-)
Lucanis1 has quit []
Lucanis has joined #aarch64-laptops
wwilly has quit [Quit: Leaving]
<hexdump0815> robclark: btw. is suspend/resume supposed to work on lazor? i'm currently still running it with its rootfs on usb and after resume it always switched to a readonly filesystem - looked like something is not fully ok
<hexdump0815> kernel is v5.15.14 with a config based on the lazor cros config
<hexdump0815> v5.15.4 i mean :)
<robclark> hexdump0815: I'd *expect* it to work.. but there could be some usb related issue, rootfs on usb is perhaps only tested enough to use for recovery/install
<hexdump0815> robclark: ok - i'll test a bit more during the next days and report back
<hexdump0815> macc24: Dylanger: is suspend/resume working well for you? on emmc or usb?
<robclark> hexdump0815: dianders_ may know something about suspend/resume... I assume we have tests covering s/r running in lab on kernelnext (but likely without usb involved)
macc24 has quit [Ping timeout: 480 seconds]
iivanov_ has joined #aarch64-laptops
iivanov__ has joined #aarch64-laptops
iivanov__ has quit [Remote host closed the connection]
iivanov__ has joined #aarch64-laptops
iivano___ has joined #aarch64-laptops
iivano___ has quit [Remote host closed the connection]
iivano___ has joined #aarch64-laptops
iivanov has quit [Ping timeout: 480 seconds]
iivanov_ has quit [Ping timeout: 480 seconds]
iivanov__ has quit [Ping timeout: 480 seconds]
<Dylanger> <hexdump0815> "macc24: Dylanger: is suspend/..." <- I haven't tested yet
<Dylanger> <robclark> "on gpu side of things, for..." <- I'm definitely missing gmu (`a630_gmu.bin`), any idea what this is/how it differs from `a630_sqe.fw`?
<Dylanger> <robclark> "Dylanger: wifi is still a modem...." <- Yeah iirc the WNCSS runs on the same Hexagon cores the modem does, I want to look into this more, shouldn't need rmt
<Dylanger> iirc the MAC address maybe stored in NV along with other radio/wifi related calib data
<Dylanger> But there's no place/partition where this data is stored
<Dylanger> So I think rmtfs is kicking the WNCSS subsystem to continue booting
<Dylanger> If we can just 'do that', as apposed to having the full rmtfs stack
<Dylanger> That'd be nicer
<robclark> Dylanger: GMU is the thing that manages GPU power/freq/bandwidth.. it is some sort of cortex-m AFAIU.. the SQE is the custom microcontroller thing that deals with cmdstream parsing.. it is a totally custom thing, but also doesn't really look like a "normal" CPU.. it is kind of more like a FIFO processor
<Dylanger> This would make sense, I was pretty underwhelmed running GNOME at 1080p
<Dylanger> Infact dmesg complains it's missing power related GPU features
<robclark> yeah, without GMU we can't even really power on the GPU
iivano___ has quit [Read error: Connection reset by peer]
iivanov has joined #aarch64-laptops
iivanov has quit [Remote host closed the connection]
<robclark> neither gmu or sqe fw is signed, fwiw.. so you can just use what is in linux-firmware for both of those
iivanov has joined #aarch64-laptops
<Dylanger> I think it's signed, but not enforced/verified
<Dylanger> The AP Secure Boot isn't blown on these devices
<Dylanger> (I think)
<Dylanger> Only modem on LTE SKUs are signed with a Google QC key
<Dylanger> WiFi only, you can make changes to WNCSS, resign and everything is okay
<Dylanger> robclark: Oh you said neither
<robclark> neither gmu or sqe is signed.. (zap is.. but not used on chromebooks)... venus is, I think, signed but not enforced.. modem (defn lte+wifi, but I thought wifi-only as well) is signed
<Dylanger> Lol my bad
<Dylanger> Yes
<robclark> (zap is only used when qcom's tz thing is used.. which is not on chromebooks)
<Dylanger> The cert I pulled from the wifi-only firmware looked non-enforced
<Dylanger> robclark: The way... it should be.
<Dylanger> 💢
<Dylanger> Qualcomm needs to keep it's attack surface out of SoCs
<robclark> hmm.. well tbh I'm not entirely sure where the lte sig validation is happening.. I thought that was same for both lte+wifi.. but you should probably only believe what I say about gpu things :-P
<robclark> bamse would know more about modem/hexagon things
<bamse> Dylanger: you can modify modem.mbn (or mdt+bNN) and it will happily load it without a new signature?
<Dylanger> You'd need to re-sign it
<bamse> right
<Dylanger> But the sig isn't checked
<bamse> with a key or the key?
<bamse> hmm interesting
<Dylanger> Just that there's a valid sig
<Dylanger> (Non blown secboot behavior)
<bamse> right, i just didn't expect it for the modem.* itself
<Dylanger> You can't do this with LTE version's modem
<Dylanger> On the Duet 5 at least
<Dylanger> That's all I've checked
<bamse> that said, on sdm845 i've seen signed modem.* happily load a test-key signed wlanmdp.mbn
<Dylanger> But you can for WiFi firmware and other things like Venus
<bamse> but i don't think the chromebooks load the wlan firmware separately
<Dylanger> That's the modem CA
<Dylanger> `Subject: C = US, ST = California, L = Mountain View, OU = Chrome OS, O = Google, CN = Chrome OS Modem Root CA`
<Dylanger> I think it's controlled by Google, they're likely blowing secboot for the modem on LTE SKUs
<bamse> yeah, sounds like they skip that step on their wifi only device then
<Dylanger> I wonder how hard they disabled the actual modem on nonlte versions of the SoC
<Dylanger> Likely the RF Frontend/RF Path would be missing ICs
<Dylanger> The entire boot flow is totally different on Chromebooks too, does anyone know what actually starts executing first? Usually it's the PBL (Physically printed onto die), but the bootlog shows coreboot loading before PBL
<Dylanger> Perhaps this is simply cached logging
<Dylanger> Firmware is loaded from a physical(?) SPI IC
<Dylanger> Compiling my own depthcharge is the next step, but from what I can gather, bootflow looks like
<Dylanger> PBL -- Coreboot -- Depthcharge -- Linux Kernel