Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5742217iog; Thu, 23 Jun 2022 04:34:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uiaIVDh9w90kyHSgxQauCPbFvcow8HrTNJVb+8D7rTTkknK1RIXMrQ71TaPQKriEuW2yi5 X-Received: by 2002:a17:907:e91:b0:707:c7af:93aa with SMTP id ho17-20020a1709070e9100b00707c7af93aamr7893072ejc.382.1655984099226; Thu, 23 Jun 2022 04:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655984099; cv=none; d=google.com; s=arc-20160816; b=lT6QRxYhb3jZaHsaUtAJ4BBwEpOc/GhXMoCTmSRw6687HLuNAO3DEtZkeUJD8qzyhN pe0yVDKxkrBdsQqyTO+crrT5/UsN2I9X3+KasiRQuBOF/5wYxswwUfyHCUEVqpB56PlJ izKTf+V/OlLkHXNKz/GNjscIk2DUT1KDRJ+sXAzT+eRUzRBhfyco+UzMyRn3EMVk5nQn VvOfL9k1MI2I1V29TpvnvZRUYWQvA90rbl0QbgQHVt0boXRIh515jG62/r0rQ80pMjo3 G1fUiGmMkH4N7KE5eq7nRNPKbkvn6feP5Uofq5/9rxbo0DqBiUJcAsRaa8jHASA12dr+ R6dw== 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=U+zqmN/12gR5VjXlRX6Y68aKjCStpAn/u2ojlHD1vVg=; b=kltnh6Gkt0ncQN7Wc2fPS+ZW57tpHmtlO/VzR4jqLLHVKddpxLyYyI5oz+GBJLLnvd nGRNHT26BiYl6R3sUwxVaewgfgcsKODT+e05PQSYYwnmZxqkgyYdDxBJAgMF1+FM1tW/ kvGBsB4fC8X3x2EA67O0AuguEOBewvAcBKPUGSsJ5HbglvhIHT7DGJqA0QiAlQA/w3aX G2+omaWi+bxcVapg6AkMnvvYmzmeOkCi2oXDA2l3p7VXAiqLw8vL7l8kU4fFMBi0qC2m R9/YnXLmVNj7FABnroLBHVoUnKC1ugd0yUeYKE4NRrZ096MKmnALtgVAKfvkD6EhJ990 BG/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Knkz5DmE; 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 l25-20020a056402345900b004357fb1ea9bsi12965501edc.436.2022.06.23.04.34.32; Thu, 23 Jun 2022 04:34:59 -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=Knkz5DmE; 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 S229734AbiFWLS7 (ORCPT + 99 others); Thu, 23 Jun 2022 07:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbiFWLS5 (ORCPT ); Thu, 23 Jun 2022 07:18:57 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F276D4BBA0; Thu, 23 Jun 2022 04:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655983137; x=1687519137; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ZDmviisAQFt/A72ntxTrOHQF561xAWJ5eMxmpFohiy4=; b=Knkz5DmEYNKy7rBucfltf1wCQeZbmZDlm5A1yZf2G1qwGJvcSwr5dTjU 3XgrSCdTKAmfljqiWg2i9L1mCLlHFl4tV7Z3Mjt6mDBXjaRzDHHYqgYJ5 y//d80sRddUagmpAsiu2RLCEJqbYMDqX4OPRAvpPSYG/vd3swOAcMA9y7 ey5pV9rxCSVAlm5mtmc2Od2o5KulmgpdAsGuDYd7UJ/A+VcgU2M/BG6gz wMpOr2dEzTNEC+zy0cHV395IsvTylmMPx9muvjFbvu9lkfsX9/6iyEUG4 eJ7hAY2xS4UJo5W7sTs4lniyyK1P9FzJbUmQzaKnQVJIrmMC0SiJ1GcZd Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="344682191" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="344682191" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:18:56 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="644691087" Received: from hazegrou-mobl.ger.corp.intel.com (HELO intel.com) ([10.251.216.121]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:18:50 -0700 Date: Thu, 23 Jun 2022 13:18:47 +0200 From: Andi Shyti To: Mauro Carvalho Chehab Cc: Chris Wilson , Fei Yang , =?utf-8?Q?Micha=C5=82?= Winiarski , Thomas Hellstrom , Thomas =?iso-8859-15?Q?Hellstr=F6m?= , Andi Shyti , Daniel Vetter , Daniele Ceraolo Spurio , Dave Airlie , David Airlie , Jani Nikula , 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 Subject: Re: [PATCH 6/6] drm/i915/gt: Serialize TLB invalidates with GT resets Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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:40PM +0100, Mauro Carvalho Chehab wrote: > From: Chris Wilson > > Avoid trying to invalidate the TLB in the middle of performing an > engine reset, as this may result in the reset timing out. Currently, > the TLB invalidate is only serialised by its own mutex, forgoing the > uncore lock, but we can take the uncore->lock as well to serialise > the mmio access, thereby serialising with the GDRST. > > Tested on a NUC5i7RYB, BIOS RYBDWi35.86A.0380.2019.0517.1530 with > i915 selftest/hangcheck. > > Fixes: 7938d61591d3 ("drm/i915: Flush TLBs before releasing backing store") > > Reported-by: Mauro Carvalho Chehab > Tested-by: Mauro Carvalho Chehab > Reviewed-by: Mauro Carvalho Chehab > Signed-off-by: Chris Wilson > Cc: Tvrtko Ursulin > Cc: stable@vger.kernel.org > Acked-by: Thomas Hellstr?m > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Andi Shyti Thanks, Andi