drm/i915: Restrict L3 remapping sysfs interface to dwords
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 10:59:58 +0000 (11:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 13:24:32 +0000 (14:24 +0100)
commit261ea7e29ed1e6a172d4ba829f4d5e3706ab29e4
tree46eab3eb2a6589ef8d90cc07fd641a271288ef5e
parentf6ec9483091f8e67adab0311a4e2f90aab523310
drm/i915: Restrict L3 remapping sysfs interface to dwords

The L3 cache remapping is stored as u32 elements, and we should ensure
that the user only supplies complete slice information(u32).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004105958.1741-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_sysfs.c