drm/i915: Document and future-proof preemption control policy
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 7 Sep 2022 21:24:10 +0000 (14:24 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 4 Oct 2022 16:39:58 +0000 (09:39 -0700)
commit42172b551c0b9042d830e84beff5abd721cb5413
treee4235faee1c9d55fac2c2cf6e0e5ab459d469e83
parent26b15eb0940c9a52aa997f6e6f00e3a6e628f107
drm/i915: Document and future-proof preemption control policy

Intel hardware allows some preemption settings to be controlled either
by the kernel-mode driver exclusively, or placed under control of the
user-mode drivers; on Linux we always select the userspace control
option.  The various registers involved in this are not documented very
clearly; let's add some clarifying comments to help explain how this all
works and provide some history on why our Linux drivers take the
approach they do (which I believe differs from the path taken by certain
other operating systems' drivers).

While we're at it, let's also remove the graphics version 12 upper bound
on this programming.  As described, we don't have any plans to move away
from UMD control of preemption settings on future platforms, and there's
currently no reason to believe that the hardware will fundamentally
change how these registers and settings work after version 12.

Bspec: 45921, 45858, 45863
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Wayne Boyer <wayne.boyer@intel.com>
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907212410.22623-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c