[PATCH v2 1/2] dt-bindings: display: simple: Add AUO G156HAN04.0 LVDS display

2023-12-08 Thread Marek Vasut
From: Elmar Albert Document support for the AUO G156HAN04.0 LVDS display. G156HAN04.0 is a Color Active Matrix Liquid Crystal Display composed of a TFT LCD panel, a driver circuit, and LED backlight system. The screen format is intended to support the 16:9 FHD, 1920(H) x 1080(V) screen and

[PATCH v2 2/2] drm/panel: simple: Add AUO G156HAN04.0 LVDS display support

2023-12-08 Thread Marek Vasut
From: Elmar Albert G156HAN04.0 is a Color Active Matrix Liquid Crystal Display composed of a TFT LCD panel, a driver circuit, and LED backlight system. The screen format is intended to support the 16:9 FHD, 1920(H) x 1080(V) screen and 16.7M colors (RGB 8-bits) with LED backlight driving

Re: [PATCH v4 16/17] arm64: dts: rockchip: Add vop on rk3588

2023-12-08 Thread Andy Yan
Hi Heiko: On 12/9/23 00:26, Heiko Stübner wrote: Hi Andy, Am Donnerstag, 7. Dezember 2023, 09:02:47 CET schrieb Andy Yan: From: Andy Yan Add vop dt node for rk3588. Signed-off-by: Andy Yan --- (no changes since v1) arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 96 +++

Re: [PATCH v4 10/17] dt-bindings: display: vop2: Add rk3588 support

2023-12-08 Thread Andy Yan
HI Krzysztof: On 12/9/23 01:46, Krzysztof Kozlowski wrote: On 07/12/2023 09:01, Andy Yan wrote: From: Andy Yan The vop2 on rk3588 is similar to which on rk356x but with 4 video ports and need to reference more grf modules. Signed-off-by: Andy Yan --- Changes in v4: - drop redundant

Re: [PATCH v4 15/17] dt-bindings: iommu: rockchip: Add Rockchip RK3588

2023-12-08 Thread Andy Yan
Hi Heiko: On 12/9/23 00:29, Heiko Stübner wrote: Am Donnerstag, 7. Dezember 2023, 09:02:35 CET schrieb Andy Yan: From: Andy Yan Add a Rockchip RK3588 compatible Signed-off-by: Andy Yan Reviewed-by: Heiko Stuebner In the next iteration, please split this out into a separate patch and

Re: [PATCH v4 00/17] Add VOP2 support on rk3588

2023-12-08 Thread Andy Yan
Hi Heiko: On 12/9/23 00:07, Heiko Stübner wrote: Hi Andy, Am Donnerstag, 7. Dezember 2023, 08:59:06 CET schrieb Andy Yan: From: Andy Yan This patch sets aims at enable the VOP2 support on rk3588. Main feature of VOP2 on rk3588: Four video ports: VP0 Max 4096x2160 VP1 Max 4096x2160 VP2 Max

Re: [PATCH v2 15/16] drm/msm/dpu: introduce separate wb2_format arrays for rgb and yuv

2023-12-08 Thread Dmitry Baryshkov
On Sat, 9 Dec 2023 at 01:09, Abhinav Kumar wrote: > > > > On 12/8/2023 12:45 PM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 19:53, Abhinav Kumar > > wrote: > >> On 12/8/2023 3:44 AM, Dmitry Baryshkov wrote: > >>> On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > >>> wrote: > >

Re: [net-next v1 08/16] memory-provider: dmabuf devmem memory provider

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 2:56 PM Pavel Begunkov wrote: > > On 12/8/23 00:52, Mina Almasry wrote: ... > > + if (pool->p.queue) > > + binding = READ_ONCE(pool->p.queue->binding); > > + > > + if (binding) { > > + pool->mp_ops = _devmem_ops; > > +

Re: [net-next v1 08/16] memory-provider: dmabuf devmem memory provider

2023-12-08 Thread Pavel Begunkov
On 12/8/23 00:52, Mina Almasry wrote: Implement a memory provider that allocates dmabuf devmem page_pool_iovs. 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 page_pool_params. The

Re: [PATCH v2 15/16] drm/msm/dpu: introduce separate wb2_format arrays for rgb and yuv

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 12:45 PM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 19:53, Abhinav Kumar wrote: On 12/8/2023 3:44 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Lets rename the existing wb2_formats array wb2_formats_rgb to indicate that it has only RGB

Re: [net-next v1 08/16] memory-provider: dmabuf devmem memory provider

2023-12-08 Thread Pavel Begunkov
On 12/8/23 00:52, Mina Almasry wrote: Implement a memory provider that allocates dmabuf devmem page_pool_iovs. 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 page_pool_params. The

Re: [PATCH v2 12/16] drm/msm/dpu: add an API to setup the CDM block for writeback

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 12:55 PM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 19:28, Abhinav Kumar wrote: On 12/8/2023 3:52 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Add an API dpu_encoder_helper_phys_setup_cdm() which can be used by the writeback encoder to

[PATCH 1/2] fbdev: Remove support for Carillo Ranch driver

2023-12-08 Thread Matthew Wilcox (Oracle)
As far as anybody can tell, this product never shipped. If it did, it shipped in 2007 and nobody has access to one any more. Remove the fbdev driver and the backlight driver. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/video/backlight/Kconfig |7 -

[PATCH 2/2] mtd: Remove support for Carillo Ranch driver

2023-12-08 Thread Matthew Wilcox (Oracle)
As far as anybody can tell, this product never shipped. If it did, it shipped in 2007 and nobody has access to one any more. Remove the mtd NOR driver. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/mtd/maps/Kconfig| 7 - drivers/mtd/maps/Makefile | 1 -

[pull] amdgpu, amdkfd, radeon drm-next-6.8

2023-12-08 Thread Alex Deucher
Hi Dave, Sima, More updates for 6.8. The following changes since commit 5edfd7d94b0310b74136b666551f1d23711ed445: Merge tag 'amd-drm-next-6.8-2023-12-01' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (2023-12-05 12:11:41 +1000) are available in the Git repository at:

Re: [PATCH v2 12/16] drm/msm/dpu: add an API to setup the CDM block for writeback

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 19:28, Abhinav Kumar wrote: > On 12/8/2023 3:52 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > > wrote: > >> > >> Add an API dpu_encoder_helper_phys_setup_cdm() which can be used by > >> the writeback encoder to setup the CDM block. > >> > >>

Re: [PATCH v2 00/16] Add CDM support for MSM writeback

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 19:40, Abhinav Kumar wrote: > > > > On 12/8/2023 4:14 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:06, Abhinav Kumar > > wrote: > >> > >> Chroma Down Sampling (CDM) block is a hardware block in the DPU pipeline > >> which among other things has a CSC block that

Re: [PATCH v2 15/16] drm/msm/dpu: introduce separate wb2_format arrays for rgb and yuv

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 19:53, Abhinav Kumar wrote: > On 12/8/2023 3:44 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > > wrote: > >> > >> Lets rename the existing wb2_formats array wb2_formats_rgb to indicate > >> that it has only RGB formats and can be used on any

Re: State of affairs with Ilitek 9341 support

2023-12-08 Thread Noralf Trønnes
On 12/8/23 17:00, Andy Shevchenko wrote: > Included authors and latest (non-white-space) contributors to the drivers > in question along with relevant mailing list and respective (active in the > area) maintainers. > > I already had risen the question in times when 4th (sic!) driver for the

Re: [RFC PATCH v3 10/12] tcp: RX path for devmem TCP

2023-12-08 Thread Pavel Begunkov
On 11/6/23 22:55, Willem de Bruijn wrote: On Mon, Nov 6, 2023 at 2:34 PM Stanislav Fomichev wrote: On 11/06, Willem de Bruijn wrote: IMHO, we need a better UAPI to receive the tokens and give them back to the kernel. CMSG + setsockopt(SO_DEVMEM_DONTNEED) get the job done, but look dated and

Re: [net-next v1 06/16] netdev: support binding dma-buf to netdevice

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 11:22 AM Mina Almasry wrote: > > On Fri, Dec 8, 2023 at 9:48 AM David Ahern wrote: > > > > On 12/7/23 5:52 PM, Mina Almasry wrote: > ... > > > + > > > + xa_for_each(>bound_rxq_list, xa_idx, rxq) { > > > + if (rxq->binding == binding) { > > > +

[PATCH 11/13] drm/sched: Reverse run-queue priority enumeration

2023-12-08 Thread Rodrigo Vivi
From: Luben Tuikov Reverse run-queue priority enumeration such that the higest priority is now 0, and for each consecutive integer the prioirty diminishes. Run-queues correspond to priorities. To an external observer a scheduler created with a single run-queue, and another created with

[PATCH 10/13] drm/sched: Rename priority MIN to LOW

2023-12-08 Thread Rodrigo Vivi
From: Luben Tuikov Rename DRM_SCHED_PRIORITY_MIN to DRM_SCHED_PRIORITY_LOW. This mirrors DRM_SCHED_PRIORITY_HIGH, for a list of DRM scheduler priorities in ascending order, DRM_SCHED_PRIORITY_LOW, DRM_SCHED_PRIORITY_NORMAL, DRM_SCHED_PRIORITY_HIGH, DRM_SCHED_PRIORITY_KERNEL. Cc: Rob

Re: [RFC PATCH v3 10/12] tcp: RX path for devmem TCP

2023-12-08 Thread Pavel Begunkov
On 11/9/23 16:07, Edward Cree wrote: On 09/11/2023 02:39, Mina Almasry wrote: On Wed, Nov 8, 2023 at 7:36 AM Edward Cree wrote: If not then surely the way to return a memory area in an io_uring idiom is just to post a new read sqe ('RX descriptor') pointing into it, rather than

Re: [RFC PATCH v3 10/12] tcp: RX path for devmem TCP

2023-12-08 Thread Pavel Begunkov
On 11/6/23 22:34, Stanislav Fomichev wrote: On 11/06, Willem de Bruijn wrote: IMHO, we need a better UAPI to receive the tokens and give them back to the kernel. CMSG + setsockopt(SO_DEVMEM_DONTNEED) get the job done, but look dated and hacky :-( We should either do some kind of user/kernel

Re: [PATCH 2/2] drm/amdgpu: Enable clear page functionality

2023-12-08 Thread Alex Deucher
On Fri, Dec 8, 2023 at 5:07 AM Christian König wrote: > > Am 07.12.23 um 16:11 schrieb Arunpravin Paneer Selvam: > > Add clear page support in vram memory region. > > The first patch looks good, but this here needs quite some work. > > > > > Signed-off-by: Arunpravin Paneer Selvam > > --- > >

Re: [PATCH v2 3/3] drm/msm/dpu: enable writeback on SM8450

2023-12-08 Thread Abhinav Kumar
On 12/2/2023 4:27 PM, Dmitry Baryshkov wrote: Enable WB2 hardware block, enabling writeback support on this platform. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 18 ++ 1 file changed, 18 insertions(+) Reviewed-by: Abhinav Kumar

Re: [git pull] drm fixes for 6.7-rc5

2023-12-08 Thread pr-tracker-bot
The pull request you sent on Fri, 8 Dec 2023 14:54:20 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2023-12-08 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/38bafa65b1260cb774cfc0c9a3ddf82d3c563e10 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v2 2/3] drm/msm/dpu: enable writeback on SM8350

2023-12-08 Thread Abhinav Kumar
On 12/2/2023 4:27 PM, Dmitry Baryshkov wrote: Enable WB2 hardware block, enabling writeback support on this platform. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 18 ++ 1 file changed, 18 insertions(+) Reviewed-by: Abhinav

Re: [PATCH v2 1/3] drm/msm/dpu: enable writeback on SDM845

2023-12-08 Thread Abhinav Kumar
On 12/2/2023 4:27 PM, Dmitry Baryshkov wrote: Enable WB2 hardware block, enabling writeback support on this platform. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 18 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 6 -- 2

Re: [net-next v1 00/16] Device Memory TCP

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 9:57 AM David Ahern wrote: > > On 12/7/23 5:52 PM, Mina Almasry wrote: > > Major changes in v1: > > -- > > > > 1. Implemented MVP queue API ndos to remove the userspace-visible > >driver reset. > > > > 2. Fixed issues in the napi_pp_put_page() devmem frag

Re: [net-next v1 07/16] netdev: netdevice devmem allocator

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 9:56 AM David Ahern wrote: > > On 12/7/23 5:52 PM, Mina Almasry wrote: > > diff --git a/net/core/dev.c b/net/core/dev.c > > index b8c8be5a912e..30667e4c3b95 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -2120,6 +2120,41 @@ static int

Re: [net-next v1 13/16] tcp: RX path for devmem TCP

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 9:55 AM David Ahern wrote: > > On 12/7/23 5:52 PM, Mina Almasry wrote: > > 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

Re: [net-next v1 06/16] netdev: support binding dma-buf to netdevice

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 9:48 AM David Ahern wrote: > > On 12/7/23 5:52 PM, Mina Almasry wrote: ... > > + > > + xa_for_each(>bound_rxq_list, xa_idx, rxq) { > > + if (rxq->binding == binding) { > > + /* We hold the rtnl_lock while binding/unbinding > > +

Re: [PATCH v4 000/115] pwm: Fix lifetime issues for pwm_chips

2023-12-08 Thread Uwe Kleine-König
Hello Thierry, On Fri, Dec 08, 2023 at 04:41:39PM +0100, Thierry Reding wrote: > On Wed, Dec 06, 2023 at 12:43:14PM +0100, Uwe Kleine-König wrote: > > This series is based on Thierry's for-next. > > > > It starts with some cleanups that were all sent out separately already: > > > > - "pwm:

Re: [Intel-gfx] [PATCH] drm/edid: also call add modes in EDID connector update fallback

2023-12-08 Thread Ville Syrjälä
On Thu, Dec 07, 2023 at 11:38:21AM +0200, Jani Nikula wrote: > When the separate add modes call was added back in commit c533b5167c7e > ("drm/edid: add separate drm_edid_connector_add_modes()"), it failed to > address drm_edid_override_connector_update(). Also call add modes there. > >

Re: [PATCH v2 07/16] drm/msm/dpu: add dpu_hw_cdm abstraction for CDM block

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 19:09, Abhinav Kumar wrote: > > > > On 12/8/2023 4:06 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > > wrote: > >> > >> CDM block comes with its own set of registers and operations > >> which can be done. In-line with other hardware

Re: [PATCH] drm/bridge: ti-sn65dsi86: Associate PWM device to auxiliary device

2023-12-08 Thread Nikita Travkin
Uwe Kleine-König писал(а) 27.11.2023 15:15: > It's the ti_sn65dsi86.pwm auxiliary driver that creates the pwmchip, so > let the auxiliary device be the parent of the pwm device. > > Note that getting a reference to the ti-sn65dsi86's pwm using pwm_get() > isn't affected by this change as

Re: [PATCH] drm/bridge: ti-sn65dsi86: Associate PWM device to auxiliary device

2023-12-08 Thread Doug Anderson
Hi, On Fri, Dec 8, 2023 at 9:30 AM Nikita Travkin wrote: > > Uwe Kleine-König писал(а) 27.11.2023 15:15: > > It's the ti_sn65dsi86.pwm auxiliary driver that creates the pwmchip, so > > let the auxiliary device be the parent of the pwm device. > > > > Note that getting a reference to the

Re: [net-next v1 00/16] Device Memory TCP

2023-12-08 Thread David Ahern
On 12/7/23 5:52 PM, Mina Almasry wrote: > Major changes in v1: > -- > > 1. Implemented MVP queue API ndos to remove the userspace-visible >driver reset. > > 2. Fixed issues in the napi_pp_put_page() devmem frag unref path. > > 3. Removed RFC tag. > > Many smaller addressed

Re: [net-next v1 07/16] netdev: netdevice devmem allocator

2023-12-08 Thread David Ahern
On 12/7/23 5:52 PM, Mina Almasry wrote: > diff --git a/net/core/dev.c b/net/core/dev.c > index b8c8be5a912e..30667e4c3b95 100644 > --- a/net/core/dev.c > +++ b/net/core/dev.c > @@ -2120,6 +2120,41 @@ static int netdev_restart_rx_queue(struct net_device > *dev, int rxq_idx) > return err; >

Re: [net-next v1 13/16] tcp: RX path for devmem TCP

2023-12-08 Thread David Ahern
On 12/7/23 5:52 PM, Mina Almasry wrote: > 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

Re: [PATCH linux-next] drm/amd/display: replace kzalloc and memcpy with kmemdup

2023-12-08 Thread Christophe JAILLET
Le 08/12/2023 à 03:44, yang.gua...@zte.com.cn a écrit : From: Yang Guang Convert kzalloc/memcpy operations to memdup makes for cleaner code and avoids memcpy() failures Hi, usually, function's names are written with () in commit description. (i.e. kzalloc()/memcpy()). memdup should be

Re: [PATCH v2 15/16] drm/msm/dpu: introduce separate wb2_format arrays for rgb and yuv

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 3:44 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Lets rename the existing wb2_formats array wb2_formats_rgb to indicate that it has only RGB formats and can be used on any chipset having a WB block. Introduce a new wb2_formats_rgb_yuv array

Re: [net-next v1 06/16] netdev: support binding dma-buf to netdevice

2023-12-08 Thread David Ahern
On 12/7/23 5:52 PM, Mina Almasry wrote: > + > +static int netdev_restart_rx_queue(struct net_device *dev, int rxq_idx) > +{ > + void *new_mem; > + void *old_mem; > + int err; > + > + if (!dev || !dev->netdev_ops) > + return -EINVAL; > + > + if

Re: [PATCH v4 15/17] dt-bindings: iommu: rockchip: Add Rockchip RK3588

2023-12-08 Thread Krzysztof Kozlowski
On 07/12/2023 09:02, Andy Yan wrote: > From: Andy Yan > > Add a Rockchip RK3588 compatible > > Signed-off-by: Andy Yan Acked-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH v4 10/17] dt-bindings: display: vop2: Add rk3588 support

2023-12-08 Thread Krzysztof Kozlowski
On 07/12/2023 09:01, Andy Yan wrote: > From: Andy Yan > > The vop2 on rk3588 is similar to which on rk356x > but with 4 video ports and need to reference > more grf modules. > > Signed-off-by: Andy Yan > > --- > > Changes in v4: > - drop redundant description. > - use full stop at all the

Re: [PATCH v2 00/16] Add CDM support for MSM writeback

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 4:14 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:06, Abhinav Kumar wrote: Chroma Down Sampling (CDM) block is a hardware block in the DPU pipeline which among other things has a CSC block that can convert RGB input from the DPU to YUV data. This block is more or

Re: [PATCH v2 12/16] drm/msm/dpu: add an API to setup the CDM block for writeback

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 3:52 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Add an API dpu_encoder_helper_phys_setup_cdm() which can be used by the writeback encoder to setup the CDM block. Currently, this is defined and used within the writeback's physical encoder

Re: [PATCH v2 07/16] drm/msm/dpu: add dpu_hw_cdm abstraction for CDM block

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 4:06 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: CDM block comes with its own set of registers and operations which can be done. In-line with other hardware sub-blocks, this I always thought that sub-blocks refer to the dpu_foo_sub_blks

[PATCH] drm/imagination: vm: Fix heap lookup condition

2023-12-08 Thread Alex Bee
When conditionally checking for heap existence of a certian address in pvr_vm_bind_op_map_init the condition whether the map request comes from a user is incorrect: The context must not be the kernel-context to be a user(space) context and should be looked up in pvr_heaps. That makes addresses

Re: [PATCH v2 3/4] drm/stm: dsi: expose DSI PHY internal clock

2023-12-08 Thread Simon Horman
On Mon, Dec 04, 2023 at 11:11:12AM +0100, Raphael Gallais-Pou wrote: ... > @@ -514,18 +675,40 @@ static int dw_mipi_dsi_stm_probe(struct platform_device > *pdev) > dsi->lane_max_kbps *= 2; > } > > - dw_mipi_dsi_stm_plat_data.base = dsi->base; > -

Re: [PATCH v2 14/16] drm/msm/dpu: reserve cdm blocks for writeback in case of YUV output

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 8:38 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 18:34, Abhinav Kumar wrote: On 12/8/2023 3:54 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Reserve CDM blocks for writeback if the format of the output fb is YUV. At the moment, the

Re: [PATCH v1 1/3] dt-bindings: drm: rockchip: convert inno_hdmi-rockchip.txt to yaml

2023-12-08 Thread Rob Herring
On Mon, 04 Dec 2023 18:39:03 +0100, Johan Jonker wrote: > Convert inno_hdmi-rockchip.txt to yaml. > > Signed-off-by: Johan Jonker > --- > > Note for rob+dt: > Used enum to "soon" be able to add "rockchip,rk3128-inno-hdmi" > > Changed V1: > Rename file to more common layout > Add/fix

Re: [PATCH v2 04/16] drm/msm/dpu: move csc matrices to dpu_hw_util

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 18:35, Abhinav Kumar wrote: > > > > On 12/8/2023 8:27 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 18:24, Abhinav Kumar > > wrote: > >> > >> > >> > >> On 12/8/2023 3:12 AM, Dmitry Baryshkov wrote: > >>> On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > >>> wrote: >

Re: [PATCH v2 14/16] drm/msm/dpu: reserve cdm blocks for writeback in case of YUV output

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 18:34, Abhinav Kumar wrote: > > > > On 12/8/2023 3:54 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > > wrote: > >> > >> Reserve CDM blocks for writeback if the format of the output fb > >> is YUV. At the moment, the reservation is done only

[PATCH 0/7] qaic cleanups for 6.8

2023-12-08 Thread Jeffrey Hugo
A set of cleanups to the driver to improve error cases and reduce some code duplication. Jeffrey Hugo (2): accel/qaic: Fix MHI channel struct field order accel/qaic: Order pci_remove() operations in reverse of probe() Pranjal Ramajor Asha Kanojiya (5): accel/qaic: Deprecate ->size field

[PATCH 4/7] accel/qaic: Drop the reference to BO in error path of create BO IOCTL

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Do not free BO explicitly in error path, just drop its reference, cleanup will be taken care by DRM as we have registered for ->free() callback. This patch makes sure that there is only one code path for BO to be freed. Signed-off-by: Pranjal Ramajor Asha

[PATCH 7/7] accel/qaic: Order pci_remove() operations in reverse of probe()

2023-12-08 Thread Jeffrey Hugo
In probe() we create the drm_device, and then register the MHI controller. In remove(), we should unregister the controller first, then remove the drm_device. Update the remove() operations to match. Signed-off-by: Jeffrey Hugo Reviewed-by: Pranjal Ramajor Asha Kanojiya Reviewed-by: Carl

Re: [PATCH v2 04/16] drm/msm/dpu: move csc matrices to dpu_hw_util

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 8:27 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 18:24, Abhinav Kumar wrote: On 12/8/2023 3:12 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Since the type and usage of CSC matrices is spanning across DPU lets introduce a helper to

[PATCH 1/7] accel/qaic: Deprecate ->size field from attach slice IOCTL structure

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya ->size in struct qaic_attach_slice_hdr is redundant since we have BO handle and its size can be retrieved from base BO structure. Signed-off-by: Pranjal Ramajor Asha Kanojiya Reviewed-by: Jeffrey Hugo Signed-off-by: Jeffrey Hugo ---

[PATCH 6/7] accel/qaic: Leverage DRM managed APIs to release resources

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Offload the balancing of init and destroy calls to DRM managed APIs. mutex destroy for ->cntl_mutex is not called during device release and destroy workqueue is not called in error path of create_qdev(). So, use DRM managed APIs to manage the release of

[PATCH 5/7] accel/qaic: Call drm_gem_create_mmap_offset() once for each BO

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Every time QAIC_MMAP_BO ioctl is called for a BO, drm_gem_create_mmap_offset() is called. Calling drm_gem_create_mmap_offset() more then once for a BO seems redundant. Signed-off-by: Pranjal Ramajor Asha Kanojiya Reviewed-by: Jeffrey Hugo Signed-off-by:

[PATCH 3/7] accel/qaic: Fix MHI channel struct field order

2023-12-08 Thread Jeffrey Hugo
The timesync channels have their struct fields out of order with the rest of the channels. Fix them so there is a consistent style in the file. Signed-off-by: Jeffrey Hugo Reviewed-by: Carl Vanderlip --- drivers/accel/qaic/mhi_controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/7] accel/qaic: Remove bo->queued field

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya ->queued field is used to track whether the BO is submitted to hardware for DMA or not. Since same information can be retrieved using ->xfer_list field of same structure remove ->queued as it is redundant. Signed-off-by: Pranjal Ramajor Asha Kanojiya

Re: [PATCH v2 14/16] drm/msm/dpu: reserve cdm blocks for writeback in case of YUV output

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 3:54 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Reserve CDM blocks for writeback if the format of the output fb is YUV. At the moment, the reservation is done only for writeback but can easily be extended by relaxing the checks once other

Re: [v3 1/6] dt-bindings: display: Add yamls for JH7110 display system

2023-12-08 Thread Rob Herring
On Wed, Dec 06, 2023 at 08:50:29PM +0800, Sui Jingfeng wrote: > Hi, > > > On 2023/12/4 20:33, Keith Zhao wrote: > > StarFive SoCs JH7110 display system: > > dc controller, hdmi controller, > > encoder, vout syscon. [...] > > +description: > > + The StarFive JH7110 SoC uses the HDMI signal

[PATCH 1/2] accel/qaic: Fix GEM import path code

2023-12-08 Thread Jeffrey Hugo
From: Pranjal Ramajor Asha Kanojiya Do not modify the size of dmabuf as it is immutable. Fixes: ff13be830333 ("accel/qaic: Add datapath") Signed-off-by: Pranjal Ramajor Asha Kanojiya Reviewed-by: Jeffrey Hugo Signed-off-by: Jeffrey Hugo --- drivers/accel/qaic/qaic_data.c | 6 ++ 1 file

[PATCH 2/2] accel/qaic: Implement quirk for SOC_HW_VERSION

2023-12-08 Thread Jeffrey Hugo
The SOC_HW_VERSION register in the BHI space is not correctly initialized by the device and in many cases contains uninitialized data. The register could contain 0x which is a special value to indicate a link error in PCIe, therefore if observed, we could incorrectly think the device is

[PATCH 0/2] qaic fixes for 6.7

2023-12-08 Thread Jeffrey Hugo
A pair of fixes to the driver. First one is an improvement to dma_buf handling based on a greater understanding of that framework. The second is a reliability fix that allows some cards to boot. Jeffrey Hugo (1): accel/qaic: Implement quirk for SOC_HW_VERSION Pranjal Ramajor Asha Kanojiya (1):

Re: [v3 1/6] dt-bindings: display: Add yamls for JH7110 display system

2023-12-08 Thread Rob Herring
On Mon, Dec 04, 2023 at 08:33:10PM +0800, Keith Zhao wrote: > StarFive SoCs JH7110 display system: > dc controller, hdmi controller, > encoder, vout syscon. What are yamls? I prefer not using 'yaml' as yaml is lots of things that are not DT schema. Rob

[PATCH] drm/imagination: Fixed oops when misusing ioctl CREATE_HWRT_DATASET

2023-12-08 Thread Donald Robson
While writing the matching IGT suite I discovered that it's possible to cause a kernel oops when using DRM_IOCTL_PVR_CREATE_HWRT_DATASET when the call to hwrt_init_common_fw_structure() fails. Use an unwind-type error path to avoid cleaning up the object using the the release function before it

Re: [PATCH v4 15/17] dt-bindings: iommu: rockchip: Add Rockchip RK3588

2023-12-08 Thread Heiko Stübner
Am Donnerstag, 7. Dezember 2023, 09:02:35 CET schrieb Andy Yan: > From: Andy Yan > > Add a Rockchip RK3588 compatible > > Signed-off-by: Andy Yan Reviewed-by: Heiko Stuebner In the next iteration, please split this out into a separate patch and send it to the iommu+dt maintainers.

Re: [PATCH v3 09/14] drm/panthor: Add the heap logical block

2023-12-08 Thread Steven Price
On 04/12/2023 17:33, Boris Brezillon wrote: > Tiler heap growing requires some kernel driver involvement: when the > tiler runs out of heap memory, it will raise an exception which is > either directly handled by the firmware if some free heap chunks are > available in the heap context, or passed

Re: [PATCH v2 04/16] drm/msm/dpu: move csc matrices to dpu_hw_util

2023-12-08 Thread Dmitry Baryshkov
On Fri, 8 Dec 2023 at 18:24, Abhinav Kumar wrote: > > > > On 12/8/2023 3:12 AM, Dmitry Baryshkov wrote: > > On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar > > wrote: > >> > >> Since the type and usage of CSC matrices is spanning across DPU > >> lets introduce a helper to the dpu_hw_util to return

Re: [PATCH v4 16/17] arm64: dts: rockchip: Add vop on rk3588

2023-12-08 Thread Heiko Stübner
Hi Andy, Am Donnerstag, 7. Dezember 2023, 09:02:47 CET schrieb Andy Yan: > From: Andy Yan > > Add vop dt node for rk3588. > > Signed-off-by: Andy Yan > --- > > (no changes since v1) > > arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 96 +++ > 1 file changed, 96

Re: [PATCH v2 04/16] drm/msm/dpu: move csc matrices to dpu_hw_util

2023-12-08 Thread Abhinav Kumar
On 12/8/2023 3:12 AM, Dmitry Baryshkov wrote: On Fri, 8 Dec 2023 at 07:07, Abhinav Kumar wrote: Since the type and usage of CSC matrices is spanning across DPU lets introduce a helper to the dpu_hw_util to return the CSC corresponding to the request type. This will help to add more

[PULL] drm-intel-gt-next

2023-12-08 Thread Joonas Lahtinen
Hi Dave & Sima, A rather late first drm-intel-gt-next PR towards v6.8. As most significant change we have addition of the DRM fdinfo memory stats functionality. Then DG2 and MTL workaround additions and fixes and a few for older platforms as well. PMU WARN_ON splat cleanup. The rest is mostly

[PATCH] drm/imagination: Fixed infinite loop in pvr_vm_mips_map()

2023-12-08 Thread Donald Robson
Unwinding loop in error path for this function uses unsigned limit variable, causing the promotion of the signed counter variable. --> 204 for (; pfn >= start_pfn; pfn--) If start_pfn can be zero then this is an endless loop. I've seen this code in

Re: [PATCH v4 00/17] Add VOP2 support on rk3588

2023-12-08 Thread Heiko Stübner
Hi Andy, Am Donnerstag, 7. Dezember 2023, 08:59:06 CET schrieb Andy Yan: > From: Andy Yan > > This patch sets aims at enable the VOP2 support on rk3588. > > Main feature of VOP2 on rk3588: > Four video ports: > VP0 Max 4096x2160 > VP1 Max 4096x2160 > VP2 Max 4096x2160 > VP3 Max 2048x1080 > >

Re: [net-next v1 09/16] page_pool: device memory support

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 1:30 AM Yunsheng Lin wrote: > > > As mentioned before, it seems we need to have the above checking every > time we need to do some per-page handling in page_pool core, is there > a plan in your mind how to remove those kind of checking in the future? > I see 2 ways to

Re: [net-next v1 06/16] netdev: support binding dma-buf to netdevice

2023-12-08 Thread kernel test robot
Hi Mina, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Mina-Almasry/net-page_pool-factor-out-releasing-DMA-from-releasing-the-page/20231208-085531 base: net-next/main patch link

State of affairs with Ilitek 9341 support

2023-12-08 Thread Andy Shevchenko
Included authors and latest (non-white-space) contributors to the drivers in question along with relevant mailing list and respective (active in the area) maintainers. I already had risen the question in times when 4th (sic!) driver for the same hardware was about to be pulled into upstream that

Re: [DO NOT MERGE v5 16/37] irqchip: Add SH7751 INTC driver

2023-12-08 Thread Thomas Gleixner
On Tue, Dec 05 2023 at 18:45, Yoshinori Sato wrote: > +static void endisable_irq(struct irq_data *data, int enable) bool enable? > +{ > + struct sh7751_intc_priv *priv; > + unsigned int irq; > + > + priv = irq_data_to_priv(data); > + > + irq = irqd_to_hwirq(data); > + if

[PATCH 2/3] dt-bindings: display: st7701: Add Anbernic RG-ARC panel

2023-12-08 Thread Chris Morgan
From: Chris Morgan The RG-ARC panel is a panel specific to the Anbernic RG-ARC. It is 4 inches in size (diagonally) with a resolution of 480x640. Signed-off-by: Chris Morgan --- .../devicetree/bindings/display/panel/sitronix,st7701.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/3] drm/panel: st7701: Add Anbernic RG-ARC Panel Support

2023-12-08 Thread Chris Morgan
From: Chris Morgan The Powkiddy RG-ARC is a series of 2 handheld devices, each with a 4 inch 480x640 display. Add support for the display. Signed-off-by: Chris Morgan --- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 136 ++ 1 file changed, 136 insertions(+) diff --git

[PATCH 0/3] Add Support for RG-ARC Panel

2023-12-08 Thread Chris Morgan
From: Chris Morgan Add support for the Anbernic RG-ARC display panel as used in the RG-ARC S and RG-ARC D handheld gaming devices from Anbernic. Chris Morgan (3): drm/panel: st7701: Fix AVCL calculation dt-bindings: display: st7701: Add Anbernic RG-ARC panel drm/panel: st7701: Add

[PATCH 1/3] drm/panel: st7701: Fix AVCL calculation

2023-12-08 Thread Chris Morgan
From: Chris Morgan The AVCL register, according to the datasheet, comes in increments of -0.2v between -4.4v (represented by 0x0) to -5.0v (represented by 0x3). The current calculation is done by adding the defined AVCL value in mV to -4400 and then dividing by 200 to get the register value.

Re: [PATCH v4 000/115] pwm: Fix lifetime issues for pwm_chips

2023-12-08 Thread Thierry Reding
On Wed, Dec 06, 2023 at 12:43:14PM +0100, Uwe Kleine-König wrote: > Hello, > > This series is based on Thierry's for-next. > > It starts with some cleanups that were all sent out separately already: > > - "pwm: Reduce number of pointer dereferences in pwm_device_request()" > >

Re: [net-next v1 06/16] netdev: support binding dma-buf to netdevice

2023-12-08 Thread kernel test robot
Hi Mina, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Mina-Almasry/net-page_pool-factor-out-releasing-DMA-from-releasing-the-page/20231208-085531 base: net-next/main patch link

Re: [net-next v1 13/16] tcp: RX path for devmem TCP

2023-12-08 Thread kernel test robot
Hi Mina, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Mina-Almasry/net-page_pool-factor-out-releasing-DMA-from-releasing-the-page/20231208-085531 base: net-next/main patch link: https

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

2023-12-08 Thread Steven Price
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

Re: [PATCH v2 1/5] pmdomain: rockchip: Add missing powerdomains for RK3128

2023-12-08 Thread Rob Herring
On Sat, Dec 02, 2023 at 01:51:40PM +0100, Alex Bee wrote: > For RK3128 the powerdomains PD_PERI, PD_SYS and PD_CRYPTO are currently > missing. > Add them. > > Signed-off-by: Alex Bee > --- > drivers/pmdomain/rockchip/pm-domains.c | 13 - > include/dt-bindings/power/rk3128-power.h

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

2023-12-08 Thread Maxime Ripard
On Fri, Dec 08, 2023 at 03:59:46PM +0200, Pekka Paalanen wrote: > On Fri, 8 Dec 2023 13:25:22 +0100 > Maxime Ripard wrote: > > > On Fri, Dec 08, 2023 at 10:08:28AM +0200, Pekka Paalanen wrote: > > > On Thu, 7 Dec 2023 15:27:33 +0100 > > > Maxime Ripard wrote: > > > > > > > On Tue, Dec 05,

Re: (subset) [PATCH] drm/crtc: fix uninitialized variable use

2023-12-08 Thread Maxime Ripard
On Fri, 08 Dec 2023 15:12:38 +0200, Jani Nikula wrote: > Commit 3823119b9c2b ("drm/crtc: Fix uninit-value bug in > drm_mode_setcrtc") was supposed to fix use of an uninitialized variable, > but introduced another. > > num_connectors is only initialized if crtc_req->count_connectors > 0, > but

[Bug 218241] amdgpu: MODE2 reset

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

Re: (subset) [PATCH v3 00/12] RB1/QCM2290 features

2023-12-08 Thread Bjorn Andersson
On Wed, 29 Nov 2023 15:43:57 +0100, Konrad Dybcio wrote: > This series brings: > - interconnect plumbing > - display setup > > for QCM2290/QRB2210 and > > - CAN bus controller > - HDMI display > - wifi fw variant name > > [...] Applied, thanks! [04/12] dt-bindings: firmware: qcom,scm: Allow

Re: [PATCH v3 07/14] drm/panthor: Add the MMU/VM logical block

2023-12-08 Thread Steven Price
On 04/12/2023 17:33, Boris Brezillon wrote: > MMU and VM management is related and placed in the same source file. > > Page table updates are delegated to the io-pgtable-arm driver that's in > the iommu subsystem. > > The VM management logic is based on drm_gpuva_mgr, and is assuming the > VA

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

2023-12-08 Thread Pekka Paalanen
On Fri, 8 Dec 2023 13:25:22 +0100 Maxime Ripard wrote: > On Fri, Dec 08, 2023 at 10:08:28AM +0200, Pekka Paalanen wrote: > > On Thu, 7 Dec 2023 15:27:33 +0100 > > Maxime Ripard wrote: > > > > > On Tue, Dec 05, 2023 at 10:51:06AM +0200, Pekka Paalanen wrote: > > > > On Mon, 4 Dec 2023

Re: [RFC PATCH v3 23/23] drm/vkms: Add tests for CTM handling

2023-12-08 Thread Pekka Paalanen
On Wed, 8 Nov 2023 11:36:42 -0500 Harry Wentland wrote: > A whole slew of tests for CTM handling that greatly helped in > debugging the CTM code. The extent of tests might seem a bit > silly but they're fast and might someday help save someone > else's day when debugging this. To be honest,

  1   2   >