]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/xe3p_lpm: Add special check in Media GT for Main GAMCTRL
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Mon, 20 Oct 2025 02:05:47 +0000 (19:05 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 21 Oct 2025 00:21:11 +0000 (17:21 -0700)
commite681ddca301931dbea99fcb4bc5a5dacdb7fad06
tree4e30249a260a40b37679a547ff4c2175567eefc4
parent94edd6518613072c1bdc1ee69b63373d91cfca62
drm/xe/xe3p_lpm: Add special check in Media GT for Main GAMCTRL

For Xe3p arch some subunits of an IP may be different. The GMD_ID
register returns the Xe3p arch and dedicates the reserved field to mark
possible subunit differences. Generally this is an under-the-hood
implementation detail that drivers don't need to worry about, but the
new Main_GAMCTRL may be enabled or not depending on those.

Those reserved bits are described for Xe3p as: "If Zero, No special case
to be handled. If Non-Zero, special case to be handled by Software
agent.". That special case is defined per Arch. So if media version is
35, also check the additional reserved bits. To avoid confusion with the
usual meaning of "reserved", define them as GMD_ID_SUBIP_FLAG_MASK.

Bspec: 74201
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20251019-xe3p-gamctrl-v1-2-ad66d3c1908f@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_guc.c