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)
Mathew is now known as mcbridematt
<jenneron[m]>
bamse: does glink need anything in userspace? I can't get display to work with these modules included in initramfs
<jenneron[m]>
also, display doesn't work if I place adsp firmware, but it's probably another problem
<harvestz[m]>
Does anyone know what optional extensions Snapdragon 8cx Gen 3 Compute Platform has? Or better yet, where to find detailed documentation?
<HdkR>
If you're looking for CPU extensions then yes that is what you're looking for
<HdkR>
It's basically ARMv8.2 plus a smattering of random things
<harvestz[m]>
Awesome, first time trying real development on a cpu that has more than 35 instructions haha. I do however stare at arm disassembly for work often
<steev>
jenneron[m]: you need the pd-mapper service at a minimum
<bamse>
jenneron[m]: nah, edp doesn't depend on anything...to get the plug detct to work for external display you need the pd-mapper userspace tool though
<bamse>
jenneron[m]: but you need a ton of modules in your ramdisk...so to debug think i typically comment out the schedule_delayed_work() in regulator_init_complete() and just rely on efifb
<bamse>
jenneron[m]: the regulator thing makes it so that the backlight regulator doesn't turn off after 30 seconds...
<bamse>
and yes, this could be improved :)
<jenneron[m]>
bamse: my installation reaches rootfs in less than 30 seconds and it doesn't work
<bamse>
that's certainly a possibility...and it should most definitely not do that
<bamse>
it's however not obvious which mutex_lock() call that is...
<bamse>
ahh, yes it is...lr is _devm_...release_client()
<bamse>
hmm...i'll take another look tomorrow morning
<bamse>
jenneron[m]: thanks for the report
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
<steev>
i should check on the status of things on the flex5g these days
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
janrinze has quit [Ping timeout: 480 seconds]
janrinze has joined #aarch64-laptops
<harvestz[m]>
I'm getting about 10% of the download speed using Linaro's debian install guide, rip. My upload speed is what I get on other devices on my network though
<steev>
yeah, i am really hoping the wifi crew comes through soon
jhovold has joined #aarch64-laptops
miracolix has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
iivanov has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
alfredo_ has joined #aarch64-laptops
alfredo__ has joined #aarch64-laptops
alfredo__ has quit []
alfredo has joined #aarch64-laptops
alfredo_ has quit [Quit: Page closed]
<alfredo>
Hi,
<alfredo>
sorry to bother you, but I think you may be able to help me. Specifically, I already asked about kernel support for the snapdragon 8cx gen 1 aka SC8180x and gen 2 aka SC8180xp SoC on the debian arm mailing list and they told me to contact the kernel maintainer https://lists.debian.org/debian-arm/2023/01/msg00031.html.
<alfredo>
From what I understand it seems that SC8180x is supported while I can't find anything on SC8180xp (maybe they are the same SoC except for the CPU frequency).
<alfredo>
They and I are trying to figure out why there is no device tree for both SC8180x and SC8180xp.
<alfredo>
I am no expert, but in /boot/config-* in the binary package of the debian linux kernel image there is:
<alfredo>
# CONFIG_PINCTRL_SC8180X is not set.
<alfredo>
# CONFIG_PINCTRL_SC8280XP is not set
<alfredo>
# CONFIG_INTERCONNECT_QCOM_SC8180X is not set
<alfredo>
# CONFIG_INTERCONNECT_QCOM_SC8280XP is not set
<steev>
alfredo: it's not just a matter of adding in a "sc8180x" dts file - each individual device needs their own dts file; that said, the sc8180x in particular, does not yet have full support in the upstream kernel, no. the way it usually works is that you need the underlying drivers in since it doesn't all go in via one tree, so that's why 8180X pinctrl/interconnect are there already, but there's still more out of tree/in flight/in flux
<alfredo>
Thank you for your reply. Do you know if anyone is working on drivers for sc8180x or sc8180xp? Unfortunately I am not a kernel developer and don't know if I can help in any way.
<steev>
well, the surfacec pro x is/has an sc8180x model, so it is, some of the work is being done there; but that's not going to be a 1:1 translation to the ideapad 5g
alfredo has quit [Remote host closed the connection]
alfredo has joined #aarch64-laptops
<steev>
harvestz[m]: try doing audio testing when getting youtube videos at 10K/s
<steev>
it sucks, then it becomes, is the issue the audio driver, or because youtube hasn't given me enough to buffer yet
<ardb>
steev: qzed shawnguo: with the EFI fixes currently in -next, resetsystem should no longer crash
<ardb>
hopefully, this means that it will automatically fall back to PSCI reboot/powerdown
<jenneron[m]>
steev: isn't surface pro x sc8180xp?
<jenneron[m]>
like 8cx gen 2
<steev>
jenneron[m]: maybe? i'm not sure, i have the flex5g myself which is just 8180x
<jhovold>
ardb: is that with the fixes in your urgent branch?
<ardb>
jhovold: yes
<ardb>
i haven't tested but the resetsystem call should be caught by the exception handling code and return an error
<jhovold>
which commit would that be? I can give it a spin here with two sc8280xp machines that crash when attempting to reset through efi.
<alfredo>
Yes, surface pro x has sc8180xp which is an overclocked version of 8180x of flex5g.
<jenneron[m]>
sc8180xp is also 8cx gen 2
<jhovold>
ardb: still broken with this Qualcomm firmware I'm afraid
<ardb>
jhovold: so the crash is not being handled?
<jhovold>
the machine appears to hang for a while, before we get a dump from the hypervisor
<jhovold>
we're not falling back to psci
<ardb>
do you see the line emitted by 'pr_err(FW_BUG "Unable to handle %s in EFI runtime service\n", msg);'?
<jhovold>
no, the last line is:
<jhovold>
[ 75.752903] reboot: Restarting system
<ardb>
ok let me experiment a bit locally to see why it is not being caught
<ardb>
jhovold: but does the crash look different from usual?
<jhovold>
I don't think so. It's been this way since I got the machine, reboot/reset did not work and I had to clear the reset-service bit to get it to fall back to psci
<jhovold>
ardb: note that I only cherry-picked the commit you linked to above
<ardb>
jhovold: ok
<ardb>
so it doesn't actually crash, it just hangs in the firmware until the hypervisor takes over?
<jhovold>
yeah, that's what it looks like
<ardb>
ugh ok, then this change is not going to help, unfortunately
<jhovold>
recent x13s firmware has got all the service mask bits cleared, so it's no longer an issue there
<ardb>
ok
<ardb>
still disappointing
<jhovold>
I still need that hack for the reference design, and for anyone like me who hasn't updated the fw on x13s yet
<ardb>
are you using the DtbLoader?
<jhovold>
yeah, i got my hopes up there for a while :)
<jhovold>
no, grub is loading the dtb here
<ardb>
ah ok
<bamse>
jenneron[m]: realized today that the crash you saw in pmic_glink was reported and it's been corrected in the version i posted last week
<qzed>
ardb: so I think the crash is being caught on my SPX, at least there's nothing on the TTY and it seems to shut down alright
<ardb>
ah right - yes that was what I was expecting
<ardb>
good to know
<bamse>
alfredo: it's been a while since i tested sc8180x, but there are dts patches in flight and with that used the lenovo flex 5g as my daily dev machine all the way until the x13s got good enough
<ardb>
apparently ResetSystem is broken in various ways :-(
<alfredo>
bamse: this is a good news. I hope to see that patches on the mainline kernel soon :)
<bamse>
alfredo: looking at my last sc8180x tree, i have a bunch of things that has landed, the dts files, support for battery and external displays, some defconfig updates and 2 hacks
<bamse>
alfredo: i think one of the hacks has been properly implemented upstream, and the other one should be fairly straight forward
<qzed>
so I assume we're not going to try and load in the missing page?
<ardb>
nope that seems like a lot of work for little gain
<qzed>
okay
<alfredo>
bamse: thank you very much for your efforts. I hope to be able to use my device with GNU/linux as soon as possible :)
<steev>
someone will still need to write a dts for that device
<bamse>
that is indeed true, steev
<alfredo>
steev: I am currently no longer a C/C++ developer, but have been in the past. I'm not sure it's within my grasp, I never dealt with the kernel.
<steev>
you're in good company :)
<gwolf>
alfredo: FWIW you are the person who was asking about the Ideapad 5G in debian-arm, right?
<gwolf>
I won't direct you to this IRC channel then 😉
<jenneron[m]>
bamse: can you send the link to that last version?
<jenneron[m]>
is it for sc8180x? I might miss that