]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: use entry_dump callbacks for xe2+ PAT dumps
authorXin Wang <x.wang@intel.com>
Fri, 30 Jan 2026 17:53:49 +0000 (17:53 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 2 Feb 2026 18:03:43 +0000 (10:03 -0800)
commit568d9d0d83f5b55144c4486fefe26bd132a66ea1
tree4ef21a04a831b370241851745f512041df00a9b2
parentf89dbe14a0c8854b7aaf960dd842c10698b3ff19
drm/xe: use entry_dump callbacks for xe2+ PAT dumps

Move xe2+ PAT entry printing into the entry_dump op so platform
specific logic stays localized, simplifying future maintenance.

v2:
 - Do not null xe->pat.ops for VFs.
 - Skip PAT init and dump on VFs (-EOPNOTSUPP), avoiding NULL ops use.

v3:
 - fixed typo

v4: (Matt)
 - Switch xe2_dump() to use the new ops->entry_dump() vfunc.
 - Remove xe3p_xpc_dump() and reuse the common xe2_dump() for Xe3p XPC.
 - This also fixes Xe3p_HPM media PAT dumping by using the proper
non-MCR access for the PAT register range (bspec 76445).

Cc: Matt Roper <matthew.d.roper@intel.com>
Suggested-by: Brian Nguyen <brian3.nguyen@intel.com>
Signed-off-by: Xin Wang <x.wang@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260130175349.2249033-1-x.wang@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_pat.c