All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] drm/i915: Object w/o backing stroage is banned by -ENXIO
@ 2017-11-07  6:04 Tina Zhang
  2017-11-07  8:49 ` ✓ Fi.CI.BAT: success for " Patchwork
  2017-11-07  9:31 ` ✗ Fi.CI.IGT: warning " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Tina Zhang @ 2017-11-07  6:04 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.

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)
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
---
 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] 3+ messages in thread

end of thread, other threads:[~2017-11-07  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07  6:04 [PATCH v3] drm/i915: Object w/o backing stroage is banned by -ENXIO Tina Zhang
2017-11-07  8:49 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-11-07  9:31 ` ✗ Fi.CI.IGT: warning " 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.