From: "Adrián Larumbe" <adrian.larumbe@collabora.com>
To: igt-dev@lists.freedesktop.org,
Petri Latvala <adrinael@adrinael.net>,
Arkadiusz Hiler <arek@hiler.eu>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>,
Bhanuprakash Modem <bhanuprakash.modem@gmail.com>
Cc: "Boris Brezillon" <boris.brezillon@collabora.com>,
"Steven Price" <steven.price@arm.com>,
"Liviu Dudau" <liviu.dudau@arm.com>,
"Adrián Larumbe" <adrian.larumbe@collabora.com>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
kernel@collabora.com
Subject: [PATCH v2 2/3] panthor: Add IGT library helper for Panthor sparse mappings
Date: Fri, 8 May 2026 18:25:34 +0100 [thread overview]
Message-ID: <20260508172537.3456595-3-adrian.larumbe@collabora.com> (raw)
In-Reply-To: <20260508172537.3456595-1-adrian.larumbe@collabora.com>
Because Panthor sparse VM_BIND's require a specific set of flags, and also
no BO handle shall be specified for them, this helper will help to reduce
some noise in future sparse binding tests.
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
---
lib/igt_panthor.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/lib/igt_panthor.h b/lib/igt_panthor.h
index be8490840f3a..b9edbd320329 100644
--- a/lib/igt_panthor.h
+++ b/lib/igt_panthor.h
@@ -44,6 +44,15 @@ static inline void igt_panthor_vm_bind(int fd, uint32_t vm_id, uint32_t bo_handl
igt_panthor_vm_bind_offset(fd, vm_id, bo_handle, va, size, 0, flags, err);
}
+static inline void igt_panthor_vm_bind_sparse(int fd, uint32_t vm_id,
+ uint64_t va, uint64_t size, int err)
+{
+ uint32_t flags = DRM_PANTHOR_VM_BIND_OP_TYPE_MAP |
+ DRM_PANTHOR_VM_BIND_OP_MAP_SPARSE | DRM_PANTHOR_VM_BIND_OP_MAP_NOEXEC;
+
+ igt_panthor_vm_bind_offset(fd, vm_id, 0, va, size, 0, flags, err);
+}
+
enum cs_opcode {
CS_OPCODE_NOP = 0,
CS_OPCODE_MOVE48 = 1,
--
2.53.0
next prev parent reply other threads:[~2026-05-08 17:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-08 17:25 [PATCH v2 0/3] Test panthor sparse mappings Adrián Larumbe
2026-05-08 17:25 ` [PATCH v2 1/3] drm-uapi/panthor: sync with kernel 5731bca6a656 Adrián Larumbe
2026-05-13 14:04 ` Kamil Konieczny
2026-05-08 17:25 ` Adrián Larumbe [this message]
2026-05-13 14:00 ` [PATCH v2 2/3] panthor: Add IGT library helper for Panthor sparse mappings Kamil Konieczny
2026-05-08 17:25 ` [PATCH v2 3/3] tests/panthor: Add Panthor sparse VM_BIND tests Adrián Larumbe
2026-05-13 13:54 ` Kamil Konieczny
2026-05-13 14:48 ` Kamil Konieczny
2026-05-09 0:55 ` ✓ i915.CI.BAT: success for Test panthor sparse mappings Patchwork
2026-05-09 1:14 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-09 14:25 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-10 2:32 ` ✓ i915.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=20260508172537.3456595-3-adrian.larumbe@collabora.com \
--to=adrian.larumbe@collabora.com \
--cc=adrinael@adrinael.net \
--cc=arek@hiler.eu \
--cc=bhanuprakash.modem@gmail.com \
--cc=boris.brezillon@collabora.com \
--cc=daniel.almeida@collabora.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=kernel@collabora.com \
--cc=liviu.dudau@arm.com \
--cc=steven.price@arm.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