All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Sousa <gustavo.sousa@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
	Matt Roper <matthew.d.roper@intel.com>,
	Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>,
	gustavo.sousa@intel.com
Subject: [PATCH v2 7/8] drm/i915/xe2lpd: Load DMC
Date: Tue, 12 Mar 2024 13:36:38 -0300	[thread overview]
Message-ID: <20240312163639.172321-8-gustavo.sousa@intel.com> (raw)
In-Reply-To: <20240312163639.172321-1-gustavo.sousa@intel.com>

From: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>

Load DMC for Xe2LPD. The value 0x8000 is the maximum payload size for
any Xe2LPD DMC firmware.

v2:
  - s/XE2LPD_MAX_FW_SIZE/XE2LPD_DMC_MAX_FW_SIZE/. (Lucas)

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dmc.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c
index 835781624482..3fa851b5c7a6 100644
--- a/drivers/gpu/drm/i915/display/intel_dmc.c
+++ b/drivers/gpu/drm/i915/display/intel_dmc.c
@@ -89,10 +89,14 @@ static struct intel_dmc *i915_to_dmc(struct drm_i915_private *i915)
 	__stringify(major) "_"			\
 	__stringify(minor) ".bin"
 
+#define XE2LPD_DMC_MAX_FW_SIZE		0x8000
 #define XELPDP_DMC_MAX_FW_SIZE		0x7000
 #define DISPLAY_VER13_DMC_MAX_FW_SIZE	0x20000
 #define DISPLAY_VER12_DMC_MAX_FW_SIZE	ICL_DMC_MAX_FW_SIZE
 
+#define XE2LPD_DMC_PATH			DMC_PATH(xe2lpd)
+MODULE_FIRMWARE(XE2LPD_DMC_PATH);
+
 #define MTL_DMC_PATH			DMC_PATH(mtl)
 MODULE_FIRMWARE(MTL_DMC_PATH);
 
@@ -987,7 +991,10 @@ void intel_dmc_init(struct drm_i915_private *i915)
 
 	INIT_WORK(&dmc->work, dmc_load_work_fn);
 
-	if (DISPLAY_VER_FULL(i915) == IP_VER(14, 0)) {
+	if (DISPLAY_VER_FULL(i915) == IP_VER(20, 0)) {
+		dmc->fw_path = XE2LPD_DMC_PATH;
+		dmc->max_fw_size = XE2LPD_DMC_MAX_FW_SIZE;
+	} else if (DISPLAY_VER_FULL(i915) == IP_VER(14, 0)) {
 		dmc->fw_path = MTL_DMC_PATH;
 		dmc->max_fw_size = XELPDP_DMC_MAX_FW_SIZE;
 	} else if (IS_DG2(i915)) {
-- 
2.44.0


  parent reply	other threads:[~2024-03-12 16:37 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 16:36 [PATCH v2 0/8] Enable LNL display Gustavo Sousa
2024-03-12 16:36 ` [PATCH v2 1/8] drm/i915/cdclk: Rename lnl_cdclk_table to xe2lpd_cdclk_table Gustavo Sousa
2024-03-12 16:36 ` [PATCH v2 2/8] drm/i915/cdclk: Add and use mdclk_source_is_cdclk_pll() Gustavo Sousa
2024-03-12 16:49   ` Matt Roper
2024-03-13 13:08     ` Lucas De Marchi
2024-03-12 16:36 ` [PATCH v2 3/8] drm/i915/cdclk: Only compute squash waveform when necessary Gustavo Sousa
2024-03-12 16:36 ` [PATCH v2 4/8] drm/i915: Extract intel_dbuf_mdclk_cdclk_ratio_update() Gustavo Sousa
2024-03-12 16:36 ` [PATCH v2 5/8] drm/i915: Add mdclk_cdclk_ratio to intel_dbuf_state Gustavo Sousa
2024-03-12 16:45   ` Gustavo Sousa
2024-03-12 16:50     ` Matt Roper
2024-03-12 16:36 ` [PATCH v2 6/8] drm/i915/xe2lpd: Support MDCLK:CDCLK ratio changes Gustavo Sousa
2024-03-12 16:36 ` Gustavo Sousa [this message]
2024-03-12 16:36 ` [PATCH v2 8/8] drm/xe/lnl: Enable display support Gustavo Sousa
2024-03-12 17:49 ` ✓ CI.Patch_applied: success for Enable LNL display (rev2) Patchwork
2024-03-12 17:50 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-12 17:51 ` ✓ CI.KUnit: success " Patchwork
2024-03-12 18:01 ` ✓ CI.Build: " Patchwork
2024-03-12 18:04 ` ✓ CI.Hooks: " Patchwork
2024-03-12 18:05 ` ✗ CI.checksparse: warning " Patchwork
2024-03-12 18:25 ` ✓ CI.BAT: success " Patchwork
2024-03-12 19:21 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-03-12 19:21 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-03-12 19:30 ` ✓ Fi.CI.BAT: success " Patchwork
2024-03-13  1:30 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-03-13 12:16   ` Gustavo Sousa
2024-03-13 13:07 ` [PATCH v2 0/8] Enable LNL display Lucas De Marchi
2024-03-14 18:55 ` ✓ Fi.CI.IGT: success for Enable LNL display (rev2) Patchwork

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=20240312163639.172321-8-gustavo.sousa@intel.com \
    --to=gustavo.sousa@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=stanislav.lisovskiy@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.