Re: [PATCH 1/2] fb: flush deferred work in fb_deferred_io_fsync()

2023-12-18 Thread Helge Deller
On 12/18/23 10:57, Nam Cao wrote: The driver's fsync() is supposed to flush any pending operation to hardware. It is implemented in this driver by cancelling the queued deferred IO first, then schedule it for "immediate execution" by calling schedule_delayed_work() again with delay=0. However, se

[PATCH] drm/rockchip: vop2: clean up some inconsistent indenting

2023-12-18 Thread Jiapeng Chong
No functional modification involved. drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:1708 rk3588_calc_cru_cfg() warn: inconsistent indenting. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7778 Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/rockchip/rockchip_dr

Re: [PATCH v4 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-12-18 Thread 宋孝謙

Re: [PATCH v4 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-12-18 Thread 胡俊光

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-18 Thread Yan Zhao
On Mon, Dec 18, 2023 at 07:08:51AM -0800, Sean Christopherson wrote: > > > Implementation Consideration > > > === > > > There is a previous series [1] from google to serve the same purpose to > > > let KVM be aware of virtio GPU's noncoherent DMA status. That series > > > requires a new memslot fla

Re: linux-next: build failure after merge of the header_cleanup tree

2023-12-18 Thread Stephen Rothwell
Hi all, On Mon, 18 Dec 2023 17:40:30 +1100 Stephen Rothwell wrote: > > After merging the header_cleanup tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > In file included from include/linux/kernel.h:27, > from drivers/gpu/ipu-v3/ipu-dp.c:7: > inclu

Re: [PATCH v4 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-12-18 Thread 宋孝謙

Re: [PATCH v4 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-12-18 Thread 胡俊光

Re: [PATCH] drm/mediatek/dp: Add the HDCP feature for DisplayPort

2023-12-18 Thread 胡俊光

[PATCH] drm/nouveau/bios/init: drop kernel-doc notation

2023-12-18 Thread Randy Dunlap
The "/**" comments in this file are not kernel-doc comments. They are used on static functions which can have kernel-doc comments, but that is not the primary focus of kernel-doc comments. Since these comments are incomplete for kernel-doc notation, remove the kernel-doc "/**" markers and make them

Re: [PATCH] drm/bridge: ps8640: Fix size mismatch warning w/ len

2023-12-18 Thread Stephen Boyd
Quoting Douglas Anderson (2023-12-18 09:04:54) > After commit 26195af57798 ("drm/bridge: ps8640: Drop the ability of > ps8640 to fetch the EDID"), I got an error compiling: > > error: comparison of distinct pointer types > ('typeof (len) *' (aka 'unsigned int *') and >'typeof (msg->size) *'

Re: [PATCH] drm/panel-edp: Add several generic edp panels

2023-12-18 Thread Doug Anderson
Hi, On Mon, Dec 18, 2023 at 1:59 AM Xuxin Xiong wrote: > > Add support for the following 3 panels: > 1. BOE NV116WHM-N49 V8.0 > 2. BOE NV122WUM-N41 > 3. CSO MNC207QS1-1 > > Signed-off-by: Xuxin Xiong > --- > drivers/gpu/drm/panel/panel-edp.c | 4 > 1 file changed, 4 insertions(+) Reviewed

Re: [PATCH] drm/vc4: plane: check drm_gem_plane_helper_prepare_fb() return value

2023-12-18 Thread Maira Canal
Hi Simon, On 12/16/23 11:15, Simon Ser wrote: Bubble up any error to the caller. Signed-off-by: Simon Ser Cc: Maxime Ripard Cc: Kees Cook Cc: Dave Stevenson Reviewed-by: Maíra Canal Best Regards, - Maíra --- drivers/gpu/drm/vc4/vc4_plane.c | 5 - 1 file changed, 4 insertions(+)

Re: [PATCH] drm/msm/mdss: specify cfg bandwidth for SDM670

2023-12-18 Thread Abhinav Kumar
On 12/14/2023 5:32 PM, Dmitry Baryshkov wrote: Lower the requested CFG bus bandwidth for the SDM670 platform. The default value is 153600 kBps, which is twice as big as required by the platform according to the vendor kernel. Fixes: a55c8ff252d3 ("drm/msm/mdss: Handle the reg bus ICC path") S

[PATCH 2/2] fb: flush deferred IO before closing

2023-12-18 Thread Nam Cao
When framebuffer gets closed, the queued deferred IO gets cancelled. This can cause some last display data to vanish. This is problematic for users who send a still image to the framebuffer, then close the file: the image may never appear. To ensure none of display data get lost, flush the queued

[PATCH 0/2] fix LCD diplays sporadically not work

2023-12-18 Thread Nam Cao
Hi, While working with a framebuffer displays, I noticed that the displays sporadically do not show the image as I expect. After investigation: this is because my devices use deferred IO, and by closing the framebuffers, all pending deferred IO get cancelled. This causes the image I sent to the d

[PATCH 1/2] fb: flush deferred work in fb_deferred_io_fsync()

2023-12-18 Thread Nam Cao
The driver's fsync() is supposed to flush any pending operation to hardware. It is implemented in this driver by cancelling the queued deferred IO first, then schedule it for "immediate execution" by calling schedule_delayed_work() again with delay=0. However, setting delay=0 only means the work is

enforce the Display Stream Compression

2023-12-18 Thread Thomas
Hi, I want to enforce the Display Stream Compression (DSC) of the Intel i915 driver in Linux Ubuntu 22.04 to test it. While inspecting the source code, I came across a query called "force_dsc_output_format" that seems useful to me. My question is more general and pertains to the procedure for se

[RFC PATCH net-next v5 06/14] page_pool: convert to use netmem

2023-12-18 Thread Mina Almasry
Abstrace the memory type from the page_pool so we can later add support for new memory types. Convert the page_pool to use the new netmem type abstraction, rather than use struct page directly. As of this patch the netmem type is a no-op abstraction: it's always a struct page underneath. All the p

Re: [PATCH v3 08/14] drm/panthor: Add the FW logical block

2023-12-18 Thread Chris Diamand
On 04/12/2023 17:33, Boris Brezillon wrote: > Contains everything that's FW related, that includes the code dealing > with the microcontroller unit (MCU) that's running the FW, and anything > related to allocating memory shared between the FW and the CPU. > > A few global FW events are processed i

[RFC PATCH net-next v5 04/14] netdev: support binding dma-buf to netdevice

2023-12-18 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 genpool

[PATCH v9 0/2] Add displays support for bsh-smm-s2/pro boards

2023-12-18 Thread Dario Binacchi
The series adds drivers for the displays used by bsh-smm-s2/pro boards. This required applying some patches to the samsung-dsim driver and the drm_bridge.c module. Changes in v9: - Updated commit message - Drop [3/3] arm64: dts: imx8mn-bsh-smm-s2/pro: add display setup because applied. Change

[RFC PATCH net-next v5 12/14] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2023-12-18 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 re-use. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry ---

[RFC PATCH net-next v5 09/14] net: support non paged skb frags

2023-12-18 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 --- Changes in v1: - Fix illegal_highdma() (Yunsheng). - Rework napi_pp_put_page() slightly to reduce code churn (Willem). (cherry picked

[PATCH v9 2/2] drm: bridge: samsung-dsim: complete the CLKLANE_STOP setting

2023-12-18 Thread Dario Binacchi
The patch completes the setting of CLKLANE_STOP for the imx8m{m,n,p} platforms (i. e. not exynos). Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v9: - Updated commit message - Drop [3/3] arm64: dts: imx8mn-bsh-smm-s2/pro: add

[RFC PATCH net-next v5 08/14] memory-provider: dmabuf devmem memory provider

2023-12-18 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 netde

Re: [PATCH v2 1/2] drm/bridge: Fix improper bridge init order with pre_enable_prev_first

2023-12-18 Thread Jagan Teki
On Sun, Nov 26, 2023 at 9:41 PM Jagan Teki wrote: > > On Mon, Nov 13, 2023 at 6:45 PM Jagan Teki wrote: > > > > On Tue, Aug 1, 2023 at 11:50 AM Dave Stevenson > > wrote: > > > > > > Hi Jagan > > > > > > My apologies for dropping the ball on this one, and thanks to Frieder > > > for the nudge. >

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

2023-12-18 Thread Mina Almasry
Major changes in RFC v5: 1. Rebased on top of 'Abstract page from net stack' series and used the new netmem type to refer to LSB set pointers instead of re-using struct page. 2. Downgraded this series back to RFC and called it RFC v5. This is because this series

Re: [PATCH v2 1/2] drm/bridge: Fix improper bridge init order with pre_enable_prev_first

2023-12-18 Thread Michael Nazzareno Trimarchi
On Mon, Dec 18, 2023 at 11:28 AM Jagan Teki wrote: > > On Sun, Nov 26, 2023 at 9:41 PM Jagan Teki wrote: > > > > On Mon, Nov 13, 2023 at 6:45 PM Jagan Teki > > wrote: > > > > > > On Tue, Aug 1, 2023 at 11:50 AM Dave Stevenson > > > wrote: > > > > > > > > Hi Jagan > > > > > > > > My apologies f

[PATCH 0/5] Pinephone video out fixes (flipping between two frames)

2023-12-18 Thread Frank Oltmanns
- drivers/clk/sunxi-ng/ccu_nm.h | 34 +-- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 14 +-- 6 files changed, 97 insertions(+), 13 deletions(-) --- base-commit: d0ac5722dae5f4302bb4ef6df10d0afa718df80b change-id: 20231218-pinephone-pll-fixes-0ccdfde273e4 Best regards, -- Frank Oltmanns

[PATCH 4/5] clk: sunxi-ng: a64: Add constraints on PLL-VIDEO0's n/m ratio

2023-12-18 Thread Frank Oltmanns
The Allwinner A64 manual lists the following constraint for the PLL-VIDEO0 clock: 8 <= N/M <= 25 Use this constraint. Signed-off-by: Frank Oltmanns --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun5

[PATCH 5/5] drm/panel: st7703: Drive XBD599 panel at higher clock rate

2023-12-18 Thread Frank Oltmanns
This panel is used in the pinephone that runs on a Allwinner A64 SOC. Acoording to it's datasheet, the SOC requires PLL-MIPI to run at more than 500 MHz. Therefore, change [hv]sync_(start|end) so that we reach a clock rate that is high enough to drive PLL-MIPI within its limits. Signed-off-by: Fr

[PATCH 3/5] clk: sunxi-ng: nm: Support constraints on n/m ratio and parent rate

2023-12-18 Thread Frank Oltmanns
The Allwinner A64 manual lists the following constraint for the PLL-VIDEO0 clock: 8 <= N/M <= 25 The PLL-MIPI clock is implemented as ccu_nm. Therefore, add support for this constraint. Signed-off-by: Frank Oltmanns --- drivers/clk/sunxi-ng/ccu_nm.c | 21 +++-- drivers/clk/sunxi

[PATCH 2/5] clk: sunxi-ng: a64: Add constraints on PLL-MIPI's n/m ratio and parent rate

2023-12-18 Thread Frank Oltmanns
The Allwinner A64 manual lists the following constraints for the PLL-MIPI clock: - M/N >= 3 - (PLL_VIDEO0)/M >= 24MHz Use these constraints. Signed-off-by: Frank Oltmanns --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/sunxi-ng/ccu-s

[PATCH 1/5] clk: sunxi-ng: nkm: Support constraints on m/n ratio and parent rate

2023-12-18 Thread Frank Oltmanns
The Allwinner A64 manual lists the following constraints for the PLL-MIPI clock: - M/N >= 3 - (PLL_VIDEO0)/M >= 24MHz The PLL-MIPI clock is implemented as ccu_nkm. Therefore, add support for these constraints. Signed-off-by: Frank Oltmanns --- drivers/clk/sunxi-ng/ccu_nkm.c | 23 +

Re: [PATCH] drm/vmwgfx: fix all kernel-doc warnings in stdu

2023-12-18 Thread Zack Rusin
On Fri, Dec 15, 2023 at 6:41 PM Randy Dunlap wrote: > > kernel test robot reports one kernel-doc warning in stdu, but > running scripts/kernel-doc in -Wall mode reports several more, > so fix all of them at one time: > > vmwgfx_stdu.c:76: warning: Excess struct member 'transfer' description in >

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Javier Martinez Canillas
Conor Dooley writes: Hello Connor, > On Sun, Dec 17, 2023 at 11:00:07PM +0100, Javier Martinez Canillas wrote: >> Conor Dooley writes: >> >> Hello Conor, >> >> > On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrote: >> >> [...] >> >> >> >> +then: >> >> >> + prop

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-18 Thread Sean Christopherson
+Yiwei On Fri, Dec 15, 2023, Kevin Tian wrote: > > From: Zhao, Yan Y > > Sent: Thursday, December 14, 2023 6:35 PM > > > > - For host non-MMIO pages, > > * virtio guest frontend and host backend driver should be synced to use > > the same memory type to map a buffer. Otherwise, there will

[RFC PATCH net-next v5 01/14] net: page_pool: create hooks for custom page providers

2023-12-18 Thread Mina Almasry
From: Jakub Kicinski The page providers which try to reuse the same pages will need to hold onto the ref, even if page gets released from the pool - as in releasing the page from the pp just transfers the "ownership" reference from pp to the provider, and provider will wait for other references t

Re: [PATCH v2] drm/mediatek: dp: Add phy_mtk_dp module as pre-dependency

2023-12-18 Thread Chun-Kuang Hu
Hi, Nicolas: Nícolas F. R. A. Prado 於 2023年11月21日 週二 下午10:29寫道: > > The mtk_dp driver registers a phy device which is handled by the > phy_mtk_dp driver and assumes that the phy probe will complete > synchronously, proceeding to make use of functionality exposed by that > driver right away. This

[RFC PATCH net-next v5 07/14] page_pool: devmem support

2023-12-18 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 pp_mag

Re: [PATCH] drm/bridge: properly refcount DT nodes in aux bridge drivers

2023-12-18 Thread Neil Armstrong
On 17/12/2023 00:59, Dmitry Baryshkov wrote: The aux-bridge and aux-hpd-bridge drivers didn't call of_node_get() on the device nodes further used for dev->of_node and platform data. When bridge devices are released, the reference counts are decreased, resulting in refcount underflow / use-after-f

[PATCH AUTOSEL 4.14 3/6] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH AUTOSEL 4.19 3/6] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH AUTOSEL 5.15 03/13] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH AUTOSEL 5.10 3/8] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH] drm/bridge: Fixed a DP link training bug

2023-12-18 Thread xiazhengqiao
To have better compatibility for DP sink, there is a retry mechanism for the link training process to switch between different training process. The original driver code doesn't reset the retry counter when training state is pass. If the system triggers link training over 3 times, there will be a c

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Javier Martinez Canillas
Krzysztof Kozlowski writes: Hello Krzysztof, > On 17/12/2023 11:07, Javier Martinez Canillas wrote: >>> + - if: >> + properties: >> +compatible: >> + contains: >> +const: solomon,ssd1331 >> +then: >> + properties: >> +width: >> + defau

Re: [PULL] drm-xe-next

2023-12-18 Thread Oded Gabbay
On Fri, Dec 15, 2023 at 05:28:19PM -0500, Rodrigo Vivi wrote: > Hi Dave and Sima, > > Here goes the first pull request for the drm/xe driver. > > Our team was focused on putting together a driver that uses most, if not all, > of the key drm concepts and has a functional display that is shared wit

Re: [PULL] drm-xe-next

2023-12-18 Thread Oded Gabbay
On Fri, Dec 15, 2023 at 05:28:19PM -0500, Rodrigo Vivi wrote: > Hi Dave and Sima, > > Here goes the first pull request for the drm/xe driver. > > Our team was focused on putting together a driver that uses most, if not all, > of the key drm concepts and has a functional display that is shared wit

[Bug 218274] AMD r9 m380, 2015,27 imac - amdgpu wont work

2023-12-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218274 Artem S. Tashkinov (a...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [PATCH 5/6] drm/bridge: dpu-dprc: Use dev_err_probe

2023-12-18 Thread Alexander Stein
Am Montag, 18. Dezember 2023, 11:57:17 CET schrieb Alexander Stein: > This simplifies the code and gives additional information upon deferral. Please ignore. I just noticed this file is added in a locally applied series. Thanks Alexander > Signed-off-by: Alexander Stein > --- > drivers/gpu/drm

Re: [PATCH] drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE

2023-12-18 Thread Thomas Zimmermann
Hi Am 14.12.23 um 17:38 schrieb Jocelyn Falempe: When mgag200 switched from simple KMS to regular atomic helpers, the initialization of the gamma settings was lost. This leads to a black screen, if the bios/uefi doesn't use the same pixel color depth. This has been fixed with commit ad81e23426a6

[PATCH 4/6] drm/bridge: imx8qxp-pixel-link: Use dev_err_probe

2023-12-18 Thread Alexander Stein
This simplifies the code and gives additional information upon deferral. Signed-off-by: Alexander Stein --- .../gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c b/dr

Re: [PATCH v3 01/14] drm/panthor: Add uAPI

2023-12-18 Thread Chris Diamand
> diff --git a/include/uapi/drm/panthor_drm.h b/include/uapi/drm/panthor_drm.h > new file mode 100644 > index ..6d815df5e829 > --- /dev/null > +++ b/include/uapi/drm/panthor_drm.h > @@ -0,0 +1,892 @@ > +/* SPDX-License-Identifier: MIT */ > +/* Copyright (C) 2023 Collabora ltd. */ > +#if

Re: [PATCH 6/6] drm/bridge: dpu-core: Don't print error on -EPROBE_DEFER

2023-12-18 Thread Alexander Stein
Am Montag, 18. Dezember 2023, 11:57:18 CET schrieb Alexander Stein: > -517 errors are just annoying. dev_err_probe can't be used here either > as this would hide the error message already set in us->init. Please ignore. I just noticed this file is added in a locally applied series. Thanks Alexand

[PATCH 1/6] drm/bridge: imx8qxp-pxl2dpi: Use dev_err_probe

2023-12-18 Thread Alexander Stein
This simplifies the code and gives additional information upon deferral. Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 26 ++-- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c b/drive

[PATCH 6/6] drm/bridge: dpu-core: Don't print error on -EPROBE_DEFER

2023-12-18 Thread Alexander Stein
-517 errors are just annoying. dev_err_probe can't be used here either as this would hide the error message already set in us->init. Signed-off-by: Alexander Stein --- drivers/gpu/drm/imx/dpu/dpu-core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/im

Re: [PATCH v3 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-12-18 Thread Alexander Stein
Hi everybody, Am Montag, 18. Dezember 2023, 09:48:49 CET schrieb Luca Ceresoli: > Hi, > > On Mon, 18 Dec 2023 04:36:55 +0200 > > Laurent Pinchart wrote: > > On Fri, Dec 15, 2023 at 05:09:41PM -0300, Fabio Estevam wrote: > > > On Fri, Dec 15, 2023 at 4:01 PM Adam Ford wrote: > > > > Thanks for

[PATCH 5/6] drm/bridge: dpu-dprc: Use dev_err_probe

2023-12-18 Thread Alexander Stein
This simplifies the code and gives additional information upon deferral. Signed-off-by: Alexander Stein --- drivers/gpu/drm/imx/dpu/dpu-dprc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/imx/dpu/dpu-dprc.c b/drivers/gpu/drm/imx/dpu/dpu-dprc.c

[PATCH 3/6] drm/bridge: imx: imx-ldb-helper: Use dev_err_probe

2023-12-18 Thread Alexander Stein
This simplifies the code and gives additional information upon deferral. Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/imx/imx-ldb-helper.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/imx/imx-ldb-helper.c b/drivers/gpu/drm

[PATCH 2/6] drm/bridge: imx: imx8qxp-ldb: Use dev_err_probe

2023-12-18 Thread Alexander Stein
This simplifies the code and gives additional information upon deferral. Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c | 37 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-ldb.c b/drivers/

[PATCH 0/6] dev_err_probe usage for imx8qxp DPU pipeline

2023-12-18 Thread Alexander Stein
Hi everyone, while working on i.MX8QXP DPU/LVDS output I come across these fixes simplifying the code and improving debugging, while also creating less noise. It touches several files as the output pipeline is rather complex. Best regards, Alexander Alexander Stein (6): drm/bridge: imx8qxp-pxl

Re: [PATCH v9 08/12] clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF

2023-12-18 Thread neil . armstrong
Hi, On 27/11/2023 09:38, Jerome Brunet wrote: I suspect mipi_dsi_pxclk_div was added to achieve fractional vclk/bitclk ratios, since it doesn't exist on AXG. Not sure we would ever need it... and none of the other upstream DSI drivers supports such setups. The main reasons I set only mipi_

[RFC PATCH net-next v5 02/14] net: page_pool: factor out page_pool recycle check

2023-12-18 Thread Mina Almasry
The check is duplicated in 2 places, factor it out into a common helper. Signed-off-by: Mina Almasry --- net/core/page_pool.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 45bb4210412d..0edb9251d98d 100644 --- a/net

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Conor Dooley
On Sun, Dec 17, 2023 at 11:00:07PM +0100, Javier Martinez Canillas wrote: > Conor Dooley writes: > > Hello Conor, > > > On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrote: > > [...] > > >> >> +then: > >> >> + properties: > >> >> +width: > >> >> +

[RFC PATCH net-next v5 11/14] tcp: RX path for devmem TCP

2023-12-18 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 cmsg

Re: [PATCH v3 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-12-18 Thread Laurent Pinchart
On Fri, Dec 15, 2023 at 05:09:41PM -0300, Fabio Estevam wrote: > On Fri, Dec 15, 2023 at 4:01 PM Adam Ford wrote: > > > Thanks for the list. I was able to successfully build the stable 6.6 > > branch with those patches applied and I have the HDMI working. > > Unfortunately, I get build errors on

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Krzysztof Kozlowski
On 17/12/2023 11:07, Javier Martinez Canillas wrote: >> + - if: > + properties: > +compatible: > + contains: > +const: solomon,ssd1331 > +then: > + properties: > +width: > + default: 96 > +height: > + default: 64 > + > +u

Re: [PULL] drm-xe-next

2023-12-18 Thread Oded Gabbay
On Sat, Dec 16, 2023 at 12:28 AM Rodrigo Vivi wrote: > > Hi Dave and Sima, > > Here goes the first pull request for the drm/xe driver. > > Our team was focused on putting together a driver that uses most, if not all, > of the key drm concepts and has a functional display that is shared with i915.

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-18 Thread Maxime Ripard
On Mon, Dec 18, 2023 at 10:28:09AM +0100, H. Nikolaus Schaller wrote: > Hi Maxime, > > > Am 15.12.2023 um 14:33 schrieb Maxime Ripard : > > > >>> > >>> It's for a separate architecture, with a separate driver, maintained out > >>> of tree by a separate community, with a separate set of requireme

Re: [PATCH v2 4/5] drm/atomic: Make the drm_atomic_state documentation less ambiguous

2023-12-18 Thread Maxime Ripard
Hi, On Fri, Dec 15, 2023 at 04:54:28PM +0200, Pekka Paalanen wrote: > On Thu, 14 Dec 2023 11:09:15 +0100 > Maxime Ripard wrote: > > > The current documentation of drm_atomic_state says that it's the "global > > state object". This is confusing since, while it does contain all the > > objects aff

Re: [PATCH v2 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Conor Dooley
On Mon, Dec 18, 2023 at 02:20:35PM +0100, Javier Martinez Canillas wrote: > Add a Device Tree binding schema for the OLED panels based on the > Solomon SSD133x family of controllers. > > Signed-off-by: Javier Martinez Canillas > --- > > Changes in v2: > - Unconditionally set the width and height

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

2023-12-18 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, ncdevmem

[PULL] drm-intel-next

2023-12-18 Thread Rodrigo Vivi
Hi Dave and Sima, Here goes our latest drm-intel-next pull-request towards 6.8. drm-intel-next-2023-12-18: - Drop pointless null checks and fix a scaler bug (Ville) - Meteor Lake display fixes and clean-ups (RK, Jani, Andrzej, Mika, Imre) - Clean-up around flip done IRQ (Ville) - Fix eDP Meteor

Re: [PATCH] RFC: drm/lima: fix calling drm_mm_init with an empty range

2023-12-18 Thread Qiang Yu
Thanks for the fix. It could be done in a simpler way that swap the va_start/va_end init/fini and empty_vm create/release. On Thu, Dec 14, 2023 at 5:04 PM Alban Browaeys wrote: > > For the empty_vm initialization the range is empty which is not supported > by drm_mm_init. > > With CONFIG_DRM_DEBU

Re: [PATCH v2] drm: rcar-du: Fix memory leak in rcar_du_vsps_init()

2023-12-18 Thread Laurent Pinchart
Hi Biju, Thank you for the patch. On Thu, Nov 16, 2023 at 12:24:24PM +, Biju Das wrote: > The rcar_du_vsps_init() doesn't free the np allocated by > of_parse_phandle_with_fixed_args() for the non-error case. > > Fix memory leak for the non-error case. > > While at it, replace the label 'err

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Conor Dooley
On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrote: > Conor Dooley writes: > > Hello Connor, > > > On Sun, Dec 17, 2023 at 11:07:03AM +0100, Javier Martinez Canillas wrote: > > [...] > > >> +properties: > >> + compatible: > >> +enum: > >> + - solomon,ssd1331 > >

[PATCH 2/2] drm/ssd130x: Add support for the SSD133x OLED controller family

2023-12-18 Thread Javier Martinez Canillas
The Solomon SSD133x controllers (such as the SSD1331) are used by RGB dot matrix OLED panels, add a modesetting pipeline to support the chip family. The SSD133x controllers support 256 (8-bit) and 65k (16-bit) color depths but only the former is implemented for now. This is because the 256 color d

[PATCH v2 2/2] drm/rockchip: rk3066_hdmi: drop custom fill_modes hook

2023-12-18 Thread Johan Jonker
CRTC size validation for the display controller has been added with Commit 8e140cb60270 ("drm/rockchip: vop: limit maximum resolution to hardware capabilities"), so we can drop the custom fill_modes hook. Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 14 +-

[RFC PATCH net-next v5 13/14] net: add devmem TCP documentation

2023-12-18 Thread Mina Almasry
Signed-off-by: Mina Almasry --- v1 -> v2: - Missing spdx (simon) - add to index.rst (simon) --- Documentation/networking/devmem.rst | 271 Documentation/networking/index.rst | 1 + 2 files changed, 272 insertions(+) create mode 100644 Documentation/networking/

[PATCH 0/2] drm/solomon: Add support for the SSD133x controller family

2023-12-18 Thread Javier Martinez Canillas
Hello, This patch-set adds support for the family of SSD133x Solomon controllers, such as the SSD1331. These are used for RGB Dot Matrix OLED/PLED panels. The patches were tested on a Waveshare SSD1331 display using glmark2-drm, fbcon, fbtests and the retroarch emulator. Patch #1 adds a DT bindi

[PATCH v2 0/2] Rockchip rk3066_hdmi update

2023-12-18 Thread Johan Jonker
Update the Rockchip rk3066_hdmi driver in a somewhat similar way to what is proposed for the inno_hdmi driver. Changed V2: Drop already applied patches Remove "Remove useless output format" patch for now Add fill_modes hook removal patch Johan Jonker (2): drm/rockchip: rk3066_hdmi: remove

[PATCH] drm/msm/a6xx: Fix recovery vs runpm race

2023-12-18 Thread Rob Clark
From: Rob Clark a6xx_recover() is relying on the gpu lock to serialize against incoming submits doing a runpm get, as it tries to temporarily balance out the runpm gets with puts in order to power off the GPU. Unfortunately this gets worse when we (in a later patch) will move the runpm get out o

[PATCH] drm/bridge: ps8640: Fix size mismatch warning w/ len

2023-12-18 Thread Douglas Anderson
After commit 26195af57798 ("drm/bridge: ps8640: Drop the ability of ps8640 to fetch the EDID"), I got an error compiling: error: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (msg->size) *' (aka 'unsigned long *')) [-Werror,-Wcompare-distinct-po

Re: [PATCH 1/5] clk: sunxi-ng: nkm: Support constraints on m/n ratio and parent rate

2023-12-18 Thread Frank Oltmanns
On 2023-12-18 at 14:35:19 +0100, Frank Oltmanns wrote: > The Allwinner A64 manual lists the following constraints for the > PLL-MIPI clock: > - M/N >= 3 > - (PLL_VIDEO0)/M >= 24MHz > > The PLL-MIPI clock is implemented as ccu_nkm. Therefore, add support for > these constraints. > > Signed-off-

Re: [PATCH RFC 01/10] dt-bindings: gpu: Add PowerVR Series5 SGX GPUs

2023-12-18 Thread H. Nikolaus Schaller
> Am 18.12.2023 um 11:14 schrieb Maxime Ripard : > > On Mon, Dec 18, 2023 at 10:28:09AM +0100, H. Nikolaus Schaller wrote: >> Hi Maxime, >> >>> Am 15.12.2023 um 14:33 schrieb Maxime Ripard : >>> > > It's for a separate architecture, with a separate driver, maintained out > of tre

Re: [PATCH v3 2/2] drm/bridge: imx: add driver for HDMI TX Parallel Video Interface

2023-12-18 Thread Luca Ceresoli
Hi, On Mon, 18 Dec 2023 04:36:55 +0200 Laurent Pinchart wrote: > On Fri, Dec 15, 2023 at 05:09:41PM -0300, Fabio Estevam wrote: > > On Fri, Dec 15, 2023 at 4:01 PM Adam Ford wrote: > > > > > Thanks for the list. I was able to successfully build the stable 6.6 > > > branch with those patches

[PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Javier Martinez Canillas
Add a Device Tree binding schema for the OLED panels based on the Solomon SSD133x family of controllers. Signed-off-by: Javier Martinez Canillas --- .../bindings/display/solomon,ssd133x.yaml | 63 +++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/device

Re: [PATCH 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Javier Martinez Canillas
Conor Dooley writes: Hello Conor, > On Sun, Dec 17, 2023 at 10:33:24PM +0100, Javier Martinez Canillas wrote: [...] >> >> +then: >> >> + properties: >> >> +width: >> >> + default: 96 >> >> +height: >> >> + default: 64 >> > >> > Do you envisage a rake

[PATCH v2 1/2] dt-bindings: display: Add SSD133x OLED controllers

2023-12-18 Thread Javier Martinez Canillas
Add a Device Tree binding schema for the OLED panels based on the Solomon SSD133x family of controllers. Signed-off-by: Javier Martinez Canillas --- Changes in v2: - Unconditionally set the width and height constraints (Conor Dooley). - Fix indentation in the DTS examples (Krzysztof Kozlowski).

Re: [RFC PATCH] KVM: Introduce KVM VIRTIO device

2023-12-18 Thread Yan Zhao
On Fri, Dec 15, 2023 at 02:23:48PM +0800, Tian, Kevin wrote: > > From: Zhao, Yan Y > > Sent: Thursday, December 14, 2023 6:35 PM > > > > - For host non-MMIO pages, > > * virtio guest frontend and host backend driver should be synced to use > > the same memory type to map a buffer. Otherwise

[PATCH v2 1/2] drm/rockchip: rk3066_hdmi: remove unused drm device pointer

2023-12-18 Thread Johan Jonker
The drm_dev field in the rk3066_hdmi struct stores a pointer to the DRM device but is never used anywhere in the driver. Let's remove it. Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rk3066_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rk3066_hd

[PATCH AUTOSEL 6.1 05/15] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH AUTOSEL 6.6 07/18] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

Re: [PATCH v3 1/2] drm/buddy: Implement tracking clear page feature

2023-12-18 Thread kernel test robot
ge feature config: arc-randconfig-001-20231215 (https://download.01.org/0day-ci/archive/20231218/202312180258.cty6xurg-...@intel.com/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231218/202312180258.cty6xurg-...@intel.com/repr

[RFC PATCH net-next v5 05/14] netdev: netdevice devmem allocator

2023-12-18 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:

Re: [PATCH] drm/rockchip: vop2: Avoid use regmap_reinit_cache at runtime

2023-12-18 Thread Marek Szyprowski
On 17.12.2023 09:44, Andy Yan wrote: > From: Andy Yan > > Marek Report a possible irq lock inversion dependency warning when > commit 81a06f1d02e5 ("Revert "drm/rockchip: vop2: Use regcache_sync() > to fix suspend/resume"") lands linux-next. > > I can reproduce this warning with: > CONFIG_PROVE_LO

[PATCH AUTOSEL 5.4 3/7] drm/crtc: Fix uninit-value bug in drm_mode_setcrtc

2023-12-18 Thread Sasha Levin
From: Ziqi Zhao [ Upstream commit 3823119b9c2b5f9e9b760336f75bc989b805cde6 ] The connector_set contains uninitialized values when allocated with kmalloc_array. However, in the "out" branch, the logic assumes that any element in connector_set would be equal to NULL if failed to initialize, which

[PATCH v2 2/2] drm/ssd130x: Add support for the SSD133x OLED controller family

2023-12-18 Thread Javier Martinez Canillas
The Solomon SSD133x controllers (such as the SSD1331) are used by RGB dot matrix OLED panels, add a modesetting pipeline to support the chip family. The SSD133x controllers support 256 (8-bit) and 65k (16-bit) color depths but only the former is implemented for now. This is because the 256 color d

  1   2   >