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)
<leezu> steev, I've just opened the merge request: https://github.com/aarch64-laptops/build/pull/83/
<steev> keyboard on the c630 is hid over i2c so could look at how it's done and get the addresses correct
<steev> si
<steev> i2c3 is the touchpad(s) and i2c5 is the keyboard
<steev> and 11 is the touchscreen, iirc (not looking at it at the moment)
<leezu> Great. For this sc7180 laptop, do you think it's reasonable to include from sc7180.dtsi and take a look at what other sc7180-X.dts do? Do you know what IDP stands for in sc7180-idp.dts?
<steev> i think that's the dev board? idk
<robclark> idp is a sorta dev/reference device.. looks kinda like an oversized phone..
<robclark> and re-using sc7180.dtsi is the thing to do.. _that_ part of things should be more SoC specific than board specific
<robclark> also, fwiw, before you wipe the windows install, there is one extra gpu fw that windows (and android, but not CrOS) things need which is potentially signed with a vendor or device specific key that you'll need to copy.. on the sdm850 laptops (like yoga c630) it is qcdxkmsuc850.mbn so I guess the file you are looking for will follow a similar naming convention.. you'll need something similar to the
<robclark> gpu.zap-shader.firmware-name thing that sdm850-lenovo-yoga-c630.dts has to tell the driver what to load.. without that it will be insta-reboot when gpu driver loads
<robclark> (I think venus (video enc/dec) and maybe some other things have signed fw that you'll also have to copy.. I know less about those)
<steev> just grab everything in FileRepository that is *.elf, *.mdt, *.mbn, *.bXX
<steev> where XX are numbers
<steev> there is likely a .bin file as well, that is the actual UEFI bios
<robclark> does windows actually use split fw (ie. *.bXX stuff).. it seemed like they mostly realized those were just sections in an elf file
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
<leezu> Should such firmware files be added to linux-firmware?
<robclark> IANAL but I think qcom would have to send pull req for them (potentially indirectly via linaro)... but also I'm not entirely sure if that is really even scalable.. the fw's are really all the same other than signing key.. which could be per vendor or per device (although that isn't really clear to me.. we'd have to compare fw binaries from multiple (for ex) sc7180 windows laptops to be sure)
<robclark> there is, for ex, sdm845/850 zap fw in linux-firmware, which will work on dev boards.. but not sdm850 laptops, because what is in l-f is signed with a test key
jhovold has joined #aarch64-laptops
iivanov has joined #aarch64-laptops
<Dylanger> iirc a bunch of the 7c chromebooks are also signed with test keys, no QFPROM fuses are touched, except for mba, that's the only thing that's properly signed by Google
srinik has quit [Killed (NickServ (Too many failed password attempts.))]
srinik has joined #aarch64-laptops
hexdump0815 has quit [Remote host closed the connection]
hexdump0815 has joined #aarch64-laptops
Lucanis0 has joined #aarch64-laptops
leezu has quit [Ping timeout: 480 seconds]
Lucanis has quit [Ping timeout: 480 seconds]
leezu has joined #aarch64-laptops
shawnguo has joined #aarch64-laptops
djakov_ has joined #aarch64-laptops
djakov has quit [Ping timeout: 480 seconds]
<robclark> Dylanger: we don't use qcom's tz so the thing that would use qfprom fuses is simply not there.. OTOH it is unneeded because the entire root partition, including the fw files, is signed (unless you are in dev mode, but in that case you won't get some things like protected content playback)
djakov_ has quit [Remote host closed the connection]
djakov has joined #aarch64-laptops
djakov_ has joined #aarch64-laptops
djakov has quit [Ping timeout: 480 seconds]
leezu has quit [Ping timeout: 480 seconds]
leezu has joined #aarch64-laptops
Lucanis0 has quit []
Lucanis has joined #aarch64-laptops
systwi has quit []
systwi has joined #aarch64-laptops
SallyAhaj_ has quit [Remote host closed the connection]
SallyAhaj has joined #aarch64-laptops
jhovold has quit [Ping timeout: 480 seconds]
<bamse> robclark: do you remember why we uninstall the acpi tables in dtbloader at ExitBootServices, if we detect that the OS seems to care about the DT we passed? just to save a little bit of space or would there be some real reason?
<bamse> maz: ^^
<robclark> I think it was maz who advocated for that.. but IIRC it was more of just a correctness thing
<robclark> ie. dt boot should have acpi tables
<bamse> but we would have decided to go dt in linux already at that point?
SallyAhaj_ has joined #aarch64-laptops
SallyAhaj has quit [Ping timeout: 480 seconds]
<robclark> bamse: right, I don't think it actually hurts anything.. unless maybe you managed to boot windows after dt tables installed ??
<robclark> the argument at the time for removing acpi tables was simply that it was against spec
<bamse> robclark: the systemready ir spec?
<bamse> or perhaps ebbr would be the correct name for that part
<robclark> yeah, I think ebbr.. maz would be the one who knows for sure
<bamse> good, because i talked with Grant about that part, so then i have the backstory
<bamse> maz: if you have any additional input it's appreciated
<maz> bamse, robclark: I don't think I had anything to do with that. wasn't it Leif instead?
<bamse> maz: so you think there's an actual reason for doing it?
<robclark> oh, I guess then it was probably Leif
<bamse> maz: unrelated to this, but as you're here...what in an edk2 system causes a Filesystem to be attached to a Block IO device?
<maz> bamse: not that I can think of. the kernel should pick the DT unless the ACPI table is referenced in the DT, no?
<Dylanger> <robclark> "Dylanger: we don't use qcom's tz..." <- Do you know if the physical QFPROM IP block is there?
<Dylanger> I think it is right? Google squats over Modem's RoT
<bamse> maz: right, but then Leif has a ExitBootServices hook, that checks to see if the kernel modified the dtb and if so drops the acpi tables
<bamse> and yes it was part of Leif's original commit
<robclark> Dylanger: hw block should be there, but I don't think we use it.. I'm not entirely sure where the key to validate modem fw is.. maybe amstan or dianders knows?
<Dylanger> Iirc the cert I pulled from the modem was a legit Google one, cheers for clearing that up
<Dylanger> Really wish Qualcomm's 7c series was the default for all SoCs
<Dylanger> Does anyone know what/how VioS works?
<Dylanger> Looks like it's a ChromiumOS sound server?
<broonie> bamse: in general ACPI and DT have different enough models of things that it’s safer to prevent them both being in use at once - discarding the ACPI tables is a good way to provide a level of defence against anything getting it wrong.
<bamse> broonie: right, so it seems like good practice...was just wondering if it's a requirement
<dianders> robclark / Dylanger: not quite sure what all the questions are. We definitely have the fuses and we should have signed them with a Chrome OS key. We don't use all of the features that other Qualcomm-based products use though, since our root-of-trust is based on SPI flash write protection, not on a signing key...
<Dylanger> It would make sense for Google to lock down Qualcomm's modem
<Dylanger> Otherwise
<Dylanger> A) You'll have people bytepatching it, bringing down public infra
<Dylanger> B) Perfect lil place for an implant/malware