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
janrinze has quit [Quit: Leaving.]
tobhe_ has joined #aarch64-laptops
hexdump01 has joined #aarch64-laptops
tobhe has quit [Ping timeout: 480 seconds]
hexdump0815 has quit [Ping timeout: 480 seconds]
<robclark>
jhovold: rebased.. and within a day I get the reboot.. I don't really have anything more to add, probably someone who has a CRD will need to try and repro?
xorAxAx has joined #aarch64-laptops
mbuhl has quit [Remote host closed the connection]
<robclark>
it would be nice if I didn't have to keep rebasing the 7x ec :-)
<robclark>
looks like wifi isn't working atm.. I hadn't noticed because I have eth via usb-c monitor..
<robclark>
maybe I overlooked some .config change.. I did catch the usb thing that was renamed
<Jasper[m]>
The laptop I'm trying to get USB working on has an internal USB hub that needs a vdd-supply in the DT, I'm trying to figure out what tlmm pin is used for that regulator but I don't necessarily know what I'm looking for in the DSDT
<alexVinarskis[m]>
jasper: if you are sure there is usb hub with extra vreg, search for TLMMGPIO, compare to existing devices without this extra vreg, eg. Xps 9345. Lots of gpios are eg. Data lines for I2C, or reset for pcie, its easy to tell by the parent. Example is 0x22 (first occurance in dsdt is tlmmgpio) is Thibkook 16 g7, which is uvc camera vreg gpio. You need to find something similar in yours. You can then try ro set it high via
<alexVinarskis[m]>
gpiod and see if you hub came up
<alexVinarskis[m]>
there is a possibility that the gpio you are looking for is not mentioned in dsdt, but instead in AeoB files (you can decompile there as per example, and analyze in a similar way, though it has a lot of random stuff), or it may be controlled directly by some windows driver, in that case there is no simple and non-risky way to find it...
<Jasper[m]>
There aren't that many sc7280 laptops out there with acpi dumps and the phone equivalent chips generally don't have multiple usb ports
<Jasper[m]>
in that regard this thing is a bit unique
<Jasper[m]>
as for the suggestion to use gpiod, it's a bit of a chicken and eg story since I don't have a DT that gets me to userspace currently :P
<Jasper[m]>
that's what I'm trying to get USB up for
<Jasper[m]>
I will however make a copy of the driverstore contents to get some AeoB dumps;
<Jasper[m]>
* I will however make a copy of the driverstore contents to get some AeoB dumps
<alexVinarskis[m]>
ohh i see. is pcie up? could deploy image to ssd from external device and boot that (if its removable)?
<alexVinarskis[m]>
Also, are you sure there is a USB vreg? not much familiar with sc7280, but on x1/x1e they are all root hubs, phy are powered from pmics, so external usb ports just work.
<Jasper[m]>
UFS :P
<Jasper[m]>
But I did check the dt-bindings for that hub, they do indeed not seem to be required
<alexVinarskis[m]>
you could also i guess find any TLMMGPIO which is set as output (dont recall if the next line after gpio number or next-next-next is 1=output, 0=input) and not part of IO or PCIE lines and set them all high in dts? if its output line it should be safe for force it high.
pbrobinson has joined #aarch64-laptops
<Jasper[m]>
I just left it the way it was and tried to continue getting usb working, but no dice
<Jasper[m]>
Doesn't help that I have no idea what I'm doing :/
xroumegue has quit [Ping timeout: 480 seconds]
<nirik>
FWIW, I am running 6.16rc3+jhovold's patchset + bluetooth on my 7x and have not seen any reboots at all here. I am on an old bios tho (never bothered to update it).
<valpackett>
huh, rereading the Dell BIOS changelog, I thought it was only security stuff but 2.9.0 actually mentions "Fixed the issue where the system fan stops working and the system shuts down"
<valpackett>
could that somehow have been it? 0.o
<valpackett>
even though I wouldn't describe a hard freeze as "shuts down"
<lynxy>
i'm running 6.16rc3+jhovold's patchset on the dell bios 2.7.1 and i think i've experienced a couple instances of what feel like an entirely impromped overhead and reboot
<lynxy>
i'll check for an update
<lynxy>
overheat*
<lynxy>
unprompted overhead* - come on fingers
<lynxy>
smh you know what i mean
<valpackett>
mine wouldn't overheat, it would just hard freeze (no sysrq no nothing, not a panic) and get rebooted by the watchdog, but it was on 2.7.0 before when that was happening yeah
<valpackett>
at random moments with low casual load, like when just moving the mouse around in a browser, typing in a terminal, etc.
<lynxy>
on a side-note- dell's support assist and such, various selection of 'tools' are quite utterly useless and dysfunctional and the support site is equally aggravating
<lynxy>
scrap your js monstrosity and just give me a download link
<valpackett>
"The Universal (Windows/MS DOS) format can be used to install from any Windows or MS DOS environment." lmao
<JensGlathe[m]>
lynxy: That's SOP to keep you away
<lynxy>
SOP?
<alexVinarskis[m]>
To be fair, dell bios update is very simple on linux - just put .exe on efi partition or usb stick, reboot, and update from uefi itself.
<valpackett>
they don't actually describe it well on the website, but you don't need windows nor ms-dos (lolwat, on arm?), you can just feed the windows exe from a flash drive to the firmware setup
<JensGlathe[m]>
Standard Operations Procedure
<valpackett>
to be fair UEFI is kind of a "64-bit MS-DOS from the future" but lol
<valpackett>
ugh, why is github. wanted to send the audio/cam patches as a PR to Jens Glathe's kernel.. but pushing to my existing linux fork results in a massive push over github's 2gb limit
<valpackett>
and i can't just make a new fork in the same account (would have to make an org or lose the existing fork that has some changes for some phones)
<valpackett>
time to just make the v2 and mail it to upstream i guess heheh
<JensGlathe[m]>
The fork limit is an issue for anything derived from torvalds/linux
<JensGlathe[m]>
my fork is from Merck Hung, but ofc it derives eventually from torvalds/linux
<valpackett>
I guess the big divergence comes from next and stable being completely different repos upstream on git.kernel.org(?)
<valpackett>
Anyway I just realized that I haven't seen the dmidecode/fwupd UUID stuff from the Inspiron so I'm not 100% sure they can be distinguished on the dtb level.. /cc bryanodonoghue
<alexVinarskis[m]>
They definitely can, as per dmidecode from PM, you have "Latitude 7455". Inspiron will for sure say Inspiron. If model and SKUs are different, i cannot imagine UUIDs are the same
<valpackett>
yeah, I do expect a difference in UUIDs, but I'd like to see it with my own eyes :)
<jhovold>
robclark: your wifi is likely broken by the same reason as the bluetooth (pwrctrl patch)
<jhovold>
an early bluetooth probe deferal brings down the wifi, which can't be powered on later
<jhovold>
iirc, you ran into this very issue before with that same oot patch
<jhovold>
pwrctrl not working on x1e is a real issue which "someone" needs to to fix too at some point, but it can be worked around by making sure bluetooth doesn't probe too early for example
<jhovold>
anyway, I'm inclined to say that at least the t14s does not suffer from this issue with mainline or my rc3
<jhovold>
other machines, with further oot patches, may be a different story (e.g. due to guess work about regulators or similar)
<jhovold>
in your case, the bt/wifi/pwrctrl issue may be involved in the reset too
<jhovold>
then we still have the known issue of missing thermal mitigation, which could potentially cause resets, but that does not seem to be what these reports are about
<jhovold>
robclark: btw, you should drop the audio and ath11k patch you have on top as those have been rejected/superseded
<jhovold>
and i'm not seeing any bt patch for slim7x in that branch...
<robclark>
the bt patch that I dropped was (an earlier version?) of JensGlathe[m]'s patch.. I don't really need it so I didn't bother dealing with the conflicts
<jhovold>
robclark: ah, sorry, thought I was looking at your tree from before the rebase
<robclark>
anyways, it does seem there is a diff btwn v6.15 and v6.16... there are some drm (mostly dpu) patches that I didn't have before, but most of the patches that I would have suspected (like ACD) were already in my v6.15 based branch. I guess if whoever has CRDs can use them as daily drivers on v6.16 for a few days, that might be the most useful thing for tracking this down
<jhovold>
well, it at least used to be possible to have wifi also without the bt/pwrctrl patch...
<robclark>
I'm not entirely sure what linux-firmware version I have, so don't want to rule that out as an issue.. recently I've been using eth via usb-c monitor so I can't say for sure that it was working before
<jhovold>
yeah, the may release broke ath12k, haven't tested the supposed fixed version yet
<jhovold>
lots of distros reverted the ath12k fw though
<JensGlathe[m]>
I removed ath12k hardware as far as I could
<bryanodonoghue>
valpackett which two Dell devices are you trying to differentiate
<bryanodonoghue>
there are GPIOs we can read
jhovold has quit [Ping timeout: 480 seconds]
<bryanodonoghue>
valpackett posted my 14p UCM config to github
<bryanodonoghue>
You're right it looks 1:1 with the Latitude
<bryanodonoghue>
I have been able to get sound through the speakers and headphones with scripts but - due to a lack of knowledge of soundwire/pulseaudio and friends have not been able to get the gnome/hyperland plugins to "see" my soundcard properly
<bryanodonoghue>
so I have't submitted
<bryanodonoghue>
TBH I'd appreciate a n00b/idiot's guide to what to use with these UCM files
<bryanodonoghue>
v frustrating to know the hardware config is working but not know why user-space won't play with it
<bryanodonoghue>
operator error is the answer
<alexVinarskis[m]>
bryanodonoghue: not sure if its the root cause to your issue, but you were including yoga slim's conf, not newly added inspiron, left a comment. Otherwise, I assume you are not using Ubuntu Concept image, but its a nice base for testing - on XPS after DT change I only had to follow alsa UCM's deploy guide (copy recursively ucm and ucm2), compile and place propely topology file, and it just worked - perhaps worth trying
<alexVinarskis[m]>
to rule out other soundswire/pulseaudio related issues?
<alexVinarskis[m]>
TL:DR; copy recursively ucm, ucm2 to /usr/share/alsa/, reboot
<bryanodonoghue>
hmm, I don't remember how I installed those files - perhaps too selectively
<bryanodonoghue>
I'll try to dump them in thx
<alexVinarskis[m]>
bryanodonoghue: just remembered, could you please share output of dmidecode -t 1 from Inspiron at some point? Wanted to open MRs to Ubuntu's concept repos for Inspiron,Latitide and it uses some of the output for magic dtb auto-selection during first boot of the installler.
<lynxy>
for what it's worth, i'm also on an xps running arch linux and performing these steps hasn't appeard to have fixed my sound [:
<valpackett>
bryanodonoghue: yeah, dmidecode is one thing, the other is fwupdtool hwids
<alexVinarskis[m]>
lynxy: hmmm is sound card detected when running alsamixer and pressing F6 to list cards?
<valpackett>
re: sound not working in gnome, i think i dealt with that at some point while bringing it up
<lynxy>
i have both audioreach config installed and the alsa-ucm-conf files :]
<lynxy>
i'll grab dmesg in a sec,
<valpackett>
jhovold: which thermal mitigation is missing btw? there's a bunch of trip points in the dtsi, cpu-critical, gpu-critical..
<valpackett>
plus on my machine it seems to just happen in firmware? during high load it keeps one particular cpu sensor precisely at 90°
<lynxy>
seem to be getting the qcom-soundwire SWR CMD error that i've seen mention on the ubuntu-concept thread, as well as WSA Playback: codec dai not found
<lynxy>
nothing else much stands out to me in the dmesg regarding sound, bar ALSA complaining about finding no devices
<alexVinarskis[m]>
probably an obvious one, but is module snd_soc_x1e80100 loaded?
<lynxy>
yup
<valpackett>
lynxy: ok, now you too go check if speakers are disabled in the bios :)
<lynxy>
i'm entirely sure they're enabled- i just reset the bios a couple of hours ago while debugging the bios update not sticking in windows lol
<lynxy>
it was one of the options i checked
<alexVinarskis[m]>
valpackett: did you disable them yourslef before btw?
<lynxy>
i'll double check tho
<alexVinarskis[m]>
lynxy: by BIOS update not sticking you mean its not getting installed?
<valpackett>
yes lmao, when bringing up audio i was wondering why there were SWR CMD errors and such, ended up being that
<lynxy>
currently running bios 2.7.1, but bios 2.8.0 won't install either in windows or when flashed in one-time boot uefi
<valpackett>
you can run alsamixer -D sysdefault to mess with the actual raw soundcard params (and possibly ruin the alsa state)
<alexVinarskis[m]>
lynxy: aaahhha i justtt resolved this issue after ~6 months of struggle and a replaced motherboard.... I bet you have more than one EFI (or otherwise, EFI-like looking fat32) partitions? that wont work :)
<alexVinarskis[m]>
it seems that windows/UEFI installer installs capsule update to the first partition 'EFI'. But on boot UEFI scans last 'EFI' partition for capsule files to pull in. either move *capsule* files from 1st to last Fat32 partition, or make sure you only have one.
<lynxy>
oh wow
<lynxy>
*that's* the problem??
<alexVinarskis[m]>
funny enough, you also cannot just disable internal SSD in bios to install update - it will legit say 'I want at least 120MB EFI partition'.
<valpackett>
wow, having 2 ESPs sounds very strange, i can totally see why they wouldn't have anticipated that situation
<valpackett>
2 on the same drive i mean
<lynxy>
yeah, one efi partition generated by windows, one separate for linux- same as if you have one drive per os except that it's on the same drive
<lynxy>
yeah i can see how that could break it but honestly it really shouldn'y
<lynxy>
shouldn't
<lynxy>
thanks for the heads up tho lol
<alexVinarskis[m]>
i was stuck on 2.0.0 on one of my XPS since the time 2.2.0 came out.... eventualy reached out to support, they did diagnostic and decided to replace motherboard. you can image my face when we boot new one, and update still won't stick o_O. Only SSD stayed the same, figuring that one out from there onwards was rather easy
<alexVinarskis[m]>
same, had dedicated EFI partition for 'shady installs'.
<lynxy>
lemme just message the dell technicians back lol
<lynxy>
tell them it' okay
<lynxy>
i know what the issue is
<valpackett>
oh on the XPS 2.8.0 is the june bios i see.. and 2.7.1 is the one that mentions the "system fan stops working and the system shuts down" thing like 2.9.0 on thena
<alexVinarskis[m]>
maybe tell them what the issue is, hopefully it makes it to firmwre department
<lynxy>
i will, though- it won't be high prio for them
<lynxy>
(unless you can find some way to turn it into a security issue, and generate a cve for it ;] )
<lynxy>
yeah, i'm definitely not getting the same snd-x1e80100 sound message as you so mayhaps i'm missing something or i've done it wrong. i'll go through the steps again tomorrow and see how it goes- for now, it's late
<alexVinarskis[m]>
I actually did find a big security issue as well :D waiting for my contact to report it now.
<alexVinarskis[m]>
in case of broken update its probably a simple sort/reverse sort issue though since installer installs to first part, UEFI trying to load from last. Replacing motherboards is pretty expesnive, so I would think they would be motivated to have it fixed.
<lynxy>
the support agent i'm talking to just responds to any new info with "please kindly wait until we've heard back from the internal team" so they're not going to be helpful
<valpackett>
what's the hold up with upstreaming the camss nodes in x1e80100.dtsi?
<alexVinarskis[m]>
Indeed, been hanging on the lists for a while now
<valpackett>
hm in the reviews i've been told (about ps8830 retimers) "I'd assume these are ps8833 instead, IIRC there's a pair of ID registers"
<valpackett>
does anyone know which register it is?
<valpackett>
oop there was some discussion of the "[vreg_vcn] regulators are actually part of the removable M.2 card" in my thread... because i still had that comment copy-pasted
<valpackett>
.......while in reality the wifi card is soldered here
<alexVinarskis[m]>
Have you confirmed this by opening up the device? If yes, its a valid answer. Its also soldered on XPS.
<alexVinarskis[m]>
re: registers of ps883x - i guess check the driver?
<alexVinarskis[m]>
Or perhaps visual inspection, if you are anyway opening the laptop up. On XPS retime* are under a huge shield so I can't just 'see it'. On Zenbook they are open and clearly say ps8833.
<alexVinarskis[m]>
retime*=retimers
<valpackett>
the driver doesn't say anything about an ID register
<valpackett>
i've swapped the ssd a few times, heh
<valpackett>
looking at the pcb photo i have, there's a smol shield where the ports are, i can easily unscrew it \o/