Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4451654imw; Tue, 19 Jul 2022 06:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t366FuyvQTWj4Et1AYbmXD8E/mod2oZk65z7OSzw74WmxGnrE969Tl6uhzjgY2A7UxQvSH X-Received: by 2002:a17:907:7fa7:b0:72e:f88c:db16 with SMTP id qk39-20020a1709077fa700b0072ef88cdb16mr20170711ejc.366.1658238921865; Tue, 19 Jul 2022 06:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238921; cv=none; d=google.com; s=arc-20160816; b=ncq1MT0+sHduS1q9Ve+u97lrwZ5ZEwQyNGKTYmaczu9wJbtfPbfnsYddzMDvDc/JLs Ri9o3WNHJ9bTaXHoav8xnHHe1Qw9v+tUD9Y8XyjZfYKQrF+3a764P6abBCWbuH/HyfKQ bNwXczF0C+D+mWDVNcX4XPlJZillnzagOxR6WAvUbKYJD5Yko6WwGRzemrZH37fbjRoD fDW4Dzqno3vHL7TIlmjs11FuOwyNn8/Rqb3wyGicIjQHMVqI35mituIg1sf1vmTZQdVc mHvzDxjwc5wSPqwDHu/1bybTqXsmY8fHXE/vMPZGj2K8R0gpLc4/7j3a5m5nAOhH9e9a Gokg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9a2nAiDOiTCpm/L4dXiJFNhiXon34AztVWnKLmQYUGE=; b=XWEof4cKKnThooyBeYoMzaB247i9HFEnFlEMvHXyxGuamj5ROQ276YBRGxleSPDtS8 ZeyJA9LBqhYIdRLkLMnzlpTA9IdWkEPvnYPA82h1n4h1R9bprP0LLNBIMNI/jUEkP1pq RXO7Co1LFyOVAbwB2liNiVwF98lYDVswVKSS301xC8mAfi7aC+y4miUULCwB3t/gCg4A ljAj3tcEzLvwm17DGe8CmEsr6ILtQ4iVxPUR0advQqSNChx7ycgaCs8IT5t7OnjNgOlV zVO7mflDsHCDbMLeITO5nZYFaanwh9jcz3HzIP1yJIEgzG2JS86heh3TmzuQRz1kSJ3r XsRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ILihPOfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga4-20020a1709070c0400b00726ab8af824si22835107ejc.788.2022.07.19.06.54.56; Tue, 19 Jul 2022 06:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ILihPOfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240644AbiGSMfw (ORCPT + 99 others); Tue, 19 Jul 2022 08:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241041AbiGSMej (ORCPT ); Tue, 19 Jul 2022 08:34:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB7A378233; Tue, 19 Jul 2022 05:13:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 65299B81B2C; Tue, 19 Jul 2022 12:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA744C341C6; Tue, 19 Jul 2022 12:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232814; bh=fvg2bkj8z5Ppk4ktr8qjTgz1iKiQ/89YzGS0rKplh3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILihPOfB+TXX7/J+HO9it0Px5wmq/iYb1NUOhJPIcJbwErKmo/THsGk4CGfu3ZdXa 5BbZX8ZMVkn+QMWoQWiWTgfAIHDiR1nnU19LhmRnTtGOIo9UwpXy5gXV9e4yJdcVTh zYUlViyZ3MkgWpfF2gMwneAUFGobj1oxClc05zwc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bruce Chang , Matt Roper , Rodrigo Vivi , Ramalingam C , Matthew Auld , Sasha Levin Subject: [PATCH 5.15 075/167] drm/i915/dg2: Add Wa_22011100796 Date: Tue, 19 Jul 2022 13:53:27 +0200 Message-Id: <20220719114703.791187066@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bruce Chang [ Upstream commit 154cfae6158141b18d65abb0db679bb51a8294e7 ] Whenever Full soft reset is required, reset all individual engines first, and then do a full soft reset. Signed-off-by: Bruce Chang cc: Matt Roper Cc: Rodrigo Vivi Signed-off-by: Ramalingam C Reviewed-by: Matthew Auld Link: https://patchwork.freedesktop.org/patch/msgid/20220128185209.18077-5-ramalingam.c@intel.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/gt/intel_reset.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_reset.c b/drivers/gpu/drm/i915/gt/intel_reset.c index 91200c43951f..b6697c1d260a 100644 --- a/drivers/gpu/drm/i915/gt/intel_reset.c +++ b/drivers/gpu/drm/i915/gt/intel_reset.c @@ -623,6 +623,15 @@ static int gen8_reset_engines(struct intel_gt *gt, */ } + /* + * Wa_22011100796:dg2, whenever Full soft reset is required, + * reset all individual engines firstly, and then do a full soft reset. + * + * This is best effort, so ignore any error from the initial reset. + */ + if (IS_DG2(gt->i915) && engine_mask == ALL_ENGINES) + gen11_reset_engines(gt, gt->info.engine_mask, 0); + if (GRAPHICS_VER(gt->i915) >= 11) ret = gen11_reset_engines(gt, engine_mask, retry); else -- 2.35.1