]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pat: Extract gt_pta_entry()
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 3 Mar 2026 20:46:17 +0000 (17:46 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Wed, 11 Mar 2026 18:05:05 +0000 (15:05 -0300)
commit07d40fb889109cb69e1e607a652dc060c98f2fc1
tree903720c2ec13dc0aef3055bb2ed857083c9f68b4
parentf7093ebf612f45544600f06681d6fb7be7d0649a
drm/xe/pat: Extract gt_pta_entry()

Avoid code duplication by extracting the logic for selection of the
correct PAT_PTA entry for a GT into function gt_pta_entry() and using
that function whenever necessary.

Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Link: https://patch.msgid.link/20260303-pat-gt_pta_entry-v1-1-0dee8e1e7bd9@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/xe/xe_pat.c