Skip to contentSkip to conversation

drm/i915/perf: Treat u64 in uabi as a normal integer

PATCH In review Chris Wilson 4 participants 4 messages Nov 30, 2016 – Dec 1, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/perf: Treat u64 in uabi as a normal integer

Forgo marking up the u64 integer representing a user pointer as this just annoys sparse. The conversion from u64 to a user pointer is managed by u64_to_user_ptr().

Fixes eec688e1420d ("drm/i915: Add i915 perf infrastructure")
Cc Robert Bragg <[email protected]>
Cc Matthew Auld <[email protected]>
---
 include/uapi/drm/i915_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/i915_drm.h +1 -1
index 686e02451789..9ba5a239d099 100644
@@ -1369,7 +1369,7 @@ struct drm_i915_perf_open_param {
 	 * Pointer to array of u64 (id, value) pairs configuring the stream
 	 * to open.
 	 */
-	__u64 __user properties_ptr;
+	__u64 properties_ptr;
 };
 
 /**
Signature · 6 lines
2.10.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Chris Wilson

Forgo marking up the u64 integer representing a user pointer as this just annoys sparse. The conversion from u64 to a user pointer is managed by u64_to_user_ptr().

Fixes eec688e1420d ("drm/i915: Add i915 perf infrastructure")
Cc Robert Bragg <[email protected]>
Cc Matthew Auld <[email protected]>

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✗ Fi.CI.BAT: warning for drm/i915/perf: Treat u64 in uabi as a normal integer

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: drm/i915/perf: Treat u64 in uabi as a normal integer
URL : https://patchwork.freedesktop.org/series/16171/
State : warning

== Summary ==

Series 16171v1 drm/i915/perf: Treat u64 in uabi as a normal integer
https://patchwork.freedesktop.org/api/1.0/series/16171/revisions/1/mbox/

Test kms_busy:

        Subgroup basic-flip-default-a:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-default-b:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-default-c:
                skip       -> PASS       (fi-ivb-3770)
Test kms_cursor_legacy:
        Subgroup basic-busy-flip-before-cursor-legacy:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-busy-flip-before-cursor-varying-size:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-after-cursor-legacy:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-after-cursor-varying-size:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-before-cursor-legacy:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup basic-flip-before-cursor-varying-size:
                skip       -> PASS       (fi-ivb-3770)
Test kms_force_connector_basic:
        Subgroup force-connector-state:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup force-edid:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup force-load-detect:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup prune-stale-modes:
                skip       -> PASS       (fi-ivb-3770)
Test kms_pipe_crc_basic:
        Subgroup hang-read-crc-pipe-a:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup nonblocking-crc-pipe-a:
                pass       -> DMESG-WARN (fi-ilk-650)
        Subgroup suspend-read-crc-pipe-a:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup suspend-read-crc-pipe-b:
                skip       -> PASS       (fi-ivb-3770)
        Subgroup suspend-read-crc-pipe-c:
                skip       -> PASS       (fi-ivb-3770)
Test prime_vgem:
        Subgroup basic-fence-flip:
                skip       -> PASS       (fi-ivb-3770)
fi-bdw-5557u     total:245  pass:230  dwarn:0   dfail:0   fail:0   skip:15 
fi-bsw-n3050     total:245  pass:205  dwarn:0   dfail:0   fail:0   skip:40 
fi-bxt-t5700     total:245  pass:217  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-j1900     total:245  pass:217  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-n2820     total:245  pass:213  dwarn:0   dfail:0   fail:0   skip:32 
fi-hsw-4770      total:245  pass:225  dwarn:0   dfail:0   fail:0   skip:20 
fi-hsw-4770r     total:245  pass:225  dwarn:0   dfail:0   fail:0   skip:20 
fi-ilk-650       total:245  pass:191  dwarn:1   dfail:0   fail:0   skip:53 
fi-ivb-3520m     total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22 
fi-ivb-3770      total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22 
fi-kbl-7500u     total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22 
fi-skl-6260u     total:245  pass:231  dwarn:0   dfail:0   fail:0   skip:14 
fi-skl-6700hq    total:245  pass:224  dwarn:0   dfail:0   fail:0   skip:21 
fi-skl-6700k     total:245  pass:223  dwarn:1   dfail:0   fail:0   skip:21 
fi-skl-6770hq    total:245  pass:231  dwarn:0   dfail:0   fail:0   skip:14 
fi-snb-2520m     total:245  pass:213  dwarn:0   dfail:0   fail:0   skip:32 
fi-snb-2600      total:245  pass:212  dwarn:0   dfail:0   fail:0   skip:33 

51c6c255aa05775bcfb3f5790a3b9249e5990f3e drm-tip: 2016y-11m-30d-16h-12m-19s UTC integration manifest 6287239 drm/i915/perf: Treat u64 in uabi as a normal integer

== Logs ==

For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3153/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: ✗ Fi.CI.BAT: warning for drm/i915/perf: Treat u64 in uabi as a normal integer

Quoted 6 lines

== Series Details ==

Series: drm/i915/perf: Treat u64 in uabi as a normal integer
URL : https://patchwork.freedesktop.org/series/16171/
State : warning

Quoted 7 lines

== Summary ==

Series 16171v1 drm/i915/perf: Treat u64 in uabi as a normal integer
https://patchwork.freedesktop.org/api/1.0/series/16171/revisions/1/mbox/

        Subgroup nonblocking-crc-pipe-a:
                pass       -> DMESG-WARN (fi-ilk-650)

https://bugs.freedesktop.org/show_bug.cgi?id=98251

Quoted 18 lines
fi-bdw-5557u     total:245  pass:230  dwarn:0   dfail:0   fail:0   skip:15
fi-bsw-n3050     total:245  pass:205  dwarn:0   dfail:0   fail:0   skip:40
fi-bxt-t5700     total:245  pass:217  dwarn:0   dfail:0   fail:0   skip:28
fi-byt-j1900     total:245  pass:217  dwarn:0   dfail:0   fail:0   skip:28
fi-byt-n2820     total:245  pass:213  dwarn:0   dfail:0   fail:0   skip:32
fi-hsw-4770      total:245  pass:225  dwarn:0   dfail:0   fail:0   skip:20
fi-hsw-4770r     total:245  pass:225  dwarn:0   dfail:0   fail:0   skip:20
fi-ilk-650       total:245  pass:191  dwarn:1   dfail:0   fail:0   skip:53
fi-ivb-3520m     total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22
fi-ivb-3770      total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22
fi-kbl-7500u     total:245  pass:223  dwarn:0   dfail:0   fail:0   skip:22
fi-skl-6260u     total:245  pass:231  dwarn:0   dfail:0   fail:0   skip:14
fi-skl-6700hq    total:245  pass:224  dwarn:0   dfail:0   fail:0   skip:21
fi-skl-6700k     total:245  pass:223  dwarn:1   dfail:0   fail:0   skip:21
fi-skl-6770hq    total:245  pass:231  dwarn:0   dfail:0   fail:0   skip:14
fi-snb-2520m     total:245  pass:213  dwarn:0   dfail:0   fail:0   skip:32
fi-snb-2600      total:245  pass:212  dwarn:0   dfail:0   fail:0   skip:33
Quoted 6 lines

51c6c255aa05775bcfb3f5790a3b9249e5990f3e drm-tip: 2016y-11m-30d- 16h-12m-19s UTC integration manifest
6287239 drm/i915/perf: Treat u64 in uabi as a normal integer

== Logs ==

Jani Saarinen
Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx