All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC]: shmem fd for non-DMA buffer sharing cross drivers
@ 2023-08-22 11:14 ` Hsia-Jun Li
  0 siblings, 0 replies; 22+ messages in thread
From: Hsia-Jun Li @ 2023-08-22 11:14 UTC (permalink / raw)
  To: linux-mm
  Cc: daniels, ayaka, hughd, linux-kernel, dri-devel, Tomasz Figa,
	Hans Verkuil, akpm, Linux Media Mailing List

Hello

I would like to introduce a usage of SHMEM slimier to DMA-buf, the major 
purpose of that is sharing metadata or just a pure container for cross 
drivers.

We need to exchange some sort of metadata between drivers, likes dynamic 
HDR data between video4linux2 and DRM. Or the graphics frame buffer is 
too complex to be described with plain plane's DMA-buf fd.
An issue between DRM and V4L2 is that DRM could only support 4 planes 
while it is 8 for V4L2. It would be pretty hard for DRM to expend its 
interface to support that 4 more planes which would lead to revision of 
many standard likes Vulkan, EGL.

Also, there is no reason to consume a device's memory for the content 
that device can't read it, or wasting an entry of IOMMU for such data.
Usually, such a metadata would be the value should be written to a 
hardware's registers, a 4KiB page would be 1024 items of 32 bits registers.

Still, I have some problems with SHMEM:
1. I don't want thhe userspace modify the context of the SHMEM allocated 
by the kernel, is there a way to do so?
2. Should I create a helper function for installing the SHMEM file as a fd?

-- 
Hsia-Jun(Randy) Li

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-08-25 12:22 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 11:14 [RFC]: shmem fd for non-DMA buffer sharing cross drivers Hsia-Jun Li
2023-08-22 11:14 ` Hsia-Jun Li
2023-08-22 19:55 ` Nicolas Dufresne
2023-08-22 19:55   ` Nicolas Dufresne
2023-08-23  3:49   ` Hsia-Jun Li
2023-08-23  3:49     ` Hsia-Jun Li
2023-08-23  4:46 ` Tomasz Figa
2023-08-23  4:46   ` Tomasz Figa
2023-08-23  7:11   ` Hsia-Jun Li
2023-08-23  7:11     ` Hsia-Jun Li
2023-08-23 13:15     ` Tomasz Figa
2023-08-23 13:15       ` Tomasz Figa
2023-08-25  7:30       ` Hsia-Jun Li
2023-08-25  7:30         ` Hsia-Jun Li
2023-08-25  7:40     ` Pekka Paalanen
2023-08-25  7:40       ` Pekka Paalanen
2023-08-25  7:56       ` Hsia-Jun Li
2023-08-25  7:56         ` Hsia-Jun Li
2023-08-25 11:41         ` Pekka Paalanen
2023-08-25 11:41           ` Pekka Paalanen
2023-08-25 12:20         ` Daniel Stone
2023-08-25 12:20           ` Daniel Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.