]> Git Repo - linux.git/commit
drm/i915/guc: Combine enable_guc_loading|submission modparams
authorMichal Wajdeczko <[email protected]>
Wed, 6 Dec 2017 13:53:15 +0000 (13:53 +0000)
committerChris Wilson <[email protected]>
Wed, 6 Dec 2017 14:41:52 +0000 (14:41 +0000)
commit121981fafe699d9f398a3c717912ef4eae6719b1
treee52b762e77020e32aadbe46973544f0e50af437b
parent8620eb1dbbf287694ee8e0cd280fadedb1f91012
drm/i915/guc: Combine enable_guc_loading|submission modparams

We currently have two module parameters that control GuC:
"enable_guc_loading" and "enable_guc_submission". Whenever
we need submission=1, we also need loading=1. We also need
loading=1 when we want to want to load and verify the HuC.

Lets combine above module parameters into one "enable_guc"
modparam. New supported bit values are:

 0=disable GuC (no GuC submission, no HuC)
 1=enable GuC submission
 2=enable HuC load

Special value "-1" can be used to let driver decide what
option should be enabled for given platform based on
hardware/firmware availability or preference.

Explicit enabling any of the GuC features makes GuC load
a required step, fallback to non-GuC mode will not be
supported.

v2: Don't use -EIO
v3: define modparam bits (Chris)
v4: rely on implicit cast (Chris)

Signed-off-by: Michal Wajdeczko <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Sagar Arun Kamble <[email protected]>
Cc: Sujaritha Sundaresan <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h
drivers/gpu/drm/i915/intel_uc.c
drivers/gpu/drm/i915/intel_uc.h
This page took 0.053849 seconds and 4 git commands to generate.