robclark 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
mxlcjckmsmz has joined #aarch64-laptops
mxlcjckmsmz has quit []
crcvxc has quit [Read error: Connection reset by peer]
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
baozich has joined #aarch64-laptops
<clover[m]> here's the output from the laptop without the issue:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/ZXWNliDiKIaDrxedWcIbKrht>)
<clover[m]> * here's the output from the laptop without the issue:
<clover[m]> [ 1015.334871] wlan0: deauthenticating from f0:2f:74:5d:73:04 by local choice (Reason: 3=DEAUTH_LEAVING)
<clover[m]> [ 1020.364644] ath11k_pci 0006:01:00.0: BAR 0: assigned [mem 0x30400000-0x305fffff 64bit]
<clover[m]> [ 1020.365484] ath11k_pci 0006:01:00.0: MSI vectors: 32
<clover[m]> [ 1020.365521] ath11k_pci 0006:01:00.0: wcn6855 hw2.1
<clover[m]> [ 1020.525826] mhi mhi0: Requested to power ON
<clover[m]> [ 1020.525844] mhi mhi0: Power on setup success
<clover[m]> [ 1020.635899] mhi mhi0: Wait for device to enter SBL or Mission mode
<clover[m]> [ 1021.274439] ath11k_pci 0006:01:00.0: chip_id 0x2 chip_family 0xb board_id 0x8c soc_id 0x400c0210
<clover[m]> [ 1021.274483] ath11k_pci 0006:01:00.0: fw_version 0x110b196e fw_build_timestamp 2022-12-22 12:54 fw_build_id WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23
<clover[m]> [ 1028.912098] wlan0: authenticate with f0:2f:74:5d:73:04
<clover[m]> [ 1029.120891] wlan0: send auth to f0:2f:74:5d:73:04 (try 1/3)
<clover[m]> [ 1029.125347] wlan0: authenticated
<clover[m]> [ 1029.127318] wlan0: associate with f0:2f:74:5d:73:04 (try 1/3)
<clover[m]> [ 1029.130198] wlan0: RX AssocResp from f0:2f:74:5d:73:04 (capab=0x1011 status=0 aid=17)
<clover[m]> [ 1029.206535] wlan0: Limiting TX power to 24 (24 - 0) dBm as advertised by f0:2f:74:5d:73:0
<clover[m]> [ 1029.146251] wlan0: associated
<clover[m]> the only difference i see with that and my modem x13s is the number after mhi (mhi0 vs mhi1) in the power on request part
<clover[m]> wlan0 is not up so that might be causing things to fail too
baozich1 has joined #aarch64-laptops
baozich has quit [Ping timeout: 480 seconds]
baozich1 is now known as baozich
paddymahoney has joined #aarch64-laptops
baozich has quit [Quit: baozich]
baozich has joined #aarch64-laptops
alfredo has joined #aarch64-laptops
baozich has quit [Ping timeout: 480 seconds]
Xyaon has joined #aarch64-laptops
derzahl has joined #aarch64-laptops
<Xyaon> hexdump0815: Thanks for the info, I'm currently using steev's sc8180x-next20220728+usb-mp+a680 branch and basing my dtb off the flex 5g and primus. I'm somewhat familiar with gpu firmware stuff, I did that on my c630 fine, my current concern is that the reserved memory ranges of the flex 5g/primus do not match each other, neither the ranges I got from windows.
<Xyaon> hexdump0815: I have a fork of it with my dtb + config under the same name on github, and a public gist with the memory ranges from windows
rpirea has joined #aarch64-laptops
rpirea has quit [Remote host closed the connection]
rpirea has joined #aarch64-laptops
agl7 has joined #aarch64-laptops
<agl7> Good Morning :-)
<Xyaon> gm :}
rpirea has quit [Remote host closed the connection]
rpirea has joined #aarch64-laptops
aissigaM has joined #aarch64-laptops
Magissia has quit [Ping timeout: 480 seconds]
crcvxc has joined #aarch64-laptops
DocGalaxyBlock[m] has joined #aarch64-laptops
<DocGalaxyBlock[m]> <hexdump0815> "i think there was recently..." <- xyaon - that was me (but no real deeper linux experience)... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/SacFXaQDqOQTezPIMtgtkTYL>)
<DocGalaxyBlock[m]> xyaon:
<Xyaon> DocGalaxyBlock[m]: I assume you booted it with acpi without a dtb?
<DocGalaxyBlock[m]> Even that question is out of my knowledge.
<DocGalaxyBlock[m]> I just flashed the isos to a usb drive and booted from it
<Xyaon> Well, I got the keyboard and mouse working, but not much else yet
<Xyaon> Is there any way of getting the memory range where firmware should be loaded from windows?
<Xyaon> currently any remoteproc load fails and takes down the whole thing with it
<travmurav[m]> xyaon: what specific firmware is the problem?
<travmurav[m]> for remoteproc blobs there are two sources: each ELF has alignment, size and possibly base address if it's not relocatable, then the windows driver has .ini file with addresses for the blob loading
<Xyaon> adsp, cdsp, mpss. I shouldn't have expected it to work with the flex 5g's addresses. I'll try looking for them there, thanks!
<travmurav[m]> xyaon: generally the blobs like that should be relocatable so any address /should/ work unless it's already taken by something. Also you might want to dump the uefi memory map and see if there is some reserved area already for those so you don't reserve extra space on top of what is already blocked out by uefi
<travmurav[m]> you could probably even do dynamic address selection within a given range if there is a clear carveout
<Xyaon> travmurav: I don't get any overlap warnings, it just freezes the system. So the reserved memory ranges in the dts for rmtfs, gpu, *dsp, mpss, etc are arbitrary as long as they don't overlap?
<travmurav[m]> not sure about rmtfs but for mbn blobs they generally /should/ be arbitrary, yes
<Xyaon> unfortunatelly I do get an overlap warning when I try to set the rmtfs address to the windows one :l
<konradybcio> it's possible than other reserved regions are wrong
<konradybcio> if you get your bootloader and run strings and grep for 0x[0-9a-z]+{8,10} you'll get a map of reserved space
<konradybcio> that would be on the xbl partition or in an update package
<Xyaon> which bootloader file should I run strings on? the .efi?
<Xyaon> the warning I got was that the windows rmtfs overlaps with the xbl, in fact they were on the same address. Do you think the problem with the xbl's definition or just that windows hadles these things differently
<konradybcio> xyaon: what is your storage? ufs/emmc or nvme?
<Xyaon> nvme
<konradybcio> right that makes it harder as the bootloader lives on a spi flash
<Xyaon> ugh
<konradybcio> if you boot to efi shell, you should be able to run memmap
<Xyaon> I'll try that
<Xyaon> I already had to get this laptop repaired, because i was probing its insides
<Xyaon> I should have tried asking for the old motherboard
<Xyaon> also, I think they messed my firmware up because the gpu is reported as an adreno 680 instead of a 675
<Xyaon> Thanks for the help, I'll let you know if I find something
<konradybcio> i am not sure if qualcomm ever cared enough to rename it
<konradybcio> there are like 4 non-x 8c devices on the planet :D
<Xyaon> probably
<Xyaon> but the cpu is reported as an 8c
<Xyaon> so out of those four devices, I have the only 8c + a680 one :D
<Xyaon> well before the repair it was called a 675 in windows
<Xyaon> maybe they're just the 680s that had some fabrication issues and were clocked down etc
<konradybcio> or maybe the windows driver doesn't care
derzahl has quit [Quit: auf wiedersehen]
alfredo has quit [Quit: alfredo]
ungeskriptet2 has joined #aarch64-laptops
ungeskriptet2 has quit []
ungeskriptet8 has joined #aarch64-laptops
Lucanis has quit [Ping timeout: 480 seconds]
ungeskriptet8 has quit []
Lucanis has joined #aarch64-laptops
ungeskriptet0 has joined #aarch64-laptops
rpirea has quit []
ungeskriptet has quit [Ping timeout: 480 seconds]
ungeskriptet0 has quit []
ungeskriptet has joined #aarch64-laptops
ungeskriptet3 has joined #aarch64-laptops
ungeskriptet has quit [Ping timeout: 480 seconds]
ungeskriptet3 has quit []
ungeskriptet has joined #aarch64-laptops
<Jasper[m]> @clover @steev updated to rc7 and rebooted. Speakers still work okay, headphones are still loud
<Jasper[m]> Didn't have trouble with it crashing on boot for a bit before I updated, that issue seems to be back
<Jasper[m]> persistent journalling didn't save that crash it seeks
<Jasper[m]> s/seeks/seems/
Xyaon has quit [Remote host closed the connection]
Xyaon has joined #aarch64-laptops
alfredo has joined #aarch64-laptops
<Xyaon> konradybcio: I have looked trough the .mbn files, I think the memory ranges are fine for now. The current problem with remoteproc is that it restarts the usb system and the pendrive that I'm using to boot from gets reassigned from sda to sdb, and it dies.
<konradybcio> that's a known issue :(
<Xyaon> The nvme is not working yet, so I can't boot from there
<Xyaon> Can I force remotproc to run before the root switch?
<konradybcio> doubt
<konradybcio> i'd guess you're missing some sort of a gpio regulator for the nvme
<konradybcio> check the gpios under pcieX in the dsdt
<jenneron[m]> yes you can
<Xyaon> How could I do that in a "regular" iniramfs?
<jenneron[m]> i don't know what you mean, if you mean that you have your own initramfs based on busybox or something then just place a file there
<jenneron[m]> it is like this for any initramfs
<jenneron[m]> but keep on mind that you also need kernel modules in initramfs required for remoteproc
<Xyaon> You mean the firmware files? I already have them in the image.
<jenneron[m]> firmware and modules
<Xyaon> Thank you, that worked.
<Xyaon> konradybcio: I can't seem to find anything pci/gpio related in my dsdt :l
<Xyaon> Here are all the firmware files I was able to find: https://drive.google.com/drive/folders/1YYaStyBvs4SXlx0ZPTBS-1B4vQZgxny_?usp=sharing
crcvxc has quit [Read error: Connection reset by peer]
<Xyaon> the remoteproc for the mpss keeps crashing
alfredo has quit [Quit: alfredo]
matthias_bgg has joined #aarch64-laptops
alfredo has joined #aarch64-laptops
alfredo has quit [Quit: alfredo]
<steev> Jasper[m]: did you try lowering the volume itself once the headphones are in? i have the temp hack patch in there, but people do complain that it causes other noise with it in
<steev> xyaon: that is a pretty old -next branch, and 8180x support is in the kernel now i believe (very basic) but i've been ridiculously busy with work (but hey, 2023.3 is out today so woo) so haven't had time to circle back to 8180x things
<steev> i *think* vkoul is the one doing 8180x things?
<Jasper[m]> <steev> "Jasper: did you try lowering the..." <- "the volume itself" being a channel in alsamixer or using something like pavucontrol?
<steev> i'd say use pavucontrol
<Jasper[m]> Because I did the latter, the volume itself becomes bearable around 10% but with a lot of noise as you said
<steev> (personally i just hit the volume down buttons on the laptop)
<steev> try dropping the temp hack patch for headphone volume lowering
matthias_bgg has quit [Quit: Leaving]
<Xyaon> steev: Oh, I didn't know it was in mainline. I think some issues I encountered got fixed in newer versions. thanks
<steev> it'll only be torvalds tree, or next
<steev> Jasper[m]: hm, actually, here, i don't even have headphone detection it seems :/
<steev> neither my earpods nor some sony headphones i found are detecting, this is annoying
<Jasper[m]> steev: That did work for me
<Jasper[m]> It's still that the amplification is weird
<steev> try backing the patch i mentioned out
<Jasper[m]> currently don't have the setup for that, otherwise I would
<Jasper[m]> I might look at it later if I remember it
<steev> relatable
Xyaon has quit [Remote host closed the connection]
crcvxc has joined #aarch64-laptops
<clover[m]> Anyone interested in rhino linux distro? Seems kinda cool
<clover[m]> They have generic arm images