From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B671C28EBD for ; Sun, 9 Jun 2019 17:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 018B120652 for ; Sun, 9 Jun 2019 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560100690; bh=ADXFPHjgl+ccxMtpa4MvsrasXGZXkMLCvfHm6GALKhA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=xXEXmo5T0WYL86xy+X4Iy3L7DX29qCb1M5KmRblhF/gFngwn1HGISDuMZDYPnvLgb 8rdsFpFb4i/RLnVyYKLYHqBk9DOlJyikjvygOENBDtN3nxPHSz5sjCfGKY6wjOhp4u 5AslTwCky23fp+72gxOf44x2VEMsCpKx2ZtHP2ZQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730985AbfFIQuw (ORCPT ); Sun, 9 Jun 2019 12:50:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:50850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731800AbfFIQuv (ORCPT ); Sun, 9 Jun 2019 12:50:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFFB5205ED; Sun, 9 Jun 2019 16:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560099051; bh=ADXFPHjgl+ccxMtpa4MvsrasXGZXkMLCvfHm6GALKhA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=chxZFgeM4Y2x6Eo/jxPIwGmbREQn9ULSMqIY4rT2wS5OxYjLk+6wI9qF8G0VDB0Ke ZvA5mJFnpngUgJhZBx7mhopJ8cdtmUGcgvriC+64u6d1izoUiE+MQyF7Fj3hOxIYdZ FvBya/nMzzPsW2FZ7YyqlXB6UYVnXDizb2CfbH70= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Wilson , Tvrtko Ursulin Subject: [PATCH 4.14 30/35] drm/i915: Fix I915_EXEC_RING_MASK Date: Sun, 9 Jun 2019 18:42:36 +0200 Message-Id: <20190609164127.242175368@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164125.377368385@linuxfoundation.org> References: <20190609164125.377368385@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Chris Wilson commit d90c06d57027203f73021bb7ddb30b800d65c636 upstream. This was supposed to be a mask of all known rings, but it is being used by execbuffer to filter out invalid rings, and so is instead mapping high unused values onto valid rings. Instead of a mask of all known rings, we need it to be the mask of all possible rings. Fixes: 549f7365820a ("drm/i915: Enable SandyBridge blitter ring") Fixes: de1add360522 ("drm/i915: Decouple execbuf uAPI from internal implementation") Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: # v4.6+ Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20190301140404.26690-21-chris@chris-wilson.co.uk Signed-off-by: Greg Kroah-Hartman --- include/uapi/drm/i915_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h @@ -853,7 +853,7 @@ struct drm_i915_gem_execbuffer2 { * struct drm_i915_gem_exec_fence *fences. */ __u64 cliprects_ptr; -#define I915_EXEC_RING_MASK (7<<0) +#define I915_EXEC_RING_MASK (0x3f) #define I915_EXEC_DEFAULT (0<<0) #define I915_EXEC_RENDER (1<<0) #define I915_EXEC_BSD (2<<0)