From: Thomas Zimmermann <tzimmermann@suse.de>
To: Maarten Lankhorst <dev@lankhorst.se>, dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/client: Handle tiled displays better
Date: Mon, 20 Jan 2025 12:40:56 +0100 [thread overview]
Message-ID: <68c9501f-c75a-409e-8295-b164bc081bff@suse.de> (raw)
In-Reply-To: <20250116142825.3933-2-dev@lankhorst.se>
Am 16.01.25 um 15:28 schrieb Maarten Lankhorst:
> When testing on my tiled display, initially the tiled display is
> detected correctly:
> [90376.523692] xe 0000:67:00.0: [drm:drm_client_firmware_config.isra.0 [drm]] fallback: Not all outputs enabled
> [90376.523713] xe 0000:67:00.0: [drm:drm_client_firmware_config.isra.0 [drm]] Enabled: 0, detected: 2
> ...
> [90376.523967] xe 0000:67:00.0: [drm:drm_client_modeset_probe [drm]] [CRTC:82:pipe A] desired mode 1920x2160 set (1920,0)
> [90376.524020] xe 0000:67:00.0: [drm:drm_client_modeset_probe [drm]] [CRTC:134:pipe B] desired mode 1920x2160 set (0,0)
>
> But then, when modes have been set:
> [90379.729525] xe 0000:67:00.0: [drm:drm_client_firmware_config.isra.0 [drm]] [CONNECTOR:287:DP-4] on [CRTC:82:pipe A]: 1920x2160
> [90379.729640] xe 0000:67:00.0: [drm:drm_client_firmware_config.isra.0 [drm]] [CONNECTOR:289:DP-5] on [CRTC:134:pipe B]: 1920x2160
> ...
> [90379.730036] xe 0000:67:00.0: [drm:drm_client_modeset_probe [drm]] [CRTC:82:pipe A] desired mode 1920x2160 set (0,0)
> [90379.730124] xe 0000:67:00.0: [drm:drm_client_modeset_probe [drm]] [CRTC:134:pipe B] desired mode 1920x2160 set (0,0)
>
> Call drm_client_get_tile_offsets() in drm_client_firmware_config() as
> well, to ensure that the offset is set correctly.
>
> This has to be done as a separate pass, as the tile order may not be
> equal to the drm connector order.
>
> Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
> ---
> drivers/gpu/drm/drm_client_modeset.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_client_modeset.c
> index 251f943137179..aca442c25209a 100644
> --- a/drivers/gpu/drm/drm_client_modeset.c
> +++ b/drivers/gpu/drm/drm_client_modeset.c
> @@ -743,6 +743,15 @@ static bool drm_client_firmware_config(struct drm_client_dev *client,
> if ((conn_configured & mask) != mask && conn_configured != conn_seq)
> goto retry;
>
> + for (i = 0; i < count; i++) {
> + struct drm_connector *connector = connectors[i];
> +
> + if (connector->has_tile)
> + drm_client_get_tile_offsets(dev, connectors, connector_count,
> + modes, offsets, i,
> + connector->tile_h_loc, connector->tile_v_loc);
> + }
> +
> /*
> * If the BIOS didn't enable everything it could, fall back to have the
> * same user experiencing of lighting up as much as possible like the
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
next prev parent reply other threads:[~2025-01-20 11:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 14:28 [PATCH 1/2] drm/modeset: Handle tiled displays in pan_display_atomic Maarten Lankhorst
2025-01-16 14:28 ` [PATCH 2/2] drm/client: Handle tiled displays better Maarten Lankhorst
2025-01-20 11:40 ` Thomas Zimmermann [this message]
2025-01-16 20:30 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/modeset: Handle tiled displays in pan_display_atomic Patchwork
2025-01-16 20:31 ` ✓ CI.checkpatch: " Patchwork
2025-01-16 20:32 ` ✓ CI.KUnit: " Patchwork
2025-01-16 20:50 ` ✓ CI.Build: " Patchwork
2025-01-16 20:52 ` ✓ CI.Hooks: " Patchwork
2025-01-16 20:54 ` ✓ CI.checksparse: " Patchwork
2025-01-16 21:19 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-17 1:34 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-20 11:39 ` [PATCH 1/2] " Thomas Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68c9501f-c75a-409e-8295-b164bc081bff@suse.de \
--to=tzimmermann@suse.de \
--cc=dev@lankhorst.se \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox