drm/i915: prefer i915_gem_object_has_pages()
Subsystems (2)
PATCH 1/1 drm/i915: prefer i915_gem_object_has_pages()
We have an existing helper for testing obj->mm.pages, so use it.
--- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/selftests/huge_pages.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -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; }
drivers/gpu/drm/i915/selftests/huge_pages.c +1 -1
@@ -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;
Signature · 6 lines
2.14.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Matthew Auld (2017-12-18 10:38:55)
Quoted 4 lines
We have an existing helper for testing
obj->mm.pages, so use it.Signed-off-by Matthew Auld <[email protected]>Cc Chris Wilson <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: prefer i915_gem_object_has_pages()
In reply to Matthew Auld== Series Details ==
== 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#103713fdo#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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: prefer i915_gem_object_has_pages()
In reply to Matthew Auld== Series Details ==
== 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#104313fdo#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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✓ Fi.CI.IGT: success for drm/i915: prefer i915_gem_object_has_pages()
Quoting Patchwork (2017-12-18 11:52:05)
Quoted 35 lines
== 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#104313fdo#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=104313shard-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
Quoted 3 lines
== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx