From: oscar.mateo@intel.com Subject: [PATCH 33/49] drm/i915/bdw: Allow non-default, non-render user LR contexts Date: Thu, 27 Mar 2014 18:00:02 +0000 Message-ID: <1395943218-7708-34-git-send-email-oscar.mateo@intel.com> References: <1395943218-7708-1-git-send-email-oscar.mateo@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id E94B06E9FB for ; Thu, 27 Mar 2014 10:09:43 -0700 (PDT) In-Reply-To: <1395943218-7708-1-git-send-email-oscar.mateo@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org From: Oscar Mateo This commit changes the ABI, so it is provided separately so that it can be dropped by the maintainer is so he wishes. Signed-off-by: Oscar Mateo --- drivers/gpu/drm/i915/i915_lrc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_lrc.c b/drivers/gpu/drm/i915/i915_lrc.c index 3065bca..9d1e7f3 100644 --- a/drivers/gpu/drm/i915/i915_lrc.c +++ b/drivers/gpu/drm/i915/i915_lrc.c @@ -351,12 +351,6 @@ gen8_gem_validate_context(struct drm_device *dev, struct drm_file *file, bool found = false; int ret; - /* There is no reason why we cannot accept non-default, non-render contexts, - * other than it changes the ABI (these kind of custom contexts have not been - * allowed before) */ - if (ring->id != RCS && ctx_id != DEFAULT_CONTEXT_ID) - return ERR_PTR(-EINVAL); - ctx = (struct i915_hw_context *)idr_find(&file_priv->context_idr, ctx_id); if (!ctx) return ERR_PTR(-ENOENT); -- 1.9.0