Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3513247imw; Mon, 18 Jul 2022 09:23:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/jrz61/SI5ip/IZa4wq07+/D+Ot2P5io5a+SNJAMhAp8BlKdalnpDpkwx+TKouCDB/Cz6 X-Received: by 2002:a05:6808:2008:b0:33a:623f:1d41 with SMTP id q8-20020a056808200800b0033a623f1d41mr5192040oiw.124.1658161406725; Mon, 18 Jul 2022 09:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658161406; cv=none; d=google.com; s=arc-20160816; b=MC44WjV94J2iWhBOQoMXbKtBYx9TNWkkfTifs2PjcwcZaMhJygju0wvETNwPGuzy6f CpHS5T5xZOzdnhOD+d/CYmV3G6pksvQyNSQtsbWkOst84CpJd0QEc9R6IfqdCDg9pHs7 QEsV6lYn+NSIk9kzIj/fD0VTCg6yoZ8bNTc8zHMdKvCXXQaN4N0NChg+DAZE3jbPGvN3 49/t1O5rr+uci8iR/SjI0Zm+Ql7QqKaIXHneCYAvMcrrA6X0Kfo8ffvxf/40a5MpYGZP nltd5sSNekzmBxbuzN2PgEtlmJqR/5iQKCAAiTYYwZ59a2s8Gz6ctNsMagSA8oSG7iLS 39pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UQdxZ5mHbjelmzOS7O2AS1WZedd7zk6YMK+uNBlaxdo=; b=zzWO6sgUcfbqzGWHMbqeCwNRNCkisEfPOLhxPBxBlabXaKKGo1VXWpb1Wdvu3fYtjO qAmJB/tHrsSRRTa+8cPe9wksH+wMWOvPwmHBuwsSHbYIQZ/qWrzx/huGSwQ6YZKPnhD8 cPKzvdxnvWvW0ldNqAzok2fc30nCNTUA8rdh2xnAD6hvh/xc3idzEadKgwVEJrh1S7+g YibE4/75LtRveKdCnstBUP9Ge90FzvrTq6rfqqSCtl3hX0EONtxM+8tLELPKuGI7h957 Krm6GF8WqLsdMncxOPdSy+ePVAKJ6IO+GYIKfcA6HDYxBKveR6jIZIpelYIhw7Y0+BMr Pk3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ny87szQT; 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 o21-20020a9d7195000000b0061c7789d78bsi11724324otj.265.2022.07.18.09.23.14; Mon, 18 Jul 2022 09:23:26 -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=ny87szQT; 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 S235269AbiGRQBJ (ORCPT + 99 others); Mon, 18 Jul 2022 12:01:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbiGRQBG (ORCPT ); Mon, 18 Jul 2022 12:01:06 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93411DF3A; Mon, 18 Jul 2022 09:01: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=1658160063; x=1689696063; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C6vWqUcyXQkTAuAAqqcnVbId6I4b0LLhuzC6Emj2LTg=; b=ny87szQTt7zBeXtvhsu18grUus6XtfPtAZvX6L2JyEQUC6ELGzT7lkwC Eo6nCMhV3/GBhSutC+0A1EIw+xgY4et6lxad/aD76pTUczxs5yl2xSVwI stObR2HivokLz+Kunp8RuBCYhWbj91aJVjE0++D67jJBnIBiMEMfT39kP L8vwxYCUghimkE4T+ERxBrVC6rQLBnAWTYd57e23X+v5/7AUSeMOTqWy8 YiVbIH22J7A8vM3CQHgQnTFJkjf8PrLIahIYwRTg/EmgCRmH6hQ+EUOlQ mVv+h0o8fD+OIKSv5hqCsQ4b33sNke5vMjDbvf7dJA2IFLcv0PMq9z9Zj Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="286999542" X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="286999542" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 09:01:01 -0700 X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="655344616" Received: from maurocar-mobl2.ger.corp.intel.com (HELO maurocar-mobl2) ([10.249.35.85]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 09:00:56 -0700 Date: Mon, 18 Jul 2022 18:00:54 +0200 From: Mauro Carvalho Chehab To: Tvrtko Ursulin Cc: Mauro Carvalho Chehab , Thomas =?UTF-8?B?SGVsbHN0?= =?UTF-8?B?csO2bQ==?= , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chris Wilson , Rodrigo Vivi , Dave Airlie , stable@vger.kernel.org, intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v2 04/21] drm/i915/gt: Only invalidate TLBs exposed to user manipulation Message-ID: <20220718180054.048929ef@maurocar-mobl2> In-Reply-To: <72a40626-ee71-fffe-3816-933fbec92c4d@linux.intel.com> References: <72a40626-ee71-fffe-3816-933fbec92c4d@linux.intel.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 On Mon, 18 Jul 2022 14:39:17 +0100 Tvrtko Ursulin wrote: > On 14/07/2022 13:06, 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 concurrent access > > and stale access from prefetch. > > > > We only need to invalidate the TLB if they are accessible by the user. > > That helps to reduce the performance regression introduced by TLB > > invalidate logic. > > > > Cc: stable@vger.kernel.org > > Fixes: 7938d61591d3 ("drm/i915: Flush TLBs before releasing backing store") > > Do we really need or want stable and fixes on this one? > > What do we think the performance improvement is, given there's very > little in GGTT, which is not mapped via PPGTT as well? > > I think it is safe, but part of me would ideally not even want to think > about whether it is safe, if the performance improvement is > non-existent. Which I can't imagine how there would be? Makes sense. Patch 6 actually ends removing the code doing that, so I'll just fold this patch with patch 6, in order to avoid adding something that will later be removed. Regards, Mauro