]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/perf: use the lrc_desc to get the ctx hw id in gen8-10
authorMichel Thierry <michel.thierry@intel.com>
Mon, 4 Jun 2018 23:32:49 +0000 (16:32 -0700)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Jun 2018 10:58:13 +0000 (11:58 +0100)
commit9904b1560e4a2e7c956004f9843939e23d84cd7b
treee77df8daa7df3962789c74b2b8d5dc9e6785ee01
parent746c8f143afad7aaa66c484485fc39888d437a3f
drm/i915/perf: use the lrc_desc to get the ctx hw id in gen8-10

The upper 32 bits of the lrc_desc (bits 52-32 to be precise) are the
context hw id in GEN8-10, so use them and have one less thing to
maintain in the unlikely case we change the descriptor sw fields.

v2: If we use the lrc_desc, we must apply the ctx_id_mask too (Lionel)

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180604233250.609-1-michel.thierry@intel.com
drivers/gpu/drm/i915/i915_perf.c