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]
<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]