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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58ED4C36018 for ; Tue, 1 Apr 2025 16:38:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAD4510E624; Tue, 1 Apr 2025 16:38:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FPuxMCK/"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id E764710E626 for ; Tue, 1 Apr 2025 16:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1743525485; x=1775061485; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SZf271VfOjlaxtvm/iinogqmiUjjofRuKWh7OgdDSZs=; b=FPuxMCK/8s5Nwtv7rb5j7rzILG/8yoDy8Vm2+c97j4dfwN+pk5YrdcZX fjxpDjtD7ts3viDyaq/O5x0WpyKhm1/aAvdy/c2vG3j0vGfEekVV1w+SH 0jMBZJW1w0advgINnAO2+RYh5WSNFmznUnenEfuO2jmcUYdCmHKlVS0qn DEu1IX4bfcrqOwlhPbBy88u85ECuMJKyh+rM3wLOVwX6FJWxYmI2HddQP HZwBlOljk633UJm0FgjncI8KclnsSNOayFZZ9ydFnovwHoPIJz8KnDS6w kRwTRI7CvPrrCnMYKUrUzxlB/LneaqFRJsBpJ7UW0458+YPmAa95VK9lP A==; X-CSE-ConnectionGUID: jUS4padyQjGSrw4/tZd61A== X-CSE-MsgGUID: O8o1fLGSQRCE9MSDJO8GmA== X-IronPort-AV: E=McAfee;i="6700,10204,11391"; a="55520047" X-IronPort-AV: E=Sophos;i="6.14,293,1736841600"; d="scan'208";a="55520047" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2025 09:38:04 -0700 X-CSE-ConnectionGUID: Du1X8kyJTICkCAciKvlq4w== X-CSE-MsgGUID: GWp3WaDGTeqQz+56dEPI/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,293,1736841600"; d="scan'208";a="131638607" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orviesa005.jf.intel.com with SMTP; 01 Apr 2025 09:38:02 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 01 Apr 2025 19:38:01 +0300 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Cc: stable@vger.kernel.org, Matthew Auld , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Subject: [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1 Date: Tue, 1 Apr 2025 19:37:51 +0300 Message-ID: <20250401163752.6412-4-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250401163752.6412-1-ville.syrjala@linux.intel.com> References: <20250401163752.6412-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä The intel-media-driver is currently broken on DG1 because it uses EXEC_CAPTURE with recovarable contexts. Relax the check to allow that. I've also submitted a fix for the intel-media-driver: https://github.com/intel/media-driver/pull/1920 Cc: stable@vger.kernel.org Cc: Matthew Auld Cc: Thomas Hellström Fixes: 71b1669ea9bd ("drm/i915/uapi: tweak error capture on recoverable contexts") Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c index ca7e9216934a..ea9d5063ce78 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c @@ -2013,7 +2013,7 @@ static int eb_capture_stage(struct i915_execbuffer *eb) continue; if (i915_gem_context_is_recoverable(eb->gem_context) && - (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0))) + GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 10)) return -EINVAL; for_each_batch_create_order(eb, j) { -- 2.45.3