Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1101730lqo; Thu, 9 May 2024 05:03:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1GswbReX3Xezg91cd2VgFjTvQ7sWf56UFDJKQnTZ2gX23n9O87V1gRHK4p28cx3eQqobsDYKxtGNT5TPL+J0QYTfE3bO9MFIFR4PYqA== X-Google-Smtp-Source: AGHT+IFMFKxmaR8kvnUuzlZjAh3KJf+yPISgUF8HQaZyKdN9KRj91r6CUzjS5dJTCkzk9UtNlurg X-Received: by 2002:a05:6e02:138f:b0:36b:2a07:6767 with SMTP id e9e14a558f8ab-36caece1491mr74641955ab.12.1715256216823; Thu, 09 May 2024 05:03:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715256216; cv=pass; d=google.com; s=arc-20160816; b=PlFVa5LC82DREE+GmJV/XH0d1kpwiI1KUlX+MMfDXRZ+DPclXqU+BM9Gkmxkb9aHr5 reLVhElvJI7HmEUenlkWtbqSgZmKF7xJn96GmKh04Azvn/HoiPNRRt0mfmC8HVRr2GAa vZmNjm6/jRAyr2QrhigF4mPKrt0YfxTCEjg8OCxDWvDfJUZY0Ez21tAeSUwnKT6U8dEb usgaPA/kLm2MqX1V1pfO1t6Z+p5qUlZSCa6ebrWpCps5/gVDipr+gAH7BIyskxMBbxvo cbUJP0+M0paUHrarDgVrnUBPw924aSGu/Vj8C6Vv4F6FSfc3NMcTxBpYLLL8tgJ0bqlQ 9O5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=X2WOAQIVZvh19O6igpf5MGMHAkbbgGN0l/hQaACG2IE=; fh=HvfRelBnSbg3EQsbMKizmkuAE3oIZZhcXz5JvvafszY=; b=lCEVxMQNZ1brkD9wScP/Dyr41BTypnI8v62rbuzmycpXfImHfiP2WusIq840yQqDGc T0Fm2GQHSFjZd679MivsQMoIndy6HUpg6OrbwF53gbt99YrlDJs92FOjh5UwHjDTx8dx eR6hxTettQ95ZBUfJD5HjbZO0DkipmZbFsBrtxrPp+GYhkAtgnMKtuHIGKSCIJgxRBNC tqvYjweAm6fYV7mh39xZHxtoc+X7wgQT0WXO1WXFYZtvcqYLV6UkKd9z7o8/2NLVZIxR gRTcZqZQulJLkefzkraOdtB4ff7vLkIxfq/ZZMAgppfPU1INpqSOmsYPEO3qzhtoII+q 8t6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-174464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174464-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180dc93si1305517a12.542.2024.05.09.05.03.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-174464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174464-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1ADE6B22073 for ; Thu, 9 May 2024 12:02:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C40114B95C; Thu, 9 May 2024 12:02:27 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE97414A90; Thu, 9 May 2024 12:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256146; cv=none; b=HQUppc4PLoZockH1QNYfBmgSOkAewyEnCDSy7zpVXAZv80l9elN2nhGc3TKpQzaaN6EnV4FNVVvOmRHLxQRO4z5BqrfLFW/er8LybqXJZly0JZv7fVZH4+OO+a7iuQLEEdWpwcWiINAKvqsjOYHS/s0Y05jAS3eL/e98q464bWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715256146; c=relaxed/simple; bh=X2WOAQIVZvh19O6igpf5MGMHAkbbgGN0l/hQaACG2IE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jyVqTEKEm75PBfr7j7B9+iwC98DxFf105U0FeAPOKd7V7YSN6sSk9biXqXGRLymWUC7EfUTM+mHGwcB13vEr8WYuHWMGkDR7miO+5+53meZtwr2R+eXzqR3WF8rtL/M0GyRn29TnPoa1SXJTDvkNNAnoHOqf7r3c/amFqG4agik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 4AED8227A87; Thu, 9 May 2024 14:02:21 +0200 (CEST) Date: Thu, 9 May 2024 14:02:20 +0200 From: Christoph Hellwig To: Alexander Lobakin Cc: Marek Szyprowski , Christoph Hellwig , Eric Dumazet , Jakub Kicinski , Robin Murphy , Joerg Roedel , Will Deacon , "Rafael J. Wysocki" , Magnus Karlsson , nex.sw.ncis.osdt.itp.upstreaming@intel.com, bpf@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/7] dma: avoid redundant calls for sync operations Message-ID: <20240509120220.GB11327@lst.de> References: <20240507112026.1803778-1-aleksander.lobakin@intel.com> <20240507112026.1803778-3-aleksander.lobakin@intel.com> <46160534-5003-4809-a408-6b3a3f4921e9@samsung.com> <3dce41a3-e5a9-43e7-b918-ecb8d688ea1c@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3dce41a3-e5a9-43e7-b918-ecb8d688ea1c@intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, May 09, 2024 at 01:59:41PM +0200, Alexander Lobakin wrote: > Or invert the flag, so that false would mean "it needs sync" and it > would be the default if dma_*mask*() wasn't called. That is probably the safest option.