From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DAA32D6639; Thu, 3 Jul 2025 15:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751555795; cv=none; b=q4nyQ6Vs2Wln4ecB3c9y4sMZiQRJ69KVTLPHAe/G7fJVg/WfKQPKCkNP4gpfCY1m0X/u+rnupsiQx5eICWt0h0M/Ns8YtG9DqfRU9Wh8NtV809AdQ0r9Vmp9S0vsFinmpWgpl1KVFLgDWFRIoj39qD5m7HoHU5I0fuckpblrWkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751555795; c=relaxed/simple; bh=4npm4VZ0cAs9tieB2Hpxg3cjBA2Qdt4AOdwaYBkoqU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=THZrmEZIin0vw5ivB/bQni7YhbvlWajXc7W98aVosIqTuR10vveyvl44a4ZvBN2e5JRF/kgQZ47vVZIrQKcMhb+b7O/S5OY1o7XFrtDSuQyVuNPC9AERbuHsH6lTihZyiGdcOSgBESGV50zeih1odVPWKhRbOqe3Rmsui7QvYJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BrHeJ4Q6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BrHeJ4Q6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6DC9C4CEF3; Thu, 3 Jul 2025 15:16:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751555795; bh=4npm4VZ0cAs9tieB2Hpxg3cjBA2Qdt4AOdwaYBkoqU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BrHeJ4Q6xSLRnUaXG1+RXWKpLkysYXVgKl1MbCP4m1i1fqXPM04t2D5UuAauImNHV 3GdJ87EECtZcEBBAAhpfmpo7RDajoVH8ug3Hcr8ItrMfhSQrKgWNV8v3+Vd3GJeZIn 2s6IafdJcjTJb5SD71jLWQTtRAJR3qFDt/Gzhoug= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matthew Auld , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Andi Shyti , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Andi Shyti , Joonas Lahtinen Subject: [PATCH 6.6 124/139] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1 Date: Thu, 3 Jul 2025 16:43:07 +0200 Message-ID: <20250703143946.031173292@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250703143941.182414597@linuxfoundation.org> References: <20250703143941.182414597@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ville Syrjälä commit 25eeba495b2fc16037647c1a51bcdf6fc157af5c upstream. 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 # v6.0+ Cc: Matthew Auld Cc: Thomas Hellström Testcase: igt/gem_exec_capture/capture-invisible Fixes: 71b1669ea9bd ("drm/i915/uapi: tweak error capture on recoverable contexts") Reviewed-by: Andi Shyti Signed-off-by: Ville Syrjälä Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/20250411144313.11660-2-ville.syrjala@linux.intel.com (cherry picked from commit d6e020819612a4a06207af858e0978be4d3e3140) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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_ 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) {