drm/xe: Remove gen-based mmio offsets from hw engine init
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 24 Feb 2023 19:08:14 +0000 (11:08 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:20 +0000 (18:29 -0500)
commit74f800c7a982db1d10e2c0c0a0164ee1db878652
tree1db817fcc8a17acc8ab722d953a896c7d91b29ec
parent353dfaaa31648c4e6f7f3fee5001f047ebf3ed67
drm/xe: Remove gen-based mmio offsets from hw engine init

During early generations of Intel GPUs, hardware engines would sometimes
move to new MMIO offsets from one platform/generation to the next.
These days engines the hardware teams put more effort into ensuring that
engines stay at consistent locations; even major design changes (like
the introduction of standalone media) keep the MMIO locations of the
engines constant.

Since all platforms supported by the Xe driver are new enough to have a
single MMIO offset for each engine (and since our crystal ball says that
these offsets are very unlikely to change again in the foreseeable
future), we can simplify the driver's engine definitions and remove the
gen-based MMIO bases.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_hw_engine.c