]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/gpu/drm/i915/intel_lrc.c
drm/i915: drop one bit on the hw_id when using guc
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 2 Jun 2018 11:29:45 +0000 (12:29 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 4 Jun 2018 17:12:54 +0000 (18:12 +0100)
commit218b5000982b7c5e7433b86819be92f95984a1ae
tree3a5762a402305f37d9cddd87f25153cf5441ef36
parent30aacd3fe7f16bc577c612b710de8f047c2c492a
drm/i915: drop one bit on the hw_id when using guc

We currently using GuC as a proxy to the hardware. When Guc is used in
such mode, it consumes the bit 20 of the hw_id to indicate that the
workload was submitted by proxy.

So far we probably haven't seen the issue because we need to allocate
1048576+ contexts to hit this issue. Still, we should avoid allocating
the hw_id on that bit and restriction to bits [0:19] (i.e 20bits
instead of 21).

v2: Leave the max hw_id computation in i915_gem_context.c (Michel)

v3: Be consistent on if/else usage (Chris)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
BSpec: 1237
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180602112946.30803-2-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_lrc.c