Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5730237iog; Thu, 23 Jun 2022 04:20:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uVXqW8vkLHp1TzeBqI4xBTizFKzie3GdBsfm+Nw/ZRJILX+I5/BePMdqbul4HS9HtMZBOg X-Received: by 2002:a05:6a00:230d:b0:4f6:ec4f:35ff with SMTP id h13-20020a056a00230d00b004f6ec4f35ffmr40444444pfh.53.1655983229962; Thu, 23 Jun 2022 04:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655983229; cv=none; d=google.com; s=arc-20160816; b=wocWxc5AshT6csCxNHqXdW9sxhTNDhN4jYJEVkvA5oQIX5rLTSriiwOIbrwnFfHSbN Qk/vCUgYHwLFJnZcPIPdlJgOVQgZv8iWz+3o5GWssDA27elCoIbc5gCldVX3eZrhfX2a zdy2MIB11EF+LTg1j0gDoejWoTRSYWQ8lBCA1Yq5TMTveABH/UGR3AoBj6wQffB5J0hy uY4eZAxsQTq8AtWZ3Svvd0QgzfLaeM5XhsZzSURQs0XJHbezi0DO0LhX4OrReSxRddj3 dvymzjwDWetSpojN2g1YKaC4WNAv0wfajSSFBTnR3LlEMZSJYjeN04CpNSdefLh5zsyt lvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H6qa0gro1qWdWGAw27/40KLhMK+ATfPizSI1AGVmNts=; b=PUdx4j5/fDgG627iY/BK75P4U+ZXxub1Hkc8mlyaxH2tyufpfElWBxEa9OdV8lUqQR JRr6UEmOwPfj7Gv1W6lh/A1aPIObJOvDhuSbs4K3lFi3uXBgUAQBDXxUoV1VMZBLqsID EVIoK4Gg6YR+e2ir6xEnWoW/q9uiyYCFYV0Tsq41dDCUHgKrZXKgsHRbKr8gItdQD27d 1jLbqWRF0LWAv2cdNuYrVR4Ant15PDrQC6eLRGGCxIO3WTdnVnfllU4pX1lof+bP4yzE xjFqRrfD2ObDT4PhgJjWUSt10/C5UyVimuHz7w6aLWfRAEX8u8izkp70E+tu7cZaD4bF QcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=It+GYYJ3; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a634b26000000b0040cf043ed35si11165128pga.814.2022.06.23.04.20.17; Thu, 23 Jun 2022 04:20:29 -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=@intel.com header.s=Intel header.b=It+GYYJ3; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbiFWLJH (ORCPT + 99 others); Thu, 23 Jun 2022 07:09:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231418AbiFWLI7 (ORCPT ); Thu, 23 Jun 2022 07:08:59 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9FF84B875; Thu, 23 Jun 2022 04:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655982538; x=1687518538; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=+2Fzm0IiC8LmVdtB96+NVSttwdYC7NP4ky6hE0ZGRnc=; b=It+GYYJ3XpztgixGazbRF8ap6IfwC2PnT52MIai4+ix5QaXG3E3XITQ8 oIuhvrwGpGUXCEn0T8A2QlSXQBRseSluaYkHLKtT1McKM62RDFN7zOzMQ ircdUUrpwxPRzwR/KhdPv5ESlq7oMf/eGJpp5KuNz5usx0MdvNhjNgL59 xq084c9lc67a0kd2Y+DABkqYb9KexQxlPR8TCKNrtoMnHvk914sZwF2he FFNFzG6up6QMBmJmQ1ELwq6k29pDVMPwIUDtYMkgzMVEF++5DV8BwrGXn sOOywVEkqJFaaZZCTG77GWKtn2Mc2aJHRFKSwp3RO9Fdncogu8Bo99GIk w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="306149891" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="306149891" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:08:58 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592659100" Received: from hazegrou-mobl.ger.corp.intel.com (HELO intel.com) ([10.251.216.121]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:08:53 -0700 Date: Thu, 23 Jun 2022 13:08:50 +0200 From: Andi Shyti To: Mauro Carvalho Chehab Cc: Chris Wilson , Fei Yang , =?utf-8?Q?Micha=C5=82?= Winiarski , Thomas Hellstrom , Andi Shyti , Daniel Vetter , Daniele Ceraolo Spurio , Dave Airlie , David Airlie , Jani Nikula , John Harrison , Joonas Lahtinen , Lucas De Marchi , Matt Roper , Matthew Auld , Rodrigo Vivi , Tvrtko Ursulin , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mauro.chehab@linux.intel.com, stable@vger.kernel.org, Thomas =?iso-8859-15?Q?Hellstr=F6m?= Subject: Re: [PATCH 3/6] drm/i915/gt: Skip TLB invalidations once wedged Message-ID: References: <9d9e663ca8e97becf04e1d4c8cb8a9a1f397a5f1.1655306128.git.mchehab@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9d9e663ca8e97becf04e1d4c8cb8a9a1f397a5f1.1655306128.git.mchehab@kernel.org> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Hi Mauro, On Wed, Jun 15, 2022 at 04:27:37PM +0100, Mauro Carvalho Chehab wrote: > From: Chris Wilson > > Skip all further TLB invalidations once the device is wedged and > had been reset, as, on such cases, it can no longer process instructions > on the GPU and the user no longer has access to the TLB's in each engine. > > Fixes: 7938d61591d3 ("drm/i915: Flush TLBs before releasing backing store") > > Signed-off-by: Chris Wilson > Cc: Fei Yang > Cc: Andi Shyti > Cc: stable@vger.kernel.org > Acked-by: Thomas Hellstr?m > Signed-off-by: Mauro Carvalho Chehab > --- > > See [PATCH 0/6] at: https://lore.kernel.org/all/cover.1655306128.git.mchehab@kernel.org/ > > drivers/gpu/drm/i915/gt/intel_gt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/gt/intel_gt.c b/drivers/gpu/drm/i915/gt/intel_gt.c > index 61b7ec5118f9..fb4fd5273ca4 100644 > --- a/drivers/gpu/drm/i915/gt/intel_gt.c > +++ b/drivers/gpu/drm/i915/gt/intel_gt.c > @@ -1226,6 +1226,9 @@ void intel_gt_invalidate_tlbs(struct intel_gt *gt) > if (I915_SELFTEST_ONLY(gt->awake == -ENODEV)) > return; > > + if (intel_gt_is_wedged(gt)) > + return; > + This looks familiar :) Reviewed-by: Andi Shyti Thanks, Andi