OSDN Git Service

drm/i915/guc: Handle save/restore of MCR registers explicitly
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 14 Oct 2022 23:02:35 +0000 (16:02 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 17 Oct 2022 17:16:05 +0000 (10:16 -0700)
commitcf35f6afb92643633f4ecbb386ab8a572cca0386
treeb6247ccc620646af9f7e4972d3994863b41df2cc
parent46c507f03a46108e5a93acc06a060601ac9b83d6
drm/i915/guc: Handle save/restore of MCR registers explicitly

MCR registers can be placed on the GuC's save/restore list, but at the
moment they are always handled in a multicast manner (i.e., the GuC
reads one instance to save the value and then does a multicast write to
restore that single value to all instances).  In the future the GuC will
probably give us an alternate interface to do unicast per-instance
save/restore operations, so we should be very clear about which
registers on the list are MCR registers (and in the future which
save/restore behavior we want for them).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014230239.1023689-11-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c