Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Christian König
Am 30.07.24 um 11:05 schrieb Huan Yang: 在 2024/7/30 16:56, Daniel Vetter 写道: [? daniel.vet...@ffwll.ch ? https://aka.ms/LearnAboutSenderIdentification?] On Tue, Jul 30, 2024 at 03:57:44PM +0800, Huan Yang wrote: UDMA-BUF step:    1. memfd_create    2. open

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Dmitry Baryshkov
On Tue, Jul 30, 2024 at 11:30:01AM GMT, Maxime Ripard wrote: > On Tue, Jul 30, 2024 at 11:46:24AM GMT, Dmitry Baryshkov wrote: > > On Tue, 30 Jul 2024 at 11:27, Maxime Ripard wrote: > > > > > > On Wed, Jul 24, 2024 at 07:59:21PM GMT, Marc Gonzalez wrote: > > > > On 15/07/2024 16:40, Maxime Ripard

Patch "drm/udl: Remove DRM_CONNECTOR_POLL_HPD" has been added to the 6.6-stable tree

2024-07-30 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/udl: Remove DRM_CONNECTOR_POLL_HPD to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Patch "drm/udl: Remove DRM_CONNECTOR_POLL_HPD" has been added to the 6.10-stable tree

2024-07-30 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/udl: Remove DRM_CONNECTOR_POLL_HPD to the 6.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Re: [PATCH v2 07/16] drm/imx: Add i.MX8qxp Display Controller pixel engine

2024-07-30 Thread Krzysztof Kozlowski
On 30/07/2024 11:42, Liu Ying wrote: > On 07/30/2024, Krzysztof Kozlowski wrote: >> On 30/07/2024 08:55, Liu Ying wrote: >>> On 07/28/2024, Dmitry Baryshkov wrote: On Fri, Jul 12, 2024 at 05:32:34PM GMT, Liu Ying wrote: > i.MX8qxp Display Controller pixel engine consists of all processing

Re: linux-next: build warning after merge of the drm-intel tree

2024-07-30 Thread Stephen Rothwell
Hi all, On Mon, 15 Jul 2024 14:13:37 +0200 Maarten Lankhorst wrote: > > Den 2024-07-15 kl. 06:21, skrev Golani, Mitulkumar Ajitkumar: > > > > On 15-07-2024 04:42, Stephen Rothwell wrote: > >> > >> On Wed, 12 Jun 2024 14:11:10 +1000 Stephen Rothwell > >> wrote: > >>> After merging the

Patch "drm/udl: Remove DRM_CONNECTOR_POLL_HPD" has been added to the 6.1-stable tree

2024-07-30 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/udl: Remove DRM_CONNECTOR_POLL_HPD to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Marc Gonzalez
On 30/07/2024 11:30, Maxime Ripard wrote: > On Tue, Jul 30, 2024 at 11:46:24AM GMT, Dmitry Baryshkov wrote: >> On Tue, 30 Jul 2024 at 11:27, Maxime Ripard wrote: >>> On Wed, Jul 24, 2024 at 07:59:21PM GMT, Marc Gonzalez wrote: On 15/07/2024 16:40, Maxime Ripard wrote: > On Thu, Jul 04,

Re: [PATCH v2 07/16] drm/imx: Add i.MX8qxp Display Controller pixel engine

2024-07-30 Thread Liu Ying
On 07/30/2024, Krzysztof Kozlowski wrote: > On 30/07/2024 08:55, Liu Ying wrote: >> On 07/28/2024, Dmitry Baryshkov wrote: >>> On Fri, Jul 12, 2024 at 05:32:34PM GMT, Liu Ying wrote: i.MX8qxp Display Controller pixel engine consists of all processing units that operate in the AXI bus

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Maxime Ripard
On Tue, Jul 30, 2024 at 11:46:24AM GMT, Dmitry Baryshkov wrote: > On Tue, 30 Jul 2024 at 11:27, Maxime Ripard wrote: > > > > On Wed, Jul 24, 2024 at 07:59:21PM GMT, Marc Gonzalez wrote: > > > On 15/07/2024 16:40, Maxime Ripard wrote: > > > > On Thu, Jul 04, 2024 at 07:04:41PM GMT, Marc Gonzalez

RE: [REGRESSION] No image on 4k display port displays connected through usb-c dock in kernel 6.10

2024-07-30 Thread Lin, Wayne
[Public] Thanks, Greg. Will do. Regards, Wayne Lin > -Original Message- > From: Greg KH > Sent: Tuesday, July 30, 2024 2:21 PM > To: Lin, Wayne > Cc: ke...@holm.dev; Linux regressions mailing list > ; Deucher, Alexander > ; Wu, Hersen ; > sta...@vger.kernel.org; LKML ; ML dri-devel >

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Huan Yang
在 2024/7/30 16:56, Daniel Vetter 写道: [? daniel.vet...@ffwll.ch ? https://aka.ms/LearnAboutSenderIdentification?] On Tue, Jul 30, 2024 at 03:57:44PM +0800, Huan Yang wrote: UDMA-BUF step: 1. memfd_create 2. open file(buffer/direct) 3. udmabuf create 4.

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Daniel Vetter
On Tue, Jul 30, 2024 at 03:57:44PM +0800, Huan Yang wrote: > UDMA-BUF step: > 1. memfd_create > 2. open file(buffer/direct) > 3. udmabuf create > 4. mmap memfd > 5. read file into memfd vaddr Yeah this is really slow and the worst way to do it. You absolutely want to start _all_ the io

Re: [PATCH 1/5] drm/ast: astdp: Wake up during connector status detection

2024-07-30 Thread Thomas Zimmermann
I merged this patch into drm-misc-fixes. Am 17.07.24 um 16:24 schrieb Thomas Zimmermann: Power up the ASTDP connector for connection status detection if the connector is not active. Keep it powered if a display is attached. This fixes a bug where the connector does not come back after

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Dmitry Baryshkov
On Tue, 30 Jul 2024 at 11:27, Maxime Ripard wrote: > > On Wed, Jul 24, 2024 at 07:59:21PM GMT, Marc Gonzalez wrote: > > On 15/07/2024 16:40, Maxime Ripard wrote: > > > On Thu, Jul 04, 2024 at 07:04:41PM GMT, Marc Gonzalez wrote: > > >> On 01/07/2024 15:50, Maxime Ripard wrote: > > >> > > >>> The

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Huan Yang
在 2024/7/30 16:37, Christian König 写道: Am 30.07.24 um 10:14 schrieb Huan Yang: 在 2024/7/30 16:03, Christian König 写道: Am 30.07.24 um 09:57 schrieb Huan Yang: Background Some user may need load file into dma-buf, current way is:    1. allocate a dma-buf, get dma-buf fd    2. mmap

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Maxime Ripard
On Wed, Jul 24, 2024 at 07:28:41PM GMT, Marc Gonzalez wrote: > On 24/07/2024 19:25, Dmitry Baryshkov wrote: > > On Wed, Jul 24, 2024 at 07:18:39PM GMT, Marc Gonzalez wrote: > >> On 15/07/2024 16:42, Maxime Ripard wrote: > >>> On Mon, Jul 08, 2024 at 11:29:46PM GMT, Dmitry Baryshkov wrote: >

Re: [PATCH v3 00/19] Add Freescale i.MX8qxp Display Controller support

2024-07-30 Thread Liu Ying
On 07/28/2024, Dmitry Baryshkov wrote: > On Wed, Jul 24, 2024 at 05:29:31PM GMT, Liu Ying wrote: >> Hi, >> >> This patch series aims to add Freescale i.MX8qxp Display Controller support. >> >> The controller is comprised of three main components that include a blit >> engine for 2D graphics

Re: [PATCH] MAINTAINERS: Add selftests to DMA-BUF HEAPS FRAMEWORK entry

2024-07-30 Thread Daniel Vetter
On Mon, Jul 29, 2024 at 04:12:02PM +0800, Zenghui Yu wrote: > Include dmabuf-heaps selftests in the correct entry so that updates to it > can be sent to the right place. > > Signed-off-by: Zenghui Yu Applied to drm-misc-next, thanks for your patch. -Sima > --- > MAINTAINERS | 1 + > 1 file

Re: [PATCH net-next v17 03/14] netdev: support binding dma-buf to netdevice

2024-07-30 Thread Markus Elfring
… > +++ b/include/net/devmem.h > @@ -0,0 +1,115 @@ … > +#ifndef _NET_DEVMEM_H > +#define _NET_DEVMEM_H … I suggest to omit leading underscores from such identifiers. https://wiki.sei.cmu.edu/confluence/display/c/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier Regards, Markus

Re: [PATCH] drm: Add the missing symbol '.'

2024-07-30 Thread Daniel Vetter
On Mon, Jul 29, 2024 at 02:57:56PM +0800, oushixiong1...@163.com wrote: > From: Shixiong Ou > > Signed-off-by: Shixiong Ou Applied to drm-misc-next, thanks for your patch. -Sima > --- > drivers/gpu/drm/drm_probe_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Christian König
Am 30.07.24 um 10:14 schrieb Huan Yang: 在 2024/7/30 16:03, Christian König 写道: Am 30.07.24 um 09:57 schrieb Huan Yang: Background Some user may need load file into dma-buf, current way is:    1. allocate a dma-buf, get dma-buf fd    2. mmap dma-buf fd into user vaddr    3. read(file_fd,

Re: [PATCH] drm/sched: add optional errno to drm_sched_start()

2024-07-30 Thread Daniel Vetter
On Mon, Jul 29, 2024 at 08:43:05PM +0200, Christian König wrote: > Am 26.07.24 um 16:21 schrieb Daniel Vetter: > > On Fri, Jul 26, 2024 at 09:55:50AM +0200, Christian König wrote: > > > The current implementation of drm_sched_start uses a hardcoded > > > -ECANCELED to dispose of a job when the

Re: [PATCH v2 09/16] drm/imx: Add i.MX8qxp Display Controller KMS

2024-07-30 Thread Liu Ying
On 07/28/2024, Dmitry Baryshkov wrote: > On Fri, Jul 12, 2024 at 05:32:36PM GMT, Liu Ying wrote: >> i.MX8qxp Display Controller(DC) is comprised of three main components that >> include a blit engine for 2D graphics accelerations, display controller for >> display output processing, as well as a

Re: [RFC PATCH] drm: panthor: add dev_coredumpv support

2024-07-30 Thread Daniel Vetter
On Mon, Jul 29, 2024 at 02:34:25PM -0400, Lyude Paul wrote: > On Fri, 2024-07-26 at 15:40 +0200, Daniel Vetter wrote: > > On Thu, Jul 25, 2024 at 03:35:18PM -0400, Lyude Paul wrote: > > > On Tue, 2024-07-16 at 11:25 +0200, Daniel Vetter wrote: > > > > On Mon, Jul 15, 2024 at 02:05:49PM -0300,

Re: [PATCH v3 1/2] dt-bindings: display: bridge: add TI TDP158

2024-07-30 Thread Maxime Ripard
On Wed, Jul 24, 2024 at 07:59:21PM GMT, Marc Gonzalez wrote: > On 15/07/2024 16:40, Maxime Ripard wrote: > > On Thu, Jul 04, 2024 at 07:04:41PM GMT, Marc Gonzalez wrote: > >> On 01/07/2024 15:50, Maxime Ripard wrote: > >> > >>> The i2c register access (and the whole behaviour of the device) is >

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Huan Yang
在 2024/7/30 16:03, Christian König 写道: Am 30.07.24 um 09:57 schrieb Huan Yang: Background Some user may need load file into dma-buf, current way is:    1. allocate a dma-buf, get dma-buf fd    2. mmap dma-buf fd into user vaddr    3. read(file_fd, vaddr, fsz) Due to dma-buf user map

Re: [PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Christian König
Am 30.07.24 um 09:57 schrieb Huan Yang: Background Some user may need load file into dma-buf, current way is: 1. allocate a dma-buf, get dma-buf fd 2. mmap dma-buf fd into user vaddr 3. read(file_fd, vaddr, fsz) Due to dma-buf user map can't support direct I/O[1], the file read

[PATCH v2 5/5] dma-buf: heaps: configurable async read gather limit

2024-07-30 Thread Huan Yang
The current limit default is 128MB, which is a good experience value for I/O reading. However, system administrators should be given a considerable degree of freedom to adjust based on the system's situation. This patch exports the limit to the corresponding area of the dma-heap. Signed-off-by:

[PATCH v2 1/5] dma-buf: heaps: Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Huan Yang
Some user may need load file into dma-buf, current way is: 1. allocate a dma-buf, get dma-buf fd 2. mmap dma-buf fd into user vaddr 3. read(file_fd, vaddr, fsz) Due to dma-buf can't support direct I/O(can't pin, not pure page base), the file read must be buffer I/O. This means that during

[PATCH v2 3/5] dma-buf: heaps: support alloc async read file

2024-07-30 Thread Huan Yang
This patch completes the infrastructure for async read. It treats memory allocation as the producer and assigns file reading to the heap_fwork_t thread as the consumer. The heap needs to gather each allocated page and, when a certain amount (default 128MB) is gathered, it will package and pass it

[PATCH v2 4/5] dma-buf: heaps: system_heap alloc support async read

2024-07-30 Thread Huan Yang
The system heap cyclically allocates pages and then places these pages into a scatter_list, which is then managed by the dma-buf. This process can parallelize memory allocation and I/O read operations: Gather each allocated page and trigger a submit once the limit is reached. Once the memory

[PATCH v2 2/5] dma-buf: heaps: Introduce async alloc read ops

2024-07-30 Thread Huan Yang
The DMA_HEAP_ALLOC_AND_READ_FILE heap flag patch enables us to synchronously read files using direct I/O. This approach helps to save CPU copying and avoid a certain degree of memory thrashing (page cache generation and reclamation) When dealing with large file sizes, the benefits of this

[PATCH v2 0/5] Introduce DMA_HEAP_ALLOC_AND_READ_FILE heap flag

2024-07-30 Thread Huan Yang
Background Some user may need load file into dma-buf, current way is: 1. allocate a dma-buf, get dma-buf fd 2. mmap dma-buf fd into user vaddr 3. read(file_fd, vaddr, fsz) Due to dma-buf user map can't support direct I/O[1], the file read must be buffer I/O. This means that during the

[PATCH] staging: fbtft: Remove trailing semicolon in macro.

2024-07-30 Thread Sakirnth Nagarasa
Fix checkpath warning: "WARNING: macros should not use a trailing semicolon in fbtft.h:356. Signed-off-by: Sakirnth Nagarasa --- Hello, this is my first patch to the kernel. --- drivers/staging/fbtft/fbtft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1] misc: fastrpc: Trigger a panic using BUG_ON in device release

2024-07-30 Thread Abhishek Singh
The user process on ARM closes the device node while closing the session, triggers a remote call to terminate the PD running on the DSP. If the DSP is in an unstable state and cannot process the remote request from the HLOS, glink fails to deliver the kill request to the DSP, resulting in a

Re: [PATCH v2 07/16] drm/imx: Add i.MX8qxp Display Controller pixel engine

2024-07-30 Thread Krzysztof Kozlowski
On 30/07/2024 08:55, Liu Ying wrote: > On 07/28/2024, Dmitry Baryshkov wrote: >> On Fri, Jul 12, 2024 at 05:32:34PM GMT, Liu Ying wrote: >>> i.MX8qxp Display Controller pixel engine consists of all processing >>> units that operate in the AXI bus clock domain. Add drivers for >>> ConstFrame,

Re: [PATCH 5/5] drm/ast: astdp: Clean up EDID reading

2024-07-30 Thread Jocelyn Falempe
On 17/07/2024 16:24, Thomas Zimmermann wrote: Simplify ast_astdp_read_edid(). Rename register constants. Drop unnecessary error handling. On success, the helper returns 0; an error code otherwise. Thanks, it looks good to me. Reviewed-by: Jocelyn Falempe Signed-off-by: Thomas Zimmermann

Re: [PATCH 4/5] drm/ast: astdp: Perform link training during atomic_enable

2024-07-30 Thread Jocelyn Falempe
On 17/07/2024 16:24, Thomas Zimmermann wrote: The place for link training is in the encoder's atomic_enable helper. Remove all related tests from other helper ASTDP functions; especially ast_astdp_is_connected(), which tests HPD status. DP link training is controlled by the firmware. A

Re: [PATCH 3/5] drm/ast: astdp: Only test HDP state in ast_astdp_is_connected()

2024-07-30 Thread Jocelyn Falempe
On 17/07/2024 16:24, Thomas Zimmermann wrote: The overall control flow of the driver ensures that it never reads EDID or sets display state on unconnected outputs. Therefore remove all tests for Hot Plug Detection from these helpers. Also rename the register constants. Thanks, it looks good

Re: [PATCH 2/5] drm/ast: astdp: Test firmware status once during probing

2024-07-30 Thread Jocelyn Falempe
On 17/07/2024 16:24, Thomas Zimmermann wrote: Test for running ASTDP firmware during probe. Do not bother testing this later. We cannot do much anyway if the firmware fails. Do not initialize the ASTDP conenctor if the test fails during device probing. Thanks, it looks good to me.

Re: [PATCH 1/5] drm/ast: astdp: Wake up during connector status detection

2024-07-30 Thread Jocelyn Falempe
On 17/07/2024 16:24, Thomas Zimmermann wrote: Power up the ASTDP connector for connection status detection if the connector is not active. Keep it powered if a display is attached. This fixes a bug where the connector does not come back after disconnecting the display. The encoder's

Re: [PATCH] staging: fbtft: Remove trailing semicolon in macro.

2024-07-30 Thread Greg KH
On Tue, Jul 30, 2024 at 07:14:55AM +, Sakirnth Nagarasa wrote: > Fix checkpath warning: "WARNING: macros should not use a trailing semicolon > in fbtft.h:356. > > Signed-off-by: Sakirnth Nagarasa > > --- > > Hello, this is my first patch to the kernel. > --- >

Re: [PATCH v1] misc: fastrpc: Trigger a panic using BUG_ON in device release

2024-07-30 Thread Greg KH
On Tue, Jul 30, 2024 at 12:39:45PM +0530, Abhishek Singh wrote: > The user process on ARM closes the device node while closing the > session, triggers a remote call to terminate the PD running on the > DSP. If the DSP is in an unstable state and cannot process the remote > request from the HLOS,

Re: [PATCH v2 07/16] drm/imx: Add i.MX8qxp Display Controller pixel engine

2024-07-30 Thread Liu Ying
On 07/28/2024, Dmitry Baryshkov wrote: > On Fri, Jul 12, 2024 at 05:32:34PM GMT, Liu Ying wrote: >> i.MX8qxp Display Controller pixel engine consists of all processing >> units that operate in the AXI bus clock domain. Add drivers for >> ConstFrame, ExtDst, FetchLayer, FetchWarp and LayerBlend

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-30 Thread Maxime Ripard
On Tue, Jul 30, 2024 at 11:36:58AM GMT, Tejas Vipin wrote: > Add more functions that can benefit from being multi style and mark > older variants as deprecated to eventually convert all mipi_dsi functions > to multi style. > > Signed-off-by: Tejas Vipin Acked-by: Maxime Ripard We should also

Re: [PATCH 2/5] drm/ast: astdp: Test firmware status once during probing

2024-07-30 Thread Thomas Zimmermann
Am 17.07.24 um 16:24 schrieb Thomas Zimmermann: Test for running ASTDP firmware during probe. Do not bother testing this later. We cannot do much anyway if the firmware fails. Do not initialize the ASTDP conenctor if the test fails during device probing. Signed-off-by: Thomas Zimmermann

Re: [PATCH] drm/ast: add multiple connectors support

2024-07-30 Thread Thomas Zimmermann
Hi Am 30.07.24 um 03:25 schrieb oushixiong: Yes, I have  tested these patches, and these patches fix the problem. Thanks a lot. Patch 2 is the one that fixes the issue. I'll add your Tested-by tag to it. Best regards Thomas Best regards Shixiong 在 2024/7/29 20:34, Thomas Zimmermann 写道:

Re: [PATCH V2 07/16] drm/vc4: Get the rid of DRM_ERROR()

2024-07-30 Thread Maxime Ripard
On Sun, 28 Jul 2024 13:41:51 +0200, Stefan Wahren wrote: > DRM_ERROR() has been deprecated in favor of pr_err(). However, we > should prefer to use drm_err() whenever possible so we get device- > specific output with the error message. In error case of kcalloc, > we can simply drop DRM_ERROR(),

Re: [PATCH v2 06/16] drm/imx: Add i.MX8qxp Display Controller display engine

2024-07-30 Thread Liu Ying
On 07/28/2024, Dmitry Baryshkov wrote: > On Fri, Jul 12, 2024 at 05:32:33PM GMT, Liu Ying wrote: >> i.MX8qxp Display Controller display engine consists of all processing >> units that operate in a display clock domain. Add minimal feature >> support with FrameGen and TCon so that the engine can

Re: [PATCH 1/4] dt-bindings: display/msm/gmu: Add SDM670 compatible

2024-07-30 Thread Krzysztof Kozlowski
On 30/07/2024 03:38, Richard Acayan wrote: > The Snapdragon 670 has a GMU. Add its compatible. > > Signed-off-by: Richard Acayan Acked-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [REGRESSION] No image on 4k display port displays connected through usb-c dock in kernel 6.10

2024-07-30 Thread Greg KH
On Tue, Jul 30, 2024 at 05:56:42AM +, Lin, Wayne wrote: > [Public] > > Hi, > Thanks for the report. > > Patch fa57924c76d995 ("drm/amd/display: Refactor function > dm_dp_mst_is_port_support_mode()") > is kind of correcting problems causing by commit: > 4df96ba6676034 ("drm/amd/display: Add

[PATCH v2 2/2] drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions

2024-07-30 Thread Tejas Vipin
Use multi style wrapped functions for mipi_dsi in the startek-kd070fhfid015 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/panel-startek-kd070fhfid015.c | 123 ++ 1 file changed, 39 insertions(+), 84 deletions(-) diff --git

[PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-30 Thread Tejas Vipin
Add more functions that can benefit from being multi style and mark older variants as deprecated to eventually convert all mipi_dsi functions to multi style. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 226 + include/drm/drm_mipi_dsi.h |

[PATCH v2 0/2] add more multi functions to streamline error handling

2024-07-30 Thread Tejas Vipin
This series adds more multi style functions and uses them in the startek-kd070fhfid015 panel. Additionally it marks the older functions as deprecated. --- Changes in v2: - Improved formatting - Rewrote hex as lowercase - Marked old functions as deprecated - Added more functions to

RE: [REGRESSION] No image on 4k display port displays connected through usb-c dock in kernel 6.10

2024-07-30 Thread Lin, Wayne
[Public] Thanks, Kevin. The revert patch seems correct, but we plan to refactor this function as the following patch fa57924c76d995 ("drm/amd/display: Refactor function dm_dp_mst_is_port_support_mode()") I'll make time to provide one. Thanks! Regards, Wayne > -Original Message- >

RE: [REGRESSION] No image on 4k display port displays connected through usb-c dock in kernel 6.10

2024-07-29 Thread Lin, Wayne
[Public] Hi, Thanks for the report. Patch fa57924c76d995 ("drm/amd/display: Refactor function dm_dp_mst_is_port_support_mode()") is kind of correcting problems causing by commit: 4df96ba6676034 ("drm/amd/display: Add timing pixel encoding for mst mode validation") Sorry if it misses fixes tag

[PATCH v2] drm/i915/hwmon: expose fan speed

2024-07-29 Thread Raag Jadav
Add hwmon support for fan1_input attribute, which will expose fan speed in RPM. With this in place we can monitor fan speed using lm-sensors tool. $ sensors i915-pci-0300 Adapter: PCI adapter in0: 653.00 mV fan1:3833 RPM power1: N/A (max = 43.00 W) energy1: 32.02

RE: [PATCH] RFC: drm/drm_plane: Expose the plane capability and interoperability

2024-07-29 Thread Murthy, Arun R
> -Original Message- > From: Dmitry Baryshkov > Sent: Tuesday, July 30, 2024 4:21 AM > To: Murthy, Arun R > Cc: dri-devel@lists.freedesktop.org; intel-...@lists.freedesktop.org > Subject: Re: [PATCH] RFC: drm/drm_plane: Expose the plane capability and > interoperability > > On Mon, Jul

Re: [RFC PATCH] ARM: dts: imx53-qsb: Add MCIMX-LVDS1 display module support

2024-07-29 Thread Liu Ying
On 07/29/2024, Liu Ying wrote: > Hi Dmitry, > > On 07/27/2024, Dmitry Baryshkov wrote: >> On Fri, Jul 26, 2024 at 02:50:12PM GMT, Liu Ying wrote: >>> MCIMX-LVDS1[1] display module integrates a HannStar HSD100PXN1 LVDS >>> display panel and a touch IC. Add an overlay to support the LVDS >>> panel

[PATCH net-next v17 14/14] netdev: add dmabuf introspection

2024-07-29 Thread Mina Almasry
Add dmabuf information to page_pool stats: $ ./cli.py --spec ../netlink/specs/netdev.yaml --dump page-pool-get ... {'dmabuf': 10, 'id': 456, 'ifindex': 3, 'inflight': 1023, 'inflight-mem': 4190208}, {'dmabuf': 10, 'id': 455, 'ifindex': 3, 'inflight': 1023, 'inflight-mem':

[PATCH net-next v17 12/14] net: add devmem TCP documentation

2024-07-29 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry Reviewed-by: Bagas Sanjaya Reviewed-by: Donald Hunter --- v16: - Add documentation on unbinding the NIC from dmabuf (Donald). - Add note that any dmabuf should work (Donald). v9:

[PATCH net-next v17 11/14] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2024-07-29 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry

[PATCH net-next v17 13/14] selftests: add ncdevmem, netcat for devmem TCP

2024-07-29 Thread Mina Almasry
ncdevmem is a devmem TCP netcat. It works similarly to netcat, but it sends and receives data using the devmem TCP APIs. It uses udmabuf as the dmabuf provider. It is compatible with a regular netcat running on a peer, or a ncdevmem running on a peer. In addition to normal netcat support,

[PATCH net-next v17 08/14] net: support non paged skb frags

2024-07-29 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return section

[PATCH net-next v17 04/14] netdev: netdevice devmem allocator

2024-07-29 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates net_iov from that binding. The allocation simply delegates to the binding's genpool for the allocation logic and wraps the returned memory region in a net_iov struct. Signed-off-by:

[PATCH net-next v17 06/14] page_pool: devmem support

2024-07-29 Thread Mina Almasry
Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack: struct { unsigned long

[PATCH net-next v17 09/14] net: add support for skbs with unreadable frags

2024-07-29 Thread Mina Almasry
For device memory TCP, we expect the skb headers to be available in host memory for access, and we expect the skb frags to be in device memory and unaccessible to the host. We expect there to be no mixing and matching of device memory frags (unaccessible) with host memory frags (accessible) in the

[PATCH net-next v17 10/14] tcp: RX path for devmem TCP

2024-07-29 Thread Mina Almasry
In tcp_recvmsg_locked(), detect if the skb being received by the user is a devmem skb. In this case - if the user provided the MSG_SOCK_DEVMEM flag - pass it to tcp_recvmsg_devmem() for custom handling. tcp_recvmsg_devmem() copies any data in the skb header to the linear buffer, and returns a

[PATCH net-next v17 07/14] memory-provider: dmabuf devmem memory provider

2024-07-29 Thread Mina Almasry
Implement a memory provider that allocates dmabuf devmem in the form of net_iov. The provider receives a reference to the struct netdev_dmabuf_binding via the pool->mp_priv pointer. The driver needs to set this pointer for the provider in the net_iov. The provider obtains a reference on the

[PATCH net-next v17 05/14] page_pool: move dmaddr helpers to .c file

2024-07-29 Thread Mina Almasry
These helpers are used for setup and init of buffers, and their implementation need not be static inline in the header file. Moving the implementation to the .c file allows us to hide netmem implementation details in internal header files rather than the public file. Signed-off-by: Mina Almasry

[PATCH net-next v17 03/14] netdev: support binding dma-buf to netdevice

2024-07-29 Thread Mina Almasry
Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from mapping will be inserted into a

[PATCH net-next v17 02/14] net: netdev netlink api to bind dma-buf to a net device

2024-07-29 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry Reviewed-by: Donald Hunter Reviewed-by: Jakub Kicinski --- v16: - Use subset-of: queue queue-id instead

[PATCH net-next v17 01/14] netdev: add netdev_rx_queue_restart()

2024-07-29 Thread Mina Almasry
Add netdev_rx_queue_restart() function to netdev_rx_queue.h Signed-off-by: David Wei Signed-off-by: Mina Almasry Reviewed-by: Pavel Begunkov Reviewed-by: Jakub Kicinski --- v17: - Use ASSERT_RTNL() (Jakub). v13: - Add reviewed-by from Pavel (thanks!) - Fixed comment (Pavel) v11: - Fix not

[PATCH net-next v17 00/14] Device Memory TCP

2024-07-29 Thread Mina Almasry
v17: https://patchwork.kernel.org/project/netdevbpf/list/?series=869900=* v16 also got a very thorough review and some testing (thanks again!). Thes version addresses all the concerns reported on v15, in terms of feedback and issues reported. Major changes: - Use ASSERT_RTNL. - Moved around

[PATCH v9 6/6] drm/ci: rockchip: add tests for rockchip display driver

2024-07-29 Thread Vignesh Raman
For rockchip rk3288 and rk3399, the display driver is rockchip and gpu driver is panfrost. Currently, in drm-ci for rockchip rk3288 and rk3399, only the gpu driver is tested. Refactor the existing rockchip jobs to test both display and gpu driver and update xfails. Since the correct driver name

[PATCH v9 5/6] drm/ci: meson: add tests for meson display driver

2024-07-29 Thread Vignesh Raman
For Amlogic Meson G12B (A311D) SOC the display driver is meson and gpu driver is panfrost. Currently, in drm-ci for Meson G12B (A311D), only the gpu driver is tested. Refactor the existing meson jobs and add support in drm-ci to test both display and gpu driver for Amlogic Meson G12B (A311D) and

[PATCH v9 4/6] drm/ci: mediatek: add tests for powervr gpu driver

2024-07-29 Thread Vignesh Raman
For mediatek mt8173, the display driver is mediatek, while the gpu driver is powervr. Currently, in drm-ci for mt8173, only the display driver is tested. Add support in drm-ci to test powervr driver for mt8173. Powervr driver was merged in linux kernel, but there's no mediatek support yet. So

[PATCH v9 3/6] drm/ci: mediatek: add tests for mediatek display driver

2024-07-29 Thread Vignesh Raman
For mediatek mt8183, the display driver is mediatek, while the gpu driver is panfrost. Currently, in drm-ci for mt8183, only the gpu driver is tested. Refactor the existing mediatek jobs and add support in drm-ci to test both display and gpu driver for mt8183 and update xfails. Since the correct

[PATCH v9 2/6] drm/ci: skip tools_test on non-intel platforms

2024-07-29 Thread Vignesh Raman
tools_test is a wrapper for running tools/intel_reg and tools/intel_l3_parity. So skip these tests on non-intel platforms and update expectaion files. Signed-off-by: Vignesh Raman --- v9: - New patch in the series to skip tools_test on non-intel platforms ---

[PATCH v9 1/6] drm/ci: arm64.config: Enable CONFIG_DRM_ANALOGIX_ANX7625

2024-07-29 Thread Vignesh Raman
Enable CONFIG_DRM_ANALOGIX_ANX7625 in the arm64 defconfig to get display driver probed on the mt8183-kukui-jacuzzi-juniper machine. arch/arm64/configs/defconfig has CONFIG_DRM_ANALOGIX_ANX7625=m, but drm-ci don't have initrd with modules, so add CONFIG_DRM_ANALOGIX_ANX7625=y in CI arm64 config.

[PATCH v9 0/6] drm/ci: Add support for GPU and display testing

2024-07-29 Thread Vignesh Raman
Some ARM SOCs have a separate display controller and GPU, each with different drivers. For mediatek mt8173, the GPU driver is powervr, and the display driver is mediatek. In the case of mediatek mt8183, the GPU driver is panfrost, and the display driver is mediatek. With rockchip rk3288/rk3399,

Re: [PATCH v4 1/6] drm/amdgpu, drm/radeon: Make I2C terminology more inclusive

2024-07-29 Thread Easwar Hariharan
On 7/10/2024 10:27 PM, Easwar Hariharan wrote: > I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" > with more appropriate terms. Inspired by Wolfram's series to fix drivers/i2c/, > fix the terminology for users of I2C_ALGOBIT bitbanging interface, now that > the

[PATCH 1/4] dt-bindings: display/msm/gmu: Add SDM670 compatible

2024-07-29 Thread Richard Acayan
The Snapdragon 670 has a GMU. Add its compatible. Signed-off-by: Richard Acayan --- Documentation/devicetree/bindings/display/msm/gmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.yaml

[PATCH 4/4] arm64: dts: qcom: sdm670-google-common: enable gpu

2024-07-29 Thread Richard Acayan
Enable the A615 GPU and GMU for the Pixel 3a. It has zap firmware, so add that in as well. Signed-off-by: Richard Acayan --- arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts

[PATCH 3/4] arm64: dts: qcom: sdm670: add gpu

2024-07-29 Thread Richard Acayan
The Snapdragon 670 has the Adreno A615 GPU. Add it along with its device tree dependencies. Signed-off-by: Richard Acayan --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 168 +++ 1 file changed, 168 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi

[PATCH 2/4] drm/msm/adreno: add a615 support

2024-07-29 Thread Richard Acayan
The Adreno A615 is used in SDM670. Add an entry to support it along with the speed bins. Signed-off-by: Richard Acayan --- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c

[PATCH 0/4] drm/msm/adreno: Add A615 GPU for SDM670 and Pixel 3a

2024-07-29 Thread Richard Acayan
This adds support for the speed-binned A615 GPU on SDM670. Richard Acayan (4): dt-bindings: display/msm/gmu: Add SDM670 compatible drm/msm/adreno: add a615 support arm64: dts: qcom: sdm670: add gpu arm64: dts: qcom: sdm670-google-common: enable gpu

Re: [PATCH] drm/ast: add multiple connectors support

2024-07-29 Thread oushixiong
Yes, I have  tested these patches, and these patches fix the problem. Best regards Shixiong 在 2024/7/29 20:34, Thomas Zimmermann 写道: Hi Am 11.07.24 um 11:01 schrieb oushixiong1...@163.com: From: Shixiong Ou [WHY] The AST2600 tx_chip_types will be detected as AST_TX_DP, but some BMC boards

Re: [PATCH] drm/ast: add multiple connectors support

2024-07-29 Thread oushixiong
Just a VGA connector on the board. Best regards Shixiong 在 2024/7/29 20:29, Thomas Zimmermann 写道: Hi Am 11.07.24 um 11:01 schrieb oushixiong1...@163.com: From: Shixiong Ou [WHY] The AST2600 tx_chip_types will be detected as AST_TX_DP, but some BMC boards that use AST2600 use the VGA

[PATCH] gpu: drm: use for_each_endpoint_of_node()

2024-07-29 Thread Kuninori Morimoto
We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Acked-by: Dmitry Baryshkov Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH] gpu: drm: replace of_graph_get_next_endpoint()

2024-07-29 Thread Kuninori Morimoto
>From DT point of view, in general, drivers should be asking for a specific port number because their function is fixed in the binding. of_graph_get_next_endpoint() doesn't match to this concept. Simply replace - of_graph_get_next_endpoint(xxx, NULL); +

Re: panel-simple-dp-aux: "DP AUX done_probing() can't defer" on MT8186 w/ Collabora kernel

2024-07-29 Thread Dmitry Baryshkov
On Sat, Jul 27, 2024 at 08:33:10PM GMT, Alper Nebi Yasak wrote: > Hi, > > I have a MT8186 "Magneton" Chromebook that I'm trying to boot a kernel > based on Collabora's for-kernelci branch [1], using a config from > postmarketOS [2] (intended for that), on a Debian sid installation. > This

Re: [PATCH v3] rockchip/drm: vop2: add support for gamma LUT

2024-07-29 Thread Piotr Zalewski
Hi Andy On Monday, July 29th, 2024 at 4:35 AM, Andy Yan wrote: > > > > + > > > > +static void vop2_crtc_gamma_set(struct vop2 *vop2, struct drm_crtc > > > > *crtc, > > > > + struct drm_crtc_state *old_state) > > > > +{ > > > > + struct drm_crtc_state *state = crtc->state; > > > > + struct

Re: [PATCH] RFC: drm/drm_plane: Expose the plane capability and interoperability

2024-07-29 Thread Dmitry Baryshkov
On Mon, Jul 29, 2024 at 04:59:14AM GMT, Murthy, Arun R wrote: > Gentle Reminder! > Any comments? First of all, the format is underdocumented. Second, there is a usual requirement for new uAPI: please provide a pointer to IGT patch and to the userspace utilising the property. > > Thanks and

Re: [PATCH] drm/xe/oa/uapi: Make bit masks unsigned

2024-07-29 Thread Dixit, Ashutosh
On Mon, 29 Jul 2024 06:21:20 -0700, Lucas De Marchi wrote: > Hi Lucas, > Reviewed-by: Lucas De Marchi > > That fixes the build, but question to Ashutosh: it's odd to tie the > format to a bspec. What happens on next platform if the HW changes? > Hopefully it doesn't change in an incompatible

Re: [PATCH] fbdev/hpfb: Fix an error handling path in hpfb_dio_probe()

2024-07-29 Thread Dan Carpenter
On Mon, Jul 29, 2024 at 10:09:39PM +0200, Helge Deller wrote: > On 7/29/24 17:59, Dan Carpenter wrote: > > On Mon, Jul 29, 2024 at 10:13:17AM +0200, Helge Deller wrote: > > > On 7/28/24 20:29, Christophe JAILLET wrote: > > > > If an error occurs after request_mem_region(), a corresponding > > > >

Re: [PATCH 1/2] drivers: drm/msm/a6xx_catalog: Add A642L speedbin (0x81)

2024-07-29 Thread Danila Tikhonov
On 7/29/24 06:09, Bjorn Andersson wrote: On Mon, Jul 22, 2024 at 09:43:13PM GMT, Danila Tikhonov wrote: From: Eugene Lepshy Please make sure the subject prefix matches other changes in the same driver/files. Regards, Bjorn Thanks for the advice "drm/msm/a6xx: --//--" will be better?

[PATCH v3 1/2] dt-bindings: display: panel: samsung, atna45dc02: Document ATNA45DC02

2024-07-29 Thread Rob Clark
From: Rob Clark The Samsung ATNA45DC02 panel is an AMOLED eDP panel, similar to the existing ATNA45AF01 and ATNA33XC20 panel but with a higher resolution. Signed-off-by: Rob Clark Acked-by: Conor Dooley --- .../bindings/display/panel/samsung,atna33xc20.yaml | 9 ++--- 1 file

Re: [PATCH] fbdev/hpfb: Fix an error handling path in hpfb_dio_probe()

2024-07-29 Thread Christophe JAILLET
Le 29/07/2024 à 22:09, Helge Deller a écrit : On 7/29/24 17:59, Dan Carpenter wrote: On Mon, Jul 29, 2024 at 10:13:17AM +0200, Helge Deller wrote: On 7/28/24 20:29, Christophe JAILLET wrote: If an error occurs after request_mem_region(), a corresponding release_mem_region() should be called,

<    1   2   3   4   5   6   7   8   9   10   >