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
hightower4 has joined #aarch64-laptops
Ablu has quit [Read error: Connection reset by peer]
Ablu has joined #aarch64-laptops
hightower3 has quit [Ping timeout: 480 seconds]
<bamse> jenneron[m]: regarding audio, i believe vkoul looked at that a while back, but had some problems which sounds like they where resolved on sc8280xp
cuneocuboid has joined #aarch64-laptops
paddymahoney has quit [Remote host closed the connection]
<HdkR> steev: Initial testing showing a decent amount of time in soft-irq on core 0, but lacking any long term testing it seems better
<HdkR> and this 5gbit NIC hasn't oopsed the kernel yet
<HdkR> 10% in __do_softirq, 13.35% in _raw_spin_unlock_irqrestore, bunch of clear_page, dcache_clean_poc and other things as well. Very interesting
<steev> bamse: ^
<bamse> HdkR: previously i saw cpu0 appraching 100% load when running iperf3 at 110mbit/s...now i can do 940mbit/s - but i don't have a convenient way to track the load during the test on that machine
<HdkR> I definitely need to recheck this 10gbit line to this laptop, I think it is only running at 1gbit for some reason. I might have swapped a cable on my switch
<HdkR> bamse: Alright, fixed the 10gbe connection so the laptop can have a proper 5gbit capable NIC. fio over the connection can now hit the 5gbit maximum, which does still have a decent softirq overhead on core0
<HdkR> I had switched the whole line to 1gbit while debugging other things, but now I can see Steam validating a game at 200MB/s which is nice
<HdkR> https://gist.github.com/Sonicadvance1/43ea87ab1289e80788a1531c89e05ce2 perf top -U -c 0 while running a fio bench
<HdkR> I'll leave the laptop idling and see if it manages to oops itself. Looks like that is fixed though
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
matthias_bgg has quit [Ping timeout: 480 seconds]
matthias_bgg has joined #aarch64-laptops
paddymahoney has joined #aarch64-laptops
<travmurav[m]> hexdump0815: Cool, though it would be a bit hard for me to review and provide comments on a dedicated file, any chance you can create a branch on top of the 6.6 for example, with your dts commit (new dts and makefile change), and open a github PR into your own base branch, so I can leave review comments on line ranges via PR UI? Then we can polish it out into a patch you can just send :)
altacus has quit [Remote host closed the connection]
altacus has joined #aarch64-laptops
agl7 has quit [Ping timeout: 480 seconds]
cuneocuboid has quit [Ping timeout: 480 seconds]
Lucanis has quit [Ping timeout: 480 seconds]
Lucanis has joined #aarch64-laptops
agl7 has joined #aarch64-laptops
agl7_ has joined #aarch64-laptops
agl7 has quit [Ping timeout: 480 seconds]
iivanov has quit [Remote host closed the connection]
Ablu has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
svarbanov_ has quit [Ping timeout: 480 seconds]
Ablu has joined #aarch64-laptops
Guest5133 has quit [Ping timeout: 480 seconds]
martin has joined #aarch64-laptops
martin is now known as Guest5248
heapify has joined #aarch64-laptops
heapify has quit []
svarbanov has joined #aarch64-laptops
Guest5248 has quit [Ping timeout: 480 seconds]
martin has joined #aarch64-laptops
martin is now known as Guest5255
<jhovold> robclark, dianders: thanks for finding the missing dpu setting!
<jhovold> look like lazy iommu mode still gives better throughput, put notably adding the missing dpu settings *and* using lazy iommu is the only combination that appears to saturate my gigabit link
<robclark> jhovold: nice.. perhaps there is still some room for SoC specific udev rules like https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/refs/heads/main/baseboard-trogdor/chromeos-base/chromeos-bsp-baseboard-trogdor/files/98-qcom-nonstrict-iommu.rules so that dma masters without firmware can be non-strict
<jhovold> I've updated the latest wip branch so that it includes the DPU fix now: https://github.com/jhovold/linux/tree/wip/sc8280xp-v6.6
<jhovold> robclark: so it seems, at least for the time being
<robclark> I think the feeling is this sort of policy should be in userspace rather than the kernel.. but at least for CrOS what we landed on was that we were comfortable from security PoV using "lazy" mode for things that didn't have some sort of firmware (ie. not lazy for dsp/modem/etc.. but ok to be lazy for usb/emmc/etc).. but dianders was more directly involved, this is just my 2nd-hand recollection
Numidae has joined #aarch64-laptops
Numidae has quit [Remote host closed the connection]
<_[m]1> ok so new kernel on ubuntu (don't know which one, laptop-1005) - downloading dota -> crash (was also running update-grub)
<_[m]1> * running update-grub because removing the iommu)
egosyntonic has joined #aarch64-laptops
<_[m]1> * running update-grub because removing the iommu), * ) - 1 reboot loop occured after fde
<_[m]1> * on ubuntu mantic (don't know, * running update-grub because removing the iommu), * ) - 1 reboot loop occured after fde
<_[m]1> ```
<_[m]1> 2023-10-31T13:57:57.087607+01:00 upowerd[2072]: g_udev_device_get_sysfs_path: assertion 'G_UDEV_IS_DEVICE (device)' failed
<_[m]1> 2023-10-31T13:57:57.087827+01:00 upowerd[2072]: g_udev_client_query_by_sysfs_path: assertion 'sysfs_path != NULL' failed
<_[m]1> 128Mbps down on steam over wifi which is neat
matthias_bgg has quit [Ping timeout: 480 seconds]
matthias_bgg has joined #aarch64-laptops
egosyntonic has quit [Remote host closed the connection]
<dianders> robclark, jhovold: Yeah, the userspace / the udev rules were what was decided upon in the discussion several years ago as the upstream solution. If you follow some of the "for history" links on the udev rules that Rob points at you at you get a bunch of context, notably my longwinded discussion in <https://crrev.com/c/2986602> and a little more in <https://crrev.com/c/2991743>.
svarbanov has quit [Ping timeout: 480 seconds]
matthias_bgg has quit [Quit: Leaving]
hightower4 has quit [Ping timeout: 480 seconds]
<bamse> HdkR, jhovold: the DMA-FQ takes the tlbsync out of the hotpath, so i can see why that still benefits us...
<bamse> HdkR: but if you can crash the kernel/system with DMA-FQ and pushing enough data, i'd say that indicates that we're postponing too much work...feels like a buggy state that the system should prevent us from entering
<robclark> btw, my x13s keyboard decided to take a vacation just earlier.. reboot "fixed" it.. didn't see anything too interesting in dmesg.. kinda strange
hightower2 has joined #aarch64-laptops
svarbanov has joined #aarch64-laptops
exeat has quit []
exeat has joined #aarch64-laptops
<jhovold> dianders: thanks for the links, i'll take a look
irl25519 has joined #aarch64-laptops
irl25519 has quit []
<clover[m]> 6.6.0 pushed for arch linux users
<steev> woo
<clover[m]> looks like we will be able to use upstream alca-ucm-conf soon, i see some of sriniks changes pulled into master branch
<clover[m]> also bumped the mesa and linux-firmware packages but i don't think x13s has any new stuff for those at this point
<steev> yeah, johan mentioned the merge request was accepted
<steev> that will be exciting
<jenneron[m]> bamse: so, do we need a udev rule? or is that patch enough
<jenneron[m]> also, it's fine to drop those cmdlines, right?
<steev> yes
iivanov has quit [Quit: Leaving]
altacus has quit [Remote host closed the connection]
altacus has joined #aarch64-laptops
agl7_ is now known as agl7
hexdump01 has quit []
hexdump0815 has joined #aarch64-laptops
hexdump0815 has quit []
<agl7> steev: Are you ready with version 6.6 of your kernel?
hexdump0815 has joined #aarch64-laptops
<steev> ?
<agl7> I mean have you patched the kernel 6.6?
<steev> yes, see the conversation from last night
<agl7> ok
<hexdump0815> travmurav[m]: good idea - i'll prepare such a kernel tree, branch and pr during the next days and let you know
<bamse> jenneron[m]: i find the patch alone sufficient...but HdkR's use cases are more demanding
<bamse> jenneron[m]: i got a patch for sc8180x as well, but apparently the sc8180x primus doesn't have working display/gpu in linux-next, trying to resolve that so that i can test the patch
DanaG has joined #aarch64-laptops
<DanaG> Huh, apparently this is what's going on with the Surface Pro X in Windows, no wonder OpenGL stuff looks so garbled. But I don't think Linux is really in a usable state on the SPX. https://www.reddit.com/r/opengl/comments/1755c97/if_youre_using_opengl_with_qualcomm_snapdragon/
<Jasper[m]> <DanaG> "Huh, apparently this is what's..." <- Might be a bug in their translation layer
<Jasper[m]> They do OpenGL on D3D12 afaik
<DanaG> Yeah, it's translated... but supposedly it's only gen1/gen2 that have the issue, according to that post.
<DanaG> It's possible it's actually all of them, though. I don't have a gen3 to test.
<Jasper[m]> I could test on Volterra
<Jasper[m]> I have no program that does that though
<DanaG> If you have the data files for RCT2, OpenRCT2 (native arm64 build available) is a good test. Though when I installed it, it was missing a g2.dat file that I had to grab from the i386/x86-64 build.
<HdkR> bamse: Left the system running overnight and the 5gbit adapter didn't oops the kernel. Looks like whatever was causing the problem was fixed
<HdkR> I'll hammer it more today with my regular use case and see if something happens though
<agl7> steev: Kernel 6.6 runs. It seems all is OK.
<agl7> steev: Oh ... I have only the "Dummy Output" device for the sound :-(
<agl7> Have I updated the firmware?
<agl7> *update
<steev> no, nothing has changed on that front in a while