Skip to contentSkip to conversation

tests/kms_prime: Create the exporting BO with smem placement

PATCH Superseded Ramalingam C 4 participants 5 messages Sep 8, 2021

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tests/kms_prime: Create the exporting BO with smem placement

On i915, to avail the dmabuf, the sharing object needs to migratable into smem. So if the shared object is lmem, then it needs to have the smem as second placement option.

Currently kms_prime sharing the dumb buffer between the devices. But dumb buffer can't have the placements and resides at lmem for the dgfx. Hence to meet the i915 expectation for dgfx, we create the BO using the gem_create with smem as second placement option.

v2: Used gem_mmap__device_coherent for mmaped ptr (Ashutosh)

---
 tests/kms_prime.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
tests/kms_prime.c +11 -12
index 2e20c58bc16e..ccbb2feadd29 100644
@@ -100,18 +100,17 @@ static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch,
 	scratch->height = mode->vdisplay;
 	scratch->bpp = 32;
 
-	scratch->handle = kmstest_dumb_create(exporter_fd,
-			ALIGN(scratch->width, 256),
-			scratch->height,
-			scratch->bpp,
-			&scratch->pitch,
-			&scratch->size);
-
-
-	ptr = kmstest_dumb_map_buffer(exporter_fd,
-				      scratch->handle,
-				      scratch->size,
-				      PROT_WRITE);
+	igt_calc_fb_size(exporter_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888,
+			 DRM_FORMAT_MOD_NONE, &scratch->size, &scratch->pitch);
+	if (gem_has_lmem(exporter_fd))
+		scratch->handle = gem_create_in_memory_regions(exporter_fd, scratch->size,
+							       REGION_LMEM(0), REGION_SMEM);
+	else
+		scratch->handle = gem_create_in_memory_regions(exporter_fd, scratch->size,
+							       REGION_SMEM);
+
+	ptr = gem_mmap__device_coherent(exporter_fd, scratch->handle, 0, scratch->size,
+					PROT_WRITE | PROT_READ);
 
 	for (size_t idx = 0; idx < scratch->size / sizeof(*ptr); ++idx)
 		ptr[idx] = color;
Signature · 1 line
2.20.1
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_prime: Create the exporting BO with smem placement

== Series Details ==

== Series Details ==

Series: tests/kms_prime: Create the exporting BO with smem placement
URL : https://patchwork.freedesktop.org/series/94471/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_10562 -> IGTPW_6209
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/index.html

Known issues
------------

Here are the changes found in IGTPW_6209 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_parallel@engines@userptr:
- fi-pnv-d510: [PASS][1] -> [INCOMPLETE][2] ([i915#299])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/fi-pnv-d510/igt@gem_exec_parallel@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/fi-pnv-d510/igt@gem_exec_parallel@[email protected]

* igt@runner@aborted:
- fi-pnv-d510: NOTRUN -> [FAIL][3] ([i915#2403])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/fi-pnv-d510/igt@[email protected]

[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#299]: https://gitlab.freedesktop.org/drm/intel/issues/299

Participating hosts (47 -> 39)
------------------------------

Missing (8): fi-ilk-m540 bat-adls-5 bat-dg1-6 fi-bsw-cyan bat-adlp-4 fi-ctg-p8600 fi-bdw-samus bat-jsl-1

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_6200 -> IGTPW_6209

CI-20190529: 20190529
CI_DRM_10562: d38c3e456e48f3cc74f454615dedc5a82e258402 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6209: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/index.html
IGT_6200: 3a6585c472dff11ece952b745244f05e4c93ede5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/index.html

#2 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_prime: Create the exporting BO with smem placement

In reply to Ramalingam C
== Series Details ==

== Series Details ==

Series: tests/kms_prime: Create the exporting BO with smem placement
URL : https://patchwork.freedesktop.org/series/94471/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10562_full -> IGTPW_6209_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_6209_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_6209_full, 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/IGTPW_6209/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_6209_full:

### IGT changes ###

#### Possible regressions ####

* igt@kms_prime@basic-crc@second-to-first:
- shard-kbl: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-kbl3/igt@kms_prime@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl4/igt@kms_prime@[email protected]
- shard-iclb: [PASS][3] -> [FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-iclb3/igt@kms_prime@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb1/igt@kms_prime@[email protected]
- shard-snb: [PASS][5] -> [FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-snb5/igt@kms_prime@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb6/igt@kms_prime@[email protected]
- shard-tglb: [PASS][7] -> [FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb6/igt@kms_prime@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb1/igt@kms_prime@[email protected]
- shard-glk: [PASS][9] -> [FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-glk4/igt@kms_prime@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk4/igt@kms_prime@[email protected]

Known issues
------------

Here are the changes found in IGTPW_6209_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_create@create-massive:
- shard-snb: NOTRUN -> [DMESG-WARN][11] ([i915#3002])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb6/igt@[email protected]

* igt@gem_ctx_persistence@legacy-engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#1099]) +4 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb2/igt@[email protected]

* igt@gem_ctx_sseu@engines:
- shard-tglb: NOTRUN -> [SKIP][13] ([i915#280])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@[email protected]

* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: NOTRUN -> [FAIL][14] ([i915#2842])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk9/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-tglb: NOTRUN -> [FAIL][15] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs0:
- shard-tglb: [PASS][16] -> [FAIL][17] ([i915#2842])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb5/igt@gem_exec_fair@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vecs0:
- shard-glk: [PASS][18] -> [FAIL][19] ([i915#2842]) +4 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-glk5/igt@gem_exec_fair@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][20] -> [FAIL][21] ([i915#2849])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-iclb4/igt@gem_exec_fair@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb3/igt@gem_exec_fair@[email protected]

* igt@gem_pwrite@basic-exhaustion:
- shard-snb: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb6/igt@[email protected]
- shard-apl: NOTRUN -> [WARN][23] ([i915#2658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl6/igt@[email protected]

* igt@gem_render_copy@yf-tiled-to-vebox-linear:
- shard-iclb: NOTRUN -> [SKIP][24] ([i915#768])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb1/igt@[email protected]

* igt@gem_userptr_blits@coherency-sync:
- shard-tglb: NOTRUN -> [SKIP][25] ([fdo#110542])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb3/igt@[email protected]

* igt@gem_userptr_blits@create-destroy-unsync:
- shard-tglb: NOTRUN -> [SKIP][26] ([i915#3297]) +1 similar issue
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]

* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#3323])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl3/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#3323])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl6/igt@[email protected]

* igt@gem_userptr_blits@vma-merge:
- shard-apl: NOTRUN -> [FAIL][29] ([i915#3318])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl8/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][30] ([i915#3318])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]

* igt@gem_workarounds@suspend-resume-context:
- shard-apl: NOTRUN -> [DMESG-WARN][31] ([i915#180]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl7/igt@[email protected]

* igt@gen3_render_tiledy_blits:
- shard-tglb: NOTRUN -> [SKIP][32] ([fdo#109289]) +4 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb5/igt@gen3_render_tiledy_blits.html

* igt@gen9_exec_parse@bb-start-cmd:
- shard-tglb: NOTRUN -> [SKIP][33] ([i915#2856])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb3/igt@[email protected]

* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-iclb: NOTRUN -> [SKIP][34] ([fdo#110892])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb3/igt@[email protected]

* igt@i915_pm_rpm@gem-execbuf-stress-pc8:
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#109506] / [i915#2411])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb8/igt@[email protected]

* igt@i915_query@query-topology-unsupported:
- shard-tglb: NOTRUN -> [SKIP][36] ([fdo#109302])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb5/igt@[email protected]

* igt@i915_selftest@live@hangcheck:
- shard-snb: NOTRUN -> [INCOMPLETE][37] ([i915#3921])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb5/igt@i915_selftest@[email protected]

* igt@i915_suspend@fence-restore-untiled:
- shard-kbl: [PASS][38] -> [DMESG-WARN][39] ([i915#180])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-kbl6/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]

* igt@kms_big_fb@linear-32bpp-rotate-0:
- shard-glk: [PASS][40] -> [DMESG-WARN][41] ([i915#118] / [i915#95]) +1 similar issue
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-glk2/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk8/igt@[email protected]

* igt@kms_big_fb@x-tiled-8bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][42] ([fdo#111614]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#3777])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl7/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-kbl: NOTRUN -> [SKIP][44] ([fdo#109271] / [i915#3777]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]

* igt@kms_big_fb@yf-tiled-32bpp-rotate-270:
- shard-tglb: NOTRUN -> [SKIP][45] ([fdo#111615]) +7 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@[email protected]

* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][46] ([fdo#109271] / [i915#3886]) +2 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk3/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs.html
- shard-tglb: NOTRUN -> [SKIP][47] ([i915#3689] / [i915#3886]) +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb5/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][48] ([i915#3689]) +14 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_ccs.html

* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][49] ([fdo#109271] / [i915#3886]) +8 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl6/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109278] / [i915#3886]) +2 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb2/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html
- shard-apl: NOTRUN -> [SKIP][51] ([fdo#109271] / [i915#3886]) +9 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl6/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_cdclk@mode-transition:
- shard-iclb: NOTRUN -> [SKIP][52] ([i915#3742])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb1/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][53] ([i915#3742])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]

* igt@kms_chamelium@dp-hpd-storm-disable:
- shard-glk: NOTRUN -> [SKIP][54] ([fdo#109271] / [fdo#111827]) +7 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk9/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][55] ([fdo#109284] / [fdo#111827]) +9 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@[email protected]

* igt@kms_chamelium@vga-hpd-for-each-pipe:
- shard-kbl: NOTRUN -> [SKIP][56] ([fdo#109271] / [fdo#111827]) +14 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-snb: NOTRUN -> [SKIP][57] ([fdo#109271] / [fdo#111827]) +21 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb2/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-limited-range:
- shard-apl: NOTRUN -> [SKIP][58] ([fdo#109271] / [fdo#111827]) +26 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl3/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-degamma:
- shard-iclb: NOTRUN -> [SKIP][59] ([fdo#109284] / [fdo#111827]) +3 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb3/igt@[email protected]

* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-tglb: NOTRUN -> [SKIP][60] ([i915#3116])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb8/igt@[email protected]

* igt@kms_content_protection@legacy:
- shard-iclb: NOTRUN -> [SKIP][61] ([fdo#109300] / [fdo#111066]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb7/igt@[email protected]
- shard-kbl: NOTRUN -> [TIMEOUT][62] ([i915#1319])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl1/igt@[email protected]
- shard-apl: NOTRUN -> [TIMEOUT][63] ([i915#1319])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl7/igt@[email protected]

* igt@kms_content_protection@uevent:
- shard-kbl: NOTRUN -> [FAIL][64] ([i915#2105])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl4/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][65] ([fdo#111828]) +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][66] ([i915#2105])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-32x32-onscreen:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#3319]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][68] ([fdo#109279] / [i915#3359]) +3 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109278] / [fdo#109279])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb1/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-max-size-offscreen:
- shard-tglb: NOTRUN -> [SKIP][70] ([i915#3359]) +3 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-256x256-onscreen:
- shard-kbl: NOTRUN -> [SKIP][71] ([fdo#109271]) +188 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl4/igt@[email protected]

* igt@kms_cursor_edge_walk@pipe-d-128x128-right-edge:
- shard-snb: NOTRUN -> [SKIP][72] ([fdo#109271]) +356 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb6/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipb-legacy:
- shard-iclb: NOTRUN -> [SKIP][73] ([fdo#109274] / [fdo#109278])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb3/igt@[email protected]

* igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a:
- shard-tglb: NOTRUN -> [SKIP][74] ([i915#3788])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@kms_dither@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@a-edp1:
- shard-tglb: [PASS][75] -> [INCOMPLETE][76] ([i915#2411] / [i915#456]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb8/igt@kms_flip@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-ts-check-interruptible@a-hdmi-a1:
- shard-glk: [PASS][77] -> [FAIL][78] ([i915#2122])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-glk2/igt@kms_flip@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk4/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-tglb: NOTRUN -> [SKIP][79] ([i915#2587])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb5/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs:
- shard-apl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#2672])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-blt:
- shard-iclb: NOTRUN -> [SKIP][81] ([fdo#109280]) +14 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-tglb: NOTRUN -> [INCOMPLETE][82] ([i915#456])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-tglb: NOTRUN -> [SKIP][83] ([fdo#111825]) +43 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@psr-rgb565-draw-mmap-cpu:
- shard-glk: NOTRUN -> [SKIP][84] ([fdo#109271]) +74 similar issues
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk6/igt@[email protected]

* igt@kms_pipe_b_c_ivb@pipe-b-double-modeset-then-modeset-pipe-c:
- shard-iclb: NOTRUN -> [SKIP][85] ([fdo#109289]) +1 similar issue
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb4/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][86] ([fdo#109271] / [i915#533]) +1 similar issue
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- shard-apl: [PASS][87] -> [DMESG-WARN][88] ([i915#180])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-apl8/igt@kms_plane@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl7/igt@kms_plane@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][89] ([fdo#108145] / [i915#265]) +3 similar issues
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-kbl: NOTRUN -> [FAIL][90] ([fdo#108145] / [i915#265])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl6/igt@[email protected]

* igt@kms_plane_lowres@pipe-a-tiling-none:
- shard-tglb: NOTRUN -> [SKIP][91] ([i915#3536]) +1 similar issue
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb1/igt@[email protected]

* igt@kms_plane_multiple@atomic-pipe-b-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][92] ([fdo#112054])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@[email protected]

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#2733])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl6/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-3:
- shard-glk: NOTRUN -> [SKIP][94] ([fdo#109271] / [i915#658]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk7/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5:
- shard-apl: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#658]) +6 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl3/igt@[email protected]

* igt@kms_psr2_sf@plane-move-sf-dmg-area-0:
- shard-tglb: NOTRUN -> [SKIP][96] ([i915#2920]) +2 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][97] ([i915#658])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb5/igt@[email protected]

* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-2:
- shard-kbl: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#658]) +4 similar issues
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl1/igt@[email protected]

* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-tglb: NOTRUN -> [FAIL][99] ([i915#132] / [i915#3467]) +3 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@kms_psr@psr2_cursor_plane_onoff.html

* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][100] -> [SKIP][101] ([fdo#109441])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb1/igt@kms_psr@psr2_cursor_render.html

* igt@kms_psr@psr2_sprite_render:
- shard-iclb: NOTRUN -> [SKIP][102] ([fdo#109441])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb8/igt@kms_psr@psr2_sprite_render.html

* igt@kms_vblank@pipe-d-ts-continuation-idle-hang:
- shard-iclb: NOTRUN -> [SKIP][103] ([fdo#109278]) +14 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb2/igt@[email protected]

* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: NOTRUN -> [SKIP][104] ([fdo#109271] / [i915#533]) +2 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl7/igt@[email protected]

* igt@kms_writeback@writeback-check-output:
- shard-apl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#2437])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl3/igt@[email protected]

* igt@nouveau_crc@pipe-b-ctx-flip-skip-current-frame:
- shard-apl: NOTRUN -> [SKIP][106] ([fdo#109271]) +251 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl1/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][107] ([i915#2530]) +4 similar issues
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb2/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][108] ([i915#2530])
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb4/igt@[email protected]

* igt@nouveau_crc@pipe-d-source-outp-complete:
- shard-iclb: NOTRUN -> [SKIP][109] ([fdo#109278] / [i915#2530])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb5/igt@[email protected]

* igt@perf@polling-parameterized:
- shard-tglb: [PASS][110] -> [FAIL][111] ([i915#1542])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb3/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb1/igt@[email protected]

* igt@perf_pmu@rc6-suspend:
- shard-tglb: [PASS][112] -> [INCOMPLETE][113] ([i915#456]) +1 similar issue
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb6/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb7/igt@[email protected]

* igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name:
- shard-tglb: NOTRUN -> [SKIP][114] ([fdo#109291]) +4 similar issues
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@prime_nv_api@i915_nv_reimport_twice_check_flink_name.html

* igt@prime_vgem@coherency-gtt:
- shard-tglb: NOTRUN -> [SKIP][115] ([fdo#111656])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb3/igt@[email protected]

* igt@sysfs_clients@busy:
- shard-iclb: NOTRUN -> [SKIP][116] ([i915#2994])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb2/igt@[email protected]

* igt@sysfs_clients@fair-0:
- shard-apl: NOTRUN -> [SKIP][117] ([fdo#109271] / [i915#2994]) +1 similar issue
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl3/igt@[email protected]

* igt@sysfs_clients@sema-10:
- shard-glk: NOTRUN -> [SKIP][118] ([fdo#109271] / [i915#2994])
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk2/igt@[email protected]

* igt@sysfs_clients@sema-25:
- shard-kbl: NOTRUN -> [SKIP][119] ([fdo#109271] / [i915#2994]) +1 similar issue
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl3/igt@[email protected]

#### Possible fixes ####

* igt@fbdev@read:
- shard-kbl: [FAIL][120] -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-kbl7/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl7/igt@[email protected]
- shard-glk: [FAIL][122] -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-glk9/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-glk3/igt@[email protected]
- shard-apl: [FAIL][124] -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-apl7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-apl6/igt@[email protected]
- shard-tglb: [FAIL][126] -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb6/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@[email protected]
- shard-snb: [FAIL][128] -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-snb2/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-snb6/igt@[email protected]
- shard-iclb: [FAIL][130] -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-iclb7/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb2/igt@[email protected]

* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-tglb: [INCOMPLETE][132] ([i915#1373]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-tglb7/igt@gem_ctx_isolation@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-tglb6/igt@gem_ctx_isolation@[email protected]

* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-kbl: [FAIL][134] ([i915#2842]) -> [PASS][135]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-kbl7/igt@gem_exec_fair@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-kbl6/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [FAIL][136] ([i915#2842]) -> [PASS][137] +1 similar issue
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10562/shard-iclb2/igt@gem_exec_fair@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/shard-iclb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][138] ([i915#2842]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DR

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6209/index.html

Reviewed-by on v2 1/1
#3 lore raw
In reply to Ramalingam C
Quoted 9 lines · Ramalingam C

On i915, to avail the dmabuf, the sharing object needs to migratable into smem. So if the shared object is lmem, then it needs to have the smem as second placement option.

Currently kms_prime sharing the dumb buffer between the devices. But dumb buffer can't have the placements and resides at lmem for the dgfx. Hence to meet the i915 expectation for dgfx, we create the BO using the gem_create with smem as second placement option.

Maybe someone else should also take a look at the premise and the patch but it looks ok to me overall so:

Quoted 44 lines

v2: Used gem_mmap__device_coherent for mmaped ptr (Ashutosh)

---
 tests/kms_prime.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
tests/kms_prime.c +11 -13
index 2e20c58bc16e..ccbb2feadd29 100644
@@ -100,18 +100,17 @@ static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch,
 	scratch->height = mode->vdisplay;
 	scratch->bpp = 32;
 
-	scratch->handle = kmstest_dumb_create(exporter_fd,
-			ALIGN(scratch->width, 256),
-			scratch->height,
-			scratch->bpp,
-			&scratch->pitch,
-			&scratch->size);
-
-
-	ptr = kmstest_dumb_map_buffer(exporter_fd,
-				      scratch->handle,
-				      scratch->size,
-				      PROT_WRITE);
+	igt_calc_fb_size(exporter_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888,
+			 DRM_FORMAT_MOD_NONE, &scratch->size, &scratch->pitch);
+	if (gem_has_lmem(exporter_fd))
+		scratch->handle = gem_create_in_memory_regions(exporter_fd, scratch->size,
+							       REGION_LMEM(0), REGION_SMEM);
+	else
+		scratch->handle = gem_create_in_memory_regions(exporter_fd, scratch->size,
+							       REGION_SMEM);
+
+	ptr = gem_mmap__device_coherent(exporter_fd, scratch->handle, 0, scratch->size,
+					PROT_WRITE | PROT_READ);
 
 	for (size_t idx = 0; idx < scratch->size / sizeof(*ptr); ++idx)
 		ptr[idx] = color;
--

2.20.1

Reviewed-by
#4 lore raw
Quoted 15 lines

-----Original Message-----
From: Dixit, Ashutosh <[email protected]>
Sent: Wednesday, September 8, 2021 4:50 PM
To: C, Ramalingam <[email protected]>
Cc: igt-dev <[email protected]>; Wilson, Chris P <[email protected]>; Ruhl, Michael J <[email protected]>
Subject: Re: [PATCH i-g-t v2] tests/kms_prime: Create the exporting BO with smem placement

Quoted 5 lines · Ramalingam C

On i915, to avail the dmabuf, the sharing object needs to migratable into smem. So if the shared object is lmem, then it needs to have the smem as second placement option.

Quoted 7 lines
Quoted 4 lines

Currently kms_prime sharing the dumb buffer between the devices. But dumb buffer can't have the placements and resides at lmem for the dgfx. Hence to meet the i915 expectation for dgfx, we create the BO using the gem_create with smem as second placement option.

Maybe someone else should also take a look at the premise and the patch but it looks ok to me overall so:

This looks reasonable to me as well.

M

Quoted 53 lines

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct

Quoted 12 lines

v2: Used gem_mmap__device_coherent for mmaped ptr (Ashutosh)

---
 tests/kms_prime.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
tests/kms_prime.c +0 -0
index 2e20c58bc16e..ccbb2feadd29 100644
@@ -100,18 +100,17 @@ static void prepare_scratch(int exporter_fd, struct

dumb_bo *scratch,

Quoted 6 lines
tests/kms_prime.c +0 -3
 	scratch->height = mode->vdisplay;
 	scratch->bpp = 32;
 
-	scratch->handle = kmstest_dumb_create(exporter_fd,
-			ALIGN(scratch->width, 256),
-			scratch->height,

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch,

Quoted 10 lines
tests/kms_prime.c +1 -9
-			scratch->bpp,
-			&scratch->pitch,
-			&scratch->size);
-
-
-	ptr = kmstest_dumb_map_buffer(exporter_fd,
-				      scratch->handle,
-				      scratch->size,
-				      PROT_WRITE);
+	igt_calc_fb_size(exporter_fd, mode->hdisplay, mode->vdisplay,

DRM_FORMAT_XRGB8888,

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct · line 104

Quoted 1 line
tests/kms_prime.c +1 -0
+			 DRM_FORMAT_MOD_NONE, &scratch->size,

&scratch->pitch);

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct · line 106

Quoted 2 lines
tests/kms_prime.c +2 -0
+	if (gem_has_lmem(exporter_fd))
+		scratch->handle =

gem_create_in_memory_regions(exporter_fd, scratch->size,

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct · line 107

Quoted 1 line
tests/kms_prime.c +1 -0
+							       REGION_LMEM(0),

REGION_SMEM);

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct · line 109

Quoted 2 lines
tests/kms_prime.c +2 -0
+	else
+		scratch->handle =

gem_create_in_memory_regions(exporter_fd, scratch->size,

tests/kms_prime.c static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch,

Quoted 3 lines
tests/kms_prime.c +3 -0
+							       REGION_SMEM);
+
+	ptr = gem_mmap__device_coherent(exporter_fd, scratch->handle,

0, scratch->size,

Quoted 7 lines
tests/kms_prime.c +1 -1
+					PROT_WRITE | PROT_READ);
 
 	for (size_t idx = 0; idx < scratch->size / sizeof(*ptr); ++idx)
 		ptr[idx] = color;
--

2.20.1