* [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_
@ 2020-05-08 21:29 Ashutosh Dixit
0 siblings, 0 replies; 6+ messages in thread
From: Ashutosh Dixit @ 2020-05-08 21:29 UTC (permalink / raw)
To: igt-dev
pwrite_() and pread_() purport to read each page but weren't.
Reported-by: CQ Tang <cq.tang@intel.com>
Fixes 88bfe6ac41 ("igt/gem_shrink: Add pread/pwrite stress)
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
tests/i915/gem_shrink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c
index c9964ccc0..f6f1144ba 100644
--- a/tests/i915/gem_shrink.c
+++ b/tests/i915/gem_shrink.c
@@ -58,7 +58,7 @@ static void pwrite_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_write(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_write(fd, handle, page << 12, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
@@ -67,7 +67,7 @@ static void pread_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_read(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_read(fd, handle, page << 12, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
--
2.26.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_
@ 2020-05-08 21:34 Ashutosh Dixit
2020-05-08 21:41 ` Chris Wilson
2020-05-08 22:08 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt/gem_shrink: touch each page in pwrite_/pread_ (rev2) Patchwork
0 siblings, 2 replies; 6+ messages in thread
From: Ashutosh Dixit @ 2020-05-08 21:34 UTC (permalink / raw)
To: igt-dev
pwrite_() and pread_() purport to read each page but weren't.
Reported-by: CQ Tang <cq.tang@intel.com>
Fixes: 88bfe6ac41 ("igt/gem_shrink: Add pread/pwrite stress)
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
tests/i915/gem_shrink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c
index c9964ccc0..f6f1144ba 100644
--- a/tests/i915/gem_shrink.c
+++ b/tests/i915/gem_shrink.c
@@ -58,7 +58,7 @@ static void pwrite_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_write(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_write(fd, handle, page << 12, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
@@ -67,7 +67,7 @@ static void pread_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_read(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_read(fd, handle, page << 12, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
--
2.26.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_
2020-05-08 21:34 [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_ Ashutosh Dixit
@ 2020-05-08 21:41 ` Chris Wilson
2020-05-08 22:08 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt/gem_shrink: touch each page in pwrite_/pread_ (rev2) Patchwork
1 sibling, 0 replies; 6+ messages in thread
From: Chris Wilson @ 2020-05-08 21:41 UTC (permalink / raw)
To: Ashutosh Dixit, igt-dev
Quoting Ashutosh Dixit (2020-05-08 22:34:47)
> pwrite_() and pread_() purport to read each page but weren't.
>
> Reported-by: CQ Tang <cq.tang@intel.com>
> Fixes: 88bfe6ac41 ("igt/gem_shrink: Add pread/pwrite stress)
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Keep the subpage iteration for the variation.
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 6+ messages in thread
* [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_
@ 2020-05-08 22:05 Ashutosh Dixit
2020-05-08 22:08 ` Chris Wilson
0 siblings, 1 reply; 6+ messages in thread
From: Ashutosh Dixit @ 2020-05-08 22:05 UTC (permalink / raw)
To: igt-dev
pwrite_() and pread_() purport to read each page but weren't.
v2: Keep subpage iteration (Chris)
Reported-by: CQ Tang <cq.tang@intel.com>
Fixes: 88bfe6ac41 ("igt/gem_shrink: Add pread/pwrite stress)
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
tests/i915/gem_shrink.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/i915/gem_shrink.c b/tests/i915/gem_shrink.c
index c9964ccc0..10d639423 100644
--- a/tests/i915/gem_shrink.c
+++ b/tests/i915/gem_shrink.c
@@ -58,7 +58,7 @@ static void pwrite_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_write(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_write(fd, handle, ((page << 12) + page % 4095) & ~3, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
@@ -67,7 +67,7 @@ static void pread_(int fd, uint64_t alloc)
uint32_t tmp;
uint32_t handle = gem_create(fd, alloc);
for (int page = 0; page < alloc>>12; page++)
- gem_read(fd, handle, (page + page % 4095) & ~3, &tmp, 4);
+ gem_read(fd, handle, ((page << 12) + page % 4095) & ~3, &tmp, 4);
gem_madvise(fd, handle, I915_MADV_DONTNEED);
}
--
2.26.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_
2020-05-08 22:05 [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_ Ashutosh Dixit
@ 2020-05-08 22:08 ` Chris Wilson
0 siblings, 0 replies; 6+ messages in thread
From: Chris Wilson @ 2020-05-08 22:08 UTC (permalink / raw)
To: Ashutosh Dixit, igt-dev
Quoting Ashutosh Dixit (2020-05-08 23:05:41)
> pwrite_() and pread_() purport to read each page but weren't.
>
> v2: Keep subpage iteration (Chris)
>
> Reported-by: CQ Tang <cq.tang@intel.com>
> Fixes: 88bfe6ac41 ("igt/gem_shrink: Add pread/pwrite stress)
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 6+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for igt/gem_shrink: touch each page in pwrite_/pread_ (rev2)
2020-05-08 21:34 [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_ Ashutosh Dixit
2020-05-08 21:41 ` Chris Wilson
@ 2020-05-08 22:08 ` Patchwork
1 sibling, 0 replies; 6+ messages in thread
From: Patchwork @ 2020-05-08 22:08 UTC (permalink / raw)
To: Ashutosh Dixit; +Cc: igt-dev
== Series Details ==
Series: igt/gem_shrink: touch each page in pwrite_/pread_ (rev2)
URL : https://patchwork.freedesktop.org/series/77085/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8455 -> IGTPW_4549
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4549 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_4549, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4549/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4549:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@hangcheck:
- fi-cml-s: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8455/fi-cml-s/igt@i915_selftest@live@hangcheck.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4549/fi-cml-s/igt@i915_selftest@live@hangcheck.html
Participating hosts (48 -> 42)
------------------------------
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5642 -> IGTPW_4549
CI-20190529: 20190529
CI_DRM_8455: 0fa901c0a0e4f6e0ab2821f7b26c417539cecd08 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4549: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4549/index.html
IGT_5642: d1ce4abb01c70f7be6e777b6d45442663c4b830e @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4549/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-05-08 22:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-08 21:34 [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_ Ashutosh Dixit
2020-05-08 21:41 ` Chris Wilson
2020-05-08 22:08 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt/gem_shrink: touch each page in pwrite_/pread_ (rev2) Patchwork
-- strict thread matches above, loose matches on Subject: below --
2020-05-08 22:05 [igt-dev] [PATCH i-g-t] igt/gem_shrink: touch each page in pwrite_/pread_ Ashutosh Dixit
2020-05-08 22:08 ` Chris Wilson
2020-05-08 21:29 Ashutosh Dixit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox