]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Mark up sw-fence notify function
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Mar 2020 22:17:38 +0000 (22:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Mar 2020 22:23:47 +0000 (22:23 +0000)
commit6c345a3c0d073bbb6eb37a461583afe32b27bdcd
treeb0986e7efaa7369a2885c655bf5f1a18d1f05d47
parent9490b3569517cf313c4df54982a3dc93025530be
drm/i915/gem: Mark up sw-fence notify function

The sw-fence notify function requires to be at least 4-byte aligned so
that we can use the low bits in the function pointer for internal fence
flags. Make it so.

References: https://gitlab.freedesktop.org/drm/intel/issues/1433
Fixes: cffd25855556 ("drm/i915/gem: Don't leak non-persistent requests on changing engines")
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/20200311221739.30375-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c