* [igt-dev] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build
@ 2019-02-13 9:31 Guillaume Tucker via igt-dev
2019-02-13 12:49 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Guillaume Tucker via igt-dev @ 2019-02-13 9:31 UTC (permalink / raw)
To: Petri Latvala, Arkadiusz Hiler
Cc: igt-dev, Guillaume Tucker, intel-gfx, kernel
This fixes a compiler warning treated as an error when building for
32-bit architectures since their pointer size does not match the size
of drm_i915_gem_context_param.value which is 64 bits:
CC i915/gem_ctx_sseu.o
i915/gem_ctx_sseu.c: In function ‘test_ggtt_args’:
i915/gem_ctx_sseu.c:384:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
munmap((void *)arg.value, 4096);
It was found while building for arm with gcc 6.3.0 and I suspect the
same problem would arise for i386 or other 32-bit architectures. The
uintptr_t type is by definition an unsigned integer of the same length
as a pointer on a given architecture, so this should fix the problem
for all architectures up to 64 bits.
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
---
tests/i915/gem_ctx_sseu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/gem_ctx_sseu.c b/tests/i915/gem_ctx_sseu.c
index 16609bee61c8..3afa5c152939 100644
--- a/tests/i915/gem_ctx_sseu.c
+++ b/tests/i915/gem_ctx_sseu.c
@@ -381,7 +381,7 @@ test_ggtt_args(int fd)
igt_assert_eq(__gem_context_get_param(fd, &arg), 0);
igt_assert_eq(__gem_context_set_param(fd, &arg), 0);
- munmap((void *)arg.value, 4096);
+ munmap((void *)(uintptr_t)arg.value, 4096);
gem_close(fd, bo);
gem_context_destroy(fd, arg.ctx_id);
}
--
2.11.0
_______________________________________________
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 i915/gem_ctx_sseu: Fix 32-bit build
2019-02-13 9:31 [igt-dev] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build Guillaume Tucker via igt-dev
@ 2019-02-13 12:49 ` Patchwork
2019-02-13 14:06 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-02-13 14:08 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2019-02-13 12:49 UTC (permalink / raw)
To: igt-dev
== Series Details ==
Series: i915/gem_ctx_sseu: Fix 32-bit build
URL : https://patchwork.freedesktop.org/series/56598/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5596 -> IGTPW_2391
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/56598/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_2391:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@i915_selftest@live_workarounds:
- {fi-icl-u3}: PASS -> INCOMPLETE
Known issues
------------
Here are the changes found in IGTPW_2391 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: PASS -> INCOMPLETE [fdo#107718]
* igt@i915_selftest@live_execlists:
- fi-apl-guc: NOTRUN -> INCOMPLETE [fdo#103927]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: PASS -> FAIL [fdo#109485]
#### Possible fixes ####
* igt@prime_vgem@basic-fence-flip:
- fi-skl-6700k2: FAIL [fdo#104008] -> PASS
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104008]: https://bugs.freedesktop.org/show_bug.cgi?id=104008
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
Participating hosts (40 -> 39)
------------------------------
Additional (4): fi-apl-guc fi-gdg-551 fi-snb-2520m fi-pnv-d510
Missing (5): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-byt-clapper
Build changes
-------------
* IGT: IGT_4820 -> IGTPW_2391
CI_DRM_5596: aaaccba122fe89ef87706ae2642dc3e3b0d256e6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2391: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2391/
IGT_4820: 368237db1149033d8274248489ffec671ea1f7d8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2391/
_______________________________________________
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 i915/gem_ctx_sseu: Fix 32-bit build
2019-02-13 9:31 [igt-dev] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build Guillaume Tucker via igt-dev
2019-02-13 12:49 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2019-02-13 14:06 ` Patchwork
2019-02-13 14:08 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2019-02-13 14:06 UTC (permalink / raw)
To: igt-dev
== Series Details ==
Series: i915/gem_ctx_sseu: Fix 32-bit build
URL : https://patchwork.freedesktop.org/series/56598/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5596_full -> IGTPW_2391_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/56598/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_2391_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_eio@unwedge-stress:
- shard-glk: PASS -> FAIL [fdo#107799]
- shard-snb: PASS -> FAIL [fdo#107799] +1
* igt@i915_suspend@shrink:
- shard-kbl: NOTRUN -> DMESG-WARN [fdo#109244]
* igt@kms_available_modes_crc@available_mode_test_crc:
- shard-kbl: NOTRUN -> FAIL [fdo#106641]
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-a:
- shard-apl: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
- shard-kbl: NOTRUN -> DMESG-WARN [fdo#107956] +8
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-b:
- shard-glk: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_content_protection@atomic:
- shard-kbl: NOTRUN -> FAIL [fdo#108597] +1
* igt@kms_cursor_crc@cursor-128x42-sliding:
- shard-glk: NOTRUN -> FAIL [fdo#103232]
* igt@kms_cursor_crc@cursor-64x21-random:
- shard-apl: PASS -> FAIL [fdo#103232] +1
- shard-kbl: NOTRUN -> FAIL [fdo#103232]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-onoff:
- shard-apl: PASS -> FAIL [fdo#103167]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
- shard-glk: PASS -> FAIL [fdo#103167] +2
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-glk: PASS -> FAIL [fdo#108145] +1
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparant-fb:
- shard-kbl: NOTRUN -> FAIL [fdo#108145] +7
* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-kbl: NOTRUN -> FAIL [fdo#108145] / [fdo#108590] +4
* igt@kms_plane_multiple@atomic-pipe-b-tiling-none:
- shard-glk: PASS -> FAIL [fdo#103166] +2
- shard-apl: PASS -> FAIL [fdo#103166] +4
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: NOTRUN -> FAIL [fdo#109016]
* igt@kms_universal_plane@universal-plane-pipe-c-functional:
- shard-kbl: NOTRUN -> FAIL [fdo#103166] +1
* igt@perf_pmu@rc6-runtime-pm:
- shard-kbl: NOTRUN -> FAIL [fdo#105010]
* igt@pm_rpm@legacy-planes:
- shard-glk: PASS -> INCOMPLETE [fdo#103359] / [k.org#198133]
#### Possible fixes ####
* igt@gem_exec_create@forked:
- shard-hsw: INCOMPLETE [fdo#103540] -> PASS
* igt@kms_busy@extended-pageflip-hang-newfb-render-c:
- shard-glk: DMESG-WARN [fdo#107956] -> PASS
* igt@kms_cursor_crc@cursor-256x256-random:
- shard-apl: FAIL [fdo#103232] -> PASS +3
* igt@kms_cursor_crc@cursor-64x64-suspend:
- shard-apl: FAIL [fdo#103191] / [fdo#103232] -> PASS
* igt@kms_cursor_crc@cursor-alpha-opaque:
- shard-apl: FAIL [fdo#109350] -> PASS
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: FAIL [fdo#104873] -> PASS
* igt@kms_flip@basic-flip-vs-modeset:
- shard-hsw: DMESG-WARN [fdo#102614] -> PASS
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: FAIL [fdo#102887] / [fdo#105363] -> PASS
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
- shard-apl: FAIL [fdo#103167] -> PASS +3
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
- shard-glk: FAIL [fdo#103167] -> PASS +1
* igt@kms_plane@pixel-format-pipe-a-planes-source-clamping:
- shard-apl: FAIL [fdo#108948] -> PASS
* igt@kms_plane@pixel-format-pipe-c-planes-source-clamping:
- shard-glk: FAIL [fdo#108948] -> PASS
- shard-apl: INCOMPLETE [fdo#103927] -> PASS
* igt@kms_plane@plane-position-covered-pipe-c-planes:
- shard-apl: FAIL [fdo#103166] -> PASS +5
* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-glk: FAIL [fdo#108145] -> PASS +1
* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- shard-glk: FAIL [fdo#103166] -> PASS +4
* igt@kms_setmode@basic:
- shard-apl: FAIL [fdo#99912] -> PASS
* igt@kms_setmode@clone-exclusive-crtc:
- shard-glk: INCOMPLETE [fdo#103359] / [k.org#198133] -> PASS +1
#### Warnings ####
* igt@i915_suspend@shrink:
- shard-glk: INCOMPLETE [fdo#103359] / [fdo#106886] / [k.org#198133] -> DMESG-WARN [fdo#109244]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#102887]: https://bugs.freedesktop.org/show_bug.cgi?id=102887
[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#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#105010]: https://bugs.freedesktop.org/show_bug.cgi?id=105010
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#106641]: https://bugs.freedesktop.org/show_bug.cgi?id=106641
[fdo#106886]: https://bugs.freedesktop.org/show_bug.cgi?id=106886
[fdo#107799]: https://bugs.freedesktop.org/show_bug.cgi?id=107799
[fdo#107956]: https://bugs.freedesktop.org/show_bug.cgi?id=107956
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108590]: https://bugs.freedesktop.org/show_bug.cgi?id=108590
[fdo#108597]: https://bugs.freedesktop.org/show_bug.cgi?id=108597
[fdo#108948]: https://bugs.freedesktop.org/show_bug.cgi?id=108948
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109244]: https://bugs.freedesktop.org/show_bug.cgi?id=109244
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109350]: https://bugs.freedesktop.org/show_bug.cgi?id=109350
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (6 -> 5)
------------------------------
Additional (1): shard-kbl
Missing (2): shard-skl shard-iclb
Build changes
-------------
* IGT: IGT_4820 -> IGTPW_2391
* Piglit: piglit_4509 -> None
CI_DRM_5596: aaaccba122fe89ef87706ae2642dc3e3b0d256e6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2391: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2391/
IGT_4820: 368237db1149033d8274248489ffec671ea1f7d8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2391/
_______________________________________________
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
* Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build
2019-02-13 9:31 [igt-dev] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build Guillaume Tucker via igt-dev
2019-02-13 12:49 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-02-13 14:06 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2019-02-13 14:08 ` Chris Wilson
2019-02-13 14:12 ` Chris Wilson
2 siblings, 1 reply; 5+ messages in thread
From: Chris Wilson @ 2019-02-13 14:08 UTC (permalink / raw)
To: Arkadiusz Hiler, Guillaume Tucker, Petri Latvala
Cc: igt-dev, intel-gfx, kernel
Quoting Guillaume Tucker (2019-02-13 09:31:37)
> This fixes a compiler warning treated as an error when building for
> 32-bit architectures since their pointer size does not match the size
> of drm_i915_gem_context_param.value which is 64 bits:
>
> CC i915/gem_ctx_sseu.o
> i915/gem_ctx_sseu.c: In function ‘test_ggtt_args’:
> i915/gem_ctx_sseu.c:384:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> munmap((void *)arg.value, 4096);
>
> It was found while building for arm with gcc 6.3.0 and I suspect the
> same problem would arise for i386 or other 32-bit architectures. The
> uintptr_t type is by definition an unsigned integer of the same length
> as a pointer on a given architecture, so this should fix the problem
> for all architectures up to 64 bits.
>
> Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
At some point, we should save our eyesight and do u64_to_pointer().
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
* Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build
2019-02-13 14:08 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Chris Wilson
@ 2019-02-13 14:12 ` Chris Wilson
0 siblings, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2019-02-13 14:12 UTC (permalink / raw)
To: Arkadiusz Hiler, Guillaume Tucker, Petri Latvala
Cc: igt-dev, intel-gfx, kernel
Quoting Chris Wilson (2019-02-13 14:08:02)
> Quoting Guillaume Tucker (2019-02-13 09:31:37)
> > This fixes a compiler warning treated as an error when building for
> > 32-bit architectures since their pointer size does not match the size
> > of drm_i915_gem_context_param.value which is 64 bits:
> >
> > CC i915/gem_ctx_sseu.o
> > i915/gem_ctx_sseu.c: In function ‘test_ggtt_args’:
> > i915/gem_ctx_sseu.c:384:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
> > munmap((void *)arg.value, 4096);
> >
> > It was found while building for arm with gcc 6.3.0 and I suspect the
> > same problem would arise for i386 or other 32-bit architectures. The
> > uintptr_t type is by definition an unsigned integer of the same length
> > as a pointer on a given architecture, so this should fix the problem
> > for all architectures up to 64 bits.
> >
> > Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
>
> At some point, we should save our eyesight and do u64_to_pointer().
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
And pushed, having forgotten I wasn't using dim and forgot to auto-sob.
-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
end of thread, other threads:[~2019-02-13 14:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-13 9:31 [igt-dev] [PATCH i-g-t] i915/gem_ctx_sseu: Fix 32-bit build Guillaume Tucker via igt-dev
2019-02-13 12:49 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-02-13 14:06 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-02-13 14:08 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2019-02-13 14:12 ` Chris Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox