public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
	"Matthew Auld" <matthew.auld@intel.com>
Subject: [PATCH i-g-t v7 3/4] lib/intel_pat: Set PTA + ATS PAT entries to invalid value
Date: Wed,  1 Apr 2026 15:53:47 +0200	[thread overview]
Message-ID: <20260401135343.2874239-9-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20260401135343.2874239-6-zbigniew.kempczynski@intel.com>

Some platforms (like LNL) requires PTA PAT entries shouldn't be
programmed and default register value should be used.

Setting this to max during parsing pat_sw_config or pat debugfs
allows detect these platforms and ignore some actions if necessary.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
---
 lib/intel_pat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/intel_pat.c b/lib/intel_pat.c
index f1f5644dce..2f35bb7724 100644
--- a/lib/intel_pat.c
+++ b/lib/intel_pat.c
@@ -51,6 +51,8 @@ static int32_t xe_get_pat_config(int drm_fd, struct intel_pat_cache *xe_pat_cach
 
 	memset(xe_pat_cache, 0, sizeof(*xe_pat_cache));
 	xe_pat_cache->uc_comp = XE_PAT_IDX_INVALID;
+	xe_pat_cache->pta_mode = UINT32_MAX;
+	xe_pat_cache->pat_ats = UINT32_MAX;
 
 	while ((nread = getline(&line, &line_len, dbgfs_file)) != -1) {
 		uint32_t value = 0;
-- 
2.43.0


  parent reply	other threads:[~2026-04-01 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01 13:53 [PATCH i-g-t v7 0/4] Verify PTA entries contains expected values Zbigniew Kempczyński
2026-04-01 13:53 ` [PATCH i-g-t v7 1/4] lib/intel_pat: Support other than gt0 during parsing debugfs PAT Zbigniew Kempczyński
2026-04-01 13:53 ` [PATCH i-g-t v7 2/4] lib/intel_pat: Expose getter of PAT registers Zbigniew Kempczyński
2026-04-01 13:53 ` Zbigniew Kempczyński [this message]
2026-04-01 13:53 ` [PATCH i-g-t v7 4/4] tests/xe_pat: Verify PAT entries contain expected values Zbigniew Kempczyński
2026-04-01 17:54   ` Wang, X
2026-04-01 19:44 ` ✓ Xe.CI.BAT: success for Verify PTA entries contains expected values (rev7) Patchwork
2026-04-01 19:59 ` ✓ i915.CI.BAT: " Patchwork
2026-04-02  1:31 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-02 14:14 ` ✓ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260401135343.2874239-9-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox