From: Chris Wilson <chris@chris-wilson.co.uk> To: intel-gfx@lists.freedesktop.org Cc: igt-dev@lists.freedesktop.org Subject: [PATCH i-g-t 1/4] i915/gem_exec_balancer: Beware the migratory fence Date: Sat, 7 Sep 2019 12:59:49 +0100 [thread overview] Message-ID: <20190907115952.3227-1-chris@chris-wilson.co.uk> (raw) If the object needs to be migrated, it may will need GPU relocs and so have an exclusive fence showing up in the write domain. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- tests/i915/gem_exec_balancer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index cda156ea6..407dc0eca 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -830,10 +830,10 @@ static void busy(int i915) do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy); igt_assert_eq_u32(busy.busy, 1u << (class + 16)); - /* Queued(read): expected class */ + /* Queued(read, maybe write if being migrated): expected class */ busy.handle = spin[1]->handle; do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy); - igt_assert_eq_u32(busy.busy, 1u << (class + 16)); + igt_assert_eq_u32(busy.busy & 0xffff << 16, 1u << (class + 16)); /* Queued(write): expected class */ busy.handle = scratch; -- 2.23.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Chris Wilson <chris@chris-wilson.co.uk> To: intel-gfx@lists.freedesktop.org Cc: igt-dev@lists.freedesktop.org Subject: [igt-dev] [PATCH i-g-t 1/4] i915/gem_exec_balancer: Beware the migratory fence Date: Sat, 7 Sep 2019 12:59:49 +0100 [thread overview] Message-ID: <20190907115952.3227-1-chris@chris-wilson.co.uk> (raw) If the object needs to be migrated, it may will need GPU relocs and so have an exclusive fence showing up in the write domain. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- tests/i915/gem_exec_balancer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index cda156ea6..407dc0eca 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -830,10 +830,10 @@ static void busy(int i915) do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy); igt_assert_eq_u32(busy.busy, 1u << (class + 16)); - /* Queued(read): expected class */ + /* Queued(read, maybe write if being migrated): expected class */ busy.handle = spin[1]->handle; do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy); - igt_assert_eq_u32(busy.busy, 1u << (class + 16)); + igt_assert_eq_u32(busy.busy & 0xffff << 16, 1u << (class + 16)); /* Queued(write): expected class */ busy.handle = scratch; -- 2.23.0 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2019-09-07 11:59 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-09-07 11:59 Chris Wilson [this message] 2019-09-07 11:59 ` [igt-dev] [PATCH i-g-t 1/4] i915/gem_exec_balancer: Beware the migratory fence Chris Wilson 2019-09-07 11:59 ` [PATCH i-g-t 2/4] i915/gem_exec_schedule: Check timeslice Chris Wilson 2019-09-07 11:59 ` [igt-dev] " Chris Wilson 2019-09-07 11:59 ` [PATCH i-g-t 3/4] Force spin-batch to cause a hang as required Chris Wilson 2019-09-07 11:59 ` [igt-dev] " Chris Wilson 2019-09-07 11:59 ` [PATCH i-g-t 4/4] kms_busy: Replace fiddling with hangcheck modparam with explicit fence Chris Wilson 2019-09-07 11:59 ` [igt-dev] " Chris Wilson 2019-09-07 12:50 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] i915/gem_exec_balancer: Beware the migratory fence Patchwork 2019-09-07 15:02 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2019-09-13 18:39 ` [igt-dev] [PATCH i-g-t 1/4] " Matthew Auld 2019-09-13 18:39 ` Matthew Auld
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=20190907115952.3227-1-chris@chris-wilson.co.uk \ --to=chris@chris-wilson.co.uk \ --cc=igt-dev@lists.freedesktop.org \ --cc=intel-gfx@lists.freedesktop.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.