From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
"Xin Wang" <x.wang@intel.com>
Subject: [PATCH i-g-t] lib/intel_pat: Fix typo PAT_MODE -> PTA_MODE
Date: Wed, 25 Mar 2026 10:21:35 +0100 [thread overview]
Message-ID: <20260325092134.112722-2-zbigniew.kempczynski@intel.com> (raw)
PAT table contain PTA mode so fix PAT typo as parsing this line
isn't working properly.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Xin Wang <x.wang@intel.com>
---
lib/intel_pat.c | 4 ++--
lib/intel_pat.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/intel_pat.c b/lib/intel_pat.c
index 525d9ad24a..b202a62419 100644
--- a/lib/intel_pat.c
+++ b/lib/intel_pat.c
@@ -64,10 +64,10 @@ int32_t xe_get_pat_sw_config(int drm_fd, struct intel_pat_cache *xe_pat_cache)
} else {
igt_warn("Failed to parse PAT entry line: %s\n", line);
}
- } else if (strncmp(line, "PAT_MODE", 8) == 0) {
+ } else if (strncmp(line, "PTA_MODE", 8) == 0) {
p = strstr(line, "(");
if (p && sscanf(p, "(%x", &value) == 1)
- xe_pat_cache->pat_mode = value;
+ xe_pat_cache->pta_mode = value;
} else if (strncmp(line, "PAT_ATS", 7) == 0) {
p = strstr(line, "(");
if (p && sscanf(p, "(%x", &value) == 1)
diff --git a/lib/intel_pat.h b/lib/intel_pat.h
index e5dd8a0af7..1772785205 100644
--- a/lib/intel_pat.h
+++ b/lib/intel_pat.h
@@ -25,7 +25,7 @@ struct intel_pat_cache {
uint8_t uc_comp; /* UC + COH_NONE + COMPRESSION, XE2 and later*/
uint8_t max_index;
struct xe_pat_entry entries[XE_PAT_MAX_ENTRIES];
- uint32_t pat_mode;
+ uint32_t pta_mode;
uint32_t pat_ats;
};
--
2.43.0
next reply other threads:[~2026-03-25 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 9:21 Zbigniew Kempczyński [this message]
2026-03-25 9:48 ` [PATCH i-g-t] lib/intel_pat: Fix typo PAT_MODE -> PTA_MODE Girotra, Himanshu
2026-03-25 11:01 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-03-25 11:22 ` ✗ i915.CI.BAT: failure " Patchwork
2026-03-25 17:19 ` ✓ Xe.CI.FULL: success " 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=20260325092134.112722-2-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=x.wang@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