drm/i915: Give all ioctl functions an _ioctl suffix
Subsystems (2)
PATCH 1/1 drm/i915: Give all ioctl functions an _ioctl suffix
From: Ville Syrjälä <[email protected]>
Most of our ioctl functions have an _ioctl suffix in the name. I like that idea since it makes it easy to figure out how the function is going to get called. Rename the handful of exceptions to follow the same pattern.
--- drivers/gpu/drm/i915/i915_drv.c | 14 +++++++------- drivers/gpu/drm/i915/i915_drv.h | 8 ++++---- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 8 ++++---- drivers/gpu/drm/i915/intel_display.c | 4 ++-- drivers/gpu/drm/i915/intel_drv.h | 8 ++++---- drivers/gpu/drm/i915/intel_sprite.c | 4 ++-- 6 files changed, 23 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +7 -7
@@ -286,8 +286,8 @@ static void intel_detect_pch(struct drm_i915_private *dev_priv)pci_dev_put (pch); } -static int i915_getparam (struct drm_device *dev,void *data, -struct drm_file *file_priv) +static int i915_getparam_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv) {struct drm_i915_private *dev_priv =to_i915 (dev);struct pci_dev *pdev = dev_priv->drm.pdev;
@@ -2797,7 +2797,7 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_BATCHBUFFER , drm_noop,DRM_AUTH ),DRM_IOCTL_DEF_DRV (I915_IRQ_EMIT , drm_noop,DRM_AUTH ),DRM_IOCTL_DEF_DRV (I915_IRQ_WAIT , drm_noop,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (I915_GETPARAM , i915_getparam,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (I915_GETPARAM , i915_getparam_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_SETPARAM , drm_noop,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ),DRM_IOCTL_DEF_DRV (I915_ALLOC , drm_noop,DRM_AUTH ), DRM_IOCTL_DEF_DRV(I915_FREE, drm_noop, DRM_AUTH),
@@ -2809,8 +2809,8 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_VBLANK_SWAP , drm_noop,DRM_AUTH ),DRM_IOCTL_DEF_DRV (I915_HWS_ADDR , drm_noop,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ),DRM_IOCTL_DEF_DRV (I915_GEM_INIT , drm_noop,DRM_AUTH |DRM_MASTER |DRM_ROOT_ONLY ), -DRM_IOCTL_DEF_DRV (I915_GEM_EXECBUFFER , i915_gem_execbuffer,DRM_AUTH ), -DRM_IOCTL_DEF_DRV (I915_GEM_EXECBUFFER2_WR , i915_gem_execbuffer2,DRM_AUTH |DRM_RENDER_ALLOW ), +DRM_IOCTL_DEF_DRV (I915_GEM_EXECBUFFER , i915_gem_execbuffer_ioctl,DRM_AUTH ), +DRM_IOCTL_DEF_DRV (I915_GEM_EXECBUFFER2_WR , i915_gem_execbuffer2_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_PIN , i915_gem_reject_pin_ioctl,DRM_AUTH |DRM_ROOT_ONLY ),DRM_IOCTL_DEF_DRV (I915_GEM_UNPIN , i915_gem_reject_pin_ioctl,DRM_AUTH |DRM_ROOT_ONLY ), DRM_IOCTL_DEF_DRV(I915_GEM_BUSY, i915_gem_busy_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),
@@ -2829,11 +2829,11 @@ static const struct drm_ioctl_desc i915_ioctls[] = {DRM_IOCTL_DEF_DRV (I915_GEM_SET_TILING , i915_gem_set_tiling_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_GET_TILING , i915_gem_get_tiling_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_GET_APERTURE , i915_gem_get_aperture_ioctl,DRM_RENDER_ALLOW ), -DRM_IOCTL_DEF_DRV (I915_GET_PIPE_FROM_CRTC_ID , intel_get_pipe_from_crtc_id,0 ), +DRM_IOCTL_DEF_DRV (I915_GET_PIPE_FROM_CRTC_ID , intel_get_pipe_from_crtc_id_ioctl,0 ),DRM_IOCTL_DEF_DRV (I915_GEM_MADVISE , i915_gem_madvise_ioctl,DRM_RENDER_ALLOW ),DRM_IOCTL_DEF_DRV (I915_OVERLAY_PUT_IMAGE , intel_overlay_put_image_ioctl,DRM_MASTER |DRM_CONTROL_ALLOW ),DRM_IOCTL_DEF_DRV (I915_OVERLAY_ATTRS , intel_overlay_attrs_ioctl,DRM_MASTER |DRM_CONTROL_ALLOW ), -DRM_IOCTL_DEF_DRV (I915_SET_SPRITE_COLORKEY , intel_sprite_set_colorkey,DRM_MASTER |DRM_CONTROL_ALLOW ), +DRM_IOCTL_DEF_DRV (I915_SET_SPRITE_COLORKEY , intel_sprite_set_colorkey_ioctl,DRM_MASTER |DRM_CONTROL_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GET_SPRITE_COLORKEY , drm_noop,DRM_MASTER |DRM_CONTROL_ALLOW ),DRM_IOCTL_DEF_DRV (I915_GEM_WAIT , i915_gem_wait_ioctl,DRM_AUTH |DRM_RENDER_ALLOW ), DRM_IOCTL_DEF_DRV(I915_GEM_CONTEXT_CREATE, i915_gem_context_create_ioctl, DRM_RENDER_ALLOW),
drivers/gpu/drm/i915/i915_drv.h +4 -4
@@ -3081,10 +3081,10 @@ int i915_gem_set_domain_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv);int i915_gem_sw_finish_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv); -int i915_gem_execbuffer (struct drm_device *dev,void *data, -struct drm_file *file_priv); -int i915_gem_execbuffer2 (struct drm_device *dev,void *data, -struct drm_file *file_priv); +int i915_gem_execbuffer_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv); +int i915_gem_execbuffer2_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv);int i915_gem_busy_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv); int i915_gem_get_caching_ioctl(struct drm_device *dev, void *data,
drivers/gpu/drm/i915/i915_gem_execbuffer.c +4 -4
@@ -2463,8 +2463,8 @@ static bool check_buffer_count(size_t count)* list array and passes it to the real function. */ int -i915_gem_execbuffer (struct drm_device *dev,void *data, -struct drm_file *file) +i915_gem_execbuffer_ioctl (struct drm_device *dev,void *data, +struct drm_file *file) {struct drm_i915_gem_execbuffer *args = data;struct drm_i915_gem_execbuffer2 exec2;
@@ -2554,8 +2554,8 @@ i915_gem_execbuffer(struct drm_device *dev, void *data, }int -i915_gem_execbuffer2 (struct drm_device *dev,void *data, -struct drm_file *file) +i915_gem_execbuffer2_ioctl (struct drm_device *dev,void *data, +struct drm_file *file) {struct drm_i915_gem_execbuffer2 *args = data;struct drm_i915_gem_exec_object2 *exec2_list;
drivers/gpu/drm/i915/intel_display.c +2 -2
@@ -13498,8 +13498,8 @@ enum pipe intel_get_pipe_from_connector(struct intel_connector *connector)return to_intel_crtc (connector->base.state->crtc)->pipe; } -int intel_get_pipe_from_crtc_id (struct drm_device *dev,void *data, -struct drm_file *file) +int intel_get_pipe_from_crtc_id_ioctl (struct drm_device *dev,void *data, +struct drm_file *file) {struct drm_i915_get_pipe_from_crtc_id *pipe_from_crtc_id = data;struct drm_crtc *drmmode_crtc;
drivers/gpu/drm/i915/intel_drv.h +4 -4
@@ -1455,8 +1455,8 @@ struct drm_display_mode * intel_encoder_current_mode(struct intel_encoder *encoder);enum pipe intel_get_pipe_from_connector (struct intel_connector *connector); -int intel_get_pipe_from_crtc_id (struct drm_device *dev,void *data, -struct drm_file *file_priv); +int intel_get_pipe_from_crtc_id_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv);enum transcoder intel_pipe_to_cpu_transcoder (struct drm_i915_private *dev_priv,enum pipe pipe); static inline bool
@@ -2018,8 +2018,8 @@ int intel_usecs_to_scanlines(const struct drm_display_mode *adjusted_mode, int usecs);struct intel_plane *intel_sprite_plane_create (struct drm_i915_private *dev_priv,enum pipe pipe,int plane); -int intel_sprite_set_colorkey (struct drm_device *dev,void *data, -struct drm_file *file_priv); +int intel_sprite_set_colorkey_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv);void intel_pipe_update_start (const struct intel_crtc_state *new_crtc_state);void intel_pipe_update_end (struct intel_crtc_state *new_crtc_state); void skl_update_plane(struct intel_plane *plane,
drivers/gpu/drm/i915/intel_sprite.c +2 -2
@@ -1063,8 +1063,8 @@ intel_check_sprite_plane(struct intel_plane *plane,return 0 ; } -int intel_sprite_set_colorkey (struct drm_device *dev,void *data, -struct drm_file *file_priv) +int intel_sprite_set_colorkey_ioctl (struct drm_device *dev,void *data, +struct drm_file *file_priv) {struct drm_i915_private *dev_priv =to_i915 (dev);struct drm_intel_sprite_colorkey *set = data;
Signature · 6 lines
2.13.6 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Ville Syrjala (2018-02-07 16:48:41)
Quoted 8 lines
From: Ville Syrjälä <[email protected]>
Most of our ioctl functions have an
_ioctlsuffix in the name. I like that idea since it makes it easy to figure out how the function is going to get called. Rename the handful of exceptions to follow the same pattern.Signed-off-by Ville Syrjälä <[email protected]>
Aye, that was the intent of _ioctl to remind the reader that it is handling the userspace interface. And being lazy we only converted over to _ioctl when we remembered.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Give all ioctl functions an _ioctl suffix
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Give all ioctl functions an _ioctl suffix
URL : https://patchwork.freedesktop.org/series/37825/
State : success
== Summary ==
Series 37825v1 drm/i915: Give all ioctl functions an _ioctl suffix
https://patchwork.freedesktop.org/api/1.0/series/37825/revisions/1/mbox/
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-c:
pass -> DMESG-FAIL (fi-cnl-y3) fdo#104951
Test prime_vgem:
Subgroup basic-fence-flip:
fail -> PASS (fi-skl-6770hq)fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:417s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:431s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:375s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:493s 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:484s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:482s 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:460s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:568s fi-cnl-y3 total:288 pass:261 dwarn:0 dfail:1 fail:0 skip:26 time:575s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:412s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:284s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:511s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:390s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:415s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:458s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:417s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:457s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:498s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:452s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:501s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:597s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:432s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:508s 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:490s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:489s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:415s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:430s fi-snb-2520m total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:517s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:395s
Blacklisted hosts:
fi-glk-dsi total:15 pass:14 dwarn:0 dfail:0 fail:0 skip:0
e4fe439facdf7f4d2cf51b49ab0b2ffd3085c982 drm-tip: 2018y-02m-07d-17h-08m-01s UTC integration manifest 2d1c8805ac56 drm/i915: Give all ioctl functions an _ioctl suffix
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7928/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for drm/i915: Give all ioctl functions an _ioctl suffix
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Give all ioctl functions an _ioctl suffix
URL : https://patchwork.freedesktop.org/series/37825/
State : failure
== Summary ==
Test kms_vblank:
Subgroup pipe-a-ts-continuation-dpms-suspend:
pass -> INCOMPLETE (shard-hsw)
Test perf:
Subgroup oa-exponents:
fail -> PASS (shard-apl) fdo#102254
Test kms_flip:
Subgroup 2x-dpms-vs-vblank-race:
fail -> PASS (shard-hsw) fdo#103060
Subgroup plain-flip-fb-recreate-interruptible:
pass -> FAIL (shard-hsw) fdo#100368fdo#102254 https://bugs.freedesktop.org/show_bug.cgi?id=102254
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
shard-apl total:3347 pass:1734 dwarn:1 dfail:0 fail:19 skip:1592 time:12314s shard-hsw total:3356 pass:1722 dwarn:1 dfail:0 fail:10 skip:1621 time:11469s shard-snb total:3444 pass:1351 dwarn:1 dfail:0 fail:10 skip:2082 time:6676s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7928/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx