Re: dma-buf sg mangling

2024-05-15 Thread Zack Rusin
On Tue, May 14, 2024 at 3:00 AM Christian König wrote: > > Am 14.05.24 um 06:15 schrieb Zack Rusin: > > On Mon, May 13, 2024 at 1:09 PM Christian König > wrote: > > Am 10.05.24 um 18:34 schrieb Zack Rusin: > > Hey, > > so this is a bit of a silly problem but I'd still like to solve it > properly.

RE: dma-buf sg mangling

2024-05-14 Thread Kasireddy, Vivek
Hi Rob, > > On Mon, May 13, 2024 at 11:27 AM Christian König > wrote: > > > > Am 10.05.24 um 18:34 schrieb Zack Rusin: > > > Hey, > > > > > > so this is a bit of a silly problem but I'd still like to solve it > > > properly. The tldr is that virtualized drivers abuse > > > drm_driver::gem_prime_

Re: dma-buf sg mangling

2024-05-14 Thread Christian König
Am 14.05.24 um 06:15 schrieb Zack Rusin: On Mon, May 13, 2024 at 1:09 PM Christian König wrote: Am 10.05.24 um 18:34 schrieb Zack Rusin: Hey, so this is a bit of a silly problem but I'd still like to solve it properly. The tldr is that virtualized drivers abuse drm_driver::gem_prime_import_s

Re: dma-buf sg mangling

2024-05-13 Thread Zack Rusin
On Mon, May 13, 2024 at 1:09 PM Christian König wrote: > > Am 10.05.24 um 18:34 schrieb Zack Rusin: > > Hey, > > > > so this is a bit of a silly problem but I'd still like to solve it > > properly. The tldr is that virtualized drivers abuse > > drm_driver::gem_prime_import_sg_table (at least vmwgf

Re: dma-buf sg mangling

2024-05-13 Thread Rob Clark
On Mon, May 13, 2024 at 11:27 AM Christian König wrote: > > Am 10.05.24 um 18:34 schrieb Zack Rusin: > > Hey, > > > > so this is a bit of a silly problem but I'd still like to solve it > > properly. The tldr is that virtualized drivers abuse > > drm_driver::gem_prime_import_sg_table (at least vmwg

Re: dma-buf sg mangling

2024-05-13 Thread Christian König
Am 10.05.24 um 18:34 schrieb Zack Rusin: Hey, so this is a bit of a silly problem but I'd still like to solve it properly. The tldr is that virtualized drivers abuse drm_driver::gem_prime_import_sg_table (at least vmwgfx and xen do, virtgpu and xen punt on it) because there doesn't seem to be a

dma-buf sg mangling

2024-05-10 Thread Zack Rusin
Hey, so this is a bit of a silly problem but I'd still like to solve it properly. The tldr is that virtualized drivers abuse drm_driver::gem_prime_import_sg_table (at least vmwgfx and xen do, virtgpu and xen punt on it) because there doesn't seem to be a universally supported way of converting the