From: Brajesh Gupta <brajesh.gupta@imgtec.com>
To: Development mailing list for IGT GPU Tools
<igt-dev@lists.freedesktop.org>
Cc: Alessio Belle <alessio.belle@imgtec.com>,
Brajesh Gupta <brajesh.gupta@imgtec.com>,
Luigi Santivetti <luigi.santivetti@imgtec.com>
Subject: [PATCH i-g-t v4 2/2] imagination: Skip CPU access flag for a few Render related allocations
Date: Mon, 16 Nov 2026 15:21:38 +0530 [thread overview]
Message-ID: <20261116-b4-render_update-v4-2-ace469e01c8a@imgtec.com> (raw)
In-Reply-To: <20261116-b4-render_update-v4-0-ace469e01c8a@imgtec.com>
Skip passing CPU access flag for BO's that don't need host access.
Reviewed-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
---
lib/igt_pvr.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/lib/igt_pvr.c b/lib/igt_pvr.c
index e771d0660..9e88b2e41 100644
--- a/lib/igt_pvr.c
+++ b/lib/igt_pvr.c
@@ -400,7 +400,6 @@ uint32_t igt_pvr_ioctl_create_context(int fd, enum drm_pvr_ctx_type type,
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd,
vm_ctx_handle,
POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
create_context_args.static_context_state = to_user_pointer(init_render_context_stream);
create_context_args.static_context_state_len =
@@ -818,15 +817,12 @@ static void igt_pvr_create_hwrt_geom_data_args(int fd, uint32_t vm_ctx,
{
geom_data_args->rtc_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
geom_data_args->tpc_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
geom_data_args->vheap_table_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
geom_data_args->tpc_size = POWERVR_GPU_PAGE_SIZE;
geom_data_args->tpc_stride = 0x1;
@@ -846,15 +842,12 @@ static void igt_pvr_create_hwrt_rt_data_args(int fd, uint32_t vm_ctx,
{
rt_data_args->pm_mlist_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
rt_data_args->macrotile_array_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
rt_data_args->region_header_dev_addr =
igt_pvr_get_gpu_addr(igt_pvr_allocate_general(fd, vm_ctx, POWERVR_GPU_PAGE_SIZE,
- DRM_PVR_BO_ALLOW_CPU_USERSPACE_ACCESS |
DRM_PVR_BO_BYPASS_DEVICE_CACHE));
}
--
2.43.0
prev parent reply other threads:[~2026-11-16 9:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 9:51 [PATCH i-g-t v4 0/2] imagination: Update allocation flags for buffers in submit job Brajesh Gupta
2026-11-16 9:51 ` [PATCH i-g-t v4 1/2] lib/igt_pvr: Update general heap allocation interface to pass flags Brajesh Gupta
2026-11-16 14:01 ` Kamil Konieczny
2026-11-16 9:51 ` Brajesh Gupta [this message]
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=20261116-b4-render_update-v4-2-ace469e01c8a@imgtec.com \
--to=brajesh.gupta@imgtec.com \
--cc=alessio.belle@imgtec.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=luigi.santivetti@imgtec.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