ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630)
minecrell has quit [Quit: Ping timeout (120 seconds)]
minecrell has joined #aarch64-laptops
SallyAhaj has joined #aarch64-laptops
<davidebeatrici[m]> In order to boot the kernel I add to pass `efi=novamap` to it.
<davidebeatrici[m]> s/add/had/
<davidebeatrici[m]> However, it reboots on `Reached target Basic System` when I pass `pd_ignore_unused clk_ignore_unused`. If I omit them it reboots before that, on a black screen.
<bamse> steev: i took the one you pointed me to ;)
<bamse> steev: anyway, i don't think it matters...we can work with lenovo to get it updated as needed
<steev> if needed, like rob said, it just kicks it out of secure mode, so i think any of them would be fine
<bamse> yeah, interesting to see that they updated it :)
<davidebeatrici[m]> Could the issue I'm encountering be due to the DTB not being for the specific device (PiPO W12)? If yes, how can I write one?
<steev> davidebeatrici[m]: you definitely need those 3 options
<davidebeatrici[m]> You forgot the first one when guiding me yesterday :(
<steev> you're using mainline or my tree?
<davidebeatrici[m]> Mainline right now.
<steev> my tree *should* have a patch so the efi=novamap isn't required
<steev> shawn wrote it long ago
<davidebeatrici[m]> Oh, I see.
<robclark> bamse, steev: if you are that curious, we could kinda disasm it to see what changed.. the zap fw is basically sqe fw w/ some embedded cmdstream plus shaders.. the figuring out what parts are embedded cmdstream/shaders isn't completely automatic yet but doable with some work.. but likely the differences aren't going to be anything that matters without linux supporting secure contexts
<bamse> robclark: i'm always curious...but there's a few other things that i'm more curious about ;)
<bamse> robclark: like figuring out how to power up the gpu...
<steev> i'm curious why mdp breaks when i enable gpu
<bamse> but first, i got DP working on the CRD today, so need to clean the phy pieces up now
<bamse> should work on the x13s as well, but haven't tested it yet
<robclark> yeah, fair.. keep backup copies in case sometime later it bubbles up to top of curiosity pile
<bamse> :)
<steev> robclark: should be easy enough, windows keeps at least 2 copies around (3 in the case of the adsp)
<steev> hm, now i can't find the patch
<steev> maybe it's something to grub that debian applies...
hexdump01 has joined #aarch64-laptops
<steev> i don't remember, but now i'm not seeing it in my kernel
hexdump0815 has quit [Ping timeout: 480 seconds]
klardotsh has joined #aarch64-laptops
Penguinpee has quit [Remote host closed the connection]
Penguinpee has joined #aarch64-laptops
matthias_bgg has joined #aarch64-laptops
<leezu> robclark: the freedreno mesa issue persists after my patch to disable DMABUF_SURFACE_EXPORT in firefox for qualcomm devices. Firefox devs think "it should be pretty obvious to mesa devs when looking at lookup_bo() that they missed some checks somewhere - unless it turns out to be some threading issue (can happen with DMABUF_SURFACE_EXPORT). But as the error happens without
<leezu> that and IIUC is pretty consistent, that's unlikely." What do you think?
klardotsh has quit [Read error: Connection reset by peer]
<leezu> It's easy to repro by navigating to drive.google.com and opening a new tabular sheet document. I linked the nightly build in the issue. It would be great if you can try if you can also repro this.
<robclark> leezu: I suspect something is scribbling over memory, which is why I suggested valgrind or asan.. if there was a problem with hashtable lookups I doubt it would have gone unnoticed for as many years as that code has existed.. but I can try gsheets later today
go4godvin has joined #aarch64-laptops
<leezu> robclark: Let me take a look at valgrind and asan. My expectation is that at least valgrind will be very slow, but given there's an easy reproducer with the khronos site, it may work
<robclark> yeah, valgrind is slow.. asan isn't so bad but you need to rebuild mesa w/ llvm and asan enabled
<robclark> btw, what mesa version?
<robclark> oh, hmm, ffox isn't so easy to test because of that whole pci issue
<leezu> Does the build linked in the issue not work for you?
<leezu> I was on mesa 22.1.3. In the meantime 22.2.0~rc1 was packaged in debian, so can try that too
<steev> you can also build it from git and use meson devenv
<leezu> robclark: Nice! It helps, but produces this new backtrace:
<leezu> Well, not sure if it actually helps. The backtrace still looks the same
<robclark> are you sure you are using the mesa build you think you are? That is the thing fixed by the MR
<leezu> It seems I'm missing libEGL_mesa.so and the system library is still used. Is this just an alias of libEGL.so obtained by building mesa?
<leezu> Also there's this meson warning: WARNING: Library target 'EGL' has 'name_prefix' set. Compilers may not find it from its '-lEGL' linker flag in the 'egl.pc' pkg-config file.
<leezu> WARNING: Library target 'EGL' has 'name_prefix' set. Compilers may not find it from its '-lEGL' linker flag in the 'egl-uninstalled.pc' pkg-config file.
<robclark> I think this the _mesa.so versions are intended to be loaded by libglvnd
<leezu> I observe the following difference in the backtrace without and with the modified LD_LIBRARY_PATH:
<leezu> Without: 0x0000007f6374fce8 in list_delinit (item=<optimized out>) at ../src/util/list.h:110
<leezu> 110 ../src/util/list.h: No such file or directory.
<leezu> With: 0x0000007f613b1ce8 in list_delinit (item=<optimized out>) at ../src/util/list.h:110
<leezu> warning: Source file is more recent than executable.
<leezu> 110 item->prev->next = item->next;
<robclark> probably just down to how much compiler inlines things.. it is the same thing in both cases
<robclark> I use something like this to run non-system mesa: LIBGL_DRIVERS_PATH=$p/debug/b/lib64/dri LD_LIBRARY_PATH=$p/debug/b/lib64:$LD_LIBRARY_PATH
<leezu> Thank you. LIBGL_DRIVERS_PART was missing on my end. Adding that, and using mesa-installdir/lib/aarch64-linux-gnu for the LD_LIBRARY_PATH makes firefox use the non-system mesa. With that, the khronos test passes meaning so your fix worked
<leezu> robclark: Do you think the fix can be added to upcoming 22.2 release?
<robclark> maybe? I'll tag it so it gets noticed for stable branch
<leezu> robclark: I'm running the Khronos tests and have another crash, but it's not as easy to reproduce: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6997
<leezu> That one may be due to a threading issue?
<robclark> narrow it down to some particular test?
<leezu> No, running individual tests always works but running the whole testsuite crashes at some point. The first backtrace was early at the 7th test group, the second backtrace took a couple minutes of running through the testsuite
<hexdump01> leezu: just a note - in case you are still using my image - i'm for some systems which need newer mesa symlinking /usr/lib/<arch>/dri to /opt/mesa/lib/<arch>/dri and set the ld patch so that the newer /opt/mesa is used - i guess you are not using this anymore, but just in case for you to know to avoid debugging into the wrong direction
hexdump01 has quit []
hexdump0815 has joined #aarch64-laptops
<hexdump0815> leezu: just a note - in case you are still using my image - i'm for some systems which need newer mesa symlinking /usr/lib/<arch>/dri to /opt/mesa/lib/<arch>/dri and set the ld patch so that the newer /opt/mesa is used - i guess you are not using this anymore, but just in case for you to know to avoid debugging into the wrong direction ... afk for a while now
klardotsh has joined #aarch64-laptops
<leezu> robclark: Thank you for the second fix. With that, I'm able to generate yet another crash: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7004
<robclark> yeah, that is memory corruption
<robclark> I tried asan but firefox seems somehow unhappy with that
<robclark> got the webgl conformance tests running under chromium and so far not hitting any issue like that
<robclark> so idk, could be ffox nightly issue
klardotsh has quit [Remote host closed the connection]
klardotsh has joined #aarch64-laptops
klardotsh_ has joined #aarch64-laptops
klardotsh has quit [Ping timeout: 480 seconds]
<robclark> fwiw, locally I got a very different backtrace, but same `info->canary == CANARY` assert failed
<robclark> so some sort of use-after-free or that sort of thing
<leezu> robclark: will you rebase the merge request or does the bot handle that automatically?
<robclark> margebot handles that (or complains if there are conflicts)
<leezu> Nice
<steev> bamse: i bumped to 20220804 of next, still no luck with gpu, but i noticed the disp0_cc_mdss_dptx3_pixel0_clk_src seems to get stuck - https://paste.debian.net/1249363
<qzed> steev: is suspend working on the x13s?
<steev> qzed: with the patch from mani_s, yes
<steev> https://github.com/steev/linux/commit/9ec798bf7b9239a29eefa66d6cca345926f31cd0 i think is the workaround that bamse thinks is good enough to be accepted upstream
<qzed> oh nice, I'll need to have a look at that then, maybe I can make it work on the sc81810x
<qzed> thanks for the pointer
<steev> :)
<steev> i hope so too
<steev> i watch your work for my flex stuff ;)
<qzed> heh, I was just looking over you next branch for the x13s and noticed quite a bunch of PCIe stuff, so I figured I'd ask
<steev> si, although most of it doesn't apply anymore > 0722
<steev> i just... left them off, and it seems to boot okay, though there is some complaint about a missing phy
<qzed> hmm, I guess I'll have to give it a try on 0722 then first
<steev> well, you do have a branch there already
<qzed> yeah, and with the remoteproc patch by mani that should now work properly
<steev> si!
<steev> i THOUGHT jhovold's pcie patches were sent to the list, i swear that i saw a convo about fixing "something" before trying again or whatever, but i'm not finding them in patchwork
<steev> maybe it was a different patchset though
<steev> and he was just commenting