From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/guc: Don't enable GuC/HuC in auto mode on pre-Gen11
Date: Fri, 12 Jul 2019 04:28:18 -0700 [thread overview]
Message-ID: <20190712112818.GC12992@intel.com> (raw)
In-Reply-To: <20190712111445.21040-2-michal.wajdeczko@intel.com>
On Fri, Jul 12, 2019 at 11:14:44AM +0000, Michal Wajdeczko wrote:
> We are about to change default setting of "enable_guc" modparam
> from 0(disabled) to -1(auto). As we only want to turn on
> GuC/HuC on Gen11+, keep it off for older gens.
>
> Note that it would be still possible to enable GuC/HuC on these
> old platforms using explicit "enable_guc=2" modparam.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/i915/intel_uc.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_uc.c b/drivers/gpu/drm/i915/intel_uc.c
> index fdf00f1ebb57..72bbcb2597fd 100644
> --- a/drivers/gpu/drm/i915/intel_uc.c
> +++ b/drivers/gpu/drm/i915/intel_uc.c
> @@ -58,12 +58,16 @@ static int __get_platform_enable_guc(struct drm_i915_private *i915)
> struct intel_uc_fw *huc_fw = &i915->huc.fw;
> int enable_guc = 0;
>
> - /* Default is to use HuC if we know GuC and HuC firmwares */
> + if (!HAS_GUC(i915))
> + return 0;
> +
> + /* We don't want to enable GuC/HuC on pre-Gen11 by default */
> + if (INTEL_GEN(i915) < 11)
> + return 0;
> +
> if (intel_uc_fw_is_selected(guc_fw) && intel_uc_fw_is_selected(huc_fw))
> enable_guc |= ENABLE_GUC_LOAD_HUC;
>
> - /* Any platform specific fine-tuning can be done here */
> -
> return enable_guc;
> }
>
> --
> 2.19.2
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-07-12 11:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-12 11:14 [PATCH 0/2] Enable HuC by default for Gen11+ Michal Wajdeczko
2019-07-12 11:14 ` [PATCH 1/2] drm/i915/guc: Don't enable GuC/HuC in auto mode on pre-Gen11 Michal Wajdeczko
2019-07-12 11:24 ` Joonas Lahtinen
2019-07-12 11:28 ` Rodrigo Vivi [this message]
2019-07-12 11:14 ` [PATCH 2/2] drm/i915/guc: Turn on GuC/HuC auto mode Michal Wajdeczko
2019-07-12 11:25 ` Joonas Lahtinen
2019-07-12 11:29 ` Rodrigo Vivi
2019-07-12 13:44 ` Chris Wilson
2019-07-12 12:48 ` ✓ Fi.CI.BAT: success for Enable HuC by default for Gen11+ Patchwork
2019-07-13 22:29 ` ✓ 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=20190712112818.GC12992@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=michal.wajdeczko@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.