Re: [PATCH 0/8] drm: writeback: clean up writeback connector initialization

2025-08-04 Thread Dmitry Baryshkov
On Mon, Aug 04, 2025 at 03:43:12PM +0100, Liviu Dudau wrote: > Hi, > > On Fri, Aug 01, 2025 at 04:51:08PM +0300, Dmitry Baryshkov wrote: > > Drivers using drm_writeback_connector_init() / _with_encoder() don't > > perform cleanup in a manner similar to drmm_writeback

Re: [PATCH 7/8] drm: writeback: drop excess connector initialization functions

2025-08-01 Thread Dmitry Baryshkov
On 01/08/2025 17:22, Kandpal, Suraj wrote: Subject: Re: [PATCH 7/8] drm: writeback: drop excess connector initialization functions This should be drm/writeback No: $ git log --oneline --no-merges next/master drivers/gpu/drm/drm_writeback.c fb721b2c35b1 drm: writeback: Fix drm_writeback_con

Re: [PATCH 5/8] drm/msm/dpu: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
On Fri, Aug 01, 2025 at 04:51:13PM +0300, Dmitry Baryshkov wrote: > Use drmm_plain_encoder_alloc() to allocate simple encoder and > drmm_writeback_connector_init() in order to initialize writeback > connector instance. > > Signed-off-by: Dmitry Baryshkov > --- > .../gp

[PATCH 8/8] drm: writeback: rename drm_writeback_connector_init_with_encoder()

2025-08-01 Thread Dmitry Baryshkov
Rename drm_writeback_connector_init_with_encoder() to drm_writeback_connector_init() and adapt its interface to follow drmm_writeback_connector_init(). Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_writeback.c | 14 +++--- include/drm/drm_writeback.h | 10 +- 2

[PATCH 5/8] drm/msm/dpu: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/renesas/rcar-du/rcar_du_writeback.c| 23 +++--- 1 file changed, 16 insertions

[PATCH 4/8] drm/msm/dpu: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions

[PATCH 7/8] drm: writeback: drop excess connector initialization functions

2025-08-01 Thread Dmitry Baryshkov
Now as all drivers have been converted to drmm_writeback_connector_init(), drop drm_writeback_connector_init() and drm_writeback_connector::encoder field, they are unused now. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_writeback.c | 55

[PATCH 6/8] drm/vc4: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/vc4/vc4_txp.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a

[PATCH 3/8] drm/mali: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/arm/malidp_mw.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions

[PATCH 1/8] drm/amd/display: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c| 2 +- drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH 2/8] drm/komeda: use drmm_writeback_connector_init()

2025-08-01 Thread Dmitry Baryshkov
Use drmm_plain_encoder_alloc() to allocate simple encoder and drmm_writeback_connector_init() in order to initialize writeback connector instance. Signed-off-by: Dmitry Baryshkov --- .../drm/arm/display/komeda/komeda_wb_connector.c | 30 -- 1 file changed, 17 insertions

[PATCH 0/8] drm: writeback: clean up writeback connector initialization

2025-08-01 Thread Dmitry Baryshkov
functions (like Intel). However I think it would be better to drop it completely. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (8): drm/amd/display: use drmm_writeback_connector_init() drm/komeda: use drmm_writeback_connector_init() drm/mali: use drmm_writeback_conn

Re: [PATCH v1 5/7] drm/ci: uprev IGT

2025-07-18 Thread Dmitry Baryshkov
On Fri, Jul 18, 2025 at 04:23:57PM +0530, Vignesh Raman wrote: > Uprev IGT to the latest version and update expectation files. > > Signed-off-by: Vignesh Raman > --- > drivers/gpu/drm/ci/gitlab-ci.yml | 2 +- > .../gpu/drm/ci/xfails/amdgpu-stoney-fails.txt | 2 + > .../drm/ci/xf

Re: [PATCH v2 05/19] drm: Allow the caller to pass in the format info to drm_helper_mode_fill_fb_struct()

2025-07-01 Thread Dmitry Baryshkov
ct() instead of doing > yet another redundant lookup. > > Start by always passing in NULL and still doing the extra lookup. > The actual changes to avoid the lookup will follow. > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry

[PATCH RESEND RFC v4 1/6] drm/display: dp: implement new access helpers

2025-04-05 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Existing DPCD access functions return an error code or the number of bytes being read / write in case of partial access. However a lot of drivers either (incorrectly) ignore partial access or mishandle error codes. In other cases this results in a boilerplate code which

Re: amdgpu_dm_connector_mode_valid regression

2025-04-05 Thread Dmitry Baryshkov
On Wed, 2 Apr 2025 at 15:00, Gergo Koteles wrote: > > to: Dmitry's new address > cc: regressions > > On Wed, 2025-04-02 at 12:40 +0200, Gergo Koteles wrote: > > Hi, > > > > While playing with > > https://lore.kernel.org/all/61c3df83ab73aba0bc7a941a443cd7faf4cf7fb0.1743195250.git.so...@irl.hu/ > >

Re: amdgpu_dm_connector_mode_valid regression

2025-04-03 Thread Dmitry Baryshkov
On Wed, 2 Apr 2025 at 17:35, Gergo Koteles wrote: > > Hi Dmitry, > > On Wed, 2025-04-02 at 16:36 +0300, Dmitry Baryshkov wrote: > > > > > > > > It works if I call > > > > drm_mode_set_crtcinfo((struct drm_display_mode *)mode, 0) before >

Re: [RFC PATCH RESEND v4 0/6] drm/display: dp: add new DPCD access functions

2025-03-25 Thread Dmitry Baryshkov
On Mon, 24 Mar 2025 13:51:18 +0200, Dmitry Baryshkov wrote: > Existing DPCD access functions return an error code or the number of > bytes being read / write in case of partial access. However a lot of > drivers either (incorrectly) ignore partial access or mishandle error > codes. In

Re: [RFC PATCH RESEND v4 0/6] drm/display: dp: add new DPCD access functions

2025-03-25 Thread Dmitry Baryshkov
ink it's time to push it. > > On Mon, 2025-03-24 at 13:51 +0200, Dmitry Baryshkov wrote: > > Existing DPCD access functions return an error code or the number of > > bytes being read / write in case of partial access. However a lot of > > drivers either (incorrectly) ig

[PATCH RESEND RFC v4 5/6] drm/display: dp-mst-topology: use new DCPD access helpers

2025-03-24 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_mst_topology.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 105 +- 1 file changed, 51 insertions

[PATCH RESEND RFC v4 2/6] drm/display: dp: change drm_dp_dpcd_read_link_status() return value

2025-03-24 Thread Dmitry Baryshkov
From: Dmitry Baryshkov drm_dp_dpcd_read_link_status() follows the "return error code or number of bytes read" protocol, with the code returning less bytes than requested in case of some errors. However most of the drivers interpreted that as "return error code in case of any

[PATCH RESEND RFC v4 6/6] drm/display: dp-tunnel: use new DCPD access helpers

2025-03-24 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_tunnel.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_tunnel.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

[RFC PATCH RESEND v4 0/6] drm/display: dp: add new DPCD access functions

2025-03-24 Thread Dmitry Baryshkov
only one possible place has been identified, dp-aux-dev, which needs to handle possible holes in DPCD. This series targets only the DRM helpers code. If the approach is found to be acceptable, each of the drivers should be converted on its own. Signed-off-by: Dmitry Baryshkov --- Changes in v4

[PATCH RESEND RFC v4 4/6] drm/display: dp-cec: use new DCPD access helpers

2025-03-24 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_cec.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_cec.c | 37 ++-- 1 file changed, 18 insertions(+), 19

[PATCH RESEND RFC v4 3/6] drm/display: dp: use new DCPD access helpers

2025-03-24 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_helper.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_helper.c | 296 +--- 1 file changed, 116 insertions(+), 180

[PATCH RFC v4 6/6] drm/display: dp-tunnel: use new DCPD access helpers

2025-03-15 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_tunnel.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_tunnel.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

[PATCH RFC v4 3/6] drm/display: dp: use new DCPD access helpers

2025-03-14 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_helper.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_helper.c | 296 +--- 1 file changed, 116 insertions(+), 180

[PATCH RFC v4 5/6] drm/display: dp-mst-topology: use new DCPD access helpers

2025-03-14 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_mst_topology.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 105 +- 1 file changed, 51 insertions

[PATCH RFC v4 0/6] drm/display: dp: add new DPCD access functions

2025-03-14 Thread Dmitry Baryshkov
only one possible place has been identified, dp-aux-dev, which needs to handle possible holes in DPCD. This series targets only the DRM helpers code. If the approach is found to be acceptable, each of the drivers should be converted on its own. Signed-off-by: Dmitry Baryshkov --- Changes in v4

[PATCH RFC v4 4/6] drm/display: dp-cec: use new DCPD access helpers

2025-03-14 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_cec.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_cec.c | 37 ++-- 1 file changed, 18 insertions(+), 19

[PATCH RFC v4 2/6] drm/display: dp: change drm_dp_dpcd_read_link_status() return value

2025-03-14 Thread Dmitry Baryshkov
From: Dmitry Baryshkov drm_dp_dpcd_read_link_status() follows the "return error code or number of bytes read" protocol, with the code returning less bytes than requested in case of some errors. However most of the drivers interpreted that as "return error code in case of any

[PATCH RFC v4 1/6] drm/display: dp: implement new access helpers

2025-03-14 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Existing DPCD access functions return an error code or the number of bytes being read / write in case of partial access. However a lot of drivers either (incorrectly) ignore partial access or mishandle error codes. In other cases this results in a boilerplate code which

Re: [PATCH RFC v3 4/7] drm/display: dp-aux-dev: use new DCPD access helpers

2025-03-07 Thread Dmitry Baryshkov
On Fri, Mar 07, 2025 at 05:53:38PM -0500, Lyude Paul wrote: > I thought we had agreed that drm_dp_aux_dev.c was one of the few places where > we wanted to keep using the old functions here? Hmm, I thought I dropped it. > > On Fri, 2025-03-07 at 06:34 +0200, Dmitry Baryshkov wro

[PATCH RFC v3 1/7] drm/display: dp: implement new access helpers

2025-03-07 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Existing DPCD access functions return an error code or the number of bytes being read / write in case of partial access. However a lot of drivers either (incorrectly) ignore partial access or mishandle error codes. In other cases this results in a boilerplate code which

[PATCH RFC v3 6/7] drm/display: dp-mst-topology: use new DCPD access helpers

2025-03-07 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_mst_topology.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 105 +- 1 file changed, 51 insertions

[PATCH RFC v3 5/7] drm/display: dp-cec: use new DCPD access helpers

2025-03-06 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_cec.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_cec.c | 37 ++-- 1 file changed, 18 insertions(+), 19

[PATCH RFC v3 3/7] drm/display: dp: use new DCPD access helpers

2025-03-06 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_helper.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_helper.c | 296 +--- 1 file changed, 116 insertions(+), 180

[PATCH RFC v3 7/7] drm/display: dp-tunnel: use new DCPD access helpers

2025-03-06 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_tunnel.c to use new set of DPCD read / write helpers. Reviewed-by: Lyude Paul Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_tunnel.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

[PATCH RFC v3 4/7] drm/display: dp-aux-dev: use new DCPD access helpers

2025-03-06 Thread Dmitry Baryshkov
From: Dmitry Baryshkov Switch drm_dp_aux_dev.c to use new set of DPCD read / write helpers. Acked-by: Jani Nikula Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/display/drm_dp_aux_dev.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm

[PATCH RFC v3 2/7] drm/display: dp: change drm_dp_dpcd_read_link_status() return value

2025-03-06 Thread Dmitry Baryshkov
From: Dmitry Baryshkov drm_dp_dpcd_read_link_status() follows the "return error code or number of bytes read" protocol, with the code returning less bytes than requested in case of some errors. However most of the drivers interpreted that as "return error code in case of any

[PATCH RFC v3 0/7] drm/display: dp: add new DPCD access functions

2025-03-06 Thread Dmitry Baryshkov
only one possible place has been identified, dp-aux-dev, which needs to handle possible holes in DPCD. This series targets only the DRM helpers code. If the approach is found to be acceptable, each of the drivers should be converted on its own. Signed-off-by: Dmitry Baryshkov --- Changes in v3

Re: [PATCH v12 0/2] drm/atomic: Ease async flip restrictions

2025-02-13 Thread Dmitry Baryshkov
On Mon, 27 Jan 2025 16:59:38 -0300, André Almeida wrote: > The goal of this work is to find a nice way to allow amdgpu to perform > async page flips in the overlay plane as well, not only on the primary > one. Currently, when using the atomic uAPI, this is the only type of > plane allowed to do asy

Re: [PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2025-01-21 Thread Dmitry Baryshkov
On Tue, Jan 21, 2025 at 12:10:25PM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > CC sfr > > On Tue, Jan 21, 2025 at 11:44 AM Dmitry Baryshkov > wrote: > > On Tue, 21 Jan 2025 at 11:13, Geert Uytterhoeven > > wrote: > > > On Tue, Jan 7, 2025 at

Re: [PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2025-01-21 Thread Dmitry Baryshkov
On Tue, 21 Jan 2025 at 11:13, Geert Uytterhoeven wrote: > > Hi Dmitry, > > On Tue, Jan 7, 2025 at 12:31 PM Dmitry Baryshkov > wrote: > > On Sat, 14 Dec 2024 15:37:04 +0200, Dmitry Baryshkov wrote: > > > While working on the generic mode_valid() implementatio

Re: [PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2025-01-07 Thread Dmitry Baryshkov
On Sat, 14 Dec 2024 15:37:04 +0200, Dmitry Baryshkov wrote: > While working on the generic mode_valid() implementation for the HDMI > Connector framework I noticed that unlike other DRM objects > drm_connector accepts non-const pointer to struct drm_display_mode, > while obviousl

Re: [PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2025-01-06 Thread Dmitry Baryshkov
On Mon, 6 Jan 2025 at 10:55, Maxime Ripard wrote: > > On Mon, Jan 06, 2025 at 12:47:07AM +0200, Dmitry Baryshkov wrote: > > On Sat, Dec 14, 2024 at 03:37:04PM +0200, Dmitry Baryshkov wrote: > > > While working on the generic mode_valid() implementation for the HDMI > &

Re: [PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2025-01-05 Thread Dmitry Baryshkov
On Sat, Dec 14, 2024 at 03:37:04PM +0200, Dmitry Baryshkov wrote: > While working on the generic mode_valid() implementation for the HDMI > Connector framework I noticed that unlike other DRM objects > drm_connector accepts non-const pointer to struct drm_display_mode, > while obviousl

Re: [PATCH v2] drm/ci: uprev IGT

2025-01-03 Thread Dmitry Baryshkov
r_legacy@single-bo,Fail > kms_cursor_legacy@torture-bo,Fail > kms_force_connector_basic@force-edid,Fail > kms_hdmi_inject@inject-4k,Fail Interesting. Though this might by the platform legacy cursor code (it doesn't use a plane for cursors). Anyway, Reviewed-by: Dmitry Baryshkov # msm -- With best wishes Dmitry

Re: [PATCH v2] drm/ci: uprev IGT

2025-01-02 Thread Dmitry Baryshkov
On Tue, Dec 17, 2024 at 09:36:52PM +0530, Vignesh Raman wrote: > Uprev IGT to the latest version and update expectation files. > > Signed-off-by: Vignesh Raman > --- > > v1: > - Pipeline link - > https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1327810 > Will update the flake

Re: [PATCH v2 00/10] drm/connector: add eld_mutex to protect connector->eld

2024-12-16 Thread Dmitry Baryshkov
On Fri, 06 Dec 2024 11:43:03 +0200, Dmitry Baryshkov wrote: > The connector->eld is accessed by the .get_eld() callback. This access > can collide with the drm_edid_to_eld() updating the data at the same > time. Add drm_connector.eld_mutex to protect the data from concurrenct > a

Re: [PATCH v2 04/10] drm/amd/display: use eld_mutex to protect access to connector->eld

2024-12-16 Thread Dmitry Baryshkov
On Mon, 16 Dec 2024 at 17:32, Alex Deucher wrote: > > On Mon, Dec 16, 2024 at 10:12 AM Dmitry Baryshkov > wrote: > > > > On Mon, 16 Dec 2024 at 16:53, Harry Wentland wrote: > > > > > > > > > > > > On 2024-12-10 16:20, Dmitry Baryshko

Re: [PATCH v2 04/10] drm/amd/display: use eld_mutex to protect access to connector->eld

2024-12-16 Thread Dmitry Baryshkov
On Mon, 16 Dec 2024 at 16:53, Harry Wentland wrote: > > > > On 2024-12-10 16:20, Dmitry Baryshkov wrote: > > On Fri, Dec 06, 2024 at 11:43:07AM +0200, Dmitry Baryshkov wrote: > >> Reading access to connector->eld can happen at the same time the > >> drm_e

Re: [PATCH v2 00/10] drm/connector: add eld_mutex to protect connector->eld

2024-12-16 Thread Dmitry Baryshkov
On Fri, Dec 06, 2024 at 11:43:03AM +0200, Dmitry Baryshkov wrote: > The connector->eld is accessed by the .get_eld() callback. This access > can collide with the drm_edid_to_eld() updating the data at the same > time. Add drm_connector.eld_mutex to protect the data from concurre

Re: [PATCH] drm/fourcc: add LINEAR modifiers with an exact pitch alignment

2024-12-16 Thread Dmitry Baryshkov
On Mon, Dec 16, 2024 at 12:40:54AM -0500, Marek Olšák wrote: > git send-email (or rather the way it sends email) has been banned by gmail > due to being considered unsecure. I don't plan to find a way to make it > work and I don't plan to use a different email provider. It doesn't matter > because

[PATCH v2 5/5] drm/connector: make mode_valid take a const struct drm_display_mode

2024-12-14 Thread Dmitry Baryshkov
Pinchart Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 8 drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 2 +- drivers/gpu/drm/amd/amdgpu/atombios_dp.h | 2 +- drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH v2 1/5] drm/encoder_slave: make mode_valid accept const struct drm_display_mode

2024-12-14 Thread Dmitry Baryshkov
The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge accept const struct drm_display_mode argument. Change the mode_valid callback of drm_encoder_slave to also accept const argument. Reviewed-by: Laurent Pinchart Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/i2c

[PATCH v2 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2024-12-14 Thread Dmitry Baryshkov
grate drivers into using it one by one. Signed-off-by: Dmitry Baryshkov --- Changes in v2: - Rebased on top of linux-next - Replaced 'accept const argument' with 'take a const arugment' (Laurent) - Link to v1: https://lore.kernel.org/r/20241115-drm-connector-mode-v

[PATCH v2 4/5] drm/connector: make mode_valid_ctx take a const struct drm_display_mode

2024-12-14 Thread Dmitry Baryshkov
The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge take a const struct drm_display_mode argument. Change the mode_valid_ctx callback of drm_connector to also take a const argument. Acked-by: Jani Nikula Reviewed-by: Laurent Pinchart Signed-off-by: Dmitry Baryshkov --- drivers

[PATCH v2 3/5] drm/sti: hda: pass const struct drm_display_mode* to hda_get_mode_idx()

2024-12-14 Thread Dmitry Baryshkov
Pinchart Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/sti/sti_hda.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index b12863bea95559c4f874eb94cea8938609d435d4

[PATCH v2 2/5] drm/amdgpu: don't change mode in amdgpu_dm_connector_mode_valid()

2024-12-14 Thread Dmitry Baryshkov
Make amdgpu_dm_connector_mode_valid() duplicate the mode during the test rather than modifying the passed mode. This is a preparation to converting the mode_valid() callback of drm_connector to take a const struct drm_display_mode argument. Reviewed-by: Laurent Pinchart Signed-off-by: Dmitry

Re: [PATCH v1] drm/ci: uprev IGT

2024-12-12 Thread Dmitry Baryshkov
On Thu, Dec 12, 2024 at 11:36:29AM +0530, Vignesh Raman wrote: > Hi Dmitry, > > On 12/12/24 03:09, Dmitry Baryshkov wrote: > > On Wed, Dec 11, 2024 at 07:58:05PM +0530, Vignesh Raman wrote: > > > Uprev IGT to the latest version and update expectation files. > > &

Re: [PATCH v1] drm/ci: uprev IGT

2024-12-11 Thread Dmitry Baryshkov
On Wed, Dec 11, 2024 at 07:58:05PM +0530, Vignesh Raman wrote: > Uprev IGT to the latest version and update expectation files. > > Signed-off-by: Vignesh Raman > --- > > v1: > - Pipeline link - > https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1327810 > Will update the flake

Re: [PATCH v10 0/2] drm/atomic: Ease async flip restrictions

2024-12-11 Thread Dmitry Baryshkov
On Wed, Dec 11, 2024 at 12:25:07AM -0300, André Almeida wrote: > Hi, > > The goal of this work is to find a nice way to allow amdgpu to perform > async page flips in the overlay plane as well, not only on the primary > one. Currently, when using the atomic uAPI, this is the only type of > plane al

Re: [PATCH v2 04/10] drm/amd/display: use eld_mutex to protect access to connector->eld

2024-12-10 Thread Dmitry Baryshkov
On Fri, Dec 06, 2024 at 11:43:07AM +0200, Dmitry Baryshkov wrote: > Reading access to connector->eld can happen at the same time the > drm_edid_to_eld() updates the data. Take the newly added eld_mutex in > order to protect connector->eld from concurrent access. > > Revie

[PATCH v2 06/10] drm/i915/audio: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Reviewed-by: Jani Nikula Acked-by: Jani Nikula Signed-off-by:

[PATCH v2 05/10] drm/exynos: hdmi: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/exynos/exynos_hdmi

[PATCH v2 10/10] drm/vc4: hdmi: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/vc4/vc4_hdmi

[PATCH v2 09/10] drm/sti: hdmi: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Acked-by: Raphael Gallais-Pou Signed-off-by: Dmitry Baryshkov --- d

[PATCH v2 07/10] drm/msm/dp: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Acked-by: Abhinav Kumar Reviewed-by: Abhinav Kumar Signed-off-by:

[PATCH v2 08/10] drm/radeon: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/radeon/radeon_a

[PATCH v2 04/10] drm/amd/display: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/display/amd

[PATCH v2 03/10] drm/bridge: ite-it66121: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/ite-it66121

[PATCH v2 02/10] drm/bridge: anx7625: use eld_mutex to protect access to connector->eld

2024-12-06 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/analogix/a

[PATCH v2 01/10] drm/connector: add mutex to protect ELD from concurrent access

2024-12-06 Thread Dmitry Baryshkov
ing the patch), maintainers are to find a best suitable way to lock that mutex while accessing the ELD data. Reviewed-by: Maxime Ripard Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_connector.c | 1 + drivers/gpu/drm/drm_edid.c | 6 ++ include/drm/drm_connector.h | 5 -

[PATCH v2 00/10] drm/connector: add eld_mutex to protect connector->eld

2024-12-06 Thread Dmitry Baryshkov
the drm_connector and bridge drivers through drm-misc, allowing other maintainers either to ack merging through drm-misc or merging the drm-misc into their tree and then picking up correcponding patch. Signed-off-by: Dmitry Baryshkov --- Changes in v2: - Also take the mutex in clear_eld() (Jani) - Reba

Re: [PATCH v2 3/3] drm: remove driver date from struct drm_driver and all drivers

2024-12-04 Thread Dmitry Baryshkov
Ser > Acked-by: Jeffrey Hugo > Signed-off-by: Jani Nikula Acked-by: Dmitry Baryshkov # msm > > --- -- With best wishes Dmitry

Re: [PATCH 07/10] drm/msm/dp: use eld_mutex to protect access to connector->eld

2024-12-03 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 07:27:45PM -0800, Abhinav Kumar wrote: > > > On 11/30/2024 3:55 PM, Dmitry Baryshkov wrote: > > Reading access to connector->eld can happen at the same time the > > drm_edid_to_eld() updates the data. Take the newly added eld_mutex in > > o

Re: [PATCH 00/10] drm/connector: add eld_mutex to protect connector->eld

2024-12-02 Thread Dmitry Baryshkov
On Mon, Dec 02, 2024 at 10:19:41AM +, Maxime Ripard wrote: > On Sun, 1 Dec 2024 01:55:17 +0200, Dmitry Baryshkov wrote: > > The connector->eld is accessed by the .get_eld() callback. This access > > can collide with the drm_edid_to_eld() updating the data at the

[PATCH 10/10] drm/vc4: hdmi: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/vc4/vc4_hdmi.c | 4 ++-- 1 file chan

[PATCH 09/10] drm/sti: hdmi: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/sti/sti_hdmi.c | 2 ++ 1 file changed, 2 inse

[PATCH 08/10] drm/radeon: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/radeon/radeon_audio.c | 2 ++ 1 file chan

[PATCH 07/10] drm/msm/dp: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_audio.c | 2 ++ 1 file chan

[PATCH 06/10] drm/i915/audio: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/i915/display/intel_audio.c | 3 +++ 1 file c

[PATCH 05/10] drm/exynos: hdmi: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 ++ 1 file chan

[PATCH 04/10] drm/amd/display: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++

[PATCH 03/10] drm/bridge: ite-it66121: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/ite-it66121.c | 2 ++ 1 file chan

[PATCH 02/10] drm/bridge: anx7625: use eld_mutex to protect access to connector->eld

2024-11-30 Thread Dmitry Baryshkov
Reading access to connector->eld can happen at the same time the drm_edid_to_eld() updates the data. Take the newly added eld_mutex in order to protect connector->eld from concurrent access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/analogix/anx7625.c | 2 ++ 1 file chan

[PATCH 01/10] drm/connector: add mutex to protect ELD from concurrent access

2024-11-30 Thread Dmitry Baryshkov
ing the patch), maintainers are to find a best suitable way to lock that mutex while accessing the ELD data. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_connector.c | 1 + drivers/gpu/drm/drm_edid.c | 4 include/drm/drm_connector.h | 5 - 3 files changed, 9 inserti

[PATCH 00/10] drm/connector: add eld_mutex to protect connector->eld

2024-11-30 Thread Dmitry Baryshkov
the drm_connector and bridge drivers through drm-misc, allowing other maintainers either to ack merging through drm-misc or merging the drm-misc into their tree and then picking up correcponding patch. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (10): drm/connector: add mutex to protect

Re: [PATCH 1/5] drm/encoder_slave: make mode_valid accept const struct drm_display_mode

2024-11-18 Thread Dmitry Baryshkov
On Sun, 17 Nov 2024 at 22:54, Laurent Pinchart wrote: > > Hi Dmitry, > > Thank you for the patch. > > On Fri, Nov 15, 2024 at 11:09:26PM +0200, Dmitry Baryshkov wrote: > > The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge > > accept const struct drm

Re: [PATCH 1/5] drm/encoder_slave: make mode_valid accept const struct drm_display_mode

2024-11-18 Thread Dmitry Baryshkov
On Mon, Nov 18, 2024 at 11:26:03AM +0200, Jani Nikula wrote: > On Mon, 18 Nov 2024, Dmitry Baryshkov wrote: > > On Mon, 18 Nov 2024 at 01:33, Laurent Pinchart > > wrote: > >> > >> On Mon, Nov 18, 2024 at 01:22:12AM +0200, Dmitry Baryshkov wrote: > >&g

Re: [PATCH 1/5] drm/encoder_slave: make mode_valid accept const struct drm_display_mode

2024-11-17 Thread Dmitry Baryshkov
On Mon, 18 Nov 2024 at 01:33, Laurent Pinchart wrote: > > On Mon, Nov 18, 2024 at 01:22:12AM +0200, Dmitry Baryshkov wrote: > > On Sun, 17 Nov 2024 at 22:54, Laurent Pinchart wrote: > > > On Fri, Nov 15, 2024 at 11:09:26PM +0200, Dmitry Baryshkov wrote: > > > &

Re: [PATCH 5/5] drm/connector: make mode_valid accept const struct drm_display_mode

2024-11-17 Thread Dmitry Baryshkov
On Sun, 17 Nov 2024 at 23:24, Laurent Pinchart wrote: > > Hi Dmitry, > > Thank you for the patch. > > On Fri, Nov 15, 2024 at 11:09:30PM +0200, Dmitry Baryshkov wrote: > > The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge > > accept const struct drm

[PATCH 5/5] drm/connector: make mode_valid accept const struct drm_display_mode

2024-11-15 Thread Dmitry Baryshkov
The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge accept const struct drm_display_mode argument. Change the mode_valid callback of drm_connector to also accept const argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 8

[PATCH 4/5] drm/connector: make mode_valid_ctx accept const struct drm_display_mode

2024-11-15 Thread Dmitry Baryshkov
The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge accept const struct drm_display_mode argument. Change the mode_valid_ctx callback of drm_connector to also accept const argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +- include

[PATCH 3/5] drm/sti: hda: pass const struct drm_display_mode* to hda_get_mode_idx()

2024-11-15 Thread Dmitry Baryshkov
Make hda_get_mode_idx() accept const struct drm_display_mode pointer instead of just raw struct drm_display_mode. This is a preparation to converting the mode_valid() callback of drm_connector to accept const struct drm_display_mode argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm

[PATCH 2/5] drm/amdgpu: don't change mode in amdgpu_dm_connector_mode_valid()

2024-11-15 Thread Dmitry Baryshkov
Make amdgpu_dm_connector_mode_valid() duplicate the mode during the test rather than modifying the passed mode. This is a preparation to converting the mode_valid() callback of drm_connector to accept const struct drm_display_mode argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm

[PATCH 1/5] drm/encoder_slave: make mode_valid accept const struct drm_display_mode

2024-11-15 Thread Dmitry Baryshkov
The mode_valid() callbacks of drm_encoder, drm_crtc and drm_bridge accept const struct drm_display_mode argument. Change the mode_valid callback of drm_encoder_slave to also accept const argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/i2c/ch7006_drv.c | 2 +- drivers/gpu

[PATCH 0/5] drm/connector: make mode_valid() callback accept const mode pointer

2024-11-15 Thread Dmitry Baryshkov
ework code to pass const argument to that callback. Note: yes, I understand that this change might be hard to review and merge. The only viable option that I foresee is to add new callback, having the const argument and migrate drivers into using it one by one. Signed-off-by: Dmitry Baryshkov --- D

Re: [PATCH RESEND v9 1/2] drm/atomic: Let drivers decide which planes to async flip

2024-11-05 Thread Dmitry Baryshkov
On Tue, 5 Nov 2024 at 10:15, Christopher Snowhill wrote: > > On Mon Nov 4, 2024 at 12:52 PM PST, André Almeida wrote: > > Hi Christopher, > > > > Em 03/11/2024 03:36, Christopher Snowhill escreveu: > > > On Fri Nov 1, 2024 at 11:23 AM PDT, André Almeida wrote: > > >> Currently, DRM atomic uAPI all

  1   2   >