Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp558557imi; Fri, 22 Jul 2022 05:00:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ur1AslwnD9aAiOL3YIFaGIEcYyNHPRL+VT3v79ORpVJPssSS/tBrWqxD17A5/+SyY6VUpr X-Received: by 2002:a17:907:3d90:b0:72f:2994:74a1 with SMTP id he16-20020a1709073d9000b0072f299474a1mr193128ejc.261.1658491236518; Fri, 22 Jul 2022 05:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658491236; cv=none; d=google.com; s=arc-20160816; b=t4ilgGJeFC1WJrLQNh0wBb3M2kapo6dF+u20H3n8pQR9xPhkMTPHm4pUfUA0fjMA4v dk9dFAjhPQc8zJlYOHT5k4ts+EeI5VJEApt1TuRg5svtApUkIo0KYiy9JOb5rr8eXvZo VCjMWhmXIncbF6RZNSxORZ5MNGJhOsbUse7CaeMfe8py5cdF/lmwVyGri1yUygqw7WjQ LZTPNemc1wOIvADxqI4T1hgOgKzekKRgqJNpM1+2jnO9sicGeoEq2m3RJKPVmbPpInkZ LwlbqxzNSRGm9PR3r0dW57iJLyqm4N16o6I0KC76WxDlnfBk6i6t5f+K7s6FhMQ3JuI6 TSoA== 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=Jeq6QlydD9fc0Kx/2Nv9FeiWcaxVVgaxXzivOJB2CmU=; b=XjLVwHAGsjcfr9F3ZmVDvHEtdpmWiTDF21I0yc1MjOqNwMM74Bi81Cvbam5QYuoWNp ybs6rcNP7csScfWIkXY4NIi6hAweMPKqfm5BHR2laqeUAfQN3kE5LF+yuEjNRPP3XX9/ D4ACj8tEe2dC47DiTj6020Fib5i3MZPm4q+lBBVeASLdEGepfnKLRNZ0pHi7jFX2IHwK z0hPt2ZDeKcEnsRlNMa6X0s+qD6NNQiQ0hC9US6e0b5R0ny60Rs3vP0ZnJcVLfQgiYzS gUTjbFXIYpCVwXh9O9BErKENMkAOv7ORpmaFAHEDWdgoZmmwq+7ICwvH5qx10fIcKRef 48bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Af3hL25C; 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 h19-20020a05640250d300b0043bc602807csi5962846edb.490.2022.07.22.05.00.11; Fri, 22 Jul 2022 05:00:36 -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=Af3hL25C; 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 S231792AbiGVL6x (ORCPT + 99 others); Fri, 22 Jul 2022 07:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235287AbiGVL6f (ORCPT ); Fri, 22 Jul 2022 07:58:35 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB7EBB8DD; Fri, 22 Jul 2022 04:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658491110; x=1690027110; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Bx69r+an13lTpJ7/4ygY3E3BfF7Z3MEC+MOG/HYjIDA=; b=Af3hL25CNKCjRf730QI2/PgeVa4ch35W8AmtsA5RRC5C9tvijjRXCB1u ya3gMDzIc3xb5LuobLNaQ+U/31x+89su9m98aD7Ou52wJbyXkxZGEwM8k y9Z/rqJUVTILKp55QW3E7wagGkeTG2YhUyqQPFrsrWGIdLB+RThxmxYtF 9DkCEtSbhUiSuq/PXYKoVmze4HDkJXCTZ52iihokGE82W6vFpt/dTRIlH B6LuOLcFR92R+j1y0jkB5bq7ZRxg7rCM8KoueF1XjJgZKH17J1AUzCFtd 7x1A4iBWybtqFR1duD0x5ZBJt4ORyj2HqinzGbYZpigpUv7e8sON1UaJn Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="274154049" X-IronPort-AV: E=Sophos;i="5.93,185,1654585200"; d="scan'208";a="274154049" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 04:58:30 -0700 X-IronPort-AV: E=Sophos;i="5.93,185,1654585200"; d="scan'208";a="626536717" Received: from dstoll-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.44.132]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 04:58:26 -0700 Date: Fri, 22 Jul 2022 13:58:25 +0200 From: Andi Shyti To: Mauro Carvalho Chehab Cc: Chris Wilson , 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, stable@vger.kernel.org, Fei Yang , Andi Shyti , Thomas =?iso-8859-15?Q?Hellstr=F6m?= Subject: Re: [PATCH v2 04/21] drm/i915/gt: Only invalidate TLBs exposed to user manipulation 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_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 Hi Mauro, On Thu, Jul 14, 2022 at 01:06:09PM +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 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") > Signed-off-by: Chris Wilson > Cc: Fei Yang > Cc: Andi Shyti > Acked-by: Thomas Hellstr?m > Signed-off-by: Mauro Carvalho Chehab Please, once you have sorted out Tvrtko's question you can add: Reviewed-by: Andi Shyti Thanks, Andi