Skip to contentSkip to conversation

tool/lsgpu: Fix memory leak when no device is found

PATCH In review Lucas De Marchi 3 participants 4 messages Mar 18, 2021 – Mar 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tool/lsgpu: Fix memory leak when no device is found

From: Ayaz A Siddiqui <[email protected]>

Memory allocated during device scan were not being freed. added call of igt_devices_free().

---
 tools/lsgpu.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
tools/lsgpu.c +6 -4
index 25358bbe..27e76f26 100644
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
 		{"help",              no_argument,       NULL, OPT_HELP},
 		{0, 0, 0, 0}
 	};
-	int c, index = 0;
+	int c, ret = 0, index = 0;
 	char *env_device = NULL, *opt_device = NULL, *rc_device = NULL;
 	struct igt_devices_print_format fmt = {
 			.type = IGT_PRINT_USER,
@@ -257,7 +257,8 @@ int main(int argc, char *argv[])
 
 		if (!igt_device_card_match(igt_device, &card)) {
 			printf("No device found for the filter\n\n");
-			return -1;
+			ret = -1;
+			goto out;
 		}
 
 		printf("Device detail:\n");
@@ -272,9 +273,10 @@ int main(int argc, char *argv[])
 	} else {
 		igt_devices_print(&fmt);
 	}
-
+out:
+	igt_devices_free();
 	free(rc_device);
 	free(opt_device);
 
-	return 0;
+	return ret;
 }
Signature · 6 lines
2.30.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tool/lsgpu: Fix memory leak when no device is found

== Series Details ==

== Series Details ==

Series: tool/lsgpu: Fix memory leak when no device is found
URL : https://patchwork.freedesktop.org/series/88148/
State : success

== Summary ==

CI Bug Log - changes from IGT_6039 -> IGTPW_5626
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

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

### IGT changes ###

#### Possible fixes ####

* igt@gem_exec_gttfill@basic:
- fi-kbl-8809g: [TIMEOUT][1] ([i915#3145]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/fi-kbl-8809g/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/fi-kbl-8809g/igt@[email protected]

* igt@gem_linear_blits@basic:
- fi-kbl-8809g: [TIMEOUT][3] ([i915#2502] / [i915#3145]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/fi-kbl-8809g/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/fi-kbl-8809g/igt@[email protected]

[i915#2502]: https://gitlab.freedesktop.org/drm/intel/issues/2502
[i915#3145]: https://gitlab.freedesktop.org/drm/intel/issues/3145

Participating hosts (44 -> 39)
------------------------------

Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-dg1-1 fi-bdw-samus

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

* CI: CI-20190529 -> None
* IGT: IGT_6039 -> IGTPW_5626

CI-20190529: 20190529
CI_DRM_9870: a9a5ed8d2432e5335e6c26118cefb2cfff28ae37 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5626: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/index.html
IGT_6039: 8c4a2cda2a92bdd87797969ef299ad7f6e8e993b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

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

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tool/lsgpu: Fix memory leak when no device is found

In reply to Lucas De Marchi
== Series Details ==

== Series Details ==

Series: tool/lsgpu: Fix memory leak when no device is found
URL : https://patchwork.freedesktop.org/series/88148/
State : success

== Summary ==

CI Bug Log - changes from IGT_6039_full -> IGTPW_5626_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

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

### IGT changes ###

#### Issues hit ####

* igt@feature_discovery@chamelium:
- shard-tglb: NOTRUN -> [SKIP][1] ([fdo#111827])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb7/igt@[email protected]

* igt@gem_ctx_persistence@smoketest:
- shard-snb: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#1099]) +4 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-snb5/igt@[email protected]

* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [PASS][3] -> [FAIL][4] ([i915#2842]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb5/igt@gem_exec_fair@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vecs0:
- shard-glk: [PASS][5] -> [FAIL][6] ([i915#2842])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk1/igt@gem_exec_fair@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][7] -> [FAIL][8] ([i915#2849])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb7/igt@gem_exec_fair@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_params@no-vebox:
- shard-tglb: NOTRUN -> [SKIP][9] ([fdo#109283])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb1/igt@[email protected]

* igt@gem_exec_params@secure-non-root:
- shard-tglb: NOTRUN -> [SKIP][10] ([fdo#112283])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@[email protected]

* igt@gem_exec_reloc@basic-many-active@rcs0:
- shard-tglb: NOTRUN -> [FAIL][11] ([i915#2389]) +4 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb2/igt@gem_exec_reloc@[email protected]
- shard-glk: NOTRUN -> [FAIL][12] ([i915#2389])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk7/igt@gem_exec_reloc@[email protected]

* igt@gem_exec_reloc@basic-many-active@vcs0:
- shard-kbl: NOTRUN -> [FAIL][13] ([i915#2389]) +4 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl2/igt@gem_exec_reloc@[email protected]

* igt@gem_exec_reloc@basic-parallel:
- shard-apl: NOTRUN -> [TIMEOUT][14] ([i915#3183])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl2/igt@[email protected]

* igt@gem_exec_reloc@basic-wide-active@vcs1:
- shard-iclb: NOTRUN -> [FAIL][15] ([i915#2389]) +4 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb4/igt@gem_exec_reloc@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-glk: [PASS][16] -> [DMESG-WARN][17] ([i915#1610] / [i915#2803])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk2/igt@gem_exec_schedule@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk7/igt@gem_exec_schedule@[email protected]

* igt@gem_exec_whisper@basic-queues-forked-all:
- shard-glk: [PASS][18] -> [DMESG-WARN][19] ([i915#118] / [i915#95])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk2/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk2/igt@[email protected]

* igt@gem_userptr_blits@mmap-offset-invalidate-active@gtt:
- shard-iclb: NOTRUN -> [SKIP][20] ([i915#1317]) +3 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@gem_userptr_blits@[email protected]

* igt@gem_userptr_blits@mmap-offset-invalidate-active@wb:
- shard-kbl: NOTRUN -> [SKIP][21] ([fdo#109271]) +33 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl3/igt@gem_userptr_blits@[email protected]

* igt@gem_userptr_blits@mmap-offset-invalidate-active@wc:
- shard-tglb: NOTRUN -> [SKIP][22] ([i915#1317]) +3 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb5/igt@gem_userptr_blits@[email protected]

* igt@gem_userptr_blits@process-exit-mmap@wb:
- shard-apl: NOTRUN -> [SKIP][23] ([fdo#109271] / [i915#1699]) +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl7/igt@gem_userptr_blits@[email protected]

* igt@gem_vm_create@destroy-race:
- shard-tglb: [PASS][24] -> [TIMEOUT][25] ([i915#2795])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb3/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb5/igt@[email protected]

* igt@gen9_exec_parse@batch-zero-length:
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#112306])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb8/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][27] ([fdo#112306])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb3/igt@[email protected]

* igt@i915_pm_dc@dc6-psr:
- shard-tglb: NOTRUN -> [FAIL][28] ([i915#454])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb5/igt@[email protected]

* igt@i915_pm_rpm@system-suspend-execbuf:
- shard-kbl: [PASS][29] -> [INCOMPLETE][30] ([i915#151] / [i915#155])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl1/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl3/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- shard-tglb: NOTRUN -> [DMESG-FAIL][31] ([i915#2373])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@i915_selftest@live@gt_lrc.html

* igt@i915_selftest@live@gt_pm:
- shard-tglb: NOTRUN -> [DMESG-FAIL][32] ([i915#1759] / [i915#2291])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@i915_selftest@live@gt_pm.html

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

* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [PASS][34] -> [FAIL][35] ([i915#2597])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb8/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@yf-tiled-64bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#110723])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@[email protected]

* igt@kms_big_fb@yf-tiled-8bpp-rotate-180:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#111615]) +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb2/igt@[email protected]

* igt@kms_big_joiner@invalid-modeset:
- shard-apl: NOTRUN -> [SKIP][38] ([fdo#109271] / [i915#2705])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl6/igt@[email protected]

* igt@kms_chamelium@dp-hpd-storm-disable:
- shard-glk: NOTRUN -> [SKIP][39] ([fdo#109271] / [fdo#111827]) +4 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk9/igt@[email protected]

* igt@kms_chamelium@hdmi-edid-change-during-suspend:
- shard-apl: NOTRUN -> [SKIP][40] ([fdo#109271] / [fdo#111827]) +13 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl6/igt@[email protected]

* igt@kms_chamelium@vga-hpd-fast:
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#109284] / [fdo#111827]) +5 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb5/igt@[email protected]

* igt@kms_color@pipe-b-degamma:
- shard-tglb: NOTRUN -> [FAIL][42] ([i915#1149])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb3/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-kbl: NOTRUN -> [SKIP][43] ([fdo#109271] / [fdo#111827]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][44] ([fdo#109284] / [fdo#111827]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb3/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-negative:
- shard-snb: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +19 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-snb6/igt@[email protected]

* igt@kms_content_protection@atomic-dpms:
- shard-apl: NOTRUN -> [TIMEOUT][46] ([i915#1319])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-512x170-sliding:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#109278] / [fdo#109279])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-c-cursor-256x256-sliding:
- shard-apl: [PASS][48] -> [FAIL][49] ([i915#54])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-apl7/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl8/igt@[email protected]
- shard-glk: [PASS][50] -> [FAIL][51] ([i915#54])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk8/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk3/igt@[email protected]
- shard-kbl: [PASS][52] -> [FAIL][53] ([i915#54])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl4/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl3/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-256x256-random:
- shard-glk: NOTRUN -> [SKIP][54] ([fdo#109271]) +56 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109278]) +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb7/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-512x512-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][56] ([fdo#109279]) +4 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@[email protected]

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

* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109274] / [fdo#109278]) +1 similar issue
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb8/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-legacy:
- shard-apl: NOTRUN -> [DMESG-FAIL][59] ([IGT#6]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl6/igt@[email protected]

* igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible:
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109274])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb8/igt@kms_flip@2x-single-buffer-flip-vs-dpms-off-vs-modeset-interruptible.html

* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2:
- shard-glk: NOTRUN -> [FAIL][61] ([i915#79])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk3/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-apl: [PASS][62] -> [DMESG-WARN][63] ([i915#180]) +1 similar issue
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-apl1/igt@kms_flip@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl3/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#2672])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-glk: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#2672])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk9/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-iclb: NOTRUN -> [SKIP][66] ([i915#2587])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html

* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-plflip-blt:
- shard-tglb: NOTRUN -> [SKIP][67] ([fdo#111825]) +24 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb3/igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-indfb-plflip-blt.html

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-wc:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109280]) +5 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-wc.html

* igt@kms_invalid_dotclock:
- shard-tglb: NOTRUN -> [SKIP][69] ([fdo#110577])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb8/igt@kms_invalid_dotclock.html

* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-glk: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#533])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk9/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][71] ([fdo#108145] / [i915#265]) +3 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl2/igt@[email protected]
- shard-glk: NOTRUN -> [FAIL][72] ([fdo#108145] / [i915#265])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk1/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][73] ([fdo#108145] / [i915#265])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][74] ([i915#265])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl6/igt@[email protected]

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

* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][76] -> [SKIP][77] ([fdo#109642] / [fdo#111068] / [i915#658])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb2/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@[email protected]

* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: NOTRUN -> [SKIP][78] ([fdo#109441])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb3/igt@kms_psr@psr2_cursor_mmap_cpu.html

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][79] -> [SKIP][80] ([fdo#109441])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb7/igt@kms_psr@psr2_sprite_plane_move.html

* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][81] ([fdo#109271]) +201 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl3/igt@[email protected]

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

* igt@kms_writeback@writeback-invalid-parameters:
- shard-glk: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#2437])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk6/igt@[email protected]

* igt@nouveau_crc@pipe-c-ctx-flip-detection:
- shard-tglb: NOTRUN -> [SKIP][84] ([i915#2530]) +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb2/igt@[email protected]

* igt@nouveau_crc@pipe-c-source-rg:
- shard-iclb: NOTRUN -> [SKIP][85] ([i915#2530])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb6/igt@[email protected]

* igt@perf@polling-small-buf:
- shard-glk: [PASS][86] -> [FAIL][87] ([i915#1722])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk9/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk5/igt@[email protected]

* igt@prime_nv_test@i915_import_pread_pwrite:
- shard-tglb: NOTRUN -> [SKIP][88] ([fdo#109291]) +2 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb5/igt@prime_nv_test@i915_import_pread_pwrite.html

* igt@sysfs_clients@busy@vcs1:
- shard-kbl: [PASS][89] -> [FAIL][90] ([i915#3009])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl7/igt@sysfs_clients@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl6/igt@sysfs_clients@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-apl: [PASS][91] -> [FAIL][92] ([i915#3028])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-apl2/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl6/igt@[email protected]

* igt@sysfs_clients@split-10@bcs0:
- shard-kbl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#3026])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl2/igt@sysfs_clients@[email protected]

#### Possible fixes ####

* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][94] ([i915#658]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb3/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb2/igt@[email protected]

* igt@gem_eio@unwedge-stress:
- shard-tglb: [TIMEOUT][96] ([i915#2369] / [i915#3063]) -> [PASS][97]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb8/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb1/igt@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-glk: [FAIL][98] ([i915#2846]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk2/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk6/igt@[email protected]

* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-tglb: [FAIL][100] ([i915#2842]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb3/igt@gem_exec_fair@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb3/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [FAIL][102] ([i915#2842]) -> [PASS][103] +1 similar issue
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl2/igt@gem_exec_fair@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl3/igt@gem_exec_fair@[email protected]
- shard-glk: [FAIL][104] ([i915#2842]) -> [PASS][105] +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk1/igt@gem_exec_fair@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: [FAIL][106] ([i915#2842]) -> [PASS][107] +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb4/igt@gem_exec_fair@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-tglb: [DMESG-WARN][108] ([i915#2803]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb7/igt@gem_exec_schedule@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb7/igt@gem_exec_schedule@[email protected]

* igt@gem_exec_whisper@basic-fds-priority-all:
- shard-glk: [DMESG-WARN][110] ([i915#118] / [i915#95]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk4/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk8/igt@[email protected]

* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-iclb: [FAIL][112] ([i915#307]) -> [PASS][113]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb3/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb5/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-apl: [DMESG-WARN][114] ([i915#180]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-apl7/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-64x21-random:
- shard-kbl: [FAIL][116] ([i915#54]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl4/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl7/igt@[email protected]
- shard-apl: [FAIL][118] ([i915#54]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-apl2/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-apl7/igt@[email protected]
- shard-glk: [FAIL][120] ([i915#54]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk5/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk4/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible@a-edp1:
- shard-tglb: [DMESG-WARN][122] ([i915#1436] / [i915#1602] / [i915#1887] / [i915#2411]) -> [PASS][123]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-tglb7/igt@kms_flip@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-tglb1/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate@a-hdmi-a1:
- shard-glk: [FAIL][124] ([i915#2122]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-glk8/igt@kms_flip@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-glk4/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-wc:
- shard-iclb: [FAIL][126] ([i915#49]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-wc.html
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-wc.html

* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][128] ([fdo#109441]) -> [PASS][129] +2 similar issues
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb1/igt@kms_psr@psr2_primary_mmap_cpu.html
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html

* igt@sysfs_clients@recycle-many:
- shard-kbl: [FAIL][130] ([i915#3028]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl4/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl3/igt@[email protected]

#### Warnings ####

* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][132] ([i915#658]) -> [SKIP][133] ([i915#588])
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb5/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb2/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][134] ([i915#2684]) -> [WARN][135] ([i915#2681] / [i915#2684])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb5/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@[email protected]

* igt@kms_content_protection@atomic:
- shard-iclb: [FAIL][136] ([i915#3144]) -> [SKIP][137] ([fdo#109300] / [fdo#111066])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb1/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb3/igt@[email protected]

* igt@kms_content_protection@uevent:
- shard-iclb: [FAIL][138] ([i915#3137]) -> [SKIP][139] ([fdo#109300] / [fdo#111066])
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb1/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb8/igt@[email protected]

* igt@kms_psr2_sf@plane-move-sf-dmg-area-0:
- shard-iclb: [SKIP][140] ([i915#658]) -> [SKIP][141] ([i915#2920]) +1 similar issue
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb5/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb2/igt@[email protected]

* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-iclb: [SKIP][142] ([i915#2920]) -> [SKIP][143] ([i915#658]) +1 similar issue
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-iclb2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-iclb1/igt@[email protected]

* igt@runner@aborted:
- shard-kbl: ([FAIL][144], [FAIL][145], [FAIL][146]) ([i915#1814] / [i915#2724] / [i915#3002]) -> ([FAIL][147], [FAIL][148]) ([i915#2724] / [i915#3002])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl2/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl4/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6039/shard-kbl4/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl2/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5626/shard-kbl4/igt@[email protected]
- shard-iclb: ([FAIL][149], [FAIL][150], [FAIL][151]) ([i915#1814] / [i915#2724] / [i915#3002]) -> ([FAIL][152], [FAIL][153]) ([i915#2724] / [i915#3002])
[149]: https://intel-gfx-ci.01.o

== Logs ==

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

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Acked-by on v1 1/1
#3 lore raw
In reply to Lucas De Marchi
Quoted 8 lines · Lucas De Marchi

From: Ayaz A Siddiqui <[email protected]>

Memory allocated during device scan were not being freed. added call of igt_devices_free().

Is this just to appease static analysis? If the program is already terminating, all of the memory is going to immediately get freed by the OS anyway, so I'm not sure it really matters. But the changes here look fine so,

Quoted 47 lines
---
 tools/lsgpu.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
tools/lsgpu.c +6 -4
index 25358bbe..27e76f26 100644
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
 		{"help",              no_argument,       NULL, OPT_HELP},
 		{0, 0, 0, 0}
 	};
-	int c, index = 0;
+	int c, ret = 0, index = 0;
 	char *env_device = NULL, *opt_device = NULL, *rc_device = NULL;
 	struct igt_devices_print_format fmt = {
 			.type = IGT_PRINT_USER,
@@ -257,7 +257,8 @@ int main(int argc, char *argv[])
 
 		if (!igt_device_card_match(igt_device, &card)) {
 			printf("No device found for the filter\n\n");
-			return -1;
+			ret = -1;
+			goto out;
 		}
 
 		printf("Device detail:\n");
@@ -272,9 +273,10 @@ int main(int argc, char *argv[])
 	} else {
 		igt_devices_print(&fmt);
 	}
-
+out:
+	igt_devices_free();
 	free(rc_device);
 	free(opt_device);
 
-	return 0;
+	return ret;
 }
Signature · 6 lines
2.30.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Signature · 9 lines
Matt Roper
Graphics Software Engineer
VTT-OSGC Platform Enablement
Intel Corporation
(916) 356-2795
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev