]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915/gt: stop ignoring read with wa_masked_field_set
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 9 Dec 2020 04:52:44 +0000 (20:52 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Dec 2020 11:37:01 +0000 (11:37 +0000)
commit61b3b0d1009986895be57b760ca4ebda43a212e2
tree6181d94ba082458d36b602d7662499ae20ac9204
parente9f4829f95ec09eb0780c8bfc989d99259511cb9
drm/i915/gt: stop ignoring read with wa_masked_field_set

When using masked registers, there is nothing to clear since a masked
register has the mask in the upper 16b: we can just write to the
location we want and use the mask to control what bits we are writing
to.

However that doesn't mean we don't want to read back the register and
check the value actually matched what we wanted to write, i.e. that
the WA stick. That should be an explicit opt-out for registers that are
either write-only or that are affected by hardware misbehavior.

Moreover both wa_masked_en() and wa_masked_dis() check the WA stick, so
skipping the check just because the field is more than 1 bit is
surprising and error-prone.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201209045246.2905675-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c