drm/i915/uc: Add function to define defaults for GuC/HuC enable
authorJohn Harrison <John.C.Harrison@Intel.com>
Wed, 13 Jan 2021 22:07:24 +0000 (14:07 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jan 2021 10:30:13 +0000 (10:30 +0000)
commit1e58215f06d6dae93e2c312d07ca433b7e5ce80d
tree5c6a83de9f5994b7ab41d79ca7bd220465430c0a
parente7004ea4f5f528f5a5018f0b70cab36d25315498
drm/i915/uc: Add function to define defaults for GuC/HuC enable

There is a module parameter for controlling what GuC/HuC features are
enabled. Setting to -1 means 'use the default'. However, the default
was not well defined, out of date and needs to be different across
platforms.

The default is now to disable both GuC and HuC on legacy platforms
where legacy means TGL/RKL and anything prior to Gen12. For new
platforms, the default is to load HuC but not enable GuC submission
as that has not landed yet.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210113220724.2484897-1-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/i915_params.h