ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
kzd has joined #dri-devel
epoch101 has joined #dri-devel
<DemiMarie> robclark: in that case the proxy in the guest needs to adjust its behavior, rather than blindly forwarding message. That's a huge change.
normalpan has quit [Ping timeout: 480 seconds]
asrivats_ has quit [Ping timeout: 480 seconds]
guludo has quit [Ping timeout: 480 seconds]
davispuh has quit [Ping timeout: 480 seconds]
iive has quit [Quit: They came for me...]
JRepinc has quit []
JRepinc has joined #dri-devel
The_Company has joined #dri-devel
Company has quit [Ping timeout: 480 seconds]
cascardo has quit [Ping timeout: 480 seconds]
cascardo has joined #dri-devel
SquareWinter68_ has joined #dri-devel
SquareWinter68 has quit [Ping timeout: 480 seconds]
epoch101_ has joined #dri-devel
epoch101 has quit [Ping timeout: 480 seconds]
Mangix has quit [Read error: Connection reset by peer]
karolherbst has quit [Read error: Connection reset by peer]
karolherbst has joined #dri-devel
Mangix has joined #dri-devel
nerdopolis has quit [Ping timeout: 480 seconds]
The_Company has quit []
epoch101_ has quit [Ping timeout: 480 seconds]
Daanct12 has joined #dri-devel
tyalie has quit []
tyalie has joined #dri-devel
epoch101 has joined #dri-devel
asrivats_ has joined #dri-devel
asrivats_ has quit [Ping timeout: 480 seconds]
normalpan has joined #dri-devel
Daanct12 has quit [Quit: WeeChat 4.6.3]
Daanct12 has joined #dri-devel
Daanct12 has quit []
Daanct12 has joined #dri-devel
epoch101 has quit [Ping timeout: 480 seconds]
feaneron has quit [Ping timeout: 480 seconds]
kts has joined #dri-devel
Duke`` has joined #dri-devel
Daanct12 has quit [Quit: WeeChat 4.6.3]
Daanct12 has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
kts has quit [Ping timeout: 480 seconds]
glennk has joined #dri-devel
OftenTimeConsuming has quit [Ping timeout: 480 seconds]
haaninjo has joined #dri-devel
kzd has quit [Ping timeout: 480 seconds]
Duke`` has quit [Ping timeout: 480 seconds]
jernej- has quit [Read error: Connection reset by peer]
jernej has joined #dri-devel
jsa1 has joined #dri-devel
sima has joined #dri-devel
tzimmermann has joined #dri-devel
rasterman has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
vliaskov has joined #dri-devel
sghuge has quit [Remote host closed the connection]
sghuge has joined #dri-devel
LeviYun has quit [Ping timeout: 480 seconds]
LeviYun has joined #dri-devel
simon-perretta-img has joined #dri-devel
OftenTimeConsuming has joined #dri-devel
bolson has quit [Ping timeout: 480 seconds]
lynxeye has joined #dri-devel
<jfalempe> sima: Can you take a look at my drm_panic for i915/xe series https://patchwork.freedesktop.org/series/141936/ ? Do you know who I should ping to have it reviewed?
<airlied> mlankhorst: ^
rgallaispou has joined #dri-devel
apinheiro has joined #dri-devel
warpme has joined #dri-devel
phasta has joined #dri-devel
<mlankhorst> lets see
pcercuei has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
idr has quit [Ping timeout: 480 seconds]
vliaskov has quit [Ping timeout: 480 seconds]
<mlankhorst> jfalempe: I'm looking through the code, is there an alternative for using per-file static variables?
<mlankhorst> It should be doable to pass intel_fb for panic setup instead, and pass that along instead of bo
<mlankhorst> Contrary to i915, xe has a very strict separation between xe_bo and display, so adding a member to intel_fb for panic stuff would make sense (or put it in xe's i915_vma)
<jfalempe> mlankhorst: I find static variable was the least intrusive, and due to the callbacks, it's hard to get back the data you need.
<mlankhorst> drm_panic is only ever being called once right?
<jfalempe> Yes, but the get_scanout_buffer is called for each plane of each GPU.
<mlankhorst> Yeah so on each gpu each primary plane gets set. Do other planes get disabled?
<jfalempe> No, currently I just overwrite the primary plane.
jsa1 has quit [Ping timeout: 480 seconds]
normalpan has quit [Remote host closed the connection]
<jfalempe> To remove the static variable, I would need to add a private pointer in struct drm_scanout_buffer, like https://patchwork.freedesktop.org/patch/595261/?series=133963&rev=1
vliaskov has joined #dri-devel
<mlankhorst> Yeah that would be doable, put a panic_data struct into intel_display or intel_fb and done
vliaskov_ has joined #dri-devel
<sima> yeah +1 on void *private; instead of sprinkling globals around
warpme has quit []
<jfalempe> mlankhorst: thanks, I will do that in the v10.
<sima> jfalempe, btw with the tiling disable, I guess for testing this means we get splats in the state verifier?
<sima> or do we avoid those?
<sima> or still no igt for panic testing?
vliaskov has quit [Ping timeout: 480 seconds]
<jfalempe> When using the drm test panic, the image is still tiled, so mostly unreadable, but there are no warning in dmesg.
<jfalempe> I think it restore tiling when doing the next flip
<sima> ah yeah we just smash the same thing in again
<sima> I guess ideally we'd have special intel igt cases for all the special code (like the y/4 tiling)
<sima> otherwise this stuff will break
<mlankhorst> I thought there is the tiling handling now?
<jfalempe> Testing is pretty hard, due to the assumption we have to do for drm panic.
<mlankhorst> Lets see what happens if I put it on my machine and do the debugfs test O:)
<jfalempe> mlankhorst: when DPT is not used, I disable tiling (so on older hw), when DPT is set, I have to handle the tiling.
<mlankhorst> Yeah exactly
<mlankhorst> uapi: [FB:380] AR30 little-endian (0x30335241),0x100000000000009,1920x2160, visible=visible, src=1920.000000x2160.000000+0.000000+0.000000, dst=1920x2160+0+0, rotation=0 (0x00000001)
<sima> mlankhorst, I'm talking about testcases in igt
<sima> otherwise this stuff will break
<mlankhorst> sima: Yeah should be easy to add, only thing we can do is verify no errors occurred from hw, no idea if the results would look sane. :)
<sima> yeah can't validate the output, but at least make sure it doesn't blow up
<sima> which is like the most important thing of panic code
<jfalempe> Also the debug interface doesn't allow to see if you miss some "flush" commands, because you will continue to do page flips. (for example, I only noticed the psr2 issue with real panic).
<sima> jfalempe, yeah there's limitations, but we can at least exercise the code and make sure we run all the paths in CI
<mlankhorst> igt_display is a reasonably sane interface for testing
<sima> and if we go with an igt ideally it'd have a super basic one that uses dumb buffers
<sima> so that other drivers also have some automated testing for those that do have igt ci
<mlankhorst> thought I would also be interested into testing what happens with partial primary plane, etc
<jfalempe> yes, I only tested the basics, so panic in gnome desktop and in VT.
<mlankhorst> Or like Xorg, too big a primary plane, with parts not visible
<jfalempe> Also discrete GPU won't work yet, because I don't have a way to ioremap from the panic handler. But that can be added later, and iGPU are the vast majority in use.
<mlankhorst> There's no guarantee on small bar that ioremap will even succeed
<mlankhorst> should not be needed to ioremap
<sima> amd has peek/poke registers, dead slow but guaranteed to work
<sima> but I think we don't have those?
<kode54> I had fun when I tried to read a panic qr code from someone's web posting of a video capture output
<kode54> seems Apple's iOS QR code decoder chokes on that much data
<kode54> it tries to inline it into the tooltip that pops on the screen to let you open/select it
xroumegue has quit [Ping timeout: 480 seconds]
<jfalempe> kode54: Yes some QR code reader don't like bigger code. I use Binary eye on Android, and it works good (and is open-source https://github.com/markusfisch/BinaryEye)
<kode54> I think Apple's coder can handle it
<kode54> but they try to stuff the entire block of data into a tooltip control
<jfalempe> hum, yes that's a lot of digits, because they can be encoded efficiently in QR code and are valid URL. Using Base64 would be much shorter, but also waste 25% of data.
<kode54> I thought the QR code from the panic was the full text of the panic message?
<kode54> or does it also include the dmesg loop?
xroumegue has joined #dri-devel
<kode54> since I've never had a panic successfully bring up the qr code
<kode54> every time I have a panic, it's a gpu related panic, and all my monitors cease outputting a picture when that happens :D
<psykose> i had it once and thought i got hacked because of the screen clear animation :-)
<kode54> though there was that period where I was testing bcachefs
<kode54> can't test GPU code at the same time as bcachefs, as bcachefs is still in a state of flux in current kernels, so down/upgrading will lead to applying down/upgrade to your filesystem
kts has joined #dri-devel
<mlankhorst> jfalempe: poking around, is it possible to include the private member for testing? Makes things easier. :)
lplc has quit [Ping timeout: 480 seconds]
<jfalempe> mlankhorst: I'll try to do the change this afternoon, and send a v10.
<jfalempe> kode54: the dmesg data are compressed, so you can put more of them. if you compile with QR_CODE set and QR_CODE_URL unset, you will have the dmesg in clear text in the QR code.
warpme has joined #dri-devel
<kode54> gotcha
lplc has joined #dri-devel
Company has joined #dri-devel
kts has quit [Ping timeout: 480 seconds]
jsa1 has joined #dri-devel
rgallaispou has left #dri-devel [#dri-devel]
feaneron has joined #dri-devel
rgallaispou has joined #dri-devel
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
hansg has joined #dri-devel
guludo has joined #dri-devel
woskova has quit [Read error: Connection reset by peer]
woskova has joined #dri-devel
apinheiro has quit [Quit: Leaving]
asrivats_ has joined #dri-devel
lsntvt__ has joined #dri-devel
<mlankhorst> jfalempe: Yeah might make vram easier.
hansg has quit [Quit: Leaving]
<mlankhorst> jfalempe: https://paste.debian.net/1380245/ btw if you want to spend some time on vram too
lsntvt_ has quit [Ping timeout: 480 seconds]
warpme has quit []
asrivats_ has quit [Ping timeout: 480 seconds]
<mlankhorst> remove the xe_ttm_vram, was from original code
<mlankhorst> though need to put xe_ttm_resource_visible () check somewhere
<jfalempe> mlankhorst: thanks nice to have also a solution for vram, the problem is I don't have hardware to test. The only discrete intel card I have is a dg2 prototype.
<mlankhorst> I do
<mlankhorst> DG2 mostly runs on xe btw if you use force probe, only HuC doesn't load
warpme has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
OftenTimeConsuming has joined #dri-devel
lsntvt_ has joined #dri-devel
lsntvt__ has quit [Read error: Connection reset by peer]
nerdopolis has joined #dri-devel
YuGiOhJCJ has quit []
blaztinn_ has joined #dri-devel
blaztinn has quit [Read error: Connection reset by peer]
vliaskov_ has quit [Ping timeout: 480 seconds]
<mlankhorst> hmm I added some debug for testing, it's way too realistic
<mlankhorst> (tiled screen)
<jfalempe> I was wondering how you can panic only half of your display :)
<jfalempe> red screen of death, really frightening.
<mlankhorst> I think it's not completely working, but at least the mapping part does
<mlankhorst> should probably export a function to get the vram base pointer and create or look for a xe_bo_mappable()
<mlankhorst> but it worked on my battlemage
asrivats_ has joined #dri-devel
asrivats_ has quit [Remote host closed the connection]
asrivats_ has joined #dri-devel
<sima> mlankhorst, we really don't have peek/poke registers anywhere?
<mlankhorst> I haven't looked for them
<mlankhorst> But this works on everthing except small bar alread
vliaskov_ has joined #dri-devel
<sima> yeah I guess assuming we have a big enough bar isn't that stupid any more
<mlankhorst> though I didn't check what happens if we keep the FB in stolen memory on recent hw
<mlankhorst> I would say it should still work, but that's always a special case
Kayden has quit [Quit: Leaving]
Kayden has joined #dri-devel
asrivats_ has quit [Remote host closed the connection]
asrivats_ has joined #dri-devel
Daanct12 has quit [Quit: WeeChat 4.6.3]
<jfalempe> mlankhorst: I've done the change to remove the static variables, moving them to struct intel_framebuffer. I won't have time clean and send that today, so I will finish it tomorrow.
<mlankhorst> No worries, feel free to re-use the work I did for VRAM
rgallaispou has quit [Read error: Connection reset by peer]
<jfalempe> my current test patch: https://paste.debian.net/1380319/
kzd has joined #dri-devel
rgallaispou has joined #dri-devel
hansg has joined #dri-devel
epoch101 has joined #dri-devel
bolson has joined #dri-devel
idr has joined #dri-devel
alyssa has left #dri-devel [#dri-devel]
asrivats_ has quit [Ping timeout: 480 seconds]
rasterman has quit [Quit: Gettin' stinky!]
zzoon_back_to_Korea[m] has joined #dri-devel
asrivats_ has joined #dri-devel
DodoGTA has quit []
DodoGTA has joined #dri-devel
Duke`` has joined #dri-devel
epoch101_ has joined #dri-devel
epoch101 has quit [Ping timeout: 480 seconds]
phasta has quit [Quit: WeeChat 4.6.2]
dsimic is now known as Guest18298
dsimic has joined #dri-devel
Guest18298 has quit [Ping timeout: 480 seconds]
jsa1 has quit [Ping timeout: 480 seconds]
paulk-bis has joined #dri-devel
Jeremy_Rand_Talos has quit [Remote host closed the connection]
Jeremy_Rand_Talos has joined #dri-devel
Tele42 is now known as kisak
paulk has quit [Ping timeout: 480 seconds]
davispuh has joined #dri-devel
woskova has quit [Read error: Connection reset by peer]
woskova has joined #dri-devel
tzimmermann has quit [Quit: Leaving]
Jeremy_Rand_Talos has quit [Remote host closed the connection]
Jeremy_Rand_Talos has joined #dri-devel
djbw has joined #dri-devel
airlied_ has joined #dri-devel
airlied has quit [Ping timeout: 480 seconds]
epoch101_ has quit [Ping timeout: 480 seconds]
epoch101 has joined #dri-devel
LeviYun has quit [Ping timeout: 480 seconds]
warpme has quit []
yuq825 has quit [Read error: Connection reset by peer]
yuq825 has joined #dri-devel
rasterman has joined #dri-devel
agd5f_ has quit []
agd5f has joined #dri-devel
LeviYun has joined #dri-devel
rasterman has quit [Quit: Gettin' stinky!]
LeviYun has quit [Ping timeout: 480 seconds]
LeviYun has joined #dri-devel
LeviYun has quit [Ping timeout: 480 seconds]
lynxeye has quit [Quit: Leaving.]
kts has joined #dri-devel
gouchi has joined #dri-devel
LeviYun has joined #dri-devel
gouchi has quit []
LeviYun has quit [Ping timeout: 480 seconds]
LeviYun has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
LeviYun has quit [Ping timeout: 480 seconds]
JRepinc has quit []
JRepinc has joined #dri-devel
LeviYun has joined #dri-devel
iive has joined #dri-devel
jsa1 has joined #dri-devel
JRepinc has quit []
JRepinc has joined #dri-devel
djbw has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Konversation terminated!]
sima has quit [Ping timeout: 480 seconds]
hansg has quit [Quit: Leaving]
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
nerdopolis has quit [Ping timeout: 480 seconds]
JRepinc has quit []
JRepinc has joined #dri-devel
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #dri-devel
kts has joined #dri-devel
nerdopolis has joined #dri-devel
mattrope has quit [Remote host closed the connection]
kts has quit [Quit: Konversation terminated!]
jsa1 has quit [Remote host closed the connection]
jsa1 has joined #dri-devel
YuGiOhJCJ has joined #dri-devel
karolherbst7 has joined #dri-devel
karolherbst has quit [Remote host closed the connection]
Nasina has joined #dri-devel
i-garrison has quit []
i-garrison has joined #dri-devel
hansg has joined #dri-devel
jsa1 has quit [Ping timeout: 480 seconds]
JRepinc has quit []
JRepinc has joined #dri-devel
karolherbst7 has quit []
karolherbst has joined #dri-devel
Duke`` has quit [Ping timeout: 480 seconds]
JRepinc has quit []
JRepinc has joined #dri-devel
vliaskov_ has quit [Remote host closed the connection]
hansg has quit [Quit: Leaving]
Nasina has quit [Read error: Connection reset by peer]
Nasina has joined #dri-devel
feaneron has quit [Quit: feaneron]
Nasina has quit [Read error: Connection reset by peer]
feaneron has joined #dri-devel
haaninjo has quit [Quit: Ex-Chat]
Nasina has joined #dri-devel
guludo has quit [Ping timeout: 480 seconds]
Nasina has quit [Read error: Connection reset by peer]
Nasina has joined #dri-devel
airlied_ is now known as airlied
Nasina has quit [Ping timeout: 480 seconds]
djbw has joined #dri-devel
rgallaispou has quit [Ping timeout: 480 seconds]
Nasina has joined #dri-devel
glennk has quit [Ping timeout: 480 seconds]
Nasina has quit [Read error: Connection reset by peer]
Nasina has joined #dri-devel
davispuh has quit [Ping timeout: 480 seconds]
gnarchie has quit []
pcercuei has quit [Quit: dodo]
alarumbe has joined #dri-devel
alarumbe has quit [Remote host closed the connection]