]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/hw_engine_group: Introduce xe_hw_engine_group
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 9 Aug 2024 15:51:26 +0000 (17:51 +0200)
committerMatthew Brost <matthew.brost@intel.com>
Sun, 18 Aug 2024 01:31:47 +0000 (18:31 -0700)
commitf784750c670f7c5ac572590ddad77a89b4c997bf
tree9a5c79217e2b4354ed9de812b87264ecdf5b0fcc
parent852856e3b6f679c694dd5ec41e5a3c11aa46640b
drm/xe/hw_engine_group: Introduce xe_hw_engine_group

A xe_hw_engine_group is a group of hw engines. Two hw engines belong to
the same xe_hw_engine_group if one hw engine cannot make progress while
the other is stuck on a page fault.

Typically, hw engines of the same group share some resources such as EUs,
but this really depends on the hardware configuration of the platforms.
The simple engines partitioning proposed here might be too conservative
but is intended to work for existing platforms. It can be optimized later
if more sets of independent engines are identified.

The hw engine groups are intended to be used in the context of faulting
long-running jobs submissions.

v2: Move to own files, improve error handling (Matt Brost)

v3: Fix build issue reported by CI, improve commit message (Matt Roper)

v4: Fix kernel doc

v5: Add switch case for XE_ENGINE_CLASS_OTHER

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240809155156.1955925-2-francois.dugast@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_hw_engine_group.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine_group.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine_group_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_hw_engine_types.h