drm/i915: fix error return code in check_partial_mapping()
Subsystems (2)
PATCH 1/1 drm/i915: fix error return code in check_partial_mapping()
Fix to return a negative error code from the error handling case instead of 0 in function check_partial_mapping(), as done elsewhere in this function.
--- drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c +3 -1
@@ -137,8 +137,10 @@ static int check_partial_mapping(struct drm_i915_gem_object *obj,i915_vma_unpin_iomap (vma); offset =tiled_offset (tile, page <<PAGE_SHIFT ); -if (offset >= obj->base.size) +if (offset >= obj->base.size) { + err = -EINVAL ; goto out; + }intel_gt_flush_ggtt_writes (&to_i915 (obj->base.dev)->gt);
Signature · 6 lines
2.25.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: fix error return code in check_partial_mapping()
== Series Details ==
== Series Details ==
Series: drm/i915: fix error return code in check_partial_mapping()
URL : https://patchwork.freedesktop.org/series/84242/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_9387 -> Patchwork_18973
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_18973 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_18973, 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/Patchwork_18973/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_18973:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@mman:
- fi-cml-u2: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-cml-u2/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-cml-u2/igt@i915_selftest@[email protected]
- fi-cml-s: [PASS][3] -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-cml-s/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-cml-s/igt@i915_selftest@[email protected]
- fi-skl-6700k2: [PASS][5] -> [DMESG-FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-skl-6700k2/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-skl-6700k2/igt@i915_selftest@[email protected]
- fi-ivb-3770: [PASS][7] -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-ivb-3770/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-ivb-3770/igt@i915_selftest@[email protected]
- fi-kbl-guc: [PASS][9] -> [DMESG-FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-kbl-guc/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-kbl-guc/igt@i915_selftest@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_9387 and Patchwork_18973:
### New CI tests (1) ###
* boot:
- Statuses : 39 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_18973 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-byt-j1900: [PASS][11] -> [DMESG-WARN][12] ([i915#1982])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-byt-j1900/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-byt-j1900/igt@[email protected]
- fi-tgl-u2: [PASS][13] -> [DMESG-WARN][14] ([i915#1982] / [k.org#205379])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-tgl-u2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-tgl-u2/igt@[email protected]
* igt@kms_addfb_basic@addfb25-bad-modifier:
- fi-tgl-y: [PASS][15] -> [DMESG-WARN][16] ([i915#402])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-tgl-y/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@gem_flink_basic@bad-open:
- fi-tgl-y: [DMESG-WARN][17] ([i915#402]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-tgl-y/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-tgl-y/igt@[email protected]
* igt@kms_busy@basic@flip:
- {fi-kbl-7560u}: [DMESG-WARN][19] ([i915#1982]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-kbl-7560u/igt@kms_busy@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-kbl-7560u/igt@kms_busy@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [FAIL][21] ([i915#1161] / [i915#262]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-kbl-7500u/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-kbl-7500u/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-byt-j1900: [DMESG-WARN][23] ([i915#1982]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-byt-j1900/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-byt-j1900/igt@[email protected]
- fi-icl-u2: [DMESG-WARN][25] ([i915#1982]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-icl-u2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-icl-u2/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-tgl-y: [DMESG-WARN][27] ([i915#1982] / [i915#2411]) -> [DMESG-WARN][28] ([i915#2411])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9387/fi-tgl-y/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/fi-tgl-y/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1161]: https://gitlab.freedesktop.org/drm/intel/issues/1161
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (43 -> 39)
------------------------------
Missing (4): fi-ilk-m540 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_9387 -> Patchwork_18973
CI-20190529: 20190529
CI_DRM_9387: 99de1330fc348fcd8a800874a620573277402ee0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5870: 08b13995b85df26a77212e4fb21fd772976ef33c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18973: 3e9fa1ac8fe4243ce969ec789003ab5e1d803f56 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
3e9fa1ac8fe4 drm/i915: fix error return code in check_partial_mapping()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18973/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Luo Meng (2020-11-25 01:29:38)
Quoted 3 lines
Fix to return a negative error code from the error handling case instead of 0 in function
check_partial_mapping(), as done elsewhere in this function.
It's not an error, just the end of testing.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx