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
paddymahoney has quit [Ping timeout: 480 seconds]
paddymahoney has joined #aarch64-laptops
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
<Molyuu[m]> <Molyuu[m]> "Anyone can help about my DSI..." <- I'm tried to digging into how qualcomm firmware generates pps cmd, it seems it is same as the one that generated by Linux kernel. As the init seq is taken from DSDT, I think it is correct.
<Molyuu[m]> The rest one I haven't check is the pixel clock. I found that firmware automatically divide the freq by compression ratio. And that's seems processed by msm driver in kernel.
<craftyguy> has anyone seen usb devices not show up at all (nothing in kernel log, nothing in lsusb) on the usb-c port closest to the hinge on the x13s? tried several usb2 and usb3 things :(
* craftyguy wonders if this port is hosed somehow... though power and display still work. also tried Johan's 6.10 and 6.11 kernels. This totally worked a few hours ago
<abby> for me hotplug doesn't always work in either port
<craftyguy> hotplugging usb works in the other port for me
<craftyguy> I ran the EFi diag app that comes on the x13s, and it correctly ID'd a usb storage device was connected, so everything seems fine in EFI(?)
<JensGlathe[m]> <craftyguy> "for those with an x13s running a..." <- I have a lenovo dock, seems to work okay. Need to give it a new round. But when on external display, I use the builtin dock of the display (Iiyama QSN2792 or sth). Works, but "only" gives USB-2 side channel to the hub. Soes the same on Windows, though, it assigns 4 lanes to the DP.
<steev> craftyguy: works for me here - this is using the pinephone usb-c dock https://www.irccloud.com/pastebin/hYGsNGew/
srinik has joined #aarch64-laptops
srinik has quit [Ping timeout: 480 seconds]
mlau has joined #aarch64-laptops
shawnguo has joined #aarch64-laptops
Kelsar has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kelsar has joined #aarch64-laptops
srinik has joined #aarch64-laptops
srinik has quit [Remote host closed the connection]
srinik has joined #aarch64-laptops
srinik has quit [Remote host closed the connection]
srinik has joined #aarch64-laptops
srinik has quit [Remote host closed the connection]
srinik has joined #aarch64-laptops
srinik has quit [Remote host closed the connection]
srinik has joined #aarch64-laptops
srinik has quit [Ping timeout: 480 seconds]
<kuruczgy[m]> What's the status of X1E mesa support? Is 24.2.0 without any patches enough?
<kuruczgy[m]> (I also see that the jhovold kernel has the chipid override, I assume that's still necessary?)
<JosDehaes[m]> You can revert the chip id override if you use 24.2
<JosDehaes[m]> Works perfectly, 10 000 in glmark2
<konradybcio> glmark2 is very unstable
<konradybcio> inconsistent is the word i was looking for
<JosDehaes[m]> It varies a bit yes, I just mean it works quite well
<kuruczgy[m]> Thanks, I will try 24.2 then!
<kuruczgy[m]> Btw do we have some sort of community wiki where things like this could be documented? (And also updated quickly since things are still changing rapidly.)
<konradybcio> Jos Dehaes: so far my golden shot is running minecraft.. it's java so it works fine
<konradybcio> i use prism launcher (oss alternative to the official electron-based one)
<JosDehaes[m]> I never played that, too old πŸ˜…
<JosDehaes[m]> I mean me😁
<mlau> its really fun for a few days
<mlau> then the novelty wears off, at least for me
srinik has joined #aarch64-laptops
<mlau> what is the correct ath12k firmware for the yoga slim 7?
<mlau> I cannot get ath12k to work
<konradybcio> well that was a solid few years for me and peers :p
<mlau> driver says "failed to receive wmi unified ready event"
<mlau> failed to start core
<mlau> fw_version 0x100301e1 2023-12-06 WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
<mlau> chip_id 0x2 chip_family 0x4 board_id 0xff soc_id 0x40170200
bryanodonoghue has quit [Quit: The Lounge - https://thelounge.chat]
lumag has quit [Quit: ZNC 1.8.1 - https://znc.in]
vkoul has quit [Quit: ZNC 1.8.1 - https://znc.in]
shawnguo has quit [Quit: The Lounge - https://thelounge.chat]
mani_s has quit [Quit: Be right back...]
apalos has quit [Quit: ZNC 1.8.1 - https://znc.in]
sgerhold has quit [Quit: :/]
bryanodonoghue has joined #aarch64-laptops
lumag has joined #aarch64-laptops
apalos has joined #aarch64-laptops
vkoul has joined #aarch64-laptops
mani_s has joined #aarch64-laptops
<mlau> I took the ath12k phy and main firmware from the windows driver, it's newer (fw_version 0x110b0010) but doesn't work either
<mlau> also fails with "qmi failed to set mode request, mode: 4 err = -110"
<JosDehaes[m]> I use the firmware from the repo I sent you
<mlau> hm ath12k is really wonky on with my kernels. It generates pci aer messages
<mlau> I now had a 5x bootloop, it rebooted hard every time ath12k initialized
<mlau> JosDehaes: they are the same files, just different names
srinik has quit [Ping timeout: 480 seconds]
<kuruczgy[m]> Updated to mesa 24.2.0, but it's still not working for me.
<kuruczgy[m]> both kmscube and vulkaninfo only see llvmpipe (kmscube does render with it though)
<kuruczgy[m]> msm module is loaded, /dev/dri/card0 is present, zap shader should be in the right place
<kuruczgy[m]> (I still have udev disabled, but I hope it doesn't affect graphics?)
<kuruczgy[m]> Not sure what could be going wrong, are there any extra steps I am missing?
<JosDehaes[m]> Maybe you still have the env variable set to zink?
<kuruczgy[m]> I tried both with and without MESA_LOADER_DRIVER_OVERRIDE=zink, not sure what it should be set to
<JosDehaes[m]> Should not set it at all
<JosDehaes[m]> How did you build mesa? Did you include freedreno gallium driver?
<kuruczgy[m]> Cherry picked this PR: https://github.com/NixOS/nixpkgs/pull/332413
<kuruczgy[m]> And `/run/opengl-driver/lib/libvulkan_freedreno.so` does exist. But this is the only freedreno file I can find, is there supposed to also be a separate opengl driver?
<JosDehaes[m]> You don't need any other patch on top of 24.2
<JosDehaes[m]> You just need to configure to build freedreno
<kuruczgy[m]> JosDehaes[m]: The patch is for nixpkgs to build mesa 24.2, not for mesa itself. (I am using NixOS just to clarify.)
<JosDehaes[m]> Don't know anything about nix, but you need to make sure it builds freedreno
<kuruczgy[m]> Ok, thanks, I will double check
<JosDehaes[m]> Add the freedreno to the list of gallium drivers
<JosDehaes[m]> You can remove any Intel or Radeon drivers
<kuruczgy[m]> Is a freedreno_dri.so supposed to exist? Because I can confirm that -Dgallium-drivers is getting passed freedreno, but I only see the vulkan driver being built.
<kuruczgy[m]> Hm wait I think just the name is different, I do have msm_dri.so which I suspect is the freedreno driver
<HdkR> Indeed
<kuruczgy[m]> With VK_LOADER_DEBUG=error,warn,info I see a bunch of "Removing driver [...]/libvulkan_*.so due to not having any physical devices" messages, this seems like it could be the issue...
srinik has joined #aarch64-laptops
srinik has quit [Ping timeout: 480 seconds]
srinik has joined #aarch64-laptops
srinik has quit [Ping timeout: 480 seconds]
srinik has joined #aarch64-laptops
srinik has quit [Ping timeout: 480 seconds]
srinik has joined #aarch64-laptops
<steev> the vulkan driver is libvulkan_freedreno
<steev> freedreno's vulkan driver is called turnip (idk why)
<HdkR> root vegetables are very popular these days
mlau has quit [Remote host closed the connection]
<kuruczgy[m]> My suspicion right now is that the msm driver is not actually getting loaded, and /dev/dri/card0 belongs to a thing called simpledrm. (Which is strange because the msm module is nevertheless loaded.)
<kuruczgy[m]> Also it seems that /dev/dri/renderD* is missing, which AFAICT is a hard requirement for Vulkan.
<kuruczgy[m]> The only thing that comes up when grepping the kernel log for msm is msm-mdss failing to probe. If this is a dependency of the msm drm driver I guess it could explain things though...
<HdkR> Double check if you have msm drm enabled in the kernel? :D
<kuruczgy[m]> What's the name of the kernel module, and of the CONFIG_ option? It's a bit hard to keep track of the at least three (msm, freedreno, turnip) names this driver stack has.
<kuruczgy[m]> The msm module is loaded, are there also other ones that should be loaded?
<HdkR> DRM_MSM is the kernel option
<HdkR> Maybe DRM_MSM_DPU as well is necessary?
<kuruczgy[m]> I have CONFIG_DRM_MSM=m and CONFIG_DRM_MSM_DPU=y too
<HdkR> Smells like something still wrong in the kernel if you don't have msm_dpu talking about firmwares getting loaded or something. msm-mdss message sounds related
<kuruczgy[m]> Ok, then I will try to look into the msm-mdss error next. It says "deferred probe timeout, ignoring dependency", then it fails to probe with error code -110
<HdkR> I don't get that message on my Yoga, only msm-mdss message is about adding to an iommu group
<akaWolf> hi. I've just tried latest kernel in ironrobin repo (steev's 6.2.10 branch) and it doesnt see my drive: hanging up at initrd with unable to mount root
<akaWolf> what can be the problem?
<kuruczgy[m]> Is the drive you are trying to mount usb or nvme? You need a few select kernel modules in the initrd for both I think. (For usb I have phy_qcom_qmp_combo, phy_qcom_snps_eusb2, phy_qcom_eusb2_repeater, tcsrcc_x1e80100 in my initrd on my yoga.)
<akaWolf> nvme
<akaWolf> with other kernel the same config of the system and initrd is working
srinik has quit [Ping timeout: 480 seconds]
srinik has joined #aarch64-laptops
<kuruczgy[m]> The problematic driver seems to be dispcc-x1e80100. It not being loaded seems to be the blocker in the driver dependency graph. But if I do modprobe dispcc-x1e80100 manually, the screen goes black.
<kuruczgy[m]> So probably this is the same driver I am avoiding loading by disabling udev, so I guess my two problems have a common root cause, I guess I should be happy about that...
srinik has quit [Ping timeout: 480 seconds]