intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: thomas.hellstrom@intel.com
Subject: [Intel-xe] [PATCH 1/3] drm/xe/tests: Use proper batch base address
Date: Fri, 31 Mar 2023 20:02:58 -0700	[thread overview]
Message-ID: <20230401030300.22568-2-niranjana.vishwanathapura@intel.com> (raw)
In-Reply-To: <20230401030300.22568-1-niranjana.vishwanathapura@intel.com>

In xe_migrate_sanity_kunit test, use proper batch base address
by considering usm case.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
---
 drivers/gpu/drm/xe/tests/xe_migrate.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
index 17829f878757..90f4e1c4f029 100644
--- a/drivers/gpu/drm/xe/tests/xe_migrate.c
+++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
@@ -35,8 +35,9 @@ static int run_sanity_job(struct xe_migrate *m, struct xe_device *xe,
 			  struct xe_bb *bb, u32 second_idx, const char *str,
 			  struct kunit *test)
 {
+	u64 batch_base = xe_migrate_batch_base(m, xe->info.supports_usm);
 	struct xe_sched_job *job = xe_bb_create_migration_job(m->eng, bb,
-							      m->batch_base_ofs,
+							      batch_base,
 							      second_idx);
 	struct dma_fence *fence;
 
-- 
2.21.0.rc0.32.g243a4c7e27


  reply	other threads:[~2023-04-01  3:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-01  3:02 [Intel-xe] [PATCH 0/3] drm/xe: Get xe_migrate_test working Niranjana Vishwanathapura
2023-04-01  3:02 ` Niranjana Vishwanathapura [this message]
2023-04-01  3:02 ` [Intel-xe] [PATCH 2/3] drm/xe/tests: Set correct expectation Niranjana Vishwanathapura
2023-04-01  5:38   ` Lucas De Marchi
2023-04-03 18:45     ` Niranjana Vishwanathapura
2023-04-01  3:03 ` [Intel-xe] [PATCH 3/3] drm/xe: Use proper vram offset Niranjana Vishwanathapura
2023-04-01  3:05 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe: Get xe_migrate_test working (rev2) Patchwork
2023-04-01  3:06 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-04-01  3:10 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-04-01  3:30 ` [Intel-xe] ○ CI.BAT: info " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-03-31 17:09 [Intel-xe] [PATCH 0/3] drm/xe: Get xe_migrate_test working Niranjana Vishwanathapura
2023-03-31 17:09 ` [Intel-xe] [PATCH 1/3] drm/xe/tests: Use proper batch base address Niranjana Vishwanathapura

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=20230401030300.22568-2-niranjana.vishwanathapura@intel.com \
    --to=niranjana.vishwanathapura@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=thomas.hellstrom@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;
as well as URLs for NNTP newsgroup(s).