diff mbox series

[2/2] drm/i915/guc: Turn on GuC/HuC auto mode

Message ID 20190712111445.21040-3-michal.wajdeczko@intel.com (mailing list archive)
State New, archived
Headers show
Series Enable HuC by default for Gen11+ | expand

Commit Message

Michal Wajdeczko July 12, 2019, 11:14 a.m. UTC
Using "enable_guc" modparam auto mode (-1) will let driver
decide on which platforms and in which configuration we want
to use GuC/HuC firmwares.

Today driver will enable HuC firmware authentication by GuC
only on Gen11+ platforms as HuC firmware is required to unlock
advanced video codecs in media driver.

Legacy platforms with GuC/HuC are not affected by this change
as for them driver still defaults to disabled(0) in auto mode.

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>
---
 drivers/gpu/drm/i915/i915_params.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joonas Lahtinen July 12, 2019, 11:25 a.m. UTC | #1
Quoting Michal Wajdeczko (2019-07-12 14:14:45)
> Using "enable_guc" modparam auto mode (-1) will let driver
> decide on which platforms and in which configuration we want
> to use GuC/HuC firmwares.
> 
> Today driver will enable HuC firmware authentication by GuC
> only on Gen11+ platforms as HuC firmware is required to unlock
> advanced video codecs in media driver.
> 
> Legacy platforms with GuC/HuC are not affected by this change
> as for them driver still defaults to disabled(0) in auto mode.
> 
> 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: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

Regards, Joonas
Rodrigo Vivi July 12, 2019, 11:29 a.m. UTC | #2
On Fri, Jul 12, 2019 at 11:14:45AM +0000, Michal Wajdeczko wrote:
> Using "enable_guc" modparam auto mode (-1) will let driver
> decide on which platforms and in which configuration we want
> to use GuC/HuC firmwares.
> 
> Today driver will enable HuC firmware authentication by GuC
> only on Gen11+ platforms as HuC firmware is required to unlock
> advanced video codecs in media driver.
> 
> Legacy platforms with GuC/HuC are not affected by this change
> as for them driver still defaults to disabled(0) in auto mode.
> 
> 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/i915_params.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h
> index d29ade3b7de6..5736c55694fe 100644
> --- a/drivers/gpu/drm/i915/i915_params.h
> +++ b/drivers/gpu/drm/i915/i915_params.h
> @@ -54,7 +54,7 @@ struct drm_printer;
>  	param(int, disable_power_well, -1) \
>  	param(int, enable_ips, 1) \
>  	param(int, invert_brightness, 0) \
> -	param(int, enable_guc, 0) \
> +	param(int, enable_guc, -1) \
>  	param(int, guc_log_level, -1) \
>  	param(char *, guc_firmware_path, NULL) \
>  	param(char *, huc_firmware_path, NULL) \
> -- 
> 2.19.2
>
Chris Wilson July 12, 2019, 1:44 p.m. UTC | #3
Quoting Rodrigo Vivi (2019-07-12 12:29:31)
> On Fri, Jul 12, 2019 at 11:14:45AM +0000, Michal Wajdeczko wrote:
> > Using "enable_guc" modparam auto mode (-1) will let driver
> > decide on which platforms and in which configuration we want
> > to use GuC/HuC firmwares.
> > 
> > Today driver will enable HuC firmware authentication by GuC
> > only on Gen11+ platforms as HuC firmware is required to unlock
> > advanced video codecs in media driver.
> > 
> > Legacy platforms with GuC/HuC are not affected by this change
> > as for them driver still defaults to disabled(0) in auto mode.
> > 
> > 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>

And pushed. Good luck!
-Chris
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h
index d29ade3b7de6..5736c55694fe 100644
--- a/drivers/gpu/drm/i915/i915_params.h
+++ b/drivers/gpu/drm/i915/i915_params.h
@@ -54,7 +54,7 @@  struct drm_printer;
 	param(int, disable_power_well, -1) \
 	param(int, enable_ips, 1) \
 	param(int, invert_brightness, 0) \
-	param(int, enable_guc, 0) \
+	param(int, enable_guc, -1) \
 	param(int, guc_log_level, -1) \
 	param(char *, guc_firmware_path, NULL) \
 	param(char *, huc_firmware_path, NULL) \