]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unlock the shared hwsp_gtt object after pinning
authorThomas Hellström <thomas.hellstrom@intel.com>
Thu, 3 Sep 2020 13:07:17 +0000 (15:07 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 7 Sep 2020 12:08:11 +0000 (15:08 +0300)
commit25a1ac4e4c324a25d371bab365d978c0eb49f98f
treef61dab3d59c1621f6fb8b0ff2911709637c3d9fb
parented59c67ff5879487da5d38de9de3a2c45d84b257
drm/i915: Unlock the shared hwsp_gtt object after pinning

The hwsp_gtt object is used for sub-allocation and could therefore
be shared by many contexts causing unnecessary contention during
concurrent context pinning.
However since we're currently locking it only for pinning, it remains
resident until we unpin it, and therefore it's safe to drop the
lock early, allowing for concurrent thread access.

Signed-off-by: Thomas Hellström <thomas.hellstrom@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_context.c