]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6e2d6fa947431145be1a0d987afa5df57fc031b
tree5c6a83de9f5994b7ab41d79ca7bd220465430c0a
parentc489b2e782b9ad855038c02657f22d0a256c1168
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