Skip to content

drm/i915: incidental -EPERM considered harmful

Jani Nikula intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/i915/dsi: pass struct mipi_dsi_packet pointer, not the entire structdrivers/gpu/drm/i915/display/icl_dsi.c+12 -120 replies
2/6drm/i915/dsi: fuse dsi_send_pkt_payld() and add_payld_to_queue()drivers/gpu/drm/i915/display/icl_dsi.c+15 -280 replies
3/6drm/i915/dsi: return -EBUSY instead of -1drivers/gpu/drm/i915/display/icl_dsi.c+1 -20 replies
4/6drm/i915/hdmi: return -EINVAL instead of -1drivers/gpu/drm/i915/display/intel_hdmi.c+1 -10 replies
5/6drm/i915/drv: return -EIO instead of -1drivers/gpu/drm/i915/i915_drv.c+4 -30 replies
6/6drm/i915/dram: return -ENOENT instead of -1drivers/gpu/drm/i915/intel_dram.c+2 -22 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchVille Syrjälä
1/6
2/6
3/6
4/6
5/6
6/6R-b

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

Read the v1 thread

Cover letter [Intel-gfx] [PATCH 0/6] drm/i915: incidental -EPERM considered harmful

I think using return -1 to indicate errors in kernel is generally a bad idea. There are specific cases, such as returning invalid indexes, where it might be justified, but functions that are expected to return actual kernel error codes should return actual kernel error codes, not incidental -EPERM.

Fix a handful of these cases as an example. I thought DSI needed a little cleanup first instead of just making the conversion.

BR,
Jani.

Jani Nikula (6):
drm/i915/dsi: pass struct mipi_dsi_packet pointer, not the entire
struct
drm/i915/dsi: fuse dsi_send_pkt_payld() and add_payld_to_queue() drm/i915/dsi: return -EBUSY instead of -1 drm/i915/hdmi: return -EINVAL instead of -1 drm/i915/drv: return -EIO instead of -1
drm/i915/dram: return -ENOENT instead of -1

 drivers/gpu/drm/i915/display/icl_dsi.c    | 64 +++++++++--------------
 drivers/gpu/drm/i915/display/intel_hdmi.c |  2 +-
 drivers/gpu/drm/i915/i915_drv.c           |  7 +--
 drivers/gpu/drm/i915/intel_dram.c         |  4 +-
 4 files changed, 32 insertions(+), 45 deletions(-)
Signature · 1 line
2.30.2