Re: [PATCH 8/9] drm/i915: Update plane alignment requirements for TGL+

2024-05-28 Thread Imre Deak
MOD_4_TILED: > + /* > + * FIXME ADL sees GGTT/DMAR faults with async > + * flips unless we align to 16k at least. > + * Figure out what's going on here... > + */ > + if (IS_A

Re: [PATCH 7/9] drm/i915: Move intel_surf_alignment() into skl_univerals_plane.c

2024-05-28 Thread Imre Deak
> > Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/display/intel_fb.c | 77 +-- > drivers/gpu/drm/i915/display/intel_fb.h | 4 +- > .../drm/i915/display/skl_universal_plane.c| 77 ++- > 3

Re: [PATCH 6/9] drm/i915: Split pre-skl platforms out from intel_surf_alignment()

2024-05-28 Thread Imre Deak
6 * 1024; > + return 4 * 1024; This changes the current 0 alignment to 4k, but these seem to be equivalent. Regardless of the above nit: Reviewed-by: Imre Deak > + case DRM_FORMAT_MOD_LINEAR: > + return 128 * 1024; > + default: > + MISSING_CAS

Re: [PATCH 5/9] drm/i915: Split cursor alignment to per-platform vfuncs

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:38PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Split intel_cursor_alignment() into per-platform variants. > > Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/displa

Re: [PATCH 4/9] drm/i915: Introduce fb->min_alignment

2024-05-28 Thread Imre Deak
On Tue, May 28, 2024 at 02:27:58PM +0300, Imre Deak wrote: > [...] > > +} > > + > > static unsigned int > > intel_plane_fb_min_alignment(const struct intel_plane_state *plane_state) > > { > > struct intel_plane *plane = to_intel_plane(plane_s

Re: [PATCH 4/9] drm/i915: Introduce fb->min_alignment

2024-05-28 Thread Imre Deak
On Mon, May 13, 2024 at 08:59:37PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Different planes could have different alignment requirements > even for the same format/modifier. Collect the alignment > requirements across all planes capable of scanning out the > fb such that the

Re: [PATCH 3/9] drm/i915: Introduce plane->min_alignment() vfunc

2024-05-28 Thread Imre Deak
e will need to fix xe's alignment handling > > Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/display/i9xx_plane.c | 8 ++-- > drivers/gpu/drm/i915/display/intel_cursor.c | 2 + > .../drm/i915/display/intel_display_types.h|

Re: ✗ Fi.CI.IGT: failure for drm/i915/dp: Few MTL/DSC and a UHBR monitor fix (rev4)

2024-04-19 Thread Imre Deak
On Thu, Apr 18, 2024 at 12:22:53PM +, Patchwork wrote: > == Series Details == > > Series: drm/i915/dp: Few MTL/DSC and a UHBR monitor fix (rev4) > URL : https://patchwork.freedesktop.org/series/131386/ > State : failure I pushed the patchset to drm-intel-next, amending the code comment in

Re: [PATCH] drm/dp: Fix documentation of DP tunnel functions

2024-04-19 Thread Imre Deak
On Fri, Apr 19, 2024 at 03:40:39PM +0300, Jani Nikula wrote: > On Wed, 28 Feb 2024, Imre Deak wrote: > > Fix the documentation issues below, also reported by 'make htmldocs': > > > > drivers/gpu/drm/display/drm_dp_tunnel.c:447: warning: Function parameter or >

[PATCH v3 11/11] drm/i915/dp_mst: Enable HBLANK expansion quirk for UHBR rates

2024-04-17 Thread Imre Deak
awy Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_helper.c | 2 ++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 22 + 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helpe

[PATCH v3 07/11] drm/dp: Add drm_dp_128b132b_supported()

2024-04-17 Thread Imre Deak
Navare Acked-by: Maarten Lankhorst Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- include/drm/display/drm_dp_helper.h | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915

Re: [PATCH v2 07/11] drm/dp: Add drm_dp_uhbr_channel_coding_supported()

2024-04-17 Thread Imre Deak
On Wed, Apr 17, 2024 at 12:21:58PM +0300, Jani Nikula wrote: > On Wed, 17 Apr 2024, Imre Deak wrote: > > Factor out a function to check for UHBR channel coding support used by a > > follow-up patch in the patchset. > > > > Cc: dri-devel@lists.freedesktop.org >

Re: [PATCH v2 11/11] drm/i915/dp_mst: Enable HBLANK expansion quirk for UHBR rates

2024-04-17 Thread Imre Deak
On Wed, Apr 17, 2024 at 12:39:40PM +0300, Jani Nikula wrote: > On Wed, 17 Apr 2024, Imre Deak wrote: > > Enabling the 5k@60Hz uncompressed mode on the MediaTek/Dell U3224KBA > > monitor results in a blank screen, at least on MTL platforms on UHBR > > link rates with some (

[PATCH v2 09/11] drm/dp_mst: Add drm_dp_mst_aux_for_parent()

2024-04-16 Thread Imre Deak
Lankhorst Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 16 include/drm/display/drm_dp_mst_helper.h | 1 + 2 files changed, 17 insertions(+) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display

[PATCH v2 11/11] drm/i915/dp_mst: Enable HBLANK expansion quirk for UHBR rates

2024-04-16 Thread Imre Deak
her root cause, but still related to the mode's short HBLANK duration. Enable the quirk for the monitor adjusting the detection for the above differences. Cc: dri-devel@lists.freedesktop.org Reviewed-by: Ankit Nautiyal Tested-by: Khaled Almahallawy Signed-off-by: Imre Deak --- drivers/gpu/drm/disp

[PATCH v2 08/11] drm/dp_mst: Factor out drm_dp_mst_port_is_logical()

2024-04-16 Thread Imre Deak
Lankhorst Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +++--- include/drm/display/drm_dp_mst_helper.h | 6 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display

[PATCH v2 07/11] drm/dp: Add drm_dp_uhbr_channel_coding_supported()

2024-04-16 Thread Imre Deak
Factor out a function to check for UHBR channel coding support used by a follow-up patch in the patchset. Cc: dri-devel@lists.freedesktop.org Reviewed-by: Ankit Nautiyal Reviewed-by: Manasi Navare Acked-by: Maarten Lankhorst Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display

[PATCH v2 01/11] drm/i915/dp: Fix DSC line buffer depth programming

2024-04-16 Thread Imre Deak
on the decompressed screen image. Cc: dri-devel@lists.freedesktop.org Reviewed-by: Ankit Nautiyal Reviewed-by: Manasi Navare Acked-by: Maarten Lankhorst Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++-- include/drm/display/drm_dsc.h | 3 --- 2

Re: [PATCH 01/11] drm/i915/dp: Fix DSC line buffer depth programming

2024-03-28 Thread Imre Deak
On Wed, Mar 20, 2024 at 10:11:41PM +0200, Imre Deak wrote: > Fix the calculation of the DSC line buffer depth. This is limited both > by the source's and sink's maximum line buffer depth, but the former one > was not taken into account. On all Intel platform's the source's maximum >

Re: [PATCH 01/11] drm/i915/dp: Fix DSC line buffer depth programming

2024-03-27 Thread Imre Deak
applies to > all platforms or any particular? The change will make a difference only on MTL+. > With that clarification: > > Reviewed-by: Manasi Navare Thanks. > Regards > Manasi > > On Tue, Mar 26, 2024 at 3:01 AM Nautiyal, Ankit K > wrote: > > > > &g

Re: [PATCH 09/11] drm/dp_mst: Add drm_dp_mst_aux_for_parent()

2024-03-27 Thread Imre Deak
On Wed, Mar 27, 2024 at 02:30:53PM +0530, Nautiyal, Ankit K wrote: > > On 3/21/2024 1:41 AM, Imre Deak wrote: > > Add a function to get the AUX device of the parent of an MST port, used > > by a follow-up i915 patch in the patchset. > > > > Cc: Lyude Paul > >

[PATCH 11/11] drm/i915/dp_mst: Enable HBLANK expansion quirk for UHBR rates

2024-03-20 Thread Imre Deak
her root cause, but still related to the mode's short HBLANK duration. Enable the quirk for the monitor adjusting the detection for the above differences. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_helper.c | 2 ++ drivers/gpu/drm/i915/disp

[PATCH 09/11] drm/dp_mst: Add drm_dp_mst_aux_for_parent()

2024-03-20 Thread Imre Deak
Add a function to get the AUX device of the parent of an MST port, used by a follow-up i915 patch in the patchset. Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 16 1 file changed, 16 insertions

[PATCH 08/11] drm/dp_mst: Factor out drm_dp_mst_port_is_logical()

2024-03-20 Thread Imre Deak
Factor out a function to check if an MST port is logical, used by a follow-up i915 patch in the patchset. Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +++--- include/drm/display/drm_dp_mst_helper.h | 7

[PATCH 07/11] drm/dp: Add drm_dp_uhbr_channel_coding_supported()

2024-03-20 Thread Imre Deak
Factor out a function to check for UHBR channel coding support used by a follow-up patch in the patchset. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- include/drm/display/drm_dp_helper.h | 6 ++ 2 files changed, 7

[PATCH 01/11] drm/i915/dp: Fix DSC line buffer depth programming

2024-03-20 Thread Imre Deak
on the decompressed screen image. Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++-- include/drm/display/drm_dsc.h | 3 --- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915

Re: [PATCH v4] Fix divide-by-zero regression on DP MST unplug with nouveau

2024-03-18 Thread Imre Deak
rc_core drm > nvme nvme_core mxm_wmi xhci_pci xhci_pci_renesas video wmi pinctrl_cannonlake > mac_hid > ---[ end trace ]--- > > Fix this by avoiding the divide if bpp is 0. > > Fixes: c1d6a22b7219 ("drm/dp: Add helpers to calculate the link

Re: [PATCH] drm/bridge: Select DRM_KMS_HELPER for DRM_PANEL_BRIDGE

2024-03-18 Thread Imre Deak
On Mon, Mar 18, 2024 at 12:59:29PM +0200, Jani Nikula wrote: > On Mon, 18 Mar 2024, Jani Nikula wrote: > > On Mon, 18 Mar 2024, Neil Armstrong wrote: > >> Hi, > >> > >> On Thu, 11 Jan 2024 13:38:04 +0100, Luca Weiss wrote: > >>> Since the kconfig symbol of DRM_PANEL_BRIDGE is only adding > >>>

Re: [PATCH v3] Fix divide-by-zero regression on DP MST unplug with nouveau

2024-03-14 Thread Imre Deak
m_ttm_helper gpu_sched drm_gpuvm drm_exec > i2c_algo_bit drm_buddy ttm drm_display_helper drm_kms_helper cec rc_core drm > nvme nvme_core mxm_wmi xhci_pci xhci_pci_renesas video wmi pinctrl_cannonlake > mac_hid > ---[ end trace ]--- > > Fix this by avoiding t

Re: [PATCH v2] Fix divide-by-zero regression on DP MST unplug with nouveau

2024-03-12 Thread Imre Deak
m_ttm_helper gpu_sched drm_gpuvm drm_exec > i2c_algo_bit drm_buddy ttm drm_display_helper drm_kms_helper cec rc_core drm > nvme nvme_core mxm_wmi xhci_pci xhci_pci_renesas video wmi pinctrl_cannonlake > mac_hid > ---[ end trace ]--- > > Fix this by avoiding the d

Re: [PATCH] Fix divide-by-zero on DP unplug with nouveau

2024-03-11 Thread Imre Deak
On Mon, Mar 11, 2024 at 06:09:29PM +0200, Imre Deak wrote: > On Sat, Feb 10, 2024 at 09:24:59PM +, Chris Bainbridge wrote: > > Sorry for the delay. > > > The following trace occurs when using nouveau and unplugging a DP MST > > adaptor: > > > > div

Re: [PATCH] Fix divide-by-zero on DP unplug with nouveau

2024-03-11 Thread Imre Deak
is_mst); > > + /* Avoid potential divide by zero in DIV_ROUND_UP_ULL */ The above comment is redundant. > + if (bpp_x16 == 0) > + return 0; Could you please move the check to th

Re: [PATCH] drm: Fix output poll work for drm_kms_helper_poll=n

2024-03-04 Thread Imre Deak
On Sat, Mar 02, 2024 at 12:55:48PM +0300, Dmitry Baryshkov wrote: > On Fri, 1 Mar 2024 at 18:22, Imre Deak wrote: > > > > If drm_kms_helper_poll=n the output poll work will only get scheduled > > from drm_helper_probe_single_connector_modes() to handle a delayed > > h

[PATCH] drm: Fix output poll work for drm_kms_helper_poll=n

2024-03-01 Thread Imre Deak
Signed-off-by: Imre Deak --- drivers/gpu/drm/drm_probe_helper.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c index 19ecb749704be..4d60cc810b577 100644 --- a/drivers/gpu/drm/drm_probe_helper.c +++ b/d

[PATCH] drm/dp: Fix documentation of DP tunnel functions

2024-02-28 Thread Imre Deak
parameter or struct member 'max_group_count' not described in 'drm_dp_tunnel_mgr_create' Fixes: 295654f7e554 ("drm/dp: Add support for DP tunneling") Reported-by: kernel test robot Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_tunnel.c | 7 --- 1 file changed, 4 insert

Re: ✗ Fi.CI.IGT: failure for drm/i915: Add Display Port tunnel BW allocation support (rev6)

2024-02-27 Thread Imre Deak
On Tue, Feb 27, 2024 at 02:21:29PM +, Patchwork wrote: > == Series Details == > > Series: drm/i915: Add Display Port tunnel BW allocation support (rev6) > URL : https://patchwork.freedesktop.org/series/129082/ > State : failure Thanks for the reviews,acks, patchset is pushed to

Re: [PATCH v2 12/21] drm/i915/dp: Add support for DP tunnel BW allocation

2024-02-26 Thread Imre Deak
On Fri, Feb 23, 2024 at 11:37:41PM +0200, Ville Syrjälä wrote: > On Tue, Feb 20, 2024 at 11:18:32PM +0200, Imre Deak wrote: > > +static void queue_retry_work(struct intel_atomic_state *state, > > +struct drm_dp_tunnel *tunnel, > > +

Re: [PATCH v2 02/21] drm/dp: Add support for DP tunneling

2024-02-26 Thread Imre Deak
On Fri, Feb 23, 2024 at 11:32:21PM +0200, Ville Syrjälä wrote: > On Tue, Feb 20, 2024 at 11:18:22PM +0200, Imre Deak wrote: > > +static inline void drm_dp_tunnel_ref_put(struct drm_dp_tunnel_ref > > *tunnel_ref) > > +{ > > + drm_dp_tunnel_put(tunnel_ref->tunnel,

Re: [PATCH v2 11/21] drm/i915/dp: Add way to get active pipes with syncing commits

2024-02-23 Thread Imre Deak
On Fri, Feb 23, 2024 at 11:11:45PM +0200, Ville Syrjälä wrote: > On Tue, Feb 20, 2024 at 11:18:31PM +0200, Imre Deak wrote: > > Add a way to get the active pipes through a given DP port by syncing > > against a related pending non-blocking commit. Atm > > intel_dp_get_active_

Re: [PATCH v2 02/21] drm/dp: Add support for DP tunneling

2024-02-23 Thread Imre Deak
On Fri, Feb 23, 2024 at 08:25:38AM +0200, Shankar, Uma wrote: > [...] > > diff --git a/drivers/gpu/drm/display/Kconfig > > b/drivers/gpu/drm/display/Kconfig > > index 09712b88a5b83..c0f56888c3280 100644 > > --- a/drivers/gpu/drm/display/Kconfig > > +++ b/drivers/gpu/drm/display/Kconfig > [...] >

[PATCH v2 20/21] drm/i915/dp: Read DPRX for all long HPD pulses

2024-02-20 Thread Imre Deak
by drm_mode_config::connection_mutex), do a dummy DPRX read-out in the encoder's HPD pulse handler (which is not blocked by other encoders). Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/i915

[PATCH v2 19/21] drm/i915/dp: Suspend/resume DP tunnels

2024-02-20 Thread Imre Deak
capabilities (since the BW manager requires this information, so snoops for it on AUX), so ensure this read takes place. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[PATCH v2 21/21] drm/i915/dp: Enable DP tunnel BW allocation mode

2024-02-20 Thread Imre Deak
Detect DP tunnels and enable the BW allocation mode on them. Send a hotplug notification to userspace in response to a BW change. Signed-off-by: Imre Deak --- .../drm/i915/display/intel_display_driver.c | 20 +++ drivers/gpu/drm/i915/display/intel_dp.c | 14

[PATCH v2 18/21] drm/i915/dp: Call intel_dp_sync_state() always for DDI DP encoders

2024-02-20 Thread Imre Deak
A follow-up change will need to resume DP tunnels during system resume, so call intel_dp_sync_state() always for DDI encoders, so this function can resume the tunnels for all DP connectors. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- 1

[PATCH v2 15/21] drm/i915/dp: Compute DP tunnel BW during encoder state computation

2024-02-20 Thread Imre Deak
intel_dp_tunnel_atomic_clear_stream_bw() to this patch. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar (v1) --- drivers/gpu/drm/i915/display/intel_atomic.c | 2 ++ drivers/gpu/drm/i915/display/intel_display.c | 2 ++ drivers/gpu/drm/i915/display/intel_dp.c | 16 drivers

[PATCH v2 17/21] drm/i915/dp: Handle DP tunnel IRQs

2024-02-20 Thread Imre Deak
Handle DP tunnel IRQs a sink (or rather a BW management component like the Thunderbolt Connection Manager) raises to signal the completion of a BW request by the driver, or to signal any state change related to the link BW. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c

[PATCH v2 16/21] drm/i915/dp: Allocate/free DP tunnel BW in the encoder enable/disable hooks

2024-02-20 Thread Imre Deak
Allocate and free the DP tunnel BW required by a stream while enabling/disabling the stream during a modeset. v2: - Move the allocation up from encoder hooks to intel_atomic_commit_tail(). Signed-off-by: Imre Deak Reviewed-by: Uma Shankar (v1) --- drivers/gpu/drm/i915/display/intel_ddi.c

[PATCH v2 14/21] drm/i915/dp: Account for tunnel BW limit in intel_dp_max_link_data_rate()

2024-02-20 Thread Imre Deak
Take any link BW limitation into account in intel_dp_max_link_data_rate(). Such a limitation can be due to multiple displays on (Thunderbolt) links with DP tunnels sharing the link BW. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 32

[PATCH v2 12/21] drm/i915/dp: Add support for DP tunnel BW allocation

2024-02-20 Thread Imre Deak
ndency to CONFIG_DRM_I915_DP_TUNNEL. Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/Kconfig | 14 + drivers/gpu/drm/i915/Kconfig.debug| 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm/i915/display/intel_atomic.c | 2 + d

[PATCH v2 10/21] drm/i915/dp: Add intel_dp_max_link_data_rate()

2024-02-20 Thread Imre Deak
Add intel_dp_max_link_data_rate() to get the link BW vs. the sink DPRX BW used by a follow-up patch enabling the DP tunnel BW allocation mode. The link BW can be below the DPRX BW due to a BW limitation on a link shared by multiple sinks. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar

[PATCH v2 11/21] drm/i915/dp: Add way to get active pipes with syncing commits

2024-02-20 Thread Imre Deak
Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_crtc.c | 27 +++ drivers/gpu/drm/i915/display/intel_crtc.h | 1 + drivers/gpu/drm/i915/display/intel_dp.c | 6 ++--- drivers/gpu/drm/i915/display/intel_tc.c | 7 ++ 4 files changed, 37 insertions(+), 4

[PATCH v2 13/21] drm/i915/dp: Add DP tunnel atomic state and check BW limit

2024-02-20 Thread Imre Deak
. Cc: Ville Syrjälä Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_atomic.c | 6 ++ drivers/gpu/drm/i915/display/intel_display.c | 12 drivers/gpu/drm/i915/display/intel_link_bw.c | 5 + 3 files changed, 23 insertions(+) diff --git a/drivers/gpu/drm/i915

[PATCH v2 08/21] drm/i915/dp: Factor out intel_dp_update_sink_caps()

2024-02-20 Thread Imre Deak
Factor out a function updating the sink's link rate and lane count capabilities, used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 11 --- drivers/gpu/drm/i915/display

[PATCH v2 09/21] drm/i915/dp: Factor out intel_dp_read_dprx_caps()

2024-02-20 Thread Imre Deak
Factor out a function to read the sink's DPRX capabilities used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- .../drm/i915/display/intel_dp_link_training.c | 30 +++ .../drm/i915/display

[PATCH v2 07/21] drm/i915/dp: Export intel_dp_max_common_rate/lane_count()

2024-02-20 Thread Imre Deak
Export intel_dp_max_common_rate() and intel_dp_max_lane_count() used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp.h | 2 ++ 2 files

[PATCH v2 04/21] drm/i915/dp: Add support to notify MST connectors to retry modesets

2024-02-20 Thread Imre Deak
and at the same time any MST connector with streams through the same port. A follow-up change enabling the DP tunnel Bandwidth Allocation Mode will take this into use. v2: - Send the uevent only to enabled MST connectors. (Jouni) Cc: Jouni Högander Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display

[PATCH v2 06/21] drm/i915/dp: Factor out intel_dp_config_required_rate()

2024-02-20 Thread Imre Deak
Factor out intel_dp_config_required_rate() used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 43 +++-- drivers/gpu/drm/i915/display/intel_dp.h | 1 + 2 files

[PATCH v2 05/21] drm/i915/dp: Use drm_dp_max_dprx_data_rate()

2024-02-20 Thread Imre Deak
Instead of intel_dp_max_data_rate() use the equivalent drm_dp_max_dprx_data_rate() which was copied from the former one in a previous patch. Signed-off-by: Imre Deak Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c

[PATCH v2 03/21] drm/i915: Fix display bpp limit computation during system resume

2024-02-20 Thread Imre Deak
behind by the suspend time mode save. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_display.c | 3 +-- drivers/gpu/drm/i915/display/intel_link_bw.c | 22 drivers/gpu/drm/i915/display/intel_link_bw.h | 2 +- 3 files changed, 20 insertions(+), 7 deletions

[PATCH v2 02/21] drm/dp: Add support for DP tunneling

2024-02-20 Thread Imre Deak
Signed-off-by: Imre Deak --- drivers/gpu/drm/display/Kconfig | 21 + drivers/gpu/drm/display/Makefile|2 + drivers/gpu/drm/display/drm_dp_tunnel.c | 1929 +++ include/drm/display/drm_dp.h| 60 + include/drm/display/drm_dp_tunnel.h | 248

[PATCH v2 00/21] drm/i915: Add Display Port tunnel BW allocation support

2024-02-20 Thread Imre Deak
/20240123102850.390126-1-imre.d...@intel.com Imre Deak (21): drm/dp: Add drm_dp_max_dprx_data_rate() drm/dp: Add support for DP tunneling drm/i915: Fix display bpp limit computation during system resume drm/i915/dp: Add support to notify MST connectors to retry modesets drm/i915/dp: Use

[PATCH v2 01/21] drm/dp: Add drm_dp_max_dprx_data_rate()

2024-02-20 Thread Imre Deak
of intel_dp_max_data_rate(). While at it simplify the function documentation/comments, removing parts described already by drm_dp_bw_channel_coding_efficiency(). v2: (Ville) - Remove max_link_rate_kbps. - Simplify the function documentation. Cc: Ville Syrjälä Signed-off-by: Imre Deak Reviewed-by: Uma

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:48:43PM +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > > + [...] > > > +static int group_allocated_bw(struct drm_dp_tunnel_group *gro

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:48:53PM +0200, Imre Deak wrote: > On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > > > [...] > > > +static int > > > +drm_dp_tunnel_atomic_check_group_bw(struct drm_dp_tunnel_group_state > > > *new_group_state,

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 10:02:18PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > +static char yes_no_chr(int val) > > +{ > > + return val ? 'Y' : 'N'; > > +} > > We have str_yes_no() already. Ok, wi

Re: [PATCH 14/19] drm/i915/dp: Compute DP tunel BW during encoder state computation

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 01:25:19AM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:45PM +0200, Imre Deak wrote: > > Compute the BW required through a DP tunnel on links with such tunnels > > detected and add the corresponding atomic state during a modeset. > > &g

Re: [PATCH 11/19] drm/i915/dp: Add support for DP tunnel BW allocation

2024-02-07 Thread Imre Deak
On Wed, Feb 07, 2024 at 01:08:43AM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:42PM +0200, Imre Deak wrote: > > Add support to enable the DP tunnel BW allocation mode. Follow-up > > patches will call the required helpers added here to prepare for a > > mode

Re: [PATCH 11/19] drm/i915/dp: Add support for DP tunnel BW allocation

2024-02-06 Thread Imre Deak
On Tue, Feb 06, 2024 at 12:47:22AM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:42PM +0200, Imre Deak wrote: > > +static int check_inherited_tunnel_state(struct intel_atomic_state *state, > > + struct int

Re: [PATCH 12/19] drm/i915/dp: Add DP tunnel atomic state and check BW limit

2024-02-05 Thread Imre Deak
On Mon, Feb 05, 2024 at 06:11:00PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:43PM +0200, Imre Deak wrote: > > Add the atomic state during a modeset required to enable the DP tunnel > > BW allocation mode on links where such a tunnel was detected. > > > &g

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-02-05 Thread Imre Deak
On Mon, Feb 05, 2024 at 06:13:30PM +0200, Ville Syrjälä wrote: > On Wed, Jan 31, 2024 at 08:49:16PM +0200, Imre Deak wrote: > > On Wed, Jan 31, 2024 at 06:09:04PM +0200, Ville Syrjälä wrote: > > > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > > > +

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-01-31 Thread Imre Deak
On Wed, Jan 31, 2024 at 06:09:04PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:33PM +0200, Imre Deak wrote: > > Add support for Display Port DP tunneling. For now this includes the > > support for Bandwidth Allocation Mode, leaving adding Panel Replay > &

Re: [PATCH 18/19] drm/i915/dp: Suspend/resume DP tunnels

2024-01-31 Thread Imre Deak
On Wed, Jan 31, 2024 at 06:18:22PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:49PM +0200, Imre Deak wrote: > > Suspend and resume DP tunnels during system suspend/resume, disabling > > the BW allocation mode during suspend, re-enabling it after resume. This > >

Re: [PATCH 02/19] drm/dp: Add support for DP tunneling

2024-01-31 Thread Imre Deak
On Wed, Jan 31, 2024 at 02:50:16PM +0200, Hogander, Jouni wrote: > [...] > > + > > +struct drm_dp_tunnel_group; > > + > > +struct drm_dp_tunnel { > > + struct drm_dp_tunnel_group *group; > > + > > + struct list_head node; > > + > > + struct kref kref; > > +#ifdef

Re: [PATCH 03/19] drm/i915/dp: Add support to notify MST connectors to retry modesets

2024-01-29 Thread Imre Deak
On Mon, Jan 29, 2024 at 12:36:12PM +0200, Hogander, Jouni wrote: > On Tue, 2024-01-23 at 12:28 +0200, Imre Deak wrote: > > [...] > > +void > > +intel_dp_queue_modeset_retry_for_link(struct intel_atomic_state *state, > > + st

Re: [PATCH 01/19] drm/dp: Add drm_dp_max_dprx_data_rate()

2024-01-26 Thread Imre Deak
On Fri, Jan 26, 2024 at 01:36:02PM +0200, Ville Syrjälä wrote: > On Tue, Jan 23, 2024 at 12:28:32PM +0200, Imre Deak wrote: > > Copy intel_dp_max_data_rate() to DRM core. It will be needed by a > > follow-up DP tunnel patch, checking the maximum rate the DPRX (sink) > > supp

[PATCH 19/19] drm/i915/dp: Enable DP tunnel BW allocation mode

2024-01-23 Thread Imre Deak
Detect DP tunnels and enable the BW allocation mode on them. Send a hotplug notification to userspace in response to a BW change. Signed-off-by: Imre Deak --- .../drm/i915/display/intel_display_driver.c | 20 +++ drivers/gpu/drm/i915/display/intel_dp.c | 14

[PATCH 16/19] drm/i915/dp: Handle DP tunnel IRQs

2024-01-23 Thread Imre Deak
Handle DP tunnel IRQs a sink (or rather a BW management component like the Thunderbolt Connection Manager) raises to signal the completion of a BW request by the driver, or to signal any state change related to the link BW. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 18/19] drm/i915/dp: Suspend/resume DP tunnels

2024-01-23 Thread Imre Deak
capabilities (since the BW manager requires this information, so snoops for it on AUX), so ensure this read takes place. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[PATCH 13/19] drm/i915/dp: Account for tunnel BW limit in intel_dp_max_link_data_rate()

2024-01-23 Thread Imre Deak
Take any link BW limitation into account in intel_dp_max_link_data_rate(). Such a limitation can be due to multiple displays on (Thunderbolt) links with DP tunnels sharing the link BW. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 32 + 1 file

[PATCH 12/19] drm/i915/dp: Add DP tunnel atomic state and check BW limit

2024-01-23 Thread Imre Deak
Add the atomic state during a modeset required to enable the DP tunnel BW allocation mode on links where such a tunnel was detected. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_atomic.c | 8 drivers/gpu/drm/i915/display/intel_display.c | 19

[PATCH 15/19] drm/i915/dp: Allocate/free DP tunnel BW in the encoder enable/disable hooks

2024-01-23 Thread Imre Deak
Allocate and free the DP tunnel BW required by a stream while enabling/disabling the stream during a modeset. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/g4x_dp.c| 28 drivers/gpu/drm/i915/display/intel_ddi.c | 7 ++ 2 files changed, 35 insertions

[PATCH 17/19] drm/i915/dp: Call intel_dp_sync_state() always for DDI DP encoders

2024-01-23 Thread Imre Deak
A follow-up change will need to resume DP tunnels during system resume, so call intel_dp_sync_state() always for DDI encoders, so this function can resume the tunnels for all DP connectors. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- 1 file changed, 1 insertion

[PATCH 09/19] drm/i915/dp: Add intel_dp_max_link_data_rate()

2024-01-23 Thread Imre Deak
Add intel_dp_max_link_data_rate() to get the link BW vs. the sink DPRX BW used by a follow-up patch enabling the DP tunnel BW allocation mode. The link BW can be below the DPRX BW due to a BW limitation on a link shared by multiple sinks. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915

[PATCH 07/19] drm/i915/dp: Factor out intel_dp_update_sink_caps()

2024-01-23 Thread Imre Deak
Factor out a function updating the sink's link rate and lane count capabilities, used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 11 --- drivers/gpu/drm/i915/display/intel_dp.h | 1 + 2 files

[PATCH 14/19] drm/i915/dp: Compute DP tunel BW during encoder state computation

2024-01-23 Thread Imre Deak
Compute the BW required through a DP tunnel on links with such tunnels detected and add the corresponding atomic state during a modeset. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 16 +--- drivers/gpu/drm/i915/display/intel_dp_mst.c | 13

[PATCH 10/19] drm/i915/dp: Add way to get active pipes with syncing commits

2024-01-23 Thread Imre Deak
-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 25 + drivers/gpu/drm/i915/display/intel_dp.h | 6 ++ drivers/gpu/drm/i915/display/intel_tc.c | 4 +++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 11/19] drm/i915/dp: Add support for DP tunnel BW allocation

2024-01-23 Thread Imre Deak
userspace will get a bad link notification and in response is supposed to retry the modeset. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/Kconfig | 13 + drivers/gpu/drm/i915/Kconfig.debug| 1 + drivers/gpu/drm/i915/Makefile | 3 + drivers/gpu/drm

[PATCH 04/19] drm/i915/dp: Use drm_dp_max_dprx_data_rate()

2024-01-23 Thread Imre Deak
Instead of intel_dp_max_data_rate() use the equivalent drm_dp_max_dprx_data_rate() which was copied from the former one in a previous patch. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 62

[PATCH 02/19] drm/dp: Add support for DP tunneling

2024-01-23 Thread Imre Deak
-by: Imre Deak --- drivers/gpu/drm/display/Kconfig | 17 + drivers/gpu/drm/display/Makefile|2 + drivers/gpu/drm/display/drm_dp_tunnel.c | 1715 +++ include/drm/display/drm_dp.h| 60 + include/drm/display/drm_dp_tunnel.h | 270 5 files

[PATCH 06/19] drm/i915/dp: Export intel_dp_max_common_rate/lane_count()

2024-01-23 Thread Imre Deak
Export intel_dp_max_common_rate() and intel_dp_max_lane_count() used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 4 ++-- drivers/gpu/drm/i915/display/intel_dp.h | 2 ++ 2 files changed, 4 insertions(+), 2

[PATCH 08/19] drm/i915/dp: Factor out intel_dp_read_dprx_caps()

2024-01-23 Thread Imre Deak
Factor out a function to read the sink's DPRX capabilities used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak --- .../drm/i915/display/intel_dp_link_training.c | 30 +++ .../drm/i915/display/intel_dp_link_training.h | 1 + 2 files

[PATCH 05/19] drm/i915/dp: Factor out intel_dp_config_required_rate()

2024-01-23 Thread Imre Deak
Factor out intel_dp_config_required_rate() used by a follow-up patch enabling the DP tunnel BW allocation mode. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_dp.c | 43 +++-- drivers/gpu/drm/i915/display/intel_dp.h | 1 + 2 files changed, 20 insertions

[PATCH 03/19] drm/i915/dp: Add support to notify MST connectors to retry modesets

2024-01-23 Thread Imre Deak
and at the same time any MST connector with streams through the same port. A follow-up change enabling the DP tunnel Bandwidth Allocation Mode will take this into use. Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_display.c | 5 +- drivers/gpu/drm/i915/display/intel_dp.c | 55

[PATCH 01/19] drm/dp: Add drm_dp_max_dprx_data_rate()

2024-01-23 Thread Imre Deak
of intel_dp_max_data_rate(). Signed-off-by: Imre Deak --- drivers/gpu/drm/display/drm_dp_helper.c | 58 + include/drm/display/drm_dp_helper.h | 2 + 2 files changed, 60 insertions(+) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c

[PATCH 00/19] drm/i915: Add Display Port tunnel BW allocation support

2024-01-23 Thread Imre Deak
Westerberg Cc: Ville Syrjälä Cc: Saranya Gopal Cc: Rajaram Regupathy Cc: Gil Fine Cc: Naama Shachar Cc: Pengfei Xu Imre Deak (19): drm/dp: Add drm_dp_max_dprx_data_rate() drm/dp: Add support for DP tunneling drm/i915/dp: Add support to notify MST connectors to retry modesets drm/i915

[PATCH] drm/amd/display: Fix assignment of integer to fixed point pbn_div

2024-01-05 Thread Imre Deak
ate->pbn_div.full = dfixed_const(dm_mst_get_pbn_divider(aconnector->mst_root->dc_link)); + mst_state->pbn_div = dm_mst_get_pbn_divider(aconnector->mst_root->dc_link); resulting from the following two changes: commit 191dc43935d1ece82bc6c9653463b3b1cd8198fb Author: Imre Deak Date:

Re: ✓ Fi.CI.BAT: success for drm/i915: Fix UHBR data, link M/N/TU and PBN values (rev6)

2023-11-21 Thread Imre Deak
On Tue, Nov 21, 2023 at 02:37:33AM +, Patchwork wrote: > == Series Details == > > Series: drm/i915: Fix UHBR data, link M/N/TU and PBN values (rev6) > URL : https://patchwork.freedesktop.org/series/126526/ > State : success Thanks for the reviews and acks, the patchset is pushed to

Re: [PATCH v2 01/11] drm/dp_mst: Store the MST PBN divider value in fixed point format

2023-11-21 Thread Imre Deak
On Thu, Nov 16, 2023 at 03:18:31PM +0200, Imre Deak wrote: [...] > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c > b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c > index ed784cf27d396..63024393b516e 100644 > --- a/drivers/gpu/drm/amd/displ

Re: [PATCH v2 00/11] drm/i915: Fix UHBR data,link M/N/TU and PBN values

2023-11-20 Thread Imre Deak
On Mon, Nov 20, 2023 at 02:31:34PM +0200, Jani Nikula wrote: > On Thu, 16 Nov 2023, Imre Deak wrote: > > This is v2 of [1], with the following changes: > > - Store the pbn_div value in fixed point format. > > - Fix PBN calculation in patch 8. > > - R

[PATCH v5 03/11] drm/dp_mst: Add kunit tests for drm_dp_get_vc_payload_bw()

2023-11-20 Thread Imre Deak
: - Avoid 'stack frame size x exceeds limit y in drm_test_dp_mst_calc_pbn_div()' compiler warn. (LKP) Cc: Ville Syrjälä Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Cc: kernel test robot Reviewed-by: Ville Syrjälä (v3) Signed-off-by: Imre Deak --- .../gpu/drm/tests

  1   2   3   4   5   6   >