Re: [RFC]: shmem fd for non-DMA buffer sharing cross drivers

2023-08-25 Thread Hsia-Jun Li
On 8/25/23 15:40, Pekka Paalanen wrote: Subject: Re: [RFC]: shmem fd for non-DMA buffer sharing cross drivers From: Pekka Paalanen Date: 8/25/23, 15:40 To: Hsia-Jun Li CC: Tomasz Figa , linux...@kvack.org, dri-devel@lists.freedesktop.org, Linux Media Mailing List , hu...@google.com, a

Re: [RFC]: shmem fd for non-DMA buffer sharing cross drivers

2023-08-25 Thread Hsia-Jun Li
On 8/23/23 21:15, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, Aug 23, 2023 at 4:11 PM Hsia-Jun Li wrote: On 8/23/23 12:46, Tomasz Figa wrote: CAUTION: Email

Re: [RFC]: shmem fd for non-DMA buffer sharing cross drivers

2023-08-23 Thread Hsia-Jun Li
On 8/23/23 12:46, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Hsia-Jun, On Tue, Aug 22, 2023 at 8:14 PM Hsia-Jun Li wrote: Hello I would like to introduce a usage of

Re: [RFC]: shmem fd for non-DMA buffer sharing cross drivers

2023-08-22 Thread Hsia-Jun Li
On 8/23/23 03:55, Nicolas Dufresne wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi, Le mardi 22 août 2023 à 19:14 +0800, Hsia-Jun Li a écrit : Hello I would like to introduce a usage of

[RFC]: shmem fd for non-DMA buffer sharing cross drivers

2023-08-22 Thread Hsia-Jun Li
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

[PATCH] dma-buf/heaps: map CMA all pages for user

2023-08-21 Thread Hsia-Jun Li
Page fault would raise a CPU interrupt, it is not a good idea. Signed-off-by: Hsia-Jun(Randy) Li --- drivers/dma-buf/heaps/cma_heap.c | 26 +++--- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_hea

[PATCH] RFC: drm: Create a alloc helper flags blob

2023-03-22 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" In Android, we could also call gralloc to allocate a graphics buffer for the decoder, display or encoder. In the GNU Linux, we don't have such framework, the only thing we could have is the GBM. Unfortunately, some platforms don't have a GPU may not ship the gbm library

[PATCH v6 2/2] Documentation/gpu: Add Synaptics tiling formats documentation

2023-03-22 Thread Hsia-Jun Li
From: Randy Li Signed-off-by: Randy Li Signed-off-by: Hsia-Jun(Randy) Li --- Documentation/gpu/synaptics.rst | 81 + 1 file changed, 81 insertions(+) create mode 100644 Documentation/gpu/synaptics.rst diff --git a/Documentation/gpu/synaptics.rst b/Documentatio

[PATCH v6 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2023-03-22 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mapping is used is not a part of format. Signed-off-by: Hsia-Jun(Randy) Li --- include/uapi/drm/drm_fourcc.h | 75 +++

[PATCH v6 0/2] Add pixel formats used in Synatpics SoC

2023-03-22 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiling and compressed p

[PATCH v5 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-11-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mapping is used is not a part of format. Signed-off-by: Hsia-Jun(Randy) Li --- include/uapi/drm/drm_fourcc.h | 76 +++

[PATCH v5 2/2] Documentation/gpu: Add Synaptics tiling formats documentation

2022-11-30 Thread Hsia-Jun Li
From: Randy Li Signed-off-by: Randy Li Signed-off-by: Hsia-Jun(Randy) Li --- Documentation/gpu/drivers.rst | 1 + Documentation/gpu/synaptics.rst | 104 2 files changed, 105 insertions(+) create mode 100644 Documentation/gpu/synaptics.rst diff --git a/Doc

[PATCH v5 0/2] Add pixel formats used in Synatpics SoC

2022-11-30 Thread Hsia-Jun Li
Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiling and compressed pixel formats. https://synapt

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
On 11/29/22 18:42, Daniel Stone wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Randy, On Tue, 29 Nov 2022 at 10:11, Hsia-Jun Li wrote: Currently, we assume all the pixel formats are

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
On 11/29/22 18:18, Simon Ser wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Format modifiers are for the buffer layout only, not for the allocation parameters, placement, etc. See the doc comm

[RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Hello All Currently, we assume all the pixel formats are multiple planes, devices could support each component has its own memory plane. But that may not apply for any device in the world. We could have a device without IOMMU then this is not impossible. Besides, when

Re: [PATCH v4] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-11-23 Thread Hsia-Jun Li
: On Wed, Nov 23, 2022 at 10:58:11PM +0800, Jisheng Zhang wrote: On Wed, Nov 23, 2022 at 05:19:57PM +0800, Hsia-Jun Li wrote: From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the t

[PATCH v4] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-11-23 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the tile memory line. Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mappi

[PATCH v3 4/4] media: docs: Add Synpatics tile modifiers

2022-11-01 Thread Hsia-Jun Li
From: Randy Li The pixel formats used in Synpatics video smart platform are too many. It is impossible to store them in fourcc namespace. Signed-off-by: Randy Li Signed-off-by: Hsia-Jun(Randy) Li --- .../media/v4l/pixfmt-synaptics.rst| 86 +++ .../userspace-api/med

[PATCH v3 3/4] media: videodev2.h: add Synaptics tiled modifiers

2022-11-01 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" These modifiers would have the same values as the one defined in drm_fourcc.h, they would just be named in v4l2 style. Signed-off-by: Hsia-Jun(Randy) Li --- include/uapi/linux/videodev2.h | 30 ++ 1 file changed, 30 insertions(+) diff --g

[PATCH v3 2/4] media: videodev2.h: add pixel format modifiers

2022-11-01 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Signed-off-by: Hsia-Jun(Randy) Li --- include/uapi/linux/videodev2.h | 20 1 file changed, 20 insertions(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 29da1f4b4578..d00b2e9c0c54 100644 --- a/include/uapi/li

[PATCH v3 1/4] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-11-01 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the tile memory line. Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mappi

[PATCH v3 0/4] Add pixel formats used in Synatpics SoC

2022-11-01 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiled and compressed pi

[PATCH v2 2/2] media: docs: Add Synpatics tile modifiers

2022-10-30 Thread Hsia-Jun Li
From: Randy Li The pixel formats used in Synpatics video smart platform are too many. It is impossible to store them in fourcc namespace. Signed-off-by: Randy Li --- .../media/v4l/pixfmt-synaptics.rst| 80 +++ .../userspace-api/media/v4l/pixfmt.rst| 1 + 2

[PATCH v2 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-10-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the tile memory line. Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mappi

[PATCH v2 0/2] Add pixel formats used in Synatpics SoC

2022-10-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device connected to the MTR module could support those tiled and compressed pi

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-23 Thread Hsia-Jun Li
On 8/22/22 22:15, Nicolas Dufresne wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Le samedi 20 août 2022 à 08:10 +0800, Hsia-Jun Li a écrit : On 8/20/22 03:17, Nicolas Dufresne wrote

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-23 Thread Hsia-Jun Li
On 8/23/22 14:05, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. On Sat, Aug 20, 2022 at 12:44 AM Hsia-Jun Li wrote: On 8/19/22 23:28, Nicolas Dufresne wrote: CAUTION: Email

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-19 Thread Hsia-Jun Li
On 8/20/22 03:17, Nicolas Dufresne wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Le vendredi 19 août 2022 à 23:44 +0800, Hsia-Jun Li a écrit : On 8/19/22 23:28, Nicolas Dufresne wrote

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-19 Thread Hsia-Jun Li
, Hsia-Jun Li wrote: On 8/18/22 14:06, Tomasz Figa wrote: On Tue, Aug 9, 2022 at 1:28 AM Hsia-Jun Li wrote: From: "Hsia-Jun(Randy) Li" The most of detail has been written in the drm. This patch still needs a description of the format, which should go to Documentation/userspace-api

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-18 Thread Hsia-Jun Li
On 8/19/22 07:13, Laurent Pinchart wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Aug 18, 2022 at 02:33:42PM +0800, Hsia-Jun Li wrote: On 8/18/22 14:06, Tomasz Figa wrote: On Tue

Re: [PATCH 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-08-18 Thread Hsia-Jun Li
On 8/19/22 07:16, Laurent Pinchart wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Hsia-Jun, Thank you for the patch. On Tue, Aug 09, 2022 at 12:27:49AM +0800, Hsia-Jun Li wrote: From

Re: [PATCH 0/2] Add pixel formats used in Synatpics SoC

2022-08-18 Thread Hsia-Jun Li
On 8/19/22 07:08, Laurent Pinchart wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Hsia-Jun, On Tue, Aug 09, 2022 at 12:27:48AM +0800, Hsia-Jun Li wrote: From: "Hsia-Jun(Rand

Re: [PATCH 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-08-17 Thread Hsia-Jun Li
On 8/18/22 14:07, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Randy, On Tue, Aug 9, 2022 at 1:28 AM Hsia-Jun Li wrote: From: "Hsia-Jun(Randy) Li" Memo

Re: [PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-17 Thread Hsia-Jun Li
On 8/18/22 14:06, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Randy, On Tue, Aug 9, 2022 at 1:28 AM Hsia-Jun Li wrote: From: "Hsia-Jun(Randy) Li" The most

Re: [PATCH] [Draft]: media: videobuf2-dma-heap: add a vendor defined memory runtine

2022-08-17 Thread Hsia-Jun Li
On 8/18/22 13:50, Tomasz Figa wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Randy, Sorry for the late reply, I went on vacation last week. On Sun, Aug 7, 2022 at 12:23 AM Hsia-Jun Li

[PATCH 1/2] drm/fourcc: Add Synaptics VideoSmart tiled modifiers

2022-08-08 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Memory Traffic Reduction(MTR) is a module in Synaptics VideoSmart platform could process lossless compression image and cache the tile memory line. Those modifiers only record the parameters would effort pixel layout or memory layout. Whether physical memory page mappi

[PATCH 2/2] [WIP]: media: Add Synaptics compressed tiled format

2022-08-08 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" The most of detail has been written in the drm. Please notice that the tiled formats here request one more plane for storing the motion vector metadata. This buffer won't be compressed, so you can't append it to luma or chroma plane. Signed-off-by: Hsia-Jun(Randy) Li

[PATCH 0/2] Add pixel formats used in Synatpics SoC

2022-08-08 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Those pixel formats are used in Synaptics's VideoSmart series SoCs, likes VS640, VS680. I just disclose the pixel formats used in the video codecs and display pipeline this time. Actually any device with a MTR module could support those tiled and compressed pixel forma

Re: [PATCH] [Draft]: media: videobuf2-dma-heap: add a vendor defined memory runtine

2022-08-07 Thread Hsia-Jun Li
, 2022 at 3:44 PM Hsia-Jun Li wrote: On 8/1/22 14:19, Tomasz Figa wrote: Hello Tomasz ?Hi Randy, On Mon, Aug 1, 2022 at 5:21 AM wrote: From: Randy Li This module is still at a early stage, I wrote this for showing what APIs we need here. Let me explain why we need such a module here. If you