On 23/05/18 16:30, Tvrtko Ursulin wrote:

+{
+    struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev);
+    int ret = i915_gem_contexts_get_allow_sseu(dev_priv);
+
+    return snprintf(buf, PAGE_SIZE, "%d\n", ret);

Propagate ENODEV all the way by making i915_gem_contexts_get_allow_sseu return an int?

Actually should a cat on a sysfs entry fail with ENODEV?

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to