drm/i915/gem: Execbuffer objects must have struct pages.
Subsystems (2)
PATCH v2 1/1 drm/i915/gem: Execbuffer objects must have struct pages.
We cannot write requests to objects without struct pages, so escape early if the requests are bound to objects that lack them.
---
v2: s/vma-obj/vma->obj
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +7 -0
@@ -3313,6 +3313,13 @@ eb_requests_create(struct i915_execbuffer *eb, struct dma_fence *in_fence,unsigned int i;for_each_batch_create_order (eb, i) { +/* Do not write requests to objects without struct pages. */ +if (eb->batches[i]->vma && + !i915_gem_object_has_struct_page (eb->batches[i]->vma->obj)) { + out_fence =ERR_PTR (-EINVAL ); +return out_fence; + } +/* Allocate a request for this batch buffer nice and early. */ eb->requests[i] =i915_request_create (eb_find_context (eb, i));if (IS_ERR (eb->requests[i])) {
Signature · 1 line
2.25.1
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/gem: Execbuffer objects must have struct pages. (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/gem: Execbuffer objects must have struct pages. (rev2)
URL : https://patchwork.freedesktop.org/series/131000/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14421 -> Patchwork_131000v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_131000v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_131000v2, please notify your bug team ([email protected]) 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/Patchwork_131000v2/index.html
Participating hosts (36 -> 33)
------------------------------
Additional (1): fi-glk-j4005
Missing (4): bat-dg2-14 bat-mtlp-8 fi-snb-2520m fi-kbl-8809g
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_131000v2:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_fence@basic-await@bcs0:
- bat-atsm-1: [PASS][1] -> [FAIL][2] +74 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-atsm-1/igt@gem_exec_fence@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-atsm-1/igt@gem_exec_fence@[email protected]
* igt@gem_exec_fence@basic-wait@vcs1:
- bat-dg2-8: [PASS][3] -> [FAIL][4] +72 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg2-8/igt@gem_exec_fence@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-8/igt@gem_exec_fence@[email protected]
* igt@gem_softpin@safe-alignment:
- bat-dg2-9: [PASS][5] -> [FAIL][6] +73 other tests fail
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg2-9/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-9/igt@[email protected]
* igt@i915_module_load@load:
- bat-dg2-13: [PASS][7] -> [FAIL][8] +1 other test fail
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg2-13/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-13/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@a-hdmi-a2:
- bat-dg1-7: [PASS][9] -> [FAIL][10] +97 other tests fail
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg1-7/igt@kms_flip@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@kms_flip@[email protected]
* igt@kms_pm_rpm@basic-rte:
- bat-dg1-7: NOTRUN -> [FAIL][11] +5 other tests fail
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
#### Warnings ####
* igt@kms_pm_rpm@basic-pci-d3-state:
- bat-dg1-7: [ABORT][12] ([i915#10367]) -> [FAIL][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg1-7/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_131000v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-glk-j4005: NOTRUN -> [SKIP][14] ([i915#2190])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/fi-glk-j4005/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-glk-j4005: NOTRUN -> [SKIP][15] ([i915#4613]) +3 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/fi-glk-j4005/igt@[email protected]
* igt@gem_lmem_swapping@basic@lmem0:
- bat-dg1-7: NOTRUN -> [FAIL][16] ([i915#10378])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@gem_lmem_swapping@[email protected]
- bat-dg2-9: [PASS][17] -> [FAIL][18] ([i915#10378])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg2-9/igt@gem_lmem_swapping@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-9/igt@gem_lmem_swapping@[email protected]
- bat-dg2-8: [PASS][19] -> [FAIL][20] ([i915#10378])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-dg2-8/igt@gem_lmem_swapping@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-8/igt@gem_lmem_swapping@[email protected]
* igt@gem_lmem_swapping@verify-random:
- bat-arls-2: NOTRUN -> [SKIP][21] ([i915#10213]) +3 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
- bat-dg2-8: NOTRUN -> [SKIP][22] ([i915#9643])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg2-8/igt@[email protected]
* igt@i915_pm_rps@basic-api:
- bat-dg1-7: NOTRUN -> [SKIP][23] ([i915#6621])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
- bat-arls-2: NOTRUN -> [SKIP][24] ([i915#10209])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- bat-rpls-3: [PASS][25] -> [DMESG-WARN][26] ([i915#5591])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-rpls-3/igt@i915_selftest@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-rpls-3/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-glk-j4005: NOTRUN -> [SKIP][27] +10 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/fi-glk-j4005/igt@[email protected]
* igt@kms_dsc@dsc-basic:
- bat-arls-2: NOTRUN -> [SKIP][28] ([i915#9886])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- bat-arls-2: NOTRUN -> [SKIP][29] ([i915#10207])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@kms_psr@psr-primary-mmap-gtt@edp-1:
- bat-arls-2: NOTRUN -> [SKIP][30] ([i915#10196] / [i915#4077] / [i915#9688])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@kms_psr@[email protected]
* igt@kms_psr@psr-primary-page-flip:
- bat-dg1-7: NOTRUN -> [SKIP][31] ([i915#9732]) +3 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
* igt@kms_setmode@basic-clone-single-crtc:
- bat-arls-2: NOTRUN -> [SKIP][32] ([i915#10208] / [i915#8809])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
- bat-dg1-7: NOTRUN -> [SKIP][33] ([i915#3555])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
* igt@prime_vgem@basic-fence-flip:
- bat-dg1-7: NOTRUN -> [SKIP][34] ([i915#3708]) +3 other tests skip
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
* igt@prime_vgem@basic-fence-mmap:
- bat-dg1-7: NOTRUN -> [SKIP][35] ([i915#3708] / [i915#4077]) +1 other test skip
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-dg1-7/igt@[email protected]
- bat-arls-2: NOTRUN -> [SKIP][36] ([i915#10196] / [i915#3708] / [i915#4077]) +1 other test skip
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@prime_vgem@basic-fence-read:
- bat-arls-2: NOTRUN -> [SKIP][37] ([i915#10212] / [i915#3708])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@prime_vgem@basic-read:
- bat-arls-2: NOTRUN -> [SKIP][38] ([i915#10214] / [i915#3708])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
* igt@prime_vgem@basic-write:
- bat-arls-2: NOTRUN -> [SKIP][39] ([i915#10216] / [i915#3708])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
#### Possible fixes ####
* igt@kms_cursor_legacy@basic-flip-before-cursor-legacy:
- bat-arls-2: [ABORT][40] ([i915#10237]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14421/bat-arls-2/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/bat-arls-2/igt@[email protected]
[i915#10196]: https://gitlab.freedesktop.org/drm/intel/issues/10196
[i915#10207]: https://gitlab.freedesktop.org/drm/intel/issues/10207
[i915#10208]: https://gitlab.freedesktop.org/drm/intel/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/intel/issues/10209
[i915#10212]: https://gitlab.freedesktop.org/drm/intel/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/intel/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/intel/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/intel/issues/10216
[i915#10237]: https://gitlab.freedesktop.org/drm/intel/issues/10237
[i915#10367]: https://gitlab.freedesktop.org/drm/intel/issues/10367
[i915#10378]: https://gitlab.freedesktop.org/drm/intel/issues/10378
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5591]: https://gitlab.freedesktop.org/drm/intel/issues/5591
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#8809]: https://gitlab.freedesktop.org/drm/intel/issues/8809
[i915#9643]: https://gitlab.freedesktop.org/drm/intel/issues/9643
[i915#9688]: https://gitlab.freedesktop.org/drm/intel/issues/9688
[i915#9732]: https://gitlab.freedesktop.org/drm/intel/issues/9732
[i915#9886]: https://gitlab.freedesktop.org/drm/intel/issues/9886
Build changes
-------------
* Linux: CI_DRM_14421 -> Patchwork_131000v2
CI-20190529: 20190529
CI_DRM_14421: 1dfbf3ced62236dd318c701e3f21f5a33c226d0d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7756: 7756
Patchwork_131000v2: 1dfbf3ced62236dd318c701e3f21f5a33c226d0d @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
9ca57c6d226d drm/i915/gem: Execbuffer objects must have struct pages.
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131000v2/index.html
Hi Jonathan,
Quoted 4 lines · Jonathan Cavitt
We cannot write requests to objects without struct pages, so escape early if the requests are bound to objects that lack them.
Signed-off-by Jonathan Cavitt <[email protected]>
is this a fix? Do you need
?
Andi
Quoted 27 lines
---
v2: s/vma-obj/vma->obj
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +7
-0@@ -3313,6 +3313,13 @@ eb_requests_create(struct i915_execbuffer *eb, struct dma_fence *in_fence,unsigned int i;for_each_batch_create_order (eb, i) { +/* Do not write requests to objects without struct pages. */ +if (eb->batches[i]->vma && + !i915_gem_object_has_struct_page (eb->batches[i]->vma->obj)) { + out_fence =ERR_PTR (-EINVAL ); +return out_fence; + } +/* Allocate a request for this batch buffer nice and early. */ eb->requests[i] =i915_request_create (eb_find_context (eb, i));if (IS_ERR (eb->requests[i])) {Signature · 1 line
2.25.1
Quoted 16 lines · Jonathan Cavitt
We cannot write requests to objects without struct pages, so escape early if the requests are bound to objects that lack them.
Signed-off-by Jonathan Cavitt <[email protected]>---
v2: s/vma-obj/vma->obj
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +++++++ 1 file changed, 7 insertions(+)drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +0
-0
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c eb_requests_create(struct i915_execbuffer *eb, struct dma_fence *in_fence, · line 3318
Quoted 6 lines
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +3
-0@@ -3313,6 +3313,13 @@ eb_requests_create(struct i915_execbuffer *eb, struct dma_fence *in_fence,unsigned int i;for_each_batch_create_order (eb, i) { +/* Do not write requests to objects without struct pages. */ +if (eb->batches[i]->vma && + !i915_gem_object_has_struct_page (eb->batches[i]->vma->obj)) {
As far as I understand, motivation of this patch is to avoid doing execbuf on dmabuf imported BO which are in error state of something. i915_gem_object_has_struct_page() checks "obj->mem_flags & I915_BO_FLAG_STRUCT_PAGE" which is very i915 specific.
So I think this will not work and will cause regression in existing program which are trying to do the same with valid BO. Unfortunately I don't have any idea how to better detect that at this moment.
Regards,
Nirmoy
Quoted 7 lines
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +4
-0+ out_fence =ERR_PTR (-EINVAL ); +return out_fence; + } +/* Allocate a request for this batch buffer nice and early. */ eb->requests[i] =i915_request_create (eb_find_context (eb, i));if (IS_ERR (eb->requests[i])) {