* [PATCH] drm/i915/gt: Report full vm address range
@ 2024-03-13 19:39 Andi Shyti
2024-03-14 2:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Andi Shyti @ 2024-03-13 19:39 UTC (permalink / raw)
To: intel-gfx, dri-devel
Cc: Andi Shyti, Andi Shyti, Andrzej Hajda, Chris Wilson,
Lionel Landwerlin, Michal Mrozek, Nirmoy Das, stable
Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per
vm") has reserved an object for kernel space usage.
Userspace, though, needs to know the full address range.
Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm")
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Chris Wilson <chris.p.wilson@linux.intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Michal Mrozek <michal.mrozek@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v6.2+
---
drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
index fa46d2308b0e..d76831f50106 100644
--- a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
+++ b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
@@ -982,8 +982,9 @@ static int gen8_init_rsvd(struct i915_address_space *vm)
vm->rsvd.vma = i915_vma_make_unshrinkable(vma);
vm->rsvd.obj = obj;
- vm->total -= vma->node.size;
+
return 0;
+
unref:
i915_gem_object_put(obj);
return ret;
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* ✗ Fi.CI.BAT: failure for drm/i915/gt: Report full vm address range
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
@ 2024-03-14 2:40 ` Patchwork
2024-03-14 5:21 ` [PATCH] " Mrozek, Michal
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2024-03-14 2:40 UTC (permalink / raw)
To: Andi Shyti; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 15569 bytes --]
== Series Details ==
Series: drm/i915/gt: Report full vm address range
URL : https://patchwork.freedesktop.org/series/131095/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14428 -> Patchwork_131095v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_131095v1 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_131095v1, please notify your bug team (I915-ci-infra@lists.freedesktop.org) 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_131095v1/index.html
Participating hosts (35 -> 32)
------------------------------
Additional (1): fi-glk-j4005
Missing (4): bat-kbl-2 bat-dg1-7 bat-arls-2 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_131095v1:
### IGT changes ###
#### Possible regressions ####
* igt@gem_softpin@allocator-basic:
- bat-dg2-14: [PASS][1] -> [FAIL][2] +3 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-14/igt@gem_softpin@allocator-basic.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-14/igt@gem_softpin@allocator-basic.html
* igt@gem_softpin@allocator-basic-reserve:
- bat-atsm-1: [PASS][3] -> [FAIL][4] +2 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-atsm-1/igt@gem_softpin@allocator-basic-reserve.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-atsm-1/igt@gem_softpin@allocator-basic-reserve.html
- bat-dg2-9: [PASS][5] -> [FAIL][6] +2 other tests fail
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-9/igt@gem_softpin@allocator-basic-reserve.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-9/igt@gem_softpin@allocator-basic-reserve.html
- bat-dg2-8: [PASS][7] -> [FAIL][8] +2 other tests fail
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-8/igt@gem_softpin@allocator-basic-reserve.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@gem_softpin@allocator-basic-reserve.html
* igt@i915_selftest@live@gtt:
- bat-atsm-1: [PASS][9] -> [DMESG-FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-atsm-1/igt@i915_selftest@live@gtt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-atsm-1/igt@i915_selftest@live@gtt.html
- fi-cfl-guc: [PASS][11] -> [DMESG-FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-cfl-guc/igt@i915_selftest@live@gtt.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-guc/igt@i915_selftest@live@gtt.html
- bat-jsl-3: [PASS][13] -> [DMESG-FAIL][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-jsl-3/igt@i915_selftest@live@gtt.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-3/igt@i915_selftest@live@gtt.html
- fi-kbl-x1275: [PASS][15] -> [DMESG-FAIL][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-kbl-x1275/igt@i915_selftest@live@gtt.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-x1275/igt@i915_selftest@live@gtt.html
- fi-cfl-8109u: NOTRUN -> [DMESG-FAIL][17]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8109u/igt@i915_selftest@live@gtt.html
- bat-adln-1: [PASS][18] -> [DMESG-FAIL][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-adln-1/igt@i915_selftest@live@gtt.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adln-1/igt@i915_selftest@live@gtt.html
- bat-dg2-8: [PASS][20] -> [DMESG-FAIL][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-8/igt@i915_selftest@live@gtt.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@i915_selftest@live@gtt.html
- fi-kbl-guc: [PASS][22] -> [DMESG-FAIL][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-kbl-guc/igt@i915_selftest@live@gtt.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-guc/igt@i915_selftest@live@gtt.html
- bat-adls-6: [PASS][24] -> [DMESG-FAIL][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-adls-6/igt@i915_selftest@live@gtt.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adls-6/igt@i915_selftest@live@gtt.html
- bat-adlm-1: [PASS][26] -> [DMESG-FAIL][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-adlm-1/igt@i915_selftest@live@gtt.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlm-1/igt@i915_selftest@live@gtt.html
- bat-jsl-1: NOTRUN -> [DMESG-FAIL][28]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@i915_selftest@live@gtt.html
- fi-tgl-1115g4: [PASS][29] -> [DMESG-FAIL][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-tgl-1115g4/igt@i915_selftest@live@gtt.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-tgl-1115g4/igt@i915_selftest@live@gtt.html
- bat-arls-1: [PASS][31] -> [DMESG-FAIL][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-arls-1/igt@i915_selftest@live@gtt.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-arls-1/igt@i915_selftest@live@gtt.html
- bat-adlp-6: [PASS][33] -> [DMESG-FAIL][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-adlp-6/igt@i915_selftest@live@gtt.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlp-6/igt@i915_selftest@live@gtt.html
- bat-mtlp-6: [PASS][35] -> [DMESG-FAIL][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-mtlp-6/igt@i915_selftest@live@gtt.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-6/igt@i915_selftest@live@gtt.html
- bat-rpls-3: [PASS][37] -> [DMESG-FAIL][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-rpls-3/igt@i915_selftest@live@gtt.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-rpls-3/igt@i915_selftest@live@gtt.html
- fi-glk-j4005: NOTRUN -> [DMESG-FAIL][39]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-glk-j4005/igt@i915_selftest@live@gtt.html
- bat-adlp-9: [PASS][40] -> [DMESG-FAIL][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-adlp-9/igt@i915_selftest@live@gtt.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlp-9/igt@i915_selftest@live@gtt.html
- fi-kbl-7567u: [PASS][42] -> [DMESG-FAIL][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-kbl-7567u/igt@i915_selftest@live@gtt.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-7567u/igt@i915_selftest@live@gtt.html
- fi-cfl-8700k: [PASS][44] -> [DMESG-FAIL][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-cfl-8700k/igt@i915_selftest@live@gtt.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8700k/igt@i915_selftest@live@gtt.html
- bat-dg2-14: [PASS][46] -> [DMESG-FAIL][47]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-14/igt@i915_selftest@live@gtt.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-14/igt@i915_selftest@live@gtt.html
- fi-bsw-nick: [PASS][48] -> [DMESG-FAIL][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-bsw-nick/igt@i915_selftest@live@gtt.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-bsw-nick/igt@i915_selftest@live@gtt.html
- bat-rplp-1: [PASS][50] -> [DMESG-FAIL][51]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-rplp-1/igt@i915_selftest@live@gtt.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-rplp-1/igt@i915_selftest@live@gtt.html
- fi-rkl-11600: [PASS][52] -> [DMESG-FAIL][53]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-rkl-11600/igt@i915_selftest@live@gtt.html
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-rkl-11600/igt@i915_selftest@live@gtt.html
* igt@i915_selftest@live@hangcheck:
- bat-dg2-8: [PASS][54] -> [ABORT][55]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-8/igt@i915_selftest@live@hangcheck.html
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@i915_selftest@live@hangcheck.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@i915_pm_rpm@module-reload:
- {bat-mtlp-9}: [PASS][56] -> [CRASH][57]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-mtlp-9/igt@i915_pm_rpm@module-reload.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/igt@i915_pm_rpm@module-reload.html
* igt@i915_selftest@live@gtt:
- {bat-mtlp-9}: [PASS][58] -> [DMESG-FAIL][59]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-mtlp-9/igt@i915_selftest@live@gtt.html
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/igt@i915_selftest@live@gtt.html
- {bat-arls-4}: [PASS][60] -> [DMESG-FAIL][61]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-arls-4/igt@i915_selftest@live@gtt.html
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-arls-4/igt@i915_selftest@live@gtt.html
Known issues
------------
Here are the changes found in Patchwork_131095v1 that come from known issues:
### CI changes ###
#### Possible fixes ####
* boot:
- bat-jsl-1: [FAIL][62] ([i915#8293]) -> [PASS][63]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-jsl-1/boot.html
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/boot.html
- fi-cfl-8109u: [FAIL][64] ([i915#8293]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/fi-cfl-8109u/boot.html
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8109u/boot.html
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@basic-hwmon:
- bat-jsl-1: NOTRUN -> [SKIP][66] ([i915#9318])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@debugfs_test@basic-hwmon.html
* igt@gem_huc_copy@huc-copy:
- fi-cfl-8109u: NOTRUN -> [SKIP][67] ([i915#2190])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8109u/igt@gem_huc_copy@huc-copy.html
- bat-jsl-1: NOTRUN -> [SKIP][68] ([i915#2190])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@gem_huc_copy@huc-copy.html
- fi-glk-j4005: NOTRUN -> [SKIP][69] ([i915#2190])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-glk-j4005/igt@gem_huc_copy@huc-copy.html
* igt@gem_lmem_swapping@basic:
- fi-glk-j4005: NOTRUN -> [SKIP][70] ([i915#4613]) +3 other tests skip
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-glk-j4005/igt@gem_lmem_swapping@basic.html
* igt@gem_lmem_swapping@verify-random:
- fi-cfl-8109u: NOTRUN -> [SKIP][71] ([i915#4613]) +3 other tests skip
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8109u/igt@gem_lmem_swapping@verify-random.html
- bat-jsl-1: NOTRUN -> [SKIP][72] ([i915#4613]) +3 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@gem_lmem_swapping@verify-random.html
* igt@i915_selftest@live@migrate:
- bat-dg2-9: [PASS][73] -> [ABORT][74] ([i915#10366])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-dg2-9/igt@i915_selftest@live@migrate.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-9/igt@i915_selftest@live@migrate.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-glk-j4005: NOTRUN -> [SKIP][75] +10 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-glk-j4005/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-jsl-1: NOTRUN -> [SKIP][76] ([i915#4103]) +1 other test skip
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy.html
* igt@kms_dsc@dsc-basic:
- bat-jsl-1: NOTRUN -> [SKIP][77] ([i915#3555] / [i915#9886])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@kms_dsc@dsc-basic.html
* igt@kms_force_connector_basic@force-load-detect:
- bat-jsl-1: NOTRUN -> [SKIP][78]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@kms_force_connector_basic@force-load-detect.html
* igt@kms_pm_backlight@basic-brightness:
- fi-cfl-8109u: NOTRUN -> [SKIP][79] +11 other tests skip
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8109u/igt@kms_pm_backlight@basic-brightness.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-jsl-1: NOTRUN -> [SKIP][80] ([i915#3555])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@kms_setmode@basic-clone-single-crtc.html
#### Possible fixes ####
* igt@kms_pm_rpm@basic-rte:
- {bat-mtlp-9}: [DMESG-WARN][81] -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14428/bat-mtlp-9/igt@kms_pm_rpm@basic-rte.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/igt@kms_pm_rpm@basic-rte.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#10366]: https://gitlab.freedesktop.org/drm/intel/issues/10366
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
[i915#9318]: https://gitlab.freedesktop.org/drm/intel/issues/9318
[i915#9886]: https://gitlab.freedesktop.org/drm/intel/issues/9886
Build changes
-------------
* Linux: CI_DRM_14428 -> Patchwork_131095v1
CI-20190529: 20190529
CI_DRM_14428: 790a1d4e546a1d7f1cc5316c77f21379a4083250 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7760: 7760
Patchwork_131095v1: 790a1d4e546a1d7f1cc5316c77f21379a4083250 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
1d0007feff06 drm/i915/gt: Report full vm address range
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/index.html
[-- Attachment #2: Type: text/html, Size: 17238 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH] drm/i915/gt: Report full vm address range
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
2024-03-14 2:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2024-03-14 5:21 ` Mrozek, Michal
2024-03-14 14:04 ` Lionel Landwerlin
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Mrozek, Michal @ 2024-03-14 5:21 UTC (permalink / raw)
To: Andi Shyti, intel-gfx, dri-devel
Cc: Andi Shyti, Hajda, Andrzej, Chris Wilson, Landwerlin, Lionel G,
Das, Nirmoy, stable@vger.kernel.org
Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per
vm") has reserved an object for kernel space usage.
Userspace, though, needs to know the full address range.
Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm")
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Chris Wilson <chris.p.wilson@linux.intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Michal Mrozek <michal.mrozek@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v6.2+
---
drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
index fa46d2308b0e..d76831f50106 100644
--- a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
+++ b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
@@ -982,8 +982,9 @@ static int gen8_init_rsvd(struct i915_address_space *vm)
vm->rsvd.vma = i915_vma_make_unshrinkable(vma);
vm->rsvd.obj = obj;
- vm->total -= vma->node.size;
+
return 0;
+
unref:
i915_gem_object_put(obj);
return ret;
--
2.43.0
Acked-by: Michal Mrozek <michal.mrozek@intel.com>
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] drm/i915/gt: Report full vm address range
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
2024-03-14 2:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-03-14 5:21 ` [PATCH] " Mrozek, Michal
@ 2024-03-14 14:04 ` Lionel Landwerlin
2024-03-14 16:05 ` Nirmoy Das
2024-03-14 20:13 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2) Patchwork
2024-03-14 20:33 ` ✗ Fi.CI.BAT: failure " Patchwork
4 siblings, 1 reply; 11+ messages in thread
From: Lionel Landwerlin @ 2024-03-14 14:04 UTC (permalink / raw)
To: Andi Shyti, intel-gfx, dri-devel
Cc: Andi Shyti, Andrzej Hajda, Chris Wilson, Michal Mrozek,
Nirmoy Das, stable
Hi Andi,
In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long as
that is adjusted by the kernel, we should be able to continue working
without issues.
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Thanks,
-Lionel
On 13/03/2024 21:39, Andi Shyti wrote:
> Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per
> vm") has reserved an object for kernel space usage.
>
> Userspace, though, needs to know the full address range.
>
> Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm")
> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
> Cc: Andrzej Hajda <andrzej.hajda@intel.com>
> Cc: Chris Wilson <chris.p.wilson@linux.intel.com>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: Michal Mrozek <michal.mrozek@intel.com>
> Cc: Nirmoy Das <nirmoy.das@intel.com>
> Cc: <stable@vger.kernel.org> # v6.2+
> ---
> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
> index fa46d2308b0e..d76831f50106 100644
> --- a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
> +++ b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
> @@ -982,8 +982,9 @@ static int gen8_init_rsvd(struct i915_address_space *vm)
>
> vm->rsvd.vma = i915_vma_make_unshrinkable(vma);
> vm->rsvd.obj = obj;
> - vm->total -= vma->node.size;
> +
> return 0;
> +
> unref:
> i915_gem_object_put(obj);
> return ret;
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] drm/i915/gt: Report full vm address range
2024-03-14 14:04 ` Lionel Landwerlin
@ 2024-03-14 16:05 ` Nirmoy Das
2024-03-15 17:08 ` Andi Shyti
0 siblings, 1 reply; 11+ messages in thread
From: Nirmoy Das @ 2024-03-14 16:05 UTC (permalink / raw)
To: Lionel Landwerlin, Andi Shyti, intel-gfx, dri-devel
Cc: Andi Shyti, Andrzej Hajda, Chris Wilson, Michal Mrozek,
Nirmoy Das, stable
On 3/14/2024 3:04 PM, Lionel Landwerlin wrote:
> Hi Andi,
>
> In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long
> as that is adjusted by the kernel
What do you mean by adjusted by, should it be a aligned size?
I915_CONTEXT_PARAM_GTT_SIZE ioctl is returning vm->total which is
adjusted(reduced by a page).
This patch might cause silent error as it is not removing WABB which is
using the reserved page to add dummy blt and if userspace is using that
page then it will be overwritten.
Regards,
Nirmoy
> , we should be able to continue working without issues.
>
> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
>
> Thanks,
>
> -Lionel
>
> On 13/03/2024 21:39, Andi Shyti wrote:
>> Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per
>> vm") has reserved an object for kernel space usage.
>>
>> Userspace, though, needs to know the full address range.
>>
>> Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm")
>> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
>> Cc: Andrzej Hajda <andrzej.hajda@intel.com>
>> Cc: Chris Wilson <chris.p.wilson@linux.intel.com>
>> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
>> Cc: Michal Mrozek <michal.mrozek@intel.com>
>> Cc: Nirmoy Das <nirmoy.das@intel.com>
>> Cc: <stable@vger.kernel.org> # v6.2+
>> ---
>> drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
>> b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
>> index fa46d2308b0e..d76831f50106 100644
>> --- a/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
>> +++ b/drivers/gpu/drm/i915/gt/gen8_ppgtt.c
>> @@ -982,8 +982,9 @@ static int gen8_init_rsvd(struct
>> i915_address_space *vm)
>> vm->rsvd.vma = i915_vma_make_unshrinkable(vma);
>> vm->rsvd.obj = obj;
>> - vm->total -= vma->node.size;
>> +
>> return 0;
>> +
>> unref:
>> i915_gem_object_put(obj);
>> return ret;
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2)
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
` (2 preceding siblings ...)
2024-03-14 14:04 ` Lionel Landwerlin
@ 2024-03-14 20:13 ` Patchwork
2024-03-14 20:33 ` ✗ Fi.CI.BAT: failure " Patchwork
4 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2024-03-14 20:13 UTC (permalink / raw)
To: Andi Shyti; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/gt: Report full vm address range (rev2)
URL : https://patchwork.freedesktop.org/series/131095/
State : warning
== Summary ==
Error: dim checkpatch failed
de74046741ce drm/i915/gt: Report full vm address range
-:20: WARNING:BAD_SIGN_OFF: Duplicate signature
#20:
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
total: 0 errors, 1 warnings, 0 checks, 10 lines checked
^ permalink raw reply [flat|nested] 11+ messages in thread
* ✗ Fi.CI.BAT: failure for drm/i915/gt: Report full vm address range (rev2)
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
` (3 preceding siblings ...)
2024-03-14 20:13 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2) Patchwork
@ 2024-03-14 20:33 ` Patchwork
4 siblings, 0 replies; 11+ messages in thread
From: Patchwork @ 2024-03-14 20:33 UTC (permalink / raw)
To: Andi Shyti; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 11059 bytes --]
== Series Details ==
Series: drm/i915/gt: Report full vm address range (rev2)
URL : https://patchwork.freedesktop.org/series/131095/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_14433 -> Patchwork_131095v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_131095v2 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_131095v2, please notify your bug team (I915-ci-infra@lists.freedesktop.org) 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_131095v2/index.html
Participating hosts (37 -> 34)
------------------------------
Missing (3): bat-dg1-7 fi-glk-j4005 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_131095v2:
### IGT changes ###
#### Possible regressions ####
* igt@gem_softpin@allocator-basic:
- bat-dg2-14: [PASS][1] -> [FAIL][2] +3 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-14/igt@gem_softpin@allocator-basic.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-14/igt@gem_softpin@allocator-basic.html
* igt@gem_softpin@allocator-basic-reserve:
- bat-atsm-1: [PASS][3] -> [FAIL][4] +2 other tests fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-atsm-1/igt@gem_softpin@allocator-basic-reserve.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-atsm-1/igt@gem_softpin@allocator-basic-reserve.html
- bat-dg2-9: [PASS][5] -> [FAIL][6] +2 other tests fail
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-9/igt@gem_softpin@allocator-basic-reserve.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-9/igt@gem_softpin@allocator-basic-reserve.html
- bat-dg2-8: [PASS][7] -> [FAIL][8] +2 other tests fail
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-8/igt@gem_softpin@allocator-basic-reserve.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-8/igt@gem_softpin@allocator-basic-reserve.html
* igt@i915_selftest@live@gtt:
- bat-atsm-1: [PASS][9] -> [DMESG-FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-atsm-1/igt@i915_selftest@live@gtt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-atsm-1/igt@i915_selftest@live@gtt.html
- fi-cfl-guc: [PASS][11] -> [DMESG-FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-cfl-guc/igt@i915_selftest@live@gtt.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-guc/igt@i915_selftest@live@gtt.html
- bat-jsl-3: [PASS][13] -> [DMESG-FAIL][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-jsl-3/igt@i915_selftest@live@gtt.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-jsl-3/igt@i915_selftest@live@gtt.html
- bat-dg2-9: [PASS][15] -> [DMESG-FAIL][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-9/igt@i915_selftest@live@gtt.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-9/igt@i915_selftest@live@gtt.html
- fi-kbl-x1275: [PASS][17] -> [DMESG-FAIL][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-kbl-x1275/igt@i915_selftest@live@gtt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-x1275/igt@i915_selftest@live@gtt.html
- fi-cfl-8109u: [PASS][19] -> [DMESG-FAIL][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-cfl-8109u/igt@i915_selftest@live@gtt.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-8109u/igt@i915_selftest@live@gtt.html
- bat-adln-1: [PASS][21] -> [DMESG-FAIL][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-adln-1/igt@i915_selftest@live@gtt.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adln-1/igt@i915_selftest@live@gtt.html
- bat-mtlp-8: [PASS][23] -> [DMESG-FAIL][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-mtlp-8/igt@i915_selftest@live@gtt.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-8/igt@i915_selftest@live@gtt.html
- bat-dg2-8: [PASS][25] -> [DMESG-FAIL][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-8/igt@i915_selftest@live@gtt.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-8/igt@i915_selftest@live@gtt.html
- fi-kbl-guc: [PASS][27] -> [DMESG-FAIL][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-kbl-guc/igt@i915_selftest@live@gtt.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-guc/igt@i915_selftest@live@gtt.html
- bat-adls-6: [PASS][29] -> [DMESG-FAIL][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-adls-6/igt@i915_selftest@live@gtt.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adls-6/igt@i915_selftest@live@gtt.html
- bat-adlm-1: [PASS][31] -> [DMESG-FAIL][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-adlm-1/igt@i915_selftest@live@gtt.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlm-1/igt@i915_selftest@live@gtt.html
- bat-jsl-1: [PASS][33] -> [DMESG-FAIL][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-jsl-1/igt@i915_selftest@live@gtt.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-jsl-1/igt@i915_selftest@live@gtt.html
- fi-tgl-1115g4: [PASS][35] -> [DMESG-FAIL][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-tgl-1115g4/igt@i915_selftest@live@gtt.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-tgl-1115g4/igt@i915_selftest@live@gtt.html
- bat-arls-1: [PASS][37] -> [DMESG-FAIL][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-arls-1/igt@i915_selftest@live@gtt.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-arls-1/igt@i915_selftest@live@gtt.html
- bat-adlp-6: [PASS][39] -> [DMESG-FAIL][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-adlp-6/igt@i915_selftest@live@gtt.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlp-6/igt@i915_selftest@live@gtt.html
- bat-mtlp-6: [PASS][41] -> [DMESG-FAIL][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-mtlp-6/igt@i915_selftest@live@gtt.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-6/igt@i915_selftest@live@gtt.html
- bat-rpls-3: [PASS][43] -> [DMESG-FAIL][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-rpls-3/igt@i915_selftest@live@gtt.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-rpls-3/igt@i915_selftest@live@gtt.html
- fi-apl-guc: [PASS][45] -> [DMESG-FAIL][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-apl-guc/igt@i915_selftest@live@gtt.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-apl-guc/igt@i915_selftest@live@gtt.html
- bat-adlp-9: [PASS][47] -> [DMESG-FAIL][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-adlp-9/igt@i915_selftest@live@gtt.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlp-9/igt@i915_selftest@live@gtt.html
- fi-kbl-7567u: [PASS][49] -> [DMESG-FAIL][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-kbl-7567u/igt@i915_selftest@live@gtt.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-7567u/igt@i915_selftest@live@gtt.html
- fi-cfl-8700k: [PASS][51] -> [DMESG-FAIL][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-cfl-8700k/igt@i915_selftest@live@gtt.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-8700k/igt@i915_selftest@live@gtt.html
- bat-dg2-14: [PASS][53] -> [DMESG-FAIL][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-dg2-14/igt@i915_selftest@live@gtt.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-14/igt@i915_selftest@live@gtt.html
- fi-bsw-nick: [PASS][55] -> [DMESG-FAIL][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-bsw-nick/igt@i915_selftest@live@gtt.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-bsw-nick/igt@i915_selftest@live@gtt.html
- bat-rplp-1: [PASS][57] -> [DMESG-FAIL][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-rplp-1/igt@i915_selftest@live@gtt.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-rplp-1/igt@i915_selftest@live@gtt.html
- fi-rkl-11600: [PASS][59] -> [DMESG-FAIL][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/fi-rkl-11600/igt@i915_selftest@live@gtt.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-rkl-11600/igt@i915_selftest@live@gtt.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@i915_selftest@live@gtt:
- {bat-mtlp-9}: [PASS][61] -> [DMESG-FAIL][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-mtlp-9/igt@i915_selftest@live@gtt.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-9/igt@i915_selftest@live@gtt.html
- {bat-arls-4}: [PASS][63] -> [DMESG-FAIL][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14433/bat-arls-4/igt@i915_selftest@live@gtt.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-arls-4/igt@i915_selftest@live@gtt.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
Build changes
-------------
* Linux: CI_DRM_14433 -> Patchwork_131095v2
CI-20190529: 20190529
CI_DRM_14433: f5246a1cf97dd1b9bf955148b0ca2cbf0b18d31e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7765: 67615901aedcc79d8d1523c6484c67c11ba0e316 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_131095v2: f5246a1cf97dd1b9bf955148b0ca2cbf0b18d31e @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
6a30e4d3cdad drm/i915/gt: Report full vm address range
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/index.html
[-- Attachment #2: Type: text/html, Size: 11906 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] drm/i915/gt: Report full vm address range
2024-03-14 16:05 ` Nirmoy Das
@ 2024-03-15 17:08 ` Andi Shyti
2024-03-18 5:21 ` Mrozek, Michal
0 siblings, 1 reply; 11+ messages in thread
From: Andi Shyti @ 2024-03-15 17:08 UTC (permalink / raw)
To: Nirmoy Das
Cc: Lionel Landwerlin, Andi Shyti, intel-gfx, dri-devel, Andi Shyti,
Andrzej Hajda, Chris Wilson, Michal Mrozek, Nirmoy Das, stable
Hi Nirmoy,
> > In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long as
> > that is adjusted by the kernel
>
> What do you mean by adjusted by, should it be a aligned size?
>
> I915_CONTEXT_PARAM_GTT_SIZE ioctl is returning vm->total which is
> adjusted(reduced by a page).
>
> This patch might cause silent error as it is not removing WABB which is
> using the reserved page to add dummy blt and if userspace is using that
>
> page then it will be overwritten.
yes, I think this could happen, but there is no solution,
unfortunately. We need to fail at some point.
On the other hand, I think mesa is miscalculating the vm size. In
userspace the total size is derived by the bit size
(maxNBitValue()).
By doing so, I guess there will always be cases of
miscalculation.
There are two solutions here:
1. we track two sizes, one the true available size and one the
total size. But this looks like a dirty hack to me.
2. UMD fixes the size calculation by taking for granted what the
driver provides and we don't have anything to do in KMD.
Lionel, Michal, thoughts?
Andi
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH] drm/i915/gt: Report full vm address range
2024-03-15 17:08 ` Andi Shyti
@ 2024-03-18 5:21 ` Mrozek, Michal
2024-03-20 18:30 ` Andi Shyti
0 siblings, 1 reply; 11+ messages in thread
From: Mrozek, Michal @ 2024-03-18 5:21 UTC (permalink / raw)
To: Andi Shyti, Nirmoy Das
Cc: Landwerlin, Lionel G, intel-gfx, dri-devel, Andi Shyti,
Hajda, Andrzej, Chris Wilson, Das, Nirmoy, stable@vger.kernel.org
> > Lionel, Michal, thoughts?
Compute UMD needs to know exact GTT total size.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] drm/i915/gt: Report full vm address range
2024-03-18 5:21 ` Mrozek, Michal
@ 2024-03-20 18:30 ` Andi Shyti
2024-03-21 4:29 ` Mrozek, Michal
0 siblings, 1 reply; 11+ messages in thread
From: Andi Shyti @ 2024-03-20 18:30 UTC (permalink / raw)
To: Mrozek, Michal
Cc: Andi Shyti, Nirmoy Das, Landwerlin, Lionel G, intel-gfx,
dri-devel, Andi Shyti, Hajda, Andrzej, Chris Wilson, Das, Nirmoy,
stable@vger.kernel.org
Hi Michal,
On Mon, Mar 18, 2024 at 05:21:54AM +0000, Mrozek, Michal wrote:
> > > Lionel, Michal, thoughts?
> Compute UMD needs to know exact GTT total size.
the problem is that we cannot apply the workaround without
reserving one page from the GTT total size and we need to apply
the workaround.
If we provide the total GTT size we will have one page that will
be contended between kernel and userspace and, if userspace is
unaware that the page belongs to the kernel, we might step on
each other toe.
The ask here from kernel side is to relax the check on the
maxNBitValue() in userspace and take what the kernel provides.
Thanks,
Andi
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PATCH] drm/i915/gt: Report full vm address range
2024-03-20 18:30 ` Andi Shyti
@ 2024-03-21 4:29 ` Mrozek, Michal
0 siblings, 0 replies; 11+ messages in thread
From: Mrozek, Michal @ 2024-03-21 4:29 UTC (permalink / raw)
To: Andi Shyti
Cc: Nirmoy Das, Landwerlin, Lionel G, intel-gfx, dri-devel,
Andi Shyti, Hajda, Andrzej, Chris Wilson, Das, Nirmoy,
stable@vger.kernel.org
> If we provide the total GTT size we will have one page that will be contended between kernel and userspace and, if userspace is unaware that the page belongs to the > kernel, we might step on each other toe.
That's fine, Compute needs to know total GTT size.
Not available GTT size.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-03-21 4:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 19:39 [PATCH] drm/i915/gt: Report full vm address range Andi Shyti
2024-03-14 2:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-03-14 5:21 ` [PATCH] " Mrozek, Michal
2024-03-14 14:04 ` Lionel Landwerlin
2024-03-14 16:05 ` Nirmoy Das
2024-03-15 17:08 ` Andi Shyti
2024-03-18 5:21 ` Mrozek, Michal
2024-03-20 18:30 ` Andi Shyti
2024-03-21 4:29 ` Mrozek, Michal
2024-03-14 20:13 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2) Patchwork
2024-03-14 20:33 ` ✗ Fi.CI.BAT: failure " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox