Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Simon Ser
On Thursday, March 2nd, 2023 at 14:45, Christian König wrote: > Am 02.03.23 um 14:37 schrieb Simon Ser: > > > On Thursday, March 2nd, 2023 at 14:21, Christian König > > christian.koe...@amd.com wrote: > > > > > Am 02.03.23 um 11:14 schrieb Simon Ser: > > > > > > > On Thursday, March 2nd,

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Christian König
Am 02.03.23 um 14:37 schrieb Simon Ser: On Thursday, March 2nd, 2023 at 14:21, Christian König wrote: Am 02.03.23 um 11:14 schrieb Simon Ser: On Thursday, March 2nd, 2023 at 08:11, Christian König christian.koe...@amd.com wrote: Am 01.03.23 um 23:29 schrieb Simon Ser: We don't

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Simon Ser
On Thursday, March 2nd, 2023 at 14:21, Christian König wrote: > Am 02.03.23 um 11:14 schrieb Simon Ser: > > > On Thursday, March 2nd, 2023 at 08:11, Christian König > > christian.koe...@amd.com wrote: > > > > > Am 01.03.23 um 23:29 schrieb Simon Ser: > > > > > > > We don't populate

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Christian König
Am 02.03.23 um 11:14 schrieb Simon Ser: On Thursday, March 2nd, 2023 at 08:11, Christian König wrote: Am 01.03.23 um 23:29 schrieb Simon Ser: We don't populate gem_prime_import_sg_table so only DMA-BUFs exported from our own device can be imported. Still, this is useful to user-space. But

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Simon Ser
On Thursday, March 2nd, 2023 at 09:07, Thomas Zimmermann wrote: > Am 01.03.23 um 23:29 schrieb Simon Ser: > > > We don't populate gem_prime_import_sg_table so only DMA-BUFs > > exported from our own device can be imported. Still, this is useful > > to user-space. > > VRAM helpers don't really

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Simon Ser
On Thursday, March 2nd, 2023 at 08:11, Christian König wrote: > Am 01.03.23 um 23:29 schrieb Simon Ser: > > > We don't populate gem_prime_import_sg_table so only DMA-BUFs > > exported from our own device can be imported. Still, this is useful > > to user-space. > > But what happens if one of

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-02 Thread Thomas Zimmermann
Hi Am 01.03.23 um 23:29 schrieb Simon Ser: We don't populate gem_prime_import_sg_table so only DMA-BUFs exported from our own device can be imported. Still, this is useful to user-space. VRAM helpers don't really offer much flexibility or control in where to place a BO. What happens if the

Re: [PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-01 Thread Christian König
Am 01.03.23 um 23:29 schrieb Simon Ser: We don't populate gem_prime_import_sg_table so only DMA-BUFs exported from our own device can be imported. Still, this is useful to user-space. But what happens if one of your BOs is imported into another device? Regards, Christian. Signed-off-by:

[PATCH] drm/vram-helper: turn on PRIME import/export

2023-03-01 Thread Simon Ser
We don't populate gem_prime_import_sg_table so only DMA-BUFs exported from our own device can be imported. Still, this is useful to user-space. Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Thomas Zimmermann Cc: Tian Tao Cc: Maxime Ripard Cc: Christian König Cc: Hans de Goede ---