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
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
reng_ is now known as reng
hexdump01 has joined #aarch64-laptops
jglathe_angrybox has quit [Ping timeout: 480 seconds]
tobhe_ has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
tobhe has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
jglathe_angrybox has joined #aarch64-laptops
erebion has left #aarch64-laptops [Disconnected: Replaced by new connection]
erebion has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
pbrobinson_ has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
davidinux has quit [Quit: WeeChat 4.3.1]
jhovold has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
pbrobinson_ has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
srinik has joined #aarch64-laptops
pbrobinson_ has quit [Ping timeout: 480 seconds]
icecream95 has joined #aarch64-laptops
<LiangQi[m]>
8-9 packages, after trick 1, 99-Phased-Updates, only the grub-efi and shim things left. then trick 2 helped me.
<icecream95>
robclark: I'm seeing Firefox hangs with (website-embedded) Google Maps. For example, go to https://thetruesize.com/ and zoom into a region inside an overlaid country shape
<icecream95>
(I'm using the Firefox snap channel latest/candidate/core24, and mesa-2404 channel latest/beta/kisak.)
<icecream95>
(So that's Mesa 25.0.2)
<icecream95>
There seem to be a couple of threads stuck inside alloc_batch_locked, so I guess the flushing isn't working correctly
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
<icecream95>
Oh I see... I think it might be that we have two threads trying to flush the same batch at once... so it is never destroyed since at any point in time, at least one of them holds a reference
<icecream95>
Or in other words, there is a problem since the scopes of the locks for ctx->screen and flush_batch are incomparable... neither is nested inside the other
<icecream95>
So the obvious fixes are to execute alloc_batch_locked entirely under the screen lock, or to add state to the batch, say, is_flushing, and pick another flush_batch if that's set
<icecream95>
A more fundamental issue seems to be that you can get a complete deadlock if more than 32 threads need batches at once.
<icecream95>
(maybe. I haven't looked closely enough to be sure)
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
chrisl has joined #aarch64-laptops
<tobhe_>
LiangQi[m]: I pushed an update that should have fixed the grub problem. phased updates should not prevent release upgrades afaik
tobhe_ is now known as tobhe
chrisl has quit [Ping timeout: 480 seconds]
<icecream95>
Debug builds of Mesa give this crash (but the above issue happens even with TC disabled): https://0x0.st/84Xc.txt
jhovold has quit [Quit: WeeChat 4.4.3]
<icecream95>
The second fix I suggested doesn't work because I get random crashes (probably from races), but even with a hacky mutex added ( https://0x0.st/84Xe.patch ) and TC disabled, I still get occasional crashes.
<icecream95>
So I think the whole idea of just being able to flush any old batch is broken when there multiple threads using the GL
pbrobinson_ has joined #aarch64-laptops
exeat has quit [Remote host closed the connection]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
<robclark>
icecream95: it would be easy enough to raise the limit from 32 to 64 for 64b builds, but making the limit arbitrary would add a lot of draw overhead (since we are using a bitmask as a fast hashset).. but I guess/hope that is more of a theoretical problem and that ffox isn't actually using 32+ threads for rendering. Re: multiple threads flushing, I'll have to look into that, but might not have time today
<icecream95>
robclark: No, there's just Renderer, CanvasRenderer, and TC threads involved here... so yes that is more theoretical
<icecream95>
I wonder however if using a hashset is really much better than a list, since I guess most resources will only be in a single unsubmitted batch at once
icecream95 has quit [Quit: rcirc on GNU Emacs 29.1]
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
<robclark>
the tc threads kinda don't count, it is really about # of ctx's
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
pbrobinson_ has quit [Ping timeout: 480 seconds]
pbrobinson_ has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
chrisl has quit [Ping timeout: 480 seconds]
jelly has quit [autokilled: This host violated network policy. Mail support@oftc.net if you think this is in error. (2025-05-01 15:42:19)]
<robclark>
bamse, konradybcio, etc: have you managed to use gdb+kgdb from an aarch64 device to debug another aarch64 device? For me, gdb seems confused about the debug syms... it can load them but I guess the addresses are somehow wrong? https://www.irccloud.com/pastebin/9e6HIwNO/
pbrobinson_ has quit [Ping timeout: 480 seconds]
<konradybcio>
robclark haven't tried that..
<robclark>
kdb on device seems ok.. but obviously a lot more limited than gdb
<travmurav[m]>
This patchset also generates -el2.dtb for each WoA device so the overlay can be compile tested but also so it's just available easily (and well, otherwise the symbols aren't compiled anyway)
<travmurav[m]>
CC'd Jens Glathe and maz who I know use el2 actively on some devices but if anyone else wants to provide tested-by I'd appreciate that too
<JensGlathe[m]>
Nice
<travmurav[m]>
Depending how that goes I will probably see how to streamline using slbounce itself a bit later
<travmurav[m]>
(also note that those overlays have changed slightly from what I have in slbounce repo as I now have proper access to symbols, i.e. added few missing pcie for x1e too)
<travmurav[m]>
almost missed one pcie as in x1e dtsi most of them are called pci@XXX but one is pcie@XXX :^)
chrisl has quit [Ping timeout: 480 seconds]
srinik has quit [Ping timeout: 480 seconds]
pbrobinson_ has joined #aarch64-laptops
jelly has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
svarbanov_ has quit [Ping timeout: 480 seconds]
chrisl has quit [Ping timeout: 480 seconds]
pbrobinson_ has quit [Remote host closed the connection]
pbsds4 has quit []
pbsds has joined #aarch64-laptops
jglathe_angrybox has quit [Remote host closed the connection]
<bamse>
robclark: i've used kdb, haven't tried kgdb...i tried figuring out "crash" a while back, with results similar to yours
<bamse>
travmurav[m]: nice, i like that
<robclark>
ok.. yeah, kdb works ok for me.. just not super featureful
<bamse>
right
jdb has joined #aarch64-laptops
<jdb>
Hi, I'm getting this error message "msm_dpu ae01000.display-controller: [drm] Cannot find any crtc or sizes", any ideas about the possible cause(s)?
<jdb>
It happens for both the built-in screen and when plugging an external screen on the USB-C ports, this is on a Surface Pro 9 5G (arcata)
<JensGlathe[m]>
jdb which kernel do you use, do you use the dtb that is upstream?
<jdb>
I'm running a linux image built from jhovold repository, using the branch wip/sc8280xp-6.15-rc4
<jdb>
I'm using the upstream kernel, indeed, I was the one who submitted it ;-)
<jdb>
the upstream dtb I mean
<jdb>
for the built-in screen, I've never been able to make it work, I haven't found yet the correct panel description
<jdb>
for the external screens, it used to work quite reliably but I can't figure out what happens now, I can't get them enabled (on v6.12, v6.14 and today on v6.15-rc4)
<JensGlathe[m]>
Hi Jerome
chrisl has joined #aarch64-laptops
<JensGlathe[m]>
You could try my 6.15.0-rc4-jg-1, soon to be uploaded
<jdb>
sure, happy to give it a try
<jdb>
I'm wondering if I'm not missing something else in my Debian setup, some modules or a config in my kernel build maybe
<JensGlathe[m]>
I re-applied v4 of the LTTPR patch from alexVinarskis , this showed an improvement on the Snapdragon DevKit - sjowing output much earlier
<jdb>
I need only 2 .deb packages, linux-image and linux-modules, right?
<JensGlathe[m]>
I always do sudo dpkg -i *.deb in the directory
exeat has joined #aarch64-laptops
chrisl has joined #aarch64-laptops
<jdb>
JensGlathe[m]: with your image, I get a reboot after a few seconds if I load the msm module, and the screens are not enabled
<JensGlathe[m]>
wow bad
sally has quit [Ping timeout: 480 seconds]
<jdb>
I can boot with module_blacklist=msm though, my backup option for the moment
svarbanov_ has joined #aarch64-laptops
<JensGlathe[m]>
hmm why do you enable dispcc1 in the dt
chrisl has quit [Ping timeout: 480 seconds]
<JensGlathe[m]>
Also, internal display actually should be mdss0_dp2 and mdss0_dp2_phy, or like the thinkpad x13s
<jdb>
with some older kernels and the msm module blacklisted, I was able to keep the built-in screen enabled with efifb at least, but this doesn't work anymore (or not the same) with more recent kernel versions
<jdb>
the bring-up is complex without a working screen...
<jdb>
I would need to dive into my memory / archives, I created / updated the .dts many months ago and it was working at that time
<jdb>
(and I did test many different configurations, based on yours, on x13s, on the CRD at that time)
<JensGlathe[m]>
I would check against the x13s dt (which has panel-edp) but maybe on mdss0_dp2
<jdb>
thanks for the suggestion, I'll give this a try, and I will also look at the devicetrees for the Surface Laptop 7 and the Surface Pro 11, that may give me another hint