* [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources()
@ 2018-10-05 8:08 Chris Wilson
2018-10-05 12:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2018-10-05 8:08 UTC (permalink / raw)
To: igt-dev
If KMS is not available, drmModeGetResoures() reports NULL and so we
cannot use this device to find the chamelium connector.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
lib/igt_chamelium.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
index fe5c4dac..3150f609 100644
--- a/lib/igt_chamelium.c
+++ b/lib/igt_chamelium.c
@@ -1422,6 +1422,10 @@ static bool chamelium_read_port_mappings(struct chamelium *chamelium,
int port_i, i, j;
bool ret = true;
+ res = drmModeGetResources(drm_fd);
+ if (!res)
+ return false;
+
group_list = g_key_file_get_groups(igt_key_file, NULL);
/* Count how many connector mappings are specified in the config */
@@ -1433,7 +1437,6 @@ static bool chamelium_read_port_mappings(struct chamelium *chamelium,
chamelium->ports = calloc(sizeof(struct chamelium_port),
chamelium->port_count);
port_i = 0;
- res = drmModeGetResources(drm_fd);
for (i = 0; group_list[i] != NULL; i++) {
group = group_list[i];
@@ -1494,8 +1497,8 @@ static bool chamelium_read_port_mappings(struct chamelium *chamelium,
}
out:
- drmModeFreeResources(res);
g_strfreev(group_list);
+ drmModeFreeResources(res);
return ret;
}
--
2.19.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for lib/chamelium: Check drmModeGetResources()
2018-10-05 8:08 [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources() Chris Wilson
@ 2018-10-05 12:14 ` Patchwork
2018-10-05 17:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-10-15 21:40 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-10-05 12:14 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: lib/chamelium: Check drmModeGetResources()
URL : https://patchwork.freedesktop.org/series/50603/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4933 -> IGTPW_1917 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/50603/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1917 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-bdw-samus: NOTRUN -> INCOMPLETE (fdo#107773)
fdo#107773 https://bugs.freedesktop.org/show_bug.cgi?id=107773
== Participating hosts (44 -> 39) ==
Additional (2): fi-glk-j4005 fi-bdw-samus
Missing (7): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-icl-u2 fi-ctg-p8600 fi-byt-clapper fi-kbl-r
== Build changes ==
* IGT: IGT_4669 -> IGTPW_1917
CI_DRM_4933: 6b7a44d1597791524f46d7ea17620db54dffdc8c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1917: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1917/
IGT_4669: 5f40e617cd9c1e089f4a2d79c53a417d891e3e3c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1917/issues.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✗ Fi.CI.IGT: failure for lib/chamelium: Check drmModeGetResources()
2018-10-05 8:08 [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources() Chris Wilson
2018-10-05 12:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-10-05 17:18 ` Patchwork
2018-10-15 21:40 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-10-05 17:18 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev
== Series Details ==
Series: lib/chamelium: Check drmModeGetResources()
URL : https://patchwork.freedesktop.org/series/50603/
State : failure
== Summary ==
= CI Bug Log - changes from IGT_4669_full -> IGTPW_1917_full =
== Summary - FAILURE ==
Serious unknown changes coming with IGTPW_1917_full absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_1917_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://patchwork.freedesktop.org/api/1.0/series/50603/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1917_full:
=== IGT changes ===
==== Possible regressions ====
igt@kms_color@pipe-c-ctm-max:
shard-kbl: PASS -> FAIL
==== Warnings ====
igt@kms_plane@plane-panning-bottom-right-pipe-a-planes:
shard-snb: PASS -> SKIP +2
== Known issues ==
Here are the changes found in IGTPW_1917_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_atomic_interruptible@universal-setplane-primary:
shard-kbl: PASS -> DMESG-WARN (fdo#105602, fdo#103558) +13
igt@kms_color@pipe-a-degamma:
shard-apl: PASS -> FAIL (fdo#108145, fdo#104782)
igt@kms_color@pipe-c-ctm-max:
shard-apl: PASS -> FAIL (fdo#108147)
igt@kms_cursor_crc@cursor-256x256-suspend:
shard-kbl: PASS -> FAIL (fdo#103232, fdo#103191)
igt@kms_cursor_crc@cursor-256x85-random:
shard-apl: PASS -> FAIL (fdo#103232) +3
igt@kms_cursor_crc@cursor-64x64-sliding:
shard-glk: PASS -> FAIL (fdo#103232) +2
shard-kbl: PASS -> FAIL (fdo#103232)
igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
shard-hsw: PASS -> FAIL (fdo#105767)
igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-ytiled:
shard-glk: PASS -> FAIL (fdo#108145) +1
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
shard-apl: PASS -> FAIL (fdo#103167) +2
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-mmap-cpu:
shard-glk: PASS -> FAIL (fdo#103167) +6
igt@kms_plane@plane-position-covered-pipe-c-planes:
shard-apl: PASS -> FAIL (fdo#103166) +1
{igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb}:
shard-apl: PASS -> FAIL (fdo#108145)
igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
shard-glk: PASS -> FAIL (fdo#103166)
igt@pm_rpm@system-suspend:
shard-kbl: PASS -> INCOMPLETE (fdo#103665, fdo#107807)
==== Possible fixes ====
igt@gem_eio@in-flight-internal-10ms:
shard-glk: FAIL (fdo#105957) -> PASS
igt@gem_eio@reset-stress:
shard-snb: INCOMPLETE (fdo#105411) -> PASS
igt@kms_available_modes_crc@available_mode_test_crc:
shard-apl: FAIL (fdo#106641) -> PASS
shard-snb: FAIL (fdo#106641) -> PASS
igt@kms_busy@extended-modeset-hang-newfb-render-b:
shard-hsw: DMESG-WARN (fdo#107956) -> PASS
igt@kms_color@pipe-a-ctm-max:
shard-apl: FAIL (fdo#108147) -> PASS
igt@kms_cursor_crc@cursor-64x21-random:
shard-apl: FAIL (fdo#103232) -> PASS +6
shard-kbl: FAIL (fdo#103232) -> PASS +1
igt@kms_cursor_crc@cursor-64x64-onscreen:
shard-glk: FAIL (fdo#103232) -> PASS +1
igt@kms_cursor_legacy@cursora-vs-flipa-atomic:
shard-glk: DMESG-WARN (fdo#106538, fdo#105763) -> PASS +3
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
shard-apl: FAIL (fdo#103167) -> PASS +3
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
shard-glk: FAIL (fdo#103167) -> PASS +10
igt@kms_plane_multiple@atomic-pipe-b-tiling-x:
shard-glk: FAIL (fdo#103166) -> PASS +1
igt@kms_plane_multiple@atomic-pipe-b-tiling-yf:
shard-apl: FAIL (fdo#103166) -> PASS +2
igt@kms_rotation_crc@sprite-rotation-180:
shard-snb: FAIL (fdo#103925) -> PASS
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104782 https://bugs.freedesktop.org/show_bug.cgi?id=104782
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105763 https://bugs.freedesktop.org/show_bug.cgi?id=105763
fdo#105767 https://bugs.freedesktop.org/show_bug.cgi?id=105767
fdo#105957 https://bugs.freedesktop.org/show_bug.cgi?id=105957
fdo#106538 https://bugs.freedesktop.org/show_bug.cgi?id=106538
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#107807 https://bugs.freedesktop.org/show_bug.cgi?id=107807
fdo#107956 https://bugs.freedesktop.org/show_bug.cgi?id=107956
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#108147 https://bugs.freedesktop.org/show_bug.cgi?id=108147
== Participating hosts (6 -> 5) ==
Missing (1): shard-skl
== Build changes ==
* IGT: IGT_4669 -> IGTPW_1917
* Linux: CI_DRM_4931 -> CI_DRM_4933
CI_DRM_4931: 826702bf60ae2b37841c051ed769b44af194fbb1 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4933: 6b7a44d1597791524f46d7ea17620db54dffdc8c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1917: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1917/
IGT_4669: 5f40e617cd9c1e089f4a2d79c53a417d891e3e3c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1917/shards.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources()
2018-10-05 8:08 [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources() Chris Wilson
2018-10-05 12:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-05 17:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
@ 2018-10-15 21:40 ` Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Souza, Jose @ 2018-10-15 21:40 UTC (permalink / raw)
To: igt-dev@lists.freedesktop.org, chris@chris-wilson.co.uk
On Fri, 2018-10-05 at 09:08 +0100, Chris Wilson wrote:
> If KMS is not available, drmModeGetResoures() reports NULL and so we
> cannot use this device to find the chamelium connector.
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> lib/igt_chamelium.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c
> index fe5c4dac..3150f609 100644
> --- a/lib/igt_chamelium.c
> +++ b/lib/igt_chamelium.c
> @@ -1422,6 +1422,10 @@ static bool
> chamelium_read_port_mappings(struct chamelium *chamelium,
> int port_i, i, j;
> bool ret = true;
>
> + res = drmModeGetResources(drm_fd);
> + if (!res)
> + return false;
> +
> group_list = g_key_file_get_groups(igt_key_file, NULL);
>
> /* Count how many connector mappings are specified in the
> config */
> @@ -1433,7 +1437,6 @@ static bool chamelium_read_port_mappings(struct
> chamelium *chamelium,
> chamelium->ports = calloc(sizeof(struct chamelium_port),
> chamelium->port_count);
> port_i = 0;
> - res = drmModeGetResources(drm_fd);
>
> for (i = 0; group_list[i] != NULL; i++) {
> group = group_list[i];
> @@ -1494,8 +1497,8 @@ static bool chamelium_read_port_mappings(struct
> chamelium *chamelium,
> }
>
> out:
> - drmModeFreeResources(res);
> g_strfreev(group_list);
> + drmModeFreeResources(res);
>
> return ret;
> }
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-15 21:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 8:08 [igt-dev] [PATCH i-g-t] lib/chamelium: Check drmModeGetResources() Chris Wilson
2018-10-05 12:14 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-05 17:18 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-10-15 21:40 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox