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)
<steev> the patch is 100% there in rc7 tag
<clover[m]> ok, hmm
<steev> apparently github doesn't like that url
<clover[m]> what do
<steev> qzed: on the spx, before you did your little hack or whatever, pointing to a random directory with empty files, rmtfs was refusing to start wasn't it? https://github.com/linux-surface/surface-pro-x/issues/2
<steev> it was a link to that change being in rc7
<qzed> rmtfs more or less worked, the problem is that it can't find the files/partitions
<steev> right, you created some files somewhere and then point rmtfs at it, instead
<steev> not mentioned in the issue though what the workaround you used is
<steev> i want to test if doing that here works
<qzed> essentially, you can run rmtfs with some verbose/debug flag I think and then look at what it's trying to load
<steev> aha
<steev> i knew i'd seen it SOMEWHERE, i just couldn't find it in the issue
<steev> hm, that's not the issue though
<clover[m]> ok steev i think i found my issue with the pkgbuild, rebuilding the kern
<qzed> with wifi being different, does the thinkpad even need rmtfs?
<steev> that, i don't know
<qzed> maybe adsp?
gwolf has joined #aarch64-laptops
<steev> but i'm not getting /dev/qcom_rmtfs_mem1 device, but QCOM_RMTFS_MEM=y - on the c630 it's m and i do have that device
<qzed> although that's rather tqftpserv
<qzed> (adsp that is... I think that doesn't need rmtfs)
<qzed> I had kinda hoped that the thinkpad with pcie-nvme and all would have the same remote partition / efs stuff as the spx
<steev> well, it seems to
<steev> at least, i can't find any efs
<qzed> yeah, but if the wifi/modem stuff doesn't require it it might not even be there...
<qzed> or at least accessible
<qzed> anyway... I am gonna poke at the scm/uefisec stuff and see what comes back...
<steev> well, mine doesn't have WWAN, so, i wouldn't know if it does or doesn't :(
<qzed> my theory is that it stores at least the uefi stuff on a qspi-nor
<qzed> but that doesn't seem to be accessible from the application-processor
<qzed> so my theory is that it's handled via the tz-os
<qzed> at least there is no qspi reference in acpi, or in any of the system drivers... but there is in the uefi bin
<qzed> and in qcmpss
<qzed> but we'll see what comes back when I poke at the uefi vars via scm...
<qzed> if I get some storage access request I guess I'll have to figure out more
<qzed> if i'm lucky, it will either ask for a passthrough-scm call or it will work outright
<clover[m]> steev: is there any chance we will ever get gpu support?
<steev> eventually, it will happen yes
<clover[m]> anyone currently working on it?
<steev> robclark: is anyone working on a690 stuff?
<steev> at least, i think we have an a690
<clover[m]> lol
<clover[m]> Ok x13s iso caught up now :)
<clover[m]> I see the opp-3000
<steev> woo
<steev> mine just ran out of battery
<steev> 9 1/2 hours, working in vim, alacritty and vscode
<steev> and git and firefox
<clover[m]> Amazing. Is everything pretty snappy even without gpu?
<steev> i'm using gnome on wayland, so yeah - there's no audio yet either so haven't tried to play a video
<clover[m]> Bluetooth?
<steev> maybe?
<steev> i don't think i tried
<steev> does dmesg have any output about bluetooth?
<steev> if not... it may not because we claim to be a different wifi device
<steev> mine is off and charging the battery currently
<clover[m]> I haven't figured out my wlan device yet
<szclsya[m]> steev: gui with llvmpipe?
<steev> i believe it is
<szclsya[m]> then 10hrs is pretty impressive, considering cpu has to do all the work
<szclsya[m]> have we figured out cpu frequency scaling yet?
<robclark> steev: hmm, not sure.. I guess we mostly have to figure out which generation of a6xx it is
<steev> cpufreq is already working, or should be
<steev> you can check with cat /sys/devices/system/cpu/cpufreq/policy4/stats/time_in_state
<steev> you can check with cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state
<steev> second one is for the little cores
<steev> based on my experience with long running compiles on the thinkpad... if it was stuck at max freq... you would know
<HdkR> steev: Has three clusters so it should have policy{0,4,7}
<steev> hm
<steev> it's not written that way in the dts
<HdkR> Oh no I'm wrong, I forgot they moved to 4x X1 for this one :D
<HdkR> Mixing up phone versus compute platform things
<HdkR> Once GPU is wired up it will likely be a good platform for me to snag
<szclsya[m]> yeah, they finally stop basically just overclocking their smartphone soc
<HdkR> If I miss it, let me know when it's wired up to sane uses. I need to update a few people from a c630 anyway
<HdkR> 32GB of RAM for development is pretty good
<qzed> does anyone know if it's possible to cross-compile a kernel with scripts/fixdep support for building external modules?
<qzed> whelp, copying over those tools from the stock kernel worked
<steev> qzed: yeah it's possible, but you need a patch and some modifications; https://github.com/pyavitz/debian-image-builder/tree/feature/patches/packaging has them, but he set them up for a few specific boards instead of in general
<qzed> thanks!
<steev> i think armbian might also have them somewhere in their tree because they also do it
<qzed> might look into this but at the moment I'm fine with hacking together the tools from the stock kernel... it's temporary anyways
<steev> i usually just point the build/source symlinks to a git checkout, but i know that isn't for everyone
<robclark> HdkR: a bit of trial/error w/ freedreno_devices.py should get a690 working.. I had assumed it was basically what a680 was to a640 relative to a660.. but other observations indicate it might actually be really close to a680.. idk.. I guess which a6xx sub-gen it is should be clear once kernel side is in place?
<robclark> (or rather, I guess the freedreno_devices.py bit only helps with the userspace half of it)
<HdkR> hm
<HdkR> I guess I'll order one for now and get four more if it works without hassle
<steev> so what i'm hearing is, "just make 690 point at 680 stuff and see what blows up"
<HdkR> Nabbed one for testing
<robclark> it's worth a try.. I forget what the situation is on kernel side
<robclark> but I guess bamse knows of a kernel branch somewhere w/ downstream a690?
derzahl has quit [Remote host closed the connection]
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
<bamse> steev: per qzed on sq1 the "a690" seems to just be an a680...
<qzed> I'm not sure though if the spx has a "real" a690...
<bamse> steev: but looking at the downstream sa8295p sources the a690 in 8cx gen 3 is a a660 derrivative
<bamse> steev: while a680 is a a640 derrivative
<bamse> found my tree now...
<bamse> https://git.codelinaro.org/clo/la/kernel/msm-5.4 tag LA.AU.1.4.2.r1-01100-gen3meta.0 has a690 stuff in it
<robclark> the userspace part of it should be mostly just deciding if it is a660 or a640 derivative.. I guess the kernel side of it involves a bit more actual keyboard hammering
<bamse> i share that expectation
<bamse> just haven't had a need for polygons, things works well enough without them :)
<HdkR> Sadly I have maximum need for polygons
<HdkR> :(
jhovold has joined #aarch64-laptops
<steev> you only get half polygons
<amstan> halflygon
<steev> new band namy
<szclsya[m]> I just installed alarm on the internal ssd of my x13s, works fine
<bamse> szclsya[m]: sweet, welcome to the club :)
<steev> say the phrase! say the phrase!
<szclsya[m]> I use arch on x13s btw (x
<steev> glad it's working for ya
<steev> now get to kernel hacking :P
<steev> jhovold: speaking of kernel hacking... will mdss bits be going to mainline soonishly?
<steev> szclsya[m]: oh, since you have one... does the touchscreen work?
<szclsya[m]> Lemme setup my desktop real quick
<szclsya[m]> Doesn't seem to work under sway
<bamse> steev: i was hoping to have posted the mdss pieces already...definitely will get there soon
<steev> bamse: ah, i thought they were coming from johan, sorry for the ping :(
<bamse> steev: nah, they are my workings...
<szclsya[m]> wow alacritty is slow af...
<steev> working fine here :(
<szclsya[m]> konsole is fine though
<szclsya[m]> weird, seems that sway is not using its native hidpi capabilities here. after I scale everything seems to just get Nearest-neighbor-ed
<klardotsh> NN scaling in sway usually implies xwayland is involved somewhere in the application's call stack
<klardotsh> vs native wayland
<szclsya[m]> I think I don't even have xwayland installed though
<szclsya[m]> the whole interface is messed up
<szclsya[m]> touchpad also doesn't seems work, fortunately I like trackpoints
<HdkR> alacritty on software rendering doesn't sound the best
falk689 has quit [Remote host closed the connection]
iivanov__ has joined #aarch64-laptops
iivanov__ has quit [Read error: Connection reset by peer]
iivanov has joined #aarch64-laptops
iivanov__ has joined #aarch64-laptops
iivanov has quit [Ping timeout: 480 seconds]
<clover[m]> "This means your firmware does not support the device tree fixup protocol, which sd-boot relies upon for device tree support. (dtb= cmdline is handled directly by the kernel and therefore works)"
<clover[m]> So does that mean this is all lenovo's fault? Lol
<bamse> clover[m]: what is "the device tree fixup protocol"?
<clover[m]> i guess its a way for the firmware to make tweaks to the device tree if it needs to?
<clover[m]> not really sure, haven't dug into it
<qzed> it's a start
<qzed> clover: the grub devicetree command does work though?
<bamse> clover[m]: if you could point to some concrete thing missing that would be useful
<bamse> clover[m]: in the context of us already discussing devicetree loading with qcom
<clover[m]> pretty sure people in this channel use the grub devicetree command and it works fine, but maybe it doesnt use the same 'device tree fixup protocol' thing that sd-boot uses
<robclark> if someone could point to what the dt fixup protocol is, it could probably be added to DtbLoader
iivanov__ has quit [Quit: Leaving...]
c00k has quit [Ping timeout: 480 seconds]
<szclsya[m]> <qzed> "clover: the grub devicetree..." <- I'm currently using this route. Works
<qzed> makes me think that systemd-boot should either do whatever grub is doing in case that protocol isn't available or that there's a bug in systemd-boot...
<robclark> yeah, if protocol isn't supported it should just skip that step... that said, a no-op implementation of the protocol shouldn't be too hard (and could be useful if we ever do have to deal with fixups for different production runs, etc)
<clover[m]> makes sence to me, i left a comment mirroring this sentiment on the issue
<bamse> so the fixup protocol has a single method of "Fixup()"...i thought the dtb was supposed to be installed with all such Fixups already applied
<bamse> robclark: i'd prefer if the caller treated that protocol as optional...as i'm aiming to remove the dtbloader...
<bamse> ohh, it's to fix up the installed dtb for cases when the dtb is loaded by some 3rd party step
<bamse> well, my goal stands with trying to get rid of the need
abelvesa has quit [Ping timeout: 480 seconds]
abelvesa has joined #aarch64-laptops
<robclark> I guess sooner or later you'll have to deal with the fact that not all of ${whichever_laptop_model} are actually the same.. that has definitely been true so far on the chromebook side of things, if you look at all the sku's and rev's..
<HdkR> x13s will be here tomorrow. Tinkering quite quickly I guess
<clover[m]> one of us... one of us...
<jhovold> szclsya[m]: I've added support for the alternate touchpad now. Can't test it myself, but if you're already building kernels perhaps you can give it a try? https://github.com/jhovold/linux/commits/wip/sc8280xp-next-20220714
<szclsya[m]> jhovold: sure, I'll take a look
<jhovold> szclsya[m]: thanks!
<szclsya[m]> can I expect this tree to work on the x13s, or should I cherry pick the patchset to steev's tree (the tree I'm currently running)?
<jhovold> I just tested it on X13s, it works. I just have a different touchpad.
<clover[m]> what do you mean a different touchpad, do the different models come with different touchpads?
<steev> szclsya[m]: you can't quite cherry pick it because upstream name and the name in my tree are different
<steev> yes clover
<jhovold> clover[m]: indeed
<steev> szclsya[m]: but in a little bit i should have it here
<szclsya[m]> ah neat, will wait for steev's tree then
<steev> szclsya[m]: pushed, you should be able to just replace the dtb though rather than rebuild entirely
<steev> i *think* i got it mostly right, please let me know if it blows things up
<jhovold> steev: there are probably other changes that require a rebuild, but haven't looked at your tree
<steev> jhovold: my "tree" is really just mani's with the backlight added and a couple other minor things
<jhovold> ok, but that's based on of my older -rc1 trees so lots have changed since then
<steev> yeah
<steev> oh, does your next have mdss and such?
<jhovold> yeah, it includes bamse mdss work from last week
<steev> nice
<steev> i'll definitely give yours a go as well
<jhovold> still missing that backlight reference I heard you reported, though
<steev> oh i can add that in, nbd
<steev> that really just means the backlight doesn't turn off when idle/blank
<steev> not really a breaking change
<jhovold> steev: got a pointer to your tree?
* HdkR saves that link for tomorrow
<jhovold> steev: thanks, guess updating the dtb from your branch should do the trick for the alt touchpad
<steev> ill build your stuff tonight when i'm "off work" and can look again and give it a whirl
<jhovold> sounds good
<steev> jhovold: since you're marking wakeups... suspend works?
<steev> or should work
* szclsya[m] just realized I didn't compile my kernel with md4 and now I can't use eduroam because mschapv2 needs md4
<jhovold> steev: no, not yet. Works to some extent, but issues with USB and PCIe.
<steev> jhovold: ah, okay, makes sense - qzed is having similar issues with the spx
<steev> szclsya[m]: ah, crud, i forgot to go over the defconfig, i'll try to make some time for that tonight as well
<steev> jhovold: decided to do it on my lunch break - i added in my 300MHz (already submitted upstream), and the backlight - https://paste.debian.net/1247706 nothing seems amiss more than usual (i don't have the touchpad that szclsya[m] has, nor do i have a touchscreen - thus the bcd errors, i wonder if there's some way to mark them as optional so it doesn't spit those errors out when they aren't supposed to be there.. then again, no idea how
<steev> to tell it which one is supposed to and which isn't)
<szclsya[m]> jhovold: touchpad patch works, able to enable tap in sway
<szclsya[m]> two finger scroll works too, no way to test more sophisticated gestures with sway though
<steev> that's awesome to hear
<clover[m]> w00t
<steev> dianders: i *think* i've found it - i believe i have an IVO M133NW4J (not which which revision)
<steev> actually, i know it's not R0, because R0 says it's glossy
<dianders> Found a datasheet?
<dianders> ...but it wants me to "join free" ;-)
<steev> i can't recall if i have an "account" or not
<steev> i'll look later
<dianders> I guess that one is slightly different, too. F4 vs. 4J ?
<steev> ah, yeah, i didn't njotice that in your link - the ones for the 4J don't seem to have any
<steev> ah
<steev> the F4 is 1920x1080, the 4J is 1290x1200
<steev> er, how did i make that typo twice and only fix ones - 4J is 1920x1200
<bamse> steev: do you know if anyone has looked at bluetooth for the x13s yet?
<steev> bamse: not that i'm aware of, but i'd assume since we're claiming to be the wrong wifi, it would get the wrong BT details too
<steev> unless it's not actually the same chip like a broadcom does
<steev> oh right, it's probably qca blah blah blah
<bamse> yeah, it looks just like the other platforms...some qca thing on uart
<steev> i'd assume as long as we have the correct uart and firmware, it should work
<bamse> hence my ask if someone has tried to plug those things in there ;)
<steev> taking a quick glance, it looks like, just qup2_uart17 in the dtsi so... i could probably poke at it later
<steev> although i'd just have to guess the gpios
<bamse> what do we need? the uart pins?
<steev> comparing to the c630, pins for pinmux, cts, rts-tx and rx
<bamse> that would be gpio121, gpio122, gpio123 and gpio124
<bamse> and gpio133 is "bt enable"
<steev> noted
<steev> dianders: i can't download it even with my account. i don't have their silly currency, and i'm not about to pay :(
<steev> and i don't feel like giving them my kali email
<dianders> steev: oh well. You could always just put up a rough guess with a comment saying that it was found by trial and not by datasheet so you could at least get rid of the warning...
<steev> yeah, that's what i plan
<steev> Lenovo ThinkBook 13s G2
<steev> apparently that has the same display
<clover[m]> what are you trying to do with the x13s screen now, steev?
<steev> clover[m]: my thinkpad has a different panel than everyone else's so trying to put the timings in :)
<steev> you can see in my dmesg output - https://paste.debian.net/1247706 - search for IVO, and you end up with [ 7.676066] panel-simple-dp-aux aux-aea0000.displayport-controller: Unknown panel IVO 0x854b, using conservative timings; basically, it's to get rid of the splat that dianders put in the sauces to make sure we get panel timings in there when needed and off the very conservative ones so that panels all just work
<steev> definitely gonna have to guess... there are only 3 links when you search for 'IVO M133NW4J "datasheet"' and alas, the russian link does not have it either
<steev> i'm assuming we just need the 2 tlv files
<steev> 3*
<steev> hm, actually btqca doesn't seem to know about our firmware