ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
nchery is now known as Guest543
nchery has joined #dri-devel
morphis has quit [Ping timeout: 480 seconds]
morphis has joined #dri-devel
columbarius has joined #dri-devel
co1umbarius has quit [Ping timeout: 480 seconds]
Guest543 has quit [Ping timeout: 480 seconds]
guru_ has quit []
oneforall2 has joined #dri-devel
ybogdano has quit [Ping timeout: 480 seconds]
icecream95 has joined #dri-devel
heat has quit [Remote host closed the connection]
heat has joined #dri-devel
co1umbarius has joined #dri-devel
columbarius has quit [Ping timeout: 480 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
lumag_ has quit [Ping timeout: 480 seconds]
Emantor has joined #dri-devel
ngcortes has quit [Ping timeout: 480 seconds]
lemonzest has quit [Quit: WeeChat 3.5]
<mareko> anarsoul: yes
mclasen_ has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Konversation terminated!]
macromorgan has quit [Quit: Leaving]
mhenning has joined #dri-devel
ngcortes has joined #dri-devel
srslypascal has quit [Remote host closed the connection]
srslypascal has joined #dri-devel
Lucretia has quit []
mhenning has quit [Quit: mhenning]
rasterman has quit [Quit: Gettin' stinky!]
Lucretia has joined #dri-devel
srslypascal is now known as Guest563
srslypascal has joined #dri-devel
mclasen has joined #dri-devel
Guest563 has quit [Ping timeout: 480 seconds]
mclasen has quit [Ping timeout: 480 seconds]
<anarsoul> mareko: thanks. Could you assign https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/689 to marge if it looks OK to you?
hch12907 has joined #dri-devel
Duke`` has joined #dri-devel
ngcortes has quit [Ping timeout: 480 seconds]
nchery has quit [Quit: Leaving]
YuGiOhJCJ has joined #dri-devel
kts has joined #dri-devel
kts has quit [Quit: Konversation terminated!]
hch12907 has quit [Ping timeout: 480 seconds]
off^ has joined #dri-devel
lemonzest has joined #dri-devel
heat has quit [Ping timeout: 480 seconds]
sdutt has quit [Read error: Connection reset by peer]
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
plombo has quit [Ping timeout: 480 seconds]
danvet has joined #dri-devel
Duke`` has quit [Ping timeout: 480 seconds]
off^ has quit [Ping timeout: 480 seconds]
camus1 has quit [Remote host closed the connection]
camus has joined #dri-devel
simon-perretta-img has quit [Ping timeout: 480 seconds]
jimjams has quit [Quit: Connection closed for inactivity]
off^ has joined #dri-devel
rasterman has joined #dri-devel
Haaninjo has joined #dri-devel
off^ has quit [Ping timeout: 480 seconds]
off^ has joined #dri-devel
mclasen has joined #dri-devel
pcercuei has joined #dri-devel
Net147 has quit [Quit: Quit]
Net147 has joined #dri-devel
Net147 has quit [Quit: Quit]
Net147 has joined #dri-devel
flacks has quit [Quit: Quitter]
flacks has joined #dri-devel
off^ has quit [Ping timeout: 480 seconds]
icecream95 has quit [Ping timeout: 480 seconds]
off^ has joined #dri-devel
off^ has quit [Remote host closed the connection]
anarsoul has quit [Read error: Connection reset by peer]
anarsoul has joined #dri-devel
lanodan has joined #dri-devel
camus has quit [Remote host closed the connection]
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #dri-devel
camus has joined #dri-devel
lemonzest has quit [Quit: WeeChat 3.5]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
hch12907 has joined #dri-devel
hch12907 has quit [Ping timeout: 480 seconds]
ella-0_ has joined #dri-devel
ella-0 has quit [Remote host closed the connection]
hch12907 has joined #dri-devel
Lucretia has quit []
Lucretia has joined #dri-devel
heat has joined #dri-devel
yoslin has quit [Quit: WeeChat 3.5]
yoslin has joined #dri-devel
yoslin has quit [Quit: WeeChat 3.5]
yoslin has joined #dri-devel
JohnnyonFlame has joined #dri-devel
heat has quit [Remote host closed the connection]
heat has joined #dri-devel
krushia has joined #dri-devel
mclasen has quit [Ping timeout: 480 seconds]
<robclark> danvet, ickle, hmm, how does (or does?) i915 deal with evicting a bo that has been dmabuf exported and mmap'd via the dmabuf fd.. I've tracked down corruption w/ msm related to accessing dmabuf mmap after bo has been unpinned since we only unmap_mapping_range(dev->anon_inode->i_mapping) but that doesn't shoot down the dmabuf mmap.. (took me a while to figure out, until I had the bright idea to add dmabuf mmap to igt test I'm
<robclark> working on.. and then insta-boom)
<danvet> robclark, if you wire through all the helpers then in theory you should be able to forward the dma-buf mmap in such a way that unmap_mapping_range hits it
<danvet> but you need to adjust both the file and offset and everything in the mmap fwding
<danvet> robclark, dma_buf_mmap_internal as example
<robclark> hmm, I am, I think, using all the helpers..
<danvet> hm no that's not the example
<robclark> oh, but i915 doesn't use the helpers..
<danvet> robclark, not sure you want to trust me, I'm not even finding the unmap_mapping_range in msm right now :-/
<robclark> hmm, is vma_set_file() that i915_gem_dmabuf_mmap() does the magic I'm missing?
<robclark> danvet: called indirectly via drm helper ;-)
<robclark> drm_vma_node_unmap()
<danvet> ah I always miss that it's in the header
<danvet> robclark, yup vma_set_file it is
<danvet> I forgot we made it a wrapper
<danvet> robclark, and I just noticed that the helpers don't have that anywhere :-(
<danvet> so I guess you need to fix that and then it should be all good
<robclark> yup, I think that's the bug
<robclark> will know in a few min
<danvet> I thought we had all that, but the epic confusion that tzimmermann tracked down was only about vm_pgoff adjustment
<robclark> I guess it doesn't help that there isn't a lot of overlap between drivers using helpers and drivers doing eviction ;-)
<danvet> well there's a patch set in flight to adjust that
<robclark> i915 moving to helpers?
<danvet> nah adding a shrinker to helpers
<danvet> robclark, drm_gem_prime_mmap <- I guess this one should grow the vma_set_file and then it should be ok
<danvet> but not sure
iive has joined #dri-devel
<robclark> yeah, that's what I've done
<danvet> robclark, pls cc tzimmermann, he's more on top of all the hilarious corner cases our multi-layer mmap forwarding has
<robclark> hmm, shrinker or just purge (latter is easier since you won't purge something dmabuf exported)
<robclark> k
heat has quit [Ping timeout: 480 seconds]
<danvet> hm we could ditch the gem_prime_mmap callback outright, everyone uses drm_gem_prime_mmap :-)
<robclark> hmm, no.. that seems not quite enough: [ 186.200593] Unable to handle kernel paging request at virtual address dedededededededc
<danvet> looks like some poison
<robclark> yeah, it's my poison ;-)
<danvet> robclark, do you have a gem_bo->ops->mmap implementation?
<robclark> memset'ing the dmabuf mmap to 0xde
<robclark> yeah
<danvet> uh which file did you pick?
<robclark> ?
dllud has joined #dri-devel
dllud_ has quit [Remote host closed the connection]
dllud_ has joined #dri-devel
dllud has quit [Read error: Connection reset by peer]
<robclark> hmm, ok, dmabuf export should be setting `dma_buf->file->f_mapping = obj->dev->anon_inode->i_mapping`..
<danvet> yeah
<danvet> for which we'd need a special file since you really don't have one
<danvet> i915 does that, except the justification is hilariously bad and wrong
<danvet> or something like that
<danvet> robclark, I think I'll go back into w/e
<robclark> I suppose that is more fun than mm
plombo has joined #dri-devel
hch12907 has quit [Remote host closed the connection]
hch12907 has joined #dri-devel
srslypascal has quit [Ping timeout: 480 seconds]
srslypascal has joined #dri-devel
hch12907 has quit [Ping timeout: 480 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xantoz has quit [Ping timeout: 480 seconds]
TMM has joined #dri-devel
TMM has quit []
TMM has joined #dri-devel
lemonzest has joined #dri-devel
adjtm has joined #dri-devel
<robclark> oh, extra lolz, drm_vma_node_unmap() is a no-op if the drm_mm node is not allocated.. which it won't be if no one has asked for the drm_fd mmap offset.. and ofc unmap_mapping_range_tree() works in terms of vma->vm_start which ofc isn't going to match the drm_mm node.. I think I've found myself a rabbit hole..
krushia has quit [Quit: Konversation terminated!]
krushia has joined #dri-devel
lanodan_ has joined #dri-devel
Lyude has quit [Quit: WeeChat 3.4]
lanodan has quit [Ping timeout: 480 seconds]
Lyude has joined #dri-devel
pendingchaos has quit [Read error: No route to host]
pendingchaos has joined #dri-devel
anarsoul has quit [Quit: ZNC 1.8.2 - https://znc.in]
anarsoul has joined #dri-devel
<danvet> robclark, the vm_start we adjust already
<danvet> and the helper asks for the vma offset to make that adjustment
<danvet> I think at least, but maybe the illusion is not quite working
kem has quit [Ping timeout: 480 seconds]
<robclark> no, vm_pgoff is what we adjust.. although that might be enough, I'm still wading thru it
kem has joined #dri-devel
lumag_ has joined #dri-devel
gouchi has joined #dri-devel
mhenning has joined #dri-devel
sdutt has joined #dri-devel
gouchi has quit [Remote host closed the connection]
lemonzest has quit [Quit: WeeChat 3.5]
kem has quit [Ping timeout: 480 seconds]
jewins has joined #dri-devel
kem has joined #dri-devel
AndrewR has quit [Ping timeout: 480 seconds]
jewins has quit [Ping timeout: 480 seconds]
heat has joined #dri-devel
pcercuei has quit [Quit: dodo]
mclasen has joined #dri-devel
danvet has quit [Ping timeout: 480 seconds]
oneforall2 has quit [Remote host closed the connection]
oneforall2 has joined #dri-devel
Guest449 is now known as DrNick
adjtm has quit [Read error: Connection reset by peer]
Haaninjo has quit [Quit: Ex-Chat]