Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
Cc: igt-dev@lists.freedesktop.org, matthew.auld@intel.com,
	Akshata Jahagirdar <akshata.jahagirdar@intel.com>,
	akshata.jahagirdar@intel.co, ayaz.siddiqui@intel.com
Subject: [PATCH i-g-t v7 5/6] lib/xe/xe_util: Align obj size before bind/unbind
Date: Fri, 15 Dec 2023 13:09:46 -0800	[thread overview]
Message-ID: <bc8dbf562ddfacda2deb52dfd68be6ce675656aa.1702674322.git.akshata.jahagirdar@intel.com> (raw)
In-Reply-To: <cover.1702674322.git.akshata.jahagirdar@intel.com>

Alter the range to default_alignment before vm bind/unbind operation to
align the buffer object size with page size.

Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
---
 lib/xe/xe_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/xe/xe_util.c b/lib/xe/xe_util.c
index ba8eece71..6321a5729 100644
--- a/lib/xe/xe_util.c
+++ b/lib/xe/xe_util.c
@@ -148,7 +148,7 @@ static struct drm_xe_vm_bind_op *xe_alloc_bind_ops(int xe,
 		ops->flags = flags;
 		ops->obj_offset = 0;
 		ops->addr = obj->offset;
-		ops->range = obj->size;
+		ops->range = ALIGN(obj->size, 4096);
 		ops->prefetch_mem_region_instance = 0;
 		if (obj->pat_index == DEFAULT_PAT_INDEX)
 			ops->pat_index = intel_get_pat_idx_wb(xe);
-- 
2.34.1

  parent reply	other threads:[~2023-12-15  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-15 21:09 [PATCH i-g-t v7 0/6] Compression support for Lunarlake Akshata Jahagirdar
2023-12-15 12:08 ` ✓ CI.xeBAT: success for Compression support for Lunarlake (rev2) Patchwork
2023-12-15 12:18 ` ✗ Fi.CI.BAT: failure " Patchwork
2023-12-15 21:09 ` [PATCH i-g-t v7 1/6] lib: Add blt command properties for lunarlake Akshata Jahagirdar
2023-12-15 21:09 ` [PATCH i-g-t v7 2/6] lib/intel_blt: Update calculation of ccs_size and size_of_ctrl_copy Akshata Jahagirdar
2023-12-15 21:09 ` [PATCH i-g-t v7 3/6] lib/intel_pat: Add uc_comp pat_index Akshata Jahagirdar
2023-12-15 21:09 ` [PATCH i-g-t v7 4/6] lib/intel_blt: Update caching mode and pat_index Akshata Jahagirdar
2023-12-15 21:09 ` Akshata Jahagirdar [this message]
     [not found]   ` <CO1PR11MB49777592D5F03D1454FAB0278D93A@CO1PR11MB4977.namprd11.prod.outlook.com>
2023-12-15 21:11     ` [PATCH i-g-t v7 5/6] lib/xe/xe_util: Align obj size before bind/unbind Cavitt, Jonathan
2023-12-18  7:00   ` Zbigniew Kempczyński
2023-12-15 21:09 ` [PATCH i-g-t v7 6/6] tests/intel/xe_ccs: Add compression support for Lunarlake Akshata Jahagirdar
2023-12-18  7:02   ` Zbigniew Kempczyński
2023-12-18 18:23 ` ✗ Fi.CI.BUILD: failure for Compression support for Lunarlake (rev3) 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=bc8dbf562ddfacda2deb52dfd68be6ce675656aa.1702674322.git.akshata.jahagirdar@intel.com \
    --to=akshata.jahagirdar@intel.com \
    --cc=akshata.jahagirdar@intel.co \
    --cc=ayaz.siddiqui@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