From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Gustavo Sousa <gustavo.sousa@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>,
intel-gfx@lists.freedesktop.org,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915/dmc: Use unversioned path for ADLP
Date: Mon, 23 Jan 2023 15:50:56 -0500 [thread overview]
Message-ID: <Y87zMD25KJalZQR8@intel.com> (raw)
In-Reply-To: <20230123182021.31239-3-gustavo.sousa@intel.com>
On Mon, Jan 23, 2023 at 03:20:21PM -0300, Gustavo Sousa wrote:
> The new DMC release for ADLP (v2.18) in linux-firmware adopted the new
> convention of using unversioned filenames, so update the driver code for
> that new release. Keep the latest versioned path as fallback so we do
> not cause regressions.
>
> Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dmc.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dmc.c b/drivers/gpu/drm/i915/display/intel_dmc.c
> index 2464796c769d..257aa2b7cf20 100644
> --- a/drivers/gpu/drm/i915/display/intel_dmc.c
> +++ b/drivers/gpu/drm/i915/display/intel_dmc.c
> @@ -63,8 +63,10 @@
> #define DG2_DMC_PATH DMC_LEGACY_PATH(dg2, 2, 08)
> MODULE_FIRMWARE(DG2_DMC_PATH);
>
> -#define ADLP_DMC_PATH DMC_LEGACY_PATH(adlp, 2, 16)
> +#define ADLP_DMC_PATH DMC_PATH(adlp)
> +#define ADLP_DMC_FALLBACK_PATH DMC_LEGACY_PATH(adlp, 2, 16)
> MODULE_FIRMWARE(ADLP_DMC_PATH);
> +MODULE_FIRMWARE(ADLP_DMC_FALLBACK_PATH);
I'm glad this works without warning on the intrd/intramfs generators.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>
> #define ADLS_DMC_PATH DMC_LEGACY_PATH(adls, 2, 01)
> MODULE_FIRMWARE(ADLS_DMC_PATH);
> @@ -855,7 +857,9 @@ static void intel_dmc_runtime_pm_put(struct drm_i915_private *dev_priv)
>
> static const char *dmc_fallback_path(struct drm_i915_private *i915)
> {
> - /* No fallback paths for now. */
> + if (IS_ALDERLAKE_P(i915))
> + return ADLP_DMC_FALLBACK_PATH;
> +
> return NULL;
> }
>
> --
> 2.39.0
>
next prev parent reply other threads:[~2023-01-23 20:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 18:20 [Intel-gfx] [PATCH 0/2] Use unversioned blob path for ADLP DMC Gustavo Sousa
2023-01-23 18:20 ` [Intel-gfx] [PATCH 1/2] drm/i915/dmc: Prepare to use unversioned paths Gustavo Sousa
2023-01-23 20:50 ` Rodrigo Vivi
2023-01-23 18:20 ` [Intel-gfx] [PATCH 2/2] drm/i915/dmc: Use unversioned path for ADLP Gustavo Sousa
2023-01-23 20:50 ` Rodrigo Vivi [this message]
2023-01-23 20:19 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Use unversioned blob path for ADLP DMC Patchwork
2023-01-24 16:39 ` Gustavo Sousa
2023-01-24 19:47 ` Rodrigo Vivi
2023-01-24 4:58 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-01-27 19:10 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for Use unversioned blob path for ADLP DMC (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=Y87zMD25KJalZQR8@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=gustavo.sousa@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=lucas.demarchi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox