Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5745447iog; Thu, 23 Jun 2022 04:39:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHvcjQ1+vA/Ib88rZ2gsrXyfn/YLeJkA9Iz19i6/XqJJGexjlX35sXmt52ycfKpe6rsXEe X-Received: by 2002:a05:6402:348e:b0:435:a912:355f with SMTP id v14-20020a056402348e00b00435a912355fmr9991921edc.326.1655984340430; Thu, 23 Jun 2022 04:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655984340; cv=none; d=google.com; s=arc-20160816; b=H+C7AVlJiUcMHo222r1bz6ff+DeX+SSMp/eF5y1l509AHGPV5sLnuwaKzJxb0Q7NEk bHDcUuyx8A8vZ1/0QwPRp9l3MoQUrwAP9wGKpTy/AZn32eIlF8dQOyxme5WRVm+I0rrK Ci864MbJGqezLRVWdY1ltw7+wRR7eeemCTsRfQ1U4kKUAmd8+i0qPJIecwBg8U1LM8Zq MGkdiLYBSGE+sCpyndqsCzLuTcw+3pLUYXcaHN7UrNuk2uhoG9fh3QJohLX3LEmRx7K+ lq6ultp+KNzsuqen+pEJDRWnVALkTUQGJ1L8A4soqQ8b342lQjr3SO0PNQh5+WDbDkz/ hJpw== 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=JpTcfiQbj39Q8KBdsUgJG5mRJdhNM7WfHIk3FphmtYU=; b=pZbgPx6amUIO32V3M8SymSvryRLCx2cdLcEa29vntHtRURsECexj+H/crtyLi0jSPc tvJXJrjpksBywN782uvMCS8ZLh7f/S5kAGrBecUu1WDTwTfNter+6N69S3FY7FfnBIOv Uitj6oiRC2wTc7cQ3413oqzcH2GqS0X1f6DHGJG2yB0YDbUSdJgXvNJVlXQUkFpmT0MP baIJtAYGtnqdDezfpi5W/8a3u+/IFUIb0KzK998DiZqcxOvZZ7VX9uxnnzgujOT/6u2h KwIsFvLlum3VwuHy5CS+GpbGR1vJp4DU161LwKxMnP+wAxMnXpT/qinL9kAm3PBKQZ7c U3dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Jp+G15Sq; 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 nd5-20020a170907628500b006f395a10e8fsi11949844ejc.594.2022.06.23.04.38.34; Thu, 23 Jun 2022 04:39:00 -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=Jp+G15Sq; 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 S230344AbiFWLEw (ORCPT + 99 others); Thu, 23 Jun 2022 07:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiFWLEp (ORCPT ); Thu, 23 Jun 2022 07:04:45 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED91C4B431; Thu, 23 Jun 2022 04:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655982284; x=1687518284; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=uvRiXn0RqPUIUKiZwsBd2d49wVVCGlUjadwpX0J+dbo=; b=Jp+G15SqRh8yL6m561GCX/n6GhdPqTb7RGvVb92r34FqXZ5Lt/L2iGi3 j0dwYgQq6rvlZxnhYxkMowIk4h7kvk2eRCeZdrLuhLzABdDLnr2ZybjnO PuFcbW0gdwFjp9PD31wwip4+30ryxOaQuZOIlReWcwK+lZr/VQK92+2nk 3/0LBEby79s1tqc8b4C3y1m5PDPRmJzkNmoCuWNXT5GmuHv2GVJ6V0e0N Lee1iVqsCaOIdwgp0xHo+HflLhksaIsCosxsDsJ7+8v0WRpae/l3ys6jk 8iTdOwgLmbzG6NBrQmLUFePN6IRFYLRrjImnPjcJeX5ycFYmkcA6NwgyK Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="260505005" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="260505005" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:04:41 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="644684867" 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:04:35 -0700 Date: Thu, 23 Jun 2022 13:04:32 +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 , Jason Ekstrand , John Harrison , Joonas Lahtinen , Lucas De Marchi , Maarten Lankhorst , Matt Roper , Matthew Auld , Matthew Brost , Ramalingam C , 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 1/6] drm/i915/gt: Ignore TLB invalidations on idle engines 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=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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:35PM +0100, Mauro Carvalho Chehab wrote: > From: Chris Wilson > > As an extension of the current skip TLB invalidations, > check if the device is powered down prior to any engine activity, > > as, on such cases, all the TLBs were already invalidated, so an > explicit TLB invalidation is not needed. > > This becomes more significant with GuC, as it can only do so when > the connection to the GuC is awake. > > 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 Reviewed-by: Andi Shyti Andi