From: "Tolakanahalli Pradeep, Madhumitha" <madhumitha.tolakanahalli.pradeep@intel.com>
To: "Srivatsa, Anusha" <anusha.srivatsa@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915/dg2: Load DMC
Date: Wed, 23 Mar 2022 19:24:38 +0000 [thread overview]
Message-ID: <e51b36338ca95a1c5fa7e1e9518c3e69f489ec9a.camel@intel.com> (raw)
In-Reply-To: <20220323190124.2343794-1-anusha.srivatsa@intel.com>
On Wed, 2022-03-23 at 12:01 -0700, Anusha Srivatsa wrote:
> Add Support to load dmc v2.06
>
> Cc: Madhumitha Tolakanahalli Pradeep
> <madhumitha.tolakanahalli.pradeep@intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dmc.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c
> b/drivers/gpu/drm/i915/display/intel_dmc.c
> index a719c0f379ba..462111a15304 100644
> --- a/drivers/gpu/drm/i915/display/intel_dmc.c
> +++ b/drivers/gpu/drm/i915/display/intel_dmc.c
> @@ -47,6 +47,10 @@
>
> #define DISPLAY_VER12_DMC_MAX_FW_SIZE ICL_DMC_MAX_FW_SIZE
>
> +#define DG2_DMC_PATH DMC_PATH(dg1, 2, 06)
^^ dg2
> +#define DG2_DMC_VERSION_REQUIRED DMC_VERSION(2, 6)
> +MODULE_FIRMWARE(DG2_DMC_PATH);
> +
> #define ADLP_DMC_PATH DMC_PATH(adlp, 2, 16)
> #define ADLP_DMC_VERSION_REQUIRED DMC_VERSION(2, 16)
> MODULE_FIRMWARE(ADLP_DMC_PATH);
> @@ -681,7 +685,11 @@ void intel_dmc_ucode_init(struct drm_i915_private
> *dev_priv)
> */
> intel_dmc_runtime_pm_get(dev_priv);
>
> - if (IS_ALDERLAKE_P(dev_priv)) {
> + if (IS_DG2(dev_priv)) {
> + dmc->fw_path = DG2_DMC_PATH;
> + dmc->required_version = DG2_DMC_VERSION_REQUIRED;
> + dmc->max_fw_size = DISPLAY_VER13_DMC_MAX_FW_SIZE;
> + } else if (IS_ALDERLAKE_P(dev_priv)) {
> dmc->fw_path = ADLP_DMC_PATH;
> dmc->required_version = ADLP_DMC_VERSION_REQUIRED;
> dmc->max_fw_size = DISPLAY_VER13_DMC_MAX_FW_SIZE;
Teeny error in DMC_PATH, the rest of the patch looks good.
- Madhumitha
next prev parent reply other threads:[~2022-03-23 19:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 19:01 [Intel-gfx] [PATCH 1/2] drm/i915/dg2: Load DMC Anusha Srivatsa
2022-03-23 19:01 ` [Intel-gfx] [PATCH 2/2] drm/i915/dg2: DC states for DG2 Anusha Srivatsa
2022-03-23 21:16 ` Tolakanahalli Pradeep, Madhumitha
2022-03-23 19:24 ` Tolakanahalli Pradeep, Madhumitha [this message]
2022-03-23 20:27 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [1/2] drm/i915/dg2: Load DMC Patchwork
2022-03-23 20:54 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-03-23 22:49 ` [Intel-gfx] ✓ Fi.CI.IGT: " 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=e51b36338ca95a1c5fa7e1e9518c3e69f489ec9a.camel@intel.com \
--to=madhumitha.tolakanahalli.pradeep@intel.com \
--cc=anusha.srivatsa@intel.com \
--cc=intel-gfx@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