* [PATCH] drm/i915: prefer i915_gem_object_has_pages()
@ 2017-12-18 10:38 Matthew Auld
2017-12-18 10:43 ` Chris Wilson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Matthew Auld @ 2017-12-18 10:38 UTC (permalink / raw)
To: intel-gfx
We have an existing helper for testing obj->mm.pages, so use it.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
drivers/gpu/drm/i915/selftests/huge_pages.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index dca15c13af35..5b4cfb20de97 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2596,7 +2596,7 @@ static int ____i915_gem_object_get_pages(struct drm_i915_gem_object *obj)
}
err = obj->ops->get_pages(obj);
- GEM_BUG_ON(!err && IS_ERR_OR_NULL(obj->mm.pages));
+ GEM_BUG_ON(!err && !i915_gem_object_has_pages(obj));
return err;
}
diff --git a/drivers/gpu/drm/i915/selftests/huge_pages.c b/drivers/gpu/drm/i915/selftests/huge_pages.c
index e6b31041cc88..2ea69394f428 100644
--- a/drivers/gpu/drm/i915/selftests/huge_pages.c
+++ b/drivers/gpu/drm/i915/selftests/huge_pages.c
@@ -1637,7 +1637,7 @@ static int igt_shrink_thp(void *arg)
* shmem to truncate our pages.
*/
i915_gem_shrink_all(i915);
- if (!IS_ERR_OR_NULL(obj->mm.pages)) {
+ if (i915_gem_object_has_pages(obj)) {
pr_err("shrink-all didn't truncate the pages\n");
err = -EINVAL;
goto out_close;
--
2.14.3
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] drm/i915: prefer i915_gem_object_has_pages() 2017-12-18 10:38 [PATCH] drm/i915: prefer i915_gem_object_has_pages() Matthew Auld @ 2017-12-18 10:43 ` Chris Wilson 2017-12-18 11:04 ` ✓ Fi.CI.BAT: success for " Patchwork 2017-12-18 11:52 ` ✓ Fi.CI.IGT: " Patchwork 2 siblings, 0 replies; 5+ messages in thread From: Chris Wilson @ 2017-12-18 10:43 UTC (permalink / raw) To: Matthew Auld, intel-gfx Quoting Matthew Auld (2017-12-18 10:38:55) > We have an existing helper for testing obj->mm.pages, so use it. > > Signed-off-by: Matthew Auld <matthew.auld@intel.com> > Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
* ✓ Fi.CI.BAT: success for drm/i915: prefer i915_gem_object_has_pages() 2017-12-18 10:38 [PATCH] drm/i915: prefer i915_gem_object_has_pages() Matthew Auld 2017-12-18 10:43 ` Chris Wilson @ 2017-12-18 11:04 ` Patchwork 2017-12-18 11:52 ` ✓ Fi.CI.IGT: " Patchwork 2 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2017-12-18 11:04 UTC (permalink / raw) To: Matthew Auld; +Cc: intel-gfx == Series Details == Series: drm/i915: prefer i915_gem_object_has_pages() URL : https://patchwork.freedesktop.org/series/35502/ State : success == Summary == Series 35502v1 drm/i915: prefer i915_gem_object_has_pages() https://patchwork.freedesktop.org/api/1.0/series/35502/revisions/1/mbox/ Test debugfs_test: Subgroup read_all_entries: dmesg-warn -> PASS (fi-elk-e7500) fdo#103989 +1 pass -> INCOMPLETE (fi-snb-2520m) fdo#103713 fdo#103989 https://bugs.freedesktop.org/show_bug.cgi?id=103989 fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713 fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:432s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:437s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:387s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:502s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:275s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:494s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:492s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:477s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:463s fi-elk-e7500 total:224 pass:163 dwarn:15 dfail:0 fail:0 skip:45 fi-gdg-551 total:7 pass:5 dwarn:1 dfail:0 fail:0 skip:0 fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:526s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:408s fi-hsw-4770r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:415s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:383s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:477s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:425s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:471s fi-kbl-7560u total:288 pass:268 dwarn:1 dfail:0 fail:0 skip:19 time:519s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:467s fi-kbl-r total:288 pass:260 dwarn:1 dfail:0 fail:0 skip:27 time:523s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:585s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:439s fi-skl-6600u total:288 pass:260 dwarn:1 dfail:0 fail:0 skip:27 time:529s fi-skl-6700hq total:288 pass:261 dwarn:1 dfail:0 fail:0 skip:26 time:550s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:505s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:502s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:445s fi-snb-2520m total:3 pass:2 dwarn:0 dfail:0 fail:0 skip:0 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:406s Blacklisted hosts: fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:592s fi-cnl-y total:210 pass:189 dwarn:0 dfail:0 fail:0 skip:20 fi-glk-dsi total:152 pass:138 dwarn:0 dfail:0 fail:0 skip:13 780afbc71018cfa8cca45143c55b2051330402b6 drm-tip: 2017y-12m-18d-09h-33m-33s UTC integration manifest b882bdbff832 drm/i915: prefer i915_gem_object_has_pages() == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7523/issues.html _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
* ✓ Fi.CI.IGT: success for drm/i915: prefer i915_gem_object_has_pages() 2017-12-18 10:38 [PATCH] drm/i915: prefer i915_gem_object_has_pages() Matthew Auld 2017-12-18 10:43 ` Chris Wilson 2017-12-18 11:04 ` ✓ Fi.CI.BAT: success for " Patchwork @ 2017-12-18 11:52 ` Patchwork 2017-12-18 11:53 ` Chris Wilson 2 siblings, 1 reply; 5+ messages in thread From: Patchwork @ 2017-12-18 11:52 UTC (permalink / raw) To: Matthew Auld; +Cc: intel-gfx == Series Details == Series: drm/i915: prefer i915_gem_object_has_pages() URL : https://patchwork.freedesktop.org/series/35502/ State : success == Summary == Test kms_frontbuffer_tracking: Subgroup fbc-1p-offscren-pri-shrfb-draw-render: pass -> FAIL (shard-snb) fdo#101623 Test perf: Subgroup polling: fail -> PASS (shard-hsw) fdo#102252 Test drv_suspend: Subgroup debugfs-reader: skip -> PASS (shard-hsw) Test kms_setmode: Subgroup basic: pass -> FAIL (shard-hsw) fdo#99912 Test drv_selftest: Subgroup live_hangcheck: pass -> INCOMPLETE (shard-snb) fdo#104313 fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623 fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252 fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912 fdo#104313 https://bugs.freedesktop.org/show_bug.cgi?id=104313 shard-hsw total:2712 pass:1536 dwarn:2 dfail:0 fail:10 skip:1164 time:9369s shard-snb total:2694 pass:1288 dwarn:2 dfail:0 fail:12 skip:1391 time:7844s Blacklisted hosts: shard-apl total:2690 pass:1664 dwarn:1 dfail:0 fail:23 skip:1001 time:13370s shard-kbl total:2712 pass:1805 dwarn:2 dfail:1 fail:23 skip:881 time:11025s == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7523/shards.html _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ✓ Fi.CI.IGT: success for drm/i915: prefer i915_gem_object_has_pages() 2017-12-18 11:52 ` ✓ Fi.CI.IGT: " Patchwork @ 2017-12-18 11:53 ` Chris Wilson 0 siblings, 0 replies; 5+ messages in thread From: Chris Wilson @ 2017-12-18 11:53 UTC (permalink / raw) To: Patchwork, Matthew Auld; +Cc: intel-gfx Quoting Patchwork (2017-12-18 11:52:05) > == Series Details == > > Series: drm/i915: prefer i915_gem_object_has_pages() > URL : https://patchwork.freedesktop.org/series/35502/ > State : success > > == Summary == > > Test kms_frontbuffer_tracking: > Subgroup fbc-1p-offscren-pri-shrfb-draw-render: > pass -> FAIL (shard-snb) fdo#101623 > Test perf: > Subgroup polling: > fail -> PASS (shard-hsw) fdo#102252 > Test drv_suspend: > Subgroup debugfs-reader: > skip -> PASS (shard-hsw) > Test kms_setmode: > Subgroup basic: > pass -> FAIL (shard-hsw) fdo#99912 > Test drv_selftest: > Subgroup live_hangcheck: > pass -> INCOMPLETE (shard-snb) fdo#104313 > > fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623 > fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252 > fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912 > fdo#104313 https://bugs.freedesktop.org/show_bug.cgi?id=104313 > > shard-hsw total:2712 pass:1536 dwarn:2 dfail:0 fail:10 skip:1164 time:9369s > shard-snb total:2694 pass:1288 dwarn:2 dfail:0 fail:12 skip:1391 time:7844s > Blacklisted hosts: > shard-apl total:2690 pass:1664 dwarn:1 dfail:0 fail:23 skip:1001 time:13370s > shard-kbl total:2712 pass:1805 dwarn:2 dfail:1 fail:23 skip:881 time:11025s > > == Logs == > > For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7523/shards.html And pushed, thanks for the patch. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-12-18 11:53 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-12-18 10:38 [PATCH] drm/i915: prefer i915_gem_object_has_pages() Matthew Auld 2017-12-18 10:43 ` Chris Wilson 2017-12-18 11:04 ` ✓ Fi.CI.BAT: success for " Patchwork 2017-12-18 11:52 ` ✓ Fi.CI.IGT: " Patchwork 2017-12-18 11:53 ` Chris Wilson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox