All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "drm/i915: disable set/get_tiling ioctl on gen12+"
@ 2019-11-21 18:11 ` Chris Wilson
  0 siblings, 0 replies; 10+ messages in thread
From: Chris Wilson @ 2019-11-21 18:11 UTC (permalink / raw)
  To: intel-gfx

Restore the DRI2/DRI3 uABI backchannel that was removed by ab016914984e
("drm/i915: disable set/get_tiling ioctl on gen12+") before the ABI
change was agreed upon.

Fixes: ab016914984e ("drm/i915: disable set/get_tiling ioctl on gen12+")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_tiling.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
index 1fa592d82af5..39f3bd5defd6 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
@@ -317,14 +317,10 @@ int
 i915_gem_set_tiling_ioctl(struct drm_device *dev, void *data,
 			  struct drm_file *file)
 {
-	struct drm_i915_private *dev_priv = to_i915(dev);
 	struct drm_i915_gem_set_tiling *args = data;
 	struct drm_i915_gem_object *obj;
 	int err;
 
-	if (!dev_priv->ggtt.num_fences)
-		return -EOPNOTSUPP;
-
 	obj = i915_gem_object_lookup(file, args->handle);
 	if (!obj)
 		return -ENOENT;
@@ -405,9 +401,6 @@ i915_gem_get_tiling_ioctl(struct drm_device *dev, void *data,
 	struct drm_i915_gem_object *obj;
 	int err = -ENOENT;
 
-	if (!dev_priv->ggtt.num_fences)
-		return -EOPNOTSUPP;
-
 	rcu_read_lock();
 	obj = i915_gem_object_lookup_rcu(file, args->handle);
 	if (obj) {
-- 
2.24.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-11-21 19:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-21 18:11 [PATCH] Revert "drm/i915: disable set/get_tiling ioctl on gen12+" Chris Wilson
2019-11-21 18:11 ` [Intel-gfx] " Chris Wilson
2019-11-21 18:37 ` Vanshidhar Konda
2019-11-21 18:37   ` [Intel-gfx] " Vanshidhar Konda
2019-11-21 19:01 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-11-21 19:01   ` [Intel-gfx] " Patchwork
2019-11-21 19:19 ` [PATCH] " Francisco Jerez
2019-11-21 19:19   ` [Intel-gfx] " Francisco Jerez
2019-11-21 19:22 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-11-21 19:22   ` [Intel-gfx] " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.