public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v4] drm/i915: Object w/o backing stroage is banned by -ENXIO
@ 2017-11-13  6:49 Tina Zhang
  2017-11-13  6:49 ` [PATCH v3] drm/i915: Introduce GEM proxy Tina Zhang
  2017-11-13 12:27 ` [PATCH v4] drm/i915: Object w/o backing stroage is banned by -ENXIO Joonas Lahtinen
  0 siblings, 2 replies; 4+ messages in thread
From: Tina Zhang @ 2017-11-13  6:49 UTC (permalink / raw)
  To: chris, joonas.lahtinen, zhenyuw, zhiyuan.lv, zhi.a.wang,
	kevin.tian, daniel, hang.yuan
  Cc: intel-gfx, intel-gvt-dev

-ENXIO should be returned when operations are banned from changing
backing storage of objects without backing storage.

v4:
- update "Reviewed-by". (Joonas)

v3:
- separate this patch from "Introduce GEM proxy" patch-set. (Joonas)

v2:
- update the patch description and subject to just mention objects w/o
  backing storage, instead of "GEM proxy". (Joonas)

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> v1
---
 drivers/gpu/drm/i915/i915_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 13bc18d..e85721c 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1713,7 +1713,7 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
 	 */
 	if (!obj->base.filp) {
 		i915_gem_object_put(obj);
-		return -EINVAL;
+		return -ENXIO;
 	}
 
 	addr = vm_mmap(obj->base.filp, 0, args->size,
-- 
2.7.4

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

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

end of thread, other threads:[~2017-11-14 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-13  6:49 [PATCH v4] drm/i915: Object w/o backing stroage is banned by -ENXIO Tina Zhang
2017-11-13  6:49 ` [PATCH v3] drm/i915: Introduce GEM proxy Tina Zhang
2017-11-14 13:30   ` Zhang, Tina
2017-11-13 12:27 ` [PATCH v4] drm/i915: Object w/o backing stroage is banned by -ENXIO Joonas Lahtinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox