diff options
Diffstat (limited to 'drivers/gpu/drm/drm_ioctl.c')
| -rw-r--r-- | drivers/gpu/drm/drm_ioctl.c | 19 | 
1 files changed, 3 insertions, 16 deletions
| diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c index 266dcd6cdf3b..b1d303fa2327 100644 --- a/drivers/gpu/drm/drm_ioctl.c +++ b/drivers/gpu/drm/drm_ioctl.c @@ -36,9 +36,6 @@  #include <linux/pci.h>  #include <linux/export.h> -#ifdef CONFIG_X86 -#include <asm/mtrr.h> -#endif  static int drm_version(struct drm_device *dev, void *data,  		       struct drm_file *file_priv); @@ -197,16 +194,7 @@ static int drm_getmap(struct drm_device *dev, void *data,  	map->type = r_list->map->type;  	map->flags = r_list->map->flags;  	map->handle = (void *)(unsigned long) r_list->user_token; - -#ifdef CONFIG_X86 -	/* -	 * There appears to be exactly one user of the mtrr index: dritest. -	 * It's easy enough to keep it working on non-PAT systems. -	 */ -	map->mtrr = phys_wc_to_mtrr_index(r_list->map->mtrr); -#else -	map->mtrr = -1; -#endif +	map->mtrr = arch_phys_wc_index(r_list->map->mtrr);  	mutex_unlock(&dev->struct_mutex); @@ -350,9 +338,6 @@ drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)  		file_priv->universal_planes = req->value;  		break;  	case DRM_CLIENT_CAP_ATOMIC: -		/* for now, hide behind experimental drm.atomic moduleparam */ -		if (!drm_atomic) -			return -EINVAL;  		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))  			return -EINVAL;  		if (req->value > 1) @@ -641,6 +626,8 @@ static const struct drm_ioctl_desc drm_ioctls[] = {  	DRM_IOCTL_DEF(DRM_IOCTL_MODE_OBJ_SETPROPERTY, drm_mode_obj_set_property_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),  	DRM_IOCTL_DEF(DRM_IOCTL_MODE_CURSOR2, drm_mode_cursor2_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),  	DRM_IOCTL_DEF(DRM_IOCTL_MODE_ATOMIC, drm_mode_atomic_ioctl, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED), +	DRM_IOCTL_DEF(DRM_IOCTL_MODE_CREATEPROPBLOB, drm_mode_createblob_ioctl, DRM_CONTROL_ALLOW|DRM_UNLOCKED), +	DRM_IOCTL_DEF(DRM_IOCTL_MODE_DESTROYPROPBLOB, drm_mode_destroyblob_ioctl, DRM_CONTROL_ALLOW|DRM_UNLOCKED),  };  #define DRM_CORE_IOCTL_COUNT	ARRAY_SIZE( drm_ioctls ) | 
