Skip to content

drm: Return -ENOENT when objects can't be found

[email protected] dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm: Consistently return -ENOENT when a mode object can't be founddrivers/gpu/drm/drm_crtc.c+18 -141 reply
2/7drm: Return -ENOENT when a framebuffer can't be founddrivers/gpu/drm/drm_crtc.c+7 -50 replies
3/7drm/gma500: Return -ENOENT when a mode object can't be founddrivers/gpu/drm/gma500/psb_drv.c drivers/gpu/drm/gma500/psb_intel_display.c+3 -30 replies
4/7drm/i915: Return -ENOENT when a mode object can't be founddrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_sprite.c+3 -30 replies
5/7drm/radeon: Return -ENOENT when a mode object can't be founddrivers/gpu/drm/radeon/r100.c drivers/gpu/drm/radeon/r600_cs.c+2 -20 replies
6/7drm/vmwgfx: Return -ENOENT when a mode object can't be founddrivers/gpu/drm/vmwgfx/vmwgfx_kms.c+1 -10 replies
7/7drm/vmwgfx: Return -ENOENT when a framebuffer can't be founddrivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c+2 -20 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJakob BornecrantzAlex Deucher
SeriesR-b
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] drm: Return -ENOENT when objects can't be found

We're rather inconsistent in which error values we return to userspace on failure. I want to unify the behaviour a bit and consistently return ENOENT when mode object lookups fail. We already do that in a few places but in most places we just return EINVAL.

I made a separate patch for each affected driver just in case there's some magic meaning to the error values for certain drivers.

Ville Syrjälä (7):
drm: Consistently return -ENOENT when a mode object can't be found
drm: Return -ENOENT when a framebuffer can't be found drm/gma500: Return -ENOENT when a mode object can't be found drm/i915: Return -ENOENT when a mode object can't be found drm/radeon: Return -ENOENT when a mode object can't be found drm/vmwgfx: Return -ENOENT when a mode object can't be found drm/vmwgfx: Return -ENOENT when a framebuffer can't be found

 drivers/gpu/drm/drm_crtc.c                 | 44 +++++++++++++++++-------------
 drivers/gpu/drm/gma500/psb_drv.c           |  4 +--
 drivers/gpu/drm/gma500/psb_intel_display.c |  2 +-
 drivers/gpu/drm/i915/intel_display.c       |  2 +-
 drivers/gpu/drm/i915/intel_sprite.c        |  4 +--
 drivers/gpu/drm/radeon/r100.c              |  2 +-
 drivers/gpu/drm/radeon/r600_cs.c           |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c      |  4 +--
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c        |  2 +-
 9 files changed, 36 insertions(+), 30 deletions(-)

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel