Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E83F9CD343F for ; Thu, 7 May 2026 01:31:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A71CC10E23C; Thu, 7 May 2026 01:31:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dPDh4YNv"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5462E10E23C; Thu, 7 May 2026 01:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778117510; x=1809653510; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uBSpY80qr5eLftHhRMbt7IYWsnSNEJ7NQr68pVh3udE=; b=dPDh4YNvtuFxQeqTIPlAs0X/G4tGxKaAiqGoKN/v7ZoD4gyC3igT8xd9 GfvEfw558Kg0IZ2PAIY9r0O0wyWNzPZJek04gULQMwsaZvgoCKxGa8H6o wMBwL7zf475h5zPKrhGV554yWDI3FKc0zPKsYAIRcYncbjP8hi7++ddWX eZiyusqJ9rCHbAmthgGktIxhTgqnEhZwd0IGftjtmrRK1jPSrXiqLI1/0 u5NRvuh4XWZ+Y0Vy28vWYha/qKD0DnDKzNL+CMFGotWsI7fReJ/YryFm5 /G2fWaXKEgXGO1YFvhnYB8bcuAszV4N3QeQ52L878WXDqxsRNNmPg+oVK w==; X-CSE-ConnectionGUID: J6zGIEx3ToiTaOdginjawQ== X-CSE-MsgGUID: W6RQFCsnRtuf7Xr1I+0dbA== X-IronPort-AV: E=McAfee;i="6800,10657,11778"; a="78089014" X-IronPort-AV: E=Sophos;i="6.23,220,1770624000"; d="scan'208";a="78089014" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2026 18:31:50 -0700 X-CSE-ConnectionGUID: 1eYtUcZBSmGVyZCG6K5SEA== X-CSE-MsgGUID: JVwkR68BTmqx/By3OaKWDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,220,1770624000"; d="scan'208";a="266692725" Received: from dev-417.igk.intel.com ([10.91.214.181]) by orviesa002.jf.intel.com with ESMTP; 06 May 2026 18:31:49 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: jani.nikula@intel.com, suraj.kandpal@intel.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH v3 01/31] drm/i915/buf_trans: align xe3plpd with VS/PE-O layout Date: Thu, 7 May 2026 03:31:07 +0200 Message-ID: <20260507013137.527510-2-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260507013137.527510-1-michal.grzelak@intel.com> References: <20260507013137.527510-1-michal.grzelak@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Align struct xe3plpd_lt_phy_buf_trans to match layout found in Vswing / Preemphasis Override tables. Move txswing & txswing_level to the end of the struct. Keep order between txswing & txswing_level columns in xe3plpd_lt_* tables. Move post_cursor from third field to second. v2->v3 - fix rebase's conflict Signed-off-by: MichaƂ Grzelak --- .../drm/i915/display/intel_ddi_buf_trans.c | 72 +++++++++---------- .../drm/i915/display/intel_ddi_buf_trans.h | 6 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c index 4cd1e4d76c7af..908577b04a14e 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c +++ b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.c @@ -1118,50 +1118,50 @@ static const struct intel_ddi_buf_trans mtl_c20_trans_uhbr = { /* DP1.4 */ static const union intel_ddi_buf_trans_entry _xe3plpd_lt_trans_dp14[] = { - { .lt = { 1, 0, 0, 21, 0 } }, - { .lt = { 1, 1, 0, 24, 3 } }, - { .lt = { 1, 2, 0, 28, 7 } }, - { .lt = { 0, 3, 0, 35, 13 } }, - { .lt = { 1, 1, 0, 27, 0 } }, - { .lt = { 1, 2, 0, 31, 5 } }, - { .lt = { 0, 3, 0, 37, 11 } }, - { .lt = { 1, 2, 0, 35, 0 } }, - { .lt = { 0, 3, 0, 41, 7 } }, - { .lt = { 0, 3, 0, 48, 0 } }, + { .lt = { 21, 0, 0, 1, 0 } }, + { .lt = { 24, 0, 3, 1, 1 } }, + { .lt = { 28, 0, 7, 1, 2 } }, + { .lt = { 35, 0, 13, 0, 3 } }, + { .lt = { 27, 0, 0, 1, 1 } }, + { .lt = { 31, 0, 5, 1, 2 } }, + { .lt = { 37, 0, 11, 0, 3 } }, + { .lt = { 35, 0, 0, 1, 2 } }, + { .lt = { 41, 0, 7, 0, 3 } }, + { .lt = { 48, 0, 0, 0, 3 } }, }; /* DP2.1 */ static const union intel_ddi_buf_trans_entry _xe3plpd_lt_trans_uhbr[] = { - { .lt = { 0, 0, 0, 48, 0 } }, - { .lt = { 0, 0, 0, 43, 5 } }, - { .lt = { 0, 0, 0, 40, 8 } }, - { .lt = { 0, 0, 0, 37, 11 } }, - { .lt = { 0, 0, 0, 33, 15 } }, - { .lt = { 0, 0, 2, 46, 0 } }, - { .lt = { 0, 0, 2, 42, 4 } }, - { .lt = { 0, 0, 2, 38, 8 } }, - { .lt = { 0, 0, 2, 35, 11 } }, - { .lt = { 0, 0, 2, 33, 13 } }, - { .lt = { 0, 0, 4, 44, 0 } }, - { .lt = { 0, 0, 4, 40, 4 } }, - { .lt = { 0, 0, 4, 37, 7 } }, - { .lt = { 0, 0, 4, 33, 11 } }, - { .lt = { 0, 0, 8, 40, 0 } }, - { .lt = { 1, 0, 2, 26, 2 } }, + { .lt = { 48, 0, 0, 0, 0 } }, + { .lt = { 43, 0, 5, 0, 0 } }, + { .lt = { 40, 0, 8, 0, 0 } }, + { .lt = { 37, 0, 11, 0, 0 } }, + { .lt = { 33, 0, 15, 0, 0 } }, + { .lt = { 46, 2, 0, 0, 0 } }, + { .lt = { 42, 2, 4, 0, 0 } }, + { .lt = { 38, 2, 8, 0, 0 } }, + { .lt = { 35, 2, 11, 0, 0 } }, + { .lt = { 33, 2, 13, 0, 0 } }, + { .lt = { 44, 4, 0, 0, 0 } }, + { .lt = { 40, 4, 4, 0, 0 } }, + { .lt = { 37, 4, 7, 0, 0 } }, + { .lt = { 33, 4, 11, 0, 0 } }, + { .lt = { 40, 8, 0, 0, 0 } }, + { .lt = { 26, 2, 2, 1, 0 } }, }; /* eDp */ static const union intel_ddi_buf_trans_entry _xe3plpd_lt_trans_edp[] = { - { .lt = { 1, 0, 0, 12, 0 } }, - { .lt = { 1, 1, 0, 13, 1 } }, - { .lt = { 1, 2, 0, 15, 3 } }, - { .lt = { 1, 3, 0, 19, 7 } }, - { .lt = { 1, 1, 0, 14, 0 } }, - { .lt = { 1, 2, 0, 16, 2 } }, - { .lt = { 1, 3, 0, 21, 5 } }, - { .lt = { 1, 2, 0, 18, 0 } }, - { .lt = { 1, 3, 0, 22, 4 } }, - { .lt = { 1, 3, 0, 26, 0 } }, + { .lt = { 12, 0, 0, 1, 0 } }, + { .lt = { 13, 0, 1, 1, 1 } }, + { .lt = { 15, 0, 3, 1, 2 } }, + { .lt = { 19, 0, 7, 1, 3 } }, + { .lt = { 14, 0, 0, 1, 1 } }, + { .lt = { 16, 0, 2, 1, 2 } }, + { .lt = { 21, 0, 5, 1, 3 } }, + { .lt = { 18, 0, 0, 1, 2 } }, + { .lt = { 22, 0, 4, 1, 3 } }, + { .lt = { 26, 0, 0, 1, 3 } }, }; static const struct intel_ddi_buf_trans xe3plpd_lt_trans_dp14 = { diff --git a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.h b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.h index 9698697f39177..ac9acdec6d298 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.h +++ b/drivers/gpu/drm/i915/display/intel_ddi_buf_trans.h @@ -51,11 +51,11 @@ struct dg2_snps_phy_buf_trans { }; struct xe3plpd_lt_phy_buf_trans { - u8 txswing; - u8 txswing_level; - u8 pre_cursor; u8 main_cursor; + u8 pre_cursor; u8 post_cursor; + u8 txswing; + u8 txswing_level; }; union intel_ddi_buf_trans_entry { -- 2.45.2