Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5743104iog; Thu, 23 Jun 2022 04:36:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1squndZWwzj92mOSG98LN4ZmbW15RBv0nYxyRhvBBwLS9+ZMoX4dFQ6uCHLencn1BrvfJkr X-Received: by 2002:a05:6402:4410:b0:434:f35f:132e with SMTP id y16-20020a056402441000b00434f35f132emr9938458eda.215.1655984162419; Thu, 23 Jun 2022 04:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655984162; cv=none; d=google.com; s=arc-20160816; b=ncG4NOgM26Wf4BStWU4k2U8NhI5hs7aJ+/wQSAOfWcaZLDC8dkgpJA6k5yTwjBrI6a tqeomOFV4PR9f4QGKQ798VAzvGp2LE40Aq1EAYzcmOgWrg+XEcE0zmBfw0xxVBfFhChl p5lU/ITI5kAfocqo2SrV29rYlsXZ3pzHa7MFQxZwNA289GvfkDFgKvFHPrfkVgkSci++ 0FqIqWcVZIn7JTA2Mc45k1Iczex3i0R84NKnFvnnWubIEDDjGslv7x4FFcl/Yr44GJyT ULqIMr4xZokVT3tAfK4HgS7G37fLkhAOS/a+ZNCkl1CGVFvdi1pxo0cSsTjVgwkJczyF hSiA== 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=5jPEICW3VEO792hGgZD2YpnnOZ0wHiw4wb5z2oJUs4Y=; b=Qm32N80IEhD+Xs3/IPmLnQZXlXlYwufFo5ACekcs8Jr/oAU8X4t6zcDy803f2rMzSz AsQ04SkQ9TVRCtaSIzkRVaQP559WCYt68YZwfb9pzoYmI7NUm3oiPLq3hOGRS2HGYuAM NdXBRZfpK492kcIs7liGS77k1xlAC6WcBl360GT3VEDZ/kyG5d+Z9I0dZmBimUMN4kyv ck99FDyrEOFFzlTQT2Zecj82OuU3lYERygVvCnXSJ7wSAUb7KNrqVTfLpz3P/MGJ35cN MJTYM1S438Gl5mZz/La1u7tMh84/3NJ6b8/S/4a8wVKifbyzadsV6wXuMAIJ4MmOoXdW ImRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sf1gCsZK; 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 rv14-20020a17090710ce00b007157b04969esi3464774ejb.482.2022.06.23.04.35.37; Thu, 23 Jun 2022 04:36:02 -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=Sf1gCsZK; 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 S230052AbiFWLRk (ORCPT + 99 others); Thu, 23 Jun 2022 07:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiFWLRj (ORCPT ); Thu, 23 Jun 2022 07:17:39 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170094B437; Thu, 23 Jun 2022 04:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655983058; x=1687519058; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=5Z1glAH6RldXiFGaCnDodkfVEScRoth80xEGCnd7XKU=; b=Sf1gCsZK8z5Vq40daXHSbngDHDKKFUxKoJaPfULPZt0C2Nr59TfSjfP9 g1CMz98bmRssyygGjgN2rfQCEejOtE3QhVpn4WIFyophkbqiuAHNmEs7W zhNkL2JCR0YdxCdOnY98b+OAfbH49tTuUhEL1mRmXjo3J+AwLe1tvOMdD I1FY/3+MQqLm5fTf0+UXX3UO9W1O2hRJZW29W4e5MBNls/GzvgdF6SVQD MnKyS3RiXvjF66UZCLynx6ll6JldECHlaSTTR07jTSULDn072sHs79sUP pvnma3hEFPZSKsFVKJ8lT4fq7o7A3l5YvkU3ELBUt03YMvYH+z/nTFltV g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="278241099" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="278241099" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:17:37 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="644690773" 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:17:32 -0700 Date: Thu, 23 Jun 2022 13:17:30 +0200 From: Andi Shyti To: Mauro Carvalho Chehab Cc: Chris Wilson , Fei Yang , Thomas Hellstrom , Bruce Chang , Daniel Vetter , Dave Airlie , David Airlie , Jani Nikula , John Harrison , Joonas Lahtinen , Matt Roper , Matthew Brost , Rodrigo Vivi , Tejas Upadhyay , Tvrtko Ursulin , Umesh Nerlige Ramappa , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mauro.chehab@linux.intel.com, Mika Kuoppala , Chris Wilson , stable@vger.kernel.org, Thomas =?iso-8859-15?Q?Hellstr=F6m?= Subject: Re: [PATCH 5/6] drm/i915/gt: Serialize GRDOM access between multiple engine resets Message-ID: References: <5ee647f243a774927ec328bfca8212abc4957909.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: <5ee647f243a774927ec328bfca8212abc4957909.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,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:39PM +0100, Mauro Carvalho Chehab wrote: > From: Chris Wilson > > Don't allow two engines to be reset in parallel, as they would both > try to select a reset bit (and send requests to common registers) > and wait on that register, at the same time. Serialize control of > the reset requests/acks using the uncore->lock, which will also ensure > that no other GT state changes at the same time as the actual reset. > > Fixes: 7938d61591d3 ("drm/i915: Flush TLBs before releasing backing store") > > Reported-by: Mika Kuoppala > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala > Cc: Andi Shyti > Cc: stable@vger.kernel.org > Acked-by: Thomas Hellstr?m > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Andi Shyti Thanks, Andi