Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5730524iog; Thu, 23 Jun 2022 04:20:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u7LaZ8himn4yhPKUJx7WIW9u60J9IYOvmMHv7ZQce4hCDRKy0cNCQjtwR11YE/StLz7flN X-Received: by 2002:a17:90b:1e0e:b0:1ec:adbe:3b35 with SMTP id pg14-20020a17090b1e0e00b001ecadbe3b35mr3626792pjb.134.1655983257427; Thu, 23 Jun 2022 04:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655983257; cv=none; d=google.com; s=arc-20160816; b=WwwGDhQNF7E9Al2WJDgvcYOMhZ05BXPVRniuTv0oPqan03RPD0k1fCiJqXrj6sWzU0 I0aF4iMttx1m5YBMXKeScspVqXoz2RBj/dB7l3CrWj4v7SHwv5LoRGCb8Ds+pVaeK9oj XaJBELDiSqAvLEouuGec3wjBugZxMLkiSHg9MUhBIhvjMnCO9yfUjqKeqRdYiOaDXNyM q3N4NM59Nj0TTylxtnrM2rACHIIOIvVsPw/PoIfNMV6STsJXqBwh283SqveS/8YN6Bvh 44scIg7IMhdcVfSF9FDg8tbRQncYa0/8KPBGACVEh0gZnrmYHfvAu17AO6dWJB1DWXGu RJPg== 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=9Ujk26Tl1zItk6G8cNpsl4Q94Y2iJMAfXWWQxFDpXEo=; b=EojimT8jgHwdPOqo+7Bs5MAdAI4cqn0AQOMEINnhia/7ht+/ncxLGOUTm8w/G8LdOZ SeRBfyq6NPjrKPjWpIXgBWDTmOOzbyvpFEPO+nQUXQ8WWcoq8j2RYqHVVF9DPDKGBkrF wVLSEkcCbwU7vmTM11cuQVOsJ65UyMmf2wHNjkqq8PX++1TtNcp07M6FJGHOCn4xvfOD ncPih0totzM2e0blmW30RZpcBUvWCG/g2tbsVM6tJezS2bex89ADd6TQerciyxL4p40U SlTzUivjBYoQhF8bFaBwI0HMv8MJTakyzOG556Veuntz4vh5DfM94Uu6H17cNrfLiWL4 p1Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Zr8odk0H; 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 q20-20020a170903205400b0016a22069bd2si12416617pla.104.2022.06.23.04.20.44; Thu, 23 Jun 2022 04:20:57 -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=Zr8odk0H; 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 S230144AbiFWLOG (ORCPT + 99 others); Thu, 23 Jun 2022 07:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiFWLOF (ORCPT ); Thu, 23 Jun 2022 07:14:05 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51F410FDC; Thu, 23 Jun 2022 04:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655982843; x=1687518843; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ajFYZAC8MEA43zYcILf89zu5jxIuV92OVh4y+errMgM=; b=Zr8odk0HzDlad9zxYpR5T+2rSxtiH9M4NMv86S6g36yw5upJsGSP59jC ++WpQvCmqgBlXR/mexeKMq3PWdetmc7RW9yt7Q5PvtBRPnm+/CV/jltOW /70FWP6vx9rXuWQYGwEhoUV9HqN6KL68CPz65biDDejU8BUJJ40cZxtrS 6Oss5C/krZ2IlH36muDG8yvO6f30kxTCO5J+nUuYRsMiwFzHPI7OWsZbb m3UZhfgnagvPvZ8zDI0raBGrzGHv5uwkA2DhkHzDiLge2RVTNapkx2yK/ enXuigL/+9pUJlD3+LCjV8thZaVSPZJ5mAi8SZSYupVbzUcg9+U88y+Cj A==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280737971" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280737971" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:14:03 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="834592683" Received: from hazegrou-mobl.ger.corp.intel.com (HELO intel.com) ([10.251.216.121]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 04:13:59 -0700 Date: Thu, 23 Jun 2022 13:13:56 +0200 From: Andi Shyti To: Mauro Carvalho Chehab Cc: Chris Wilson , Fei Yang , Thomas Hellstrom , Daniel Vetter , Dave Airlie , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mauro.chehab@linux.intel.com, Andi Shyti , stable@vger.kernel.org, Thomas =?iso-8859-15?Q?Hellstr=F6m?= Subject: Re: [PATCH 4/6] drm/i915/gt: Only invalidate TLBs exposed to user manipulation Message-ID: References: <387b9a8d3e719ad2db4fce56c0bfc0f909fd6df6.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: <387b9a8d3e719ad2db4fce56c0bfc0f909fd6df6.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:38PM +0100, Mauro Carvalho Chehab wrote: > From: Chris Wilson > > Don't flush TLBs when the buffer is only used in the GGTT under full > control of the kernel, as there's no risk of of concurrent access > and stale access from prefetch. > > We only need to invalidate the TLB if they are accessible by the user. > > 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 Thanks, Andi