Skip to contentSkip to conversation

Patch "drm/i915: Forward all core DRM ioctls to core compat handling" has been added to the 4.1-stable tree

PATCH [email protected] 1 participant 1 message Jul 30, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/i915: Forward all core DRM ioctls to core compat handling

to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-i915-forward-all-core-drm-ioctls-to-core-compat-handling.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From ac7e7ab1c3243b10b41653cc8d8536088d83b152 Mon Sep 17 00:00:00 2001

From: Tvrtko Ursulin <[email protected]>
Date: Mon, 13 Jul 2015 16:51:39 +0100
Subject: drm/i915: Forward all core DRM ioctls to core compat handling

From: Tvrtko Ursulin <[email protected]>

commit ac7e7ab1c3243b10b41653cc8d8536088d83b152 upstream.

Previously only core DRM ioctls under the DRM_COMMAND_BASE were being forwarded, but the drm.h header suggests (and reality confirms) ones after (and including) DRM_COMMAND_END should be forwarded as well.

We need this to correctly forward the compat ioctl for the botched-up addfb2.1 extension.

Cc Daniel Vetter <[email protected]>
[danvet: Explain why this is suddenly needed and add cc: stable.]
---
 drivers/gpu/drm/i915/i915_ioc32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_ioc32.c +1 -1
@@ -204,7 +204,7 @@ long i915_compat_ioctl(struct file *filp
 	drm_ioctl_compat_t *fn = NULL;
 	int ret;
 
-	if (nr < DRM_COMMAND_BASE)
+	if (nr < DRM_COMMAND_BASE || nr >= DRM_COMMAND_END)
 		return drm_compat_ioctl(filp, cmd, arg);
 
 	if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(i915_compat_ioctls))

Patches currently in stable-queue which might be from [email protected] are

queue-4.1/drm-provide-compat-ioctl-for-addfb2.1.patch queue-4.1/drm-i915-forward-all-core-drm-ioctls-to-core-compat-handling.patch