Skip to contentSkip to conversation

drm/i915/gt: Report full vm address range

PATCH Superseded Andi Shyti 5 participants 11 messages Mar 13, 2024 – Mar 21, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Andi Shyti

author
#0 lore raw

PATCH 1/1 drm/i915/gt: Report full vm address range

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")
Cc Andrzej Hajda <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc Michal Mrozek <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc <[email protected]> # v6.2+
---
 drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +2 -1
index fa46d2308b0e..d76831f50106 100644
@@ -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;
Signature · 1 line
2.43.0
#1 lore raw

✗ Fi.CI.BAT: failure for drm/i915/gt: Report full vm address range

== Series Details ==

== 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 ([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_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@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-14/igt@[email protected]

* 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@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-atsm-1/igt@[email protected]
- 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@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-9/igt@[email protected]
- 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@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@[email protected]

* 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@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-atsm-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-guc/igt@i915_selftest@[email protected]
- 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@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-3/igt@i915_selftest@[email protected]
- 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@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-x1275/igt@i915_selftest@[email protected]
- 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@[email protected]
- 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@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adln-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@i915_selftest@[email protected]
- 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@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-guc/igt@i915_selftest@[email protected]
- 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@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adls-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlm-1/igt@i915_selftest@[email protected]
- 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@[email protected]
- 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@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-tgl-1115g4/igt@i915_selftest@[email protected]
- 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@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-arls-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlp-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-rpls-3/igt@i915_selftest@[email protected]
- 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@[email protected]
- 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@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-adlp-9/igt@i915_selftest@[email protected]
- 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@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-kbl-7567u/igt@i915_selftest@[email protected]
- 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@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-cfl-8700k/igt@i915_selftest@[email protected]
- 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@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-14/igt@i915_selftest@[email protected]
- 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@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-bsw-nick/igt@i915_selftest@[email protected]
- 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@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-rplp-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-rkl-11600/igt@i915_selftest@[email protected]

* 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@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-8/igt@i915_selftest@[email protected]

#### 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@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/igt@[email protected]

* 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@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/igt@i915_selftest@[email protected]
- {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@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-arls-4/igt@i915_selftest@[email protected]

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@[email protected]

* 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@[email protected]
- bat-jsl-1: NOTRUN -> [SKIP][68] ([i915#2190])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-jsl-1/igt@[email protected]
- fi-glk-j4005: NOTRUN -> [SKIP][69] ([i915#2190])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/fi-glk-j4005/igt@[email protected]

* 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@[email protected]

* 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@[email protected]
- 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@[email protected]

* 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@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-dg2-9/igt@i915_selftest@[email protected]

* 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@[email protected]

* 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@[email protected]

* 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@[email protected]

* 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@[email protected]

* 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@[email protected]

* 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@[email protected]

#### 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@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v1/bat-mtlp-9/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#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

#2 lore raw
In reply to Andi Shyti

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")
Cc Andrzej Hajda <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc Michal Mrozek <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc <[email protected]> # v6.2+
---
 drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +2 -1
index fa46d2308b0e..d76831f50106 100644
@@ -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;
Signature · 3 lines
2.43.0

Acked-by: Michal Mrozek <[email protected]>
Acked-by on v1 1/1
#3 lore raw
In reply to Andi Shyti

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.

Thanks,

-Lionel

Quoted 32 lines · Andi Shyti

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")
Cc Andrzej Hajda <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc Michal Mrozek <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc <[email protected]> # v6.2+
---
  drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +2 -1
index fa46d2308b0e..d76831f50106 100644
@@ -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;
#4 lore raw
Quoted 3 lines · Lionel Landwerlin

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

Quoted 43 lines

, we should be able to continue working without issues.

Thanks,

-Lionel

Quoted 32 lines · Andi Shyti

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")
Cc Andrzej Hajda <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc Michal Mrozek <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc <[email protected]> # v6.2+

---
  drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/gen8_ppgtt.c +2 -1
index fa46d2308b0e..d76831f50106 100644
@@ -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;

#9 lore raw

✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Report full vm address range (rev2)

In reply to Andi Shyti
== Series Details ==

== 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:

total: 0 errors, 1 warnings, 0 checks, 10 lines checked

#10 lore raw

✗ Fi.CI.BAT: failure for drm/i915/gt: Report full vm address range (rev2)

In reply to Andi Shyti
== Series Details ==

== 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 ([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_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@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-14/igt@[email protected]

* 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@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-atsm-1/igt@[email protected]
- 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@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-9/igt@[email protected]
- 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@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-8/igt@[email protected]

* 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@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-atsm-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-guc/igt@i915_selftest@[email protected]
- 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@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-jsl-3/igt@i915_selftest@[email protected]
- 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@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-9/igt@i915_selftest@[email protected]
- 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@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-x1275/igt@i915_selftest@[email protected]
- 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@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-8109u/igt@i915_selftest@[email protected]
- 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@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adln-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-8/igt@i915_selftest@[email protected]
- 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@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-8/igt@i915_selftest@[email protected]
- 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@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-guc/igt@i915_selftest@[email protected]
- 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@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adls-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlm-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-jsl-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-tgl-1115g4/igt@i915_selftest@[email protected]
- 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@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-arls-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlp-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-6/igt@i915_selftest@[email protected]
- 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@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-rpls-3/igt@i915_selftest@[email protected]
- 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@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-apl-guc/igt@i915_selftest@[email protected]
- 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@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-adlp-9/igt@i915_selftest@[email protected]
- 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@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-kbl-7567u/igt@i915_selftest@[email protected]
- 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@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-cfl-8700k/igt@i915_selftest@[email protected]
- 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@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-dg2-14/igt@i915_selftest@[email protected]
- 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@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-bsw-nick/igt@i915_selftest@[email protected]
- 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@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-rplp-1/igt@i915_selftest@[email protected]
- 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@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/fi-rkl-11600/igt@i915_selftest@[email protected]

#### 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@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-mtlp-9/igt@i915_selftest@[email protected]
- {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@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_131095v2/bat-arls-4/igt@i915_selftest@[email protected]

{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

author
#5 lore raw
In reply to Nirmoy Das

Hi Nirmoy,

Quoted 5 lines
Quoted 2 lines

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?

Quoted 7 lines

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

#6 lore raw
Quoted 1 line
Quoted 1 line

Lionel, Michal, thoughts?

Compute UMD needs to know exact GTT total size.

author
#7 lore raw

Hi Michal,

Quoted 2 lines · Michal
Quoted 1 line
Quoted 1 line

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

#8 lore raw
Quoted 1 line

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.