* [igt-dev] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds
@ 2018-02-19 10:04 Tvrtko Ursulin
2018-02-19 10:12 ` [igt-dev] [Intel-gfx] " Chris Wilson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Tvrtko Ursulin @ 2018-02-19 10:04 UTC (permalink / raw)
To: igt-dev; +Cc: Intel-gfx, Tvrtko Ursulin
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Correct printf format for uint64_t and one "may be uninitialized".
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/perf_pmu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 82053416cbea..8d8dbe397df6 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -300,7 +300,7 @@ busy_double_start(int gem_fd, const struct intel_execution_engine2 *e)
usleep(batch_duration_ns / 1000);
val2 = pmu_read_single(fd) - val2;
- igt_info("busy=%lu idle=%lu\n", val, val2);
+ igt_info("busy=%"PRIu64" idle=%"PRIu64"\n", val, val2);
igt_spin_batch_free(gem_fd, spin[0]);
igt_spin_batch_free(gem_fd, spin[1]);
@@ -340,11 +340,11 @@ busy_check_all(int gem_fd, const struct intel_execution_engine2 *e,
{
const struct intel_execution_engine2 *e_;
uint64_t tval[2][num_engines];
+ unsigned int busy_idx = 0, i;
uint64_t val[num_engines];
int fd[num_engines];
unsigned long slept;
igt_spin_t *spin;
- unsigned int busy_idx, i;
i = 0;
fd[0] = -1;
--
2.14.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds
2018-02-19 10:04 [igt-dev] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds Tvrtko Ursulin
@ 2018-02-19 10:12 ` Chris Wilson
2018-02-19 10:17 ` [igt-dev] [PATCH i-g-t v2] " Tvrtko Ursulin
2018-02-19 11:33 ` [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2) Patchwork
2018-02-19 13:32 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2018-02-19 10:12 UTC (permalink / raw)
To: Tvrtko Ursulin, igt-dev; +Cc: Intel-gfx
Quoting Tvrtko Ursulin (2018-02-19 10:04:08)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> Correct printf format for uint64_t and one "may be uninitialized".
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixing those two turned up one more!
In file included from ./../lib/igt.h:40:0,
from perf_pmu.c:40:
perf_pmu.c: In function ‘__real_main1547’:
./../lib/igt_gt.h:111:2: warning: ‘render_fd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
perf_pmu.c:1761:7: note: ‘render_fd’ was declared here
This compiler is easily confused by longjmps
@@ -1758,7 +1758,7 @@ igt_main
* Check render nodes are counted.
*/
igt_subtest_group {
- int render_fd;
+ int render_fd = -1;
Throw that in on top and have a
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] [PATCH i-g-t v2] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds
2018-02-19 10:12 ` [igt-dev] [Intel-gfx] " Chris Wilson
@ 2018-02-19 10:17 ` Tvrtko Ursulin
0 siblings, 0 replies; 5+ messages in thread
From: Tvrtko Ursulin @ 2018-02-19 10:17 UTC (permalink / raw)
To: igt-dev; +Cc: Intel-gfx, Tvrtko Ursulin
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Correct printf format for uint64_t and one "may be uninitialized".
v2: Fix one more "may be uninitialized". (Chris Wilson)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/perf_pmu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 82053416cbea..bed4c257013d 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -300,7 +300,7 @@ busy_double_start(int gem_fd, const struct intel_execution_engine2 *e)
usleep(batch_duration_ns / 1000);
val2 = pmu_read_single(fd) - val2;
- igt_info("busy=%lu idle=%lu\n", val, val2);
+ igt_info("busy=%"PRIu64" idle=%"PRIu64"\n", val, val2);
igt_spin_batch_free(gem_fd, spin[0]);
igt_spin_batch_free(gem_fd, spin[1]);
@@ -340,11 +340,11 @@ busy_check_all(int gem_fd, const struct intel_execution_engine2 *e,
{
const struct intel_execution_engine2 *e_;
uint64_t tval[2][num_engines];
+ unsigned int busy_idx = 0, i;
uint64_t val[num_engines];
int fd[num_engines];
unsigned long slept;
igt_spin_t *spin;
- unsigned int busy_idx, i;
i = 0;
fd[0] = -1;
@@ -1758,7 +1758,7 @@ igt_main
* Check render nodes are counted.
*/
igt_subtest_group {
- int render_fd;
+ int render_fd = -1;
igt_fixture {
render_fd = drm_open_driver_render(DRIVER_INTEL);
--
2.14.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2)
2018-02-19 10:04 [igt-dev] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds Tvrtko Ursulin
2018-02-19 10:12 ` [igt-dev] [Intel-gfx] " Chris Wilson
@ 2018-02-19 11:33 ` Patchwork
2018-02-19 13:32 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-02-19 11:33 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
== Series Details ==
Series: perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2)
URL : https://patchwork.freedesktop.org/series/38499/
State : success
== Summary ==
IGT patchset tested on top of latest successful build
bf777c92448d51010aba51d1f1b657b0fdc673a6 tests/gem_ctx_param: Update invalid param
with latest DRM-Tip kernel build CI_DRM_3796
89ac5139ae00 drm-tip: 2018y-02m-19d-10h-24m-30s UTC integration manifest
No testlist changes.
Test debugfs_test:
Subgroup read_all_entries:
incomplete -> PASS (fi-snb-2520m) fdo#103713 +1
Test kms_pipe_crc_basic:
Subgroup read-crc-pipe-c:
fail -> PASS (fi-skl-guc) fdo#103191
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:425s
fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:427s
fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:376s
fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:499s
fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:289s
fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:492s
fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:484s
fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:473s
fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:463s
fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:572s
fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:418s
fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:285s
fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:515s
fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:391s
fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:414s
fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:470s
fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:422s
fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:458s
fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:497s
fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:454s
fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:498s
fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:591s
fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:436s
fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:513s
fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:528s
fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:491s
fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:477s
fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:422s
fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:432s
fi-snb-2520m total:245 pass:211 dwarn:0 dfail:0 fail:0 skip:33
fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:407s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_949/issues.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2)
2018-02-19 10:04 [igt-dev] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds Tvrtko Ursulin
2018-02-19 10:12 ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-02-19 11:33 ` [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2) Patchwork
@ 2018-02-19 13:32 ` Patchwork
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2018-02-19 13:32 UTC (permalink / raw)
To: Tvrtko Ursulin; +Cc: igt-dev
== Series Details ==
Series: perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2)
URL : https://patchwork.freedesktop.org/series/38499/
State : success
== Summary ==
Test gem_eio:
Subgroup in-flight-contexts:
pass -> DMESG-WARN (shard-snb) fdo#104058
Subgroup in-flight-suspend:
fail -> PASS (shard-hsw) fdo#104676
Test kms_flip:
Subgroup modeset-vs-vblank-race:
pass -> FAIL (shard-hsw) fdo#103060 +1
Subgroup flip-vs-absolute-wf_vblank-interruptible:
pass -> FAIL (shard-hsw) fdo#100368 +2
Test perf:
Subgroup oa-exponents:
fail -> PASS (shard-apl) fdo#102254
Test kms_rotation_crc:
Subgroup primary-rotation-180:
pass -> FAIL (shard-snb) fdo#103925
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-a:
skip -> PASS (shard-snb) fdo#103375
Test gem_exec_suspend:
Subgroup basic-s4-devices:
incomplete -> PASS (shard-hsw) fdo#104874
fdo#104058 https://bugs.freedesktop.org/show_bug.cgi?id=104058
fdo#104676 https://bugs.freedesktop.org/show_bug.cgi?id=104676
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102254 https://bugs.freedesktop.org/show_bug.cgi?id=102254
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#103375 https://bugs.freedesktop.org/show_bug.cgi?id=103375
fdo#104874 https://bugs.freedesktop.org/show_bug.cgi?id=104874
shard-apl total:3340 pass:1749 dwarn:1 dfail:0 fail:12 skip:1577 time:12283s
shard-hsw total:3434 pass:1758 dwarn:1 dfail:0 fail:6 skip:1668 time:11624s
shard-snb total:3434 pass:1350 dwarn:2 dfail:0 fail:3 skip:2079 time:6686s
Blacklisted hosts:
shard-kbl total:3434 pass:1928 dwarn:1 dfail:0 fail:13 skip:1492 time:9770s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_949/shards.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-02-19 13:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-19 10:04 [igt-dev] [PATCH i-g-t] perf_pmu: Fix some compile warnings with old compilers / 32-bit builds Tvrtko Ursulin
2018-02-19 10:12 ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-02-19 10:17 ` [igt-dev] [PATCH i-g-t v2] " Tvrtko Ursulin
2018-02-19 11:33 ` [igt-dev] ✓ Fi.CI.BAT: success for perf_pmu: Fix some compile warnings with old compilers / 32-bit builds (rev2) Patchwork
2018-02-19 13:32 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox