Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp247963rdb; Wed, 14 Feb 2024 21:07:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDkQJY7b/4whksXourFBv5ZDxAUZCXMLPVUEkTNe/VH0Nn6RKC6Bzy5JOxucJ8/aiZHc6aY7y06XRaSpTc2VWiLm9szPPAwaWqga0zWg== X-Google-Smtp-Source: AGHT+IH5UMeSRBKrtmxOAATVNDoe8zoC2MQr9MpA8+nNXQ7+k59YZrxHlpm7LTFdhoeba42GcQ7T X-Received: by 2002:ac8:7d83:0:b0:42d:b220:5890 with SMTP id c3-20020ac87d83000000b0042db2205890mr1042490qtd.40.1707973647700; Wed, 14 Feb 2024 21:07:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707973647; cv=pass; d=google.com; s=arc-20160816; b=CNLSou0WnW6H/AIgxlIOpkSNCfQNwjnxNs9ZCKpWeg3GqBNHEiitquOVajKggMTiHg bJk20i50an7JQcieaw4OoZe3c0o8L02Zge0FGiDLHtsREp7S1qode42UpCMTJxMUj49y WIwyJ9wKLqz43DAoyiWwfzG6wj/0KMzVvEwffUCO8rQvgjOdvhkjcwd/NRZaMIIaKytD KtppG+39BgCvJDiy55Q2q6lTv5/2kdY+5wh4W5J+9/TlOobJONoCTbP3yJofF7kiTs+R IdVQ1wGNvhB+RNTBbZrtt+EO4ocvYTe8sMohfj1oAQeMfw6mE4jFF93iC4DWsaHpVnVE laNQ== 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=j7YaWJEtvZEiPNYzDTjnsUDqjn2rJ3u3gPd7La2UI/I=; fh=aymk4bFmXSiWc2aJOdE1mGlA7sWkZO5O9tNNmHT7id8=; b=NrcbH0RZ2tGu4OrHWB/7DKeOU1lvpb6Mnatj4SaWyKQ6XxgCBzVryEoTbLYvAcrQvn D0e68v+ZOzMBKVRdRrdiTfpVCz7vuD7uquBFTwYJOLvdZ75MDCc15egWAXg/bv0RuiZW DAugI4P+d6dKZQfeyOSnbmG99FMAxakddImywPyE5+x0wVmZ4cH50smc+I8TvpG6s9hw 9jvZYA8Mg0b3UAFPBOYymDZcHArJoWJtbO6oA+b/LLLjz7qbmeLDG/jT0AvDqto82vBZ etgQ00jHAG3tU5tqnZimi8Kw5rHB5cKt620VNy+5j63UjL9UWCxF2OX3WdmaGCvjMVFY BhKQ==; 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-66301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66301-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b23-20020ac84f17000000b0042c50d5feccsi553567qte.245.2024.02.14.21.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 21:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-66301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66301-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 77A481C22A9D for ; Thu, 15 Feb 2024 05:07:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 660E2D536; Thu, 15 Feb 2024 05:07:03 +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 19DB9D527; Thu, 15 Feb 2024 05:07:00 +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=1707973622; cv=none; b=hOij3cjqf6le6zFxN0o2PaqRzRjilytI7duyerKwVRXPbyX1aMde5rdrcjydStDrZtjLrV/QndCodWoMIR+1XZE09KnJYGtH34IGqW5pZEhAgNj2XMOBFe/BrJ4k8HWtpXN8oTHiaTQsKmqKRntpcmLk1oY+HnL4me7SJ565I/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707973622; c=relaxed/simple; bh=5re37oOePDTxHjW5+SSD0nC43vuOZ1VTWg1epuIetnE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zv2YcGim448uE3+MYek+CCh20BuoaEz0/x7rH4ogK+ZbilYVkSwZ2QsQB/o6jZHBizYw33P2u53BRDOEHfzDn7PXDjJLEP4l2+Jxayaz3xxVpiju5sBHcb+xbqIzMb3B7o3Uww8xewSq2OgD9KuwftNVvGc7H5DpsdLuOcgFxAU= 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 952B567373; Thu, 15 Feb 2024 06:06:57 +0100 (CET) Date: Thu, 15 Feb 2024 06:06:57 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Alexander Lobakin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christoph Hellwig , Marek Szyprowski , Joerg Roedel , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Magnus Karlsson , Maciej Fijalkowski , Alexander Duyck , bpf@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3 1/7] dma: compile-out DMA sync op calls when not used Message-ID: <20240215050657.GB4861@lst.de> References: <20240214162201.4168778-1-aleksander.lobakin@intel.com> <20240214162201.4168778-2-aleksander.lobakin@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Feb 14, 2024 at 06:09:08PM +0000, Robin Murphy wrote: > On 2024-02-14 4:21 pm, Alexander Lobakin wrote: > [...] >> +static inline bool dma_skip_sync(const struct device *dev) >> +{ >> + return !IS_ENABLED(CONFIG_DMA_NEED_SYNC); >> +} > > One more thing, could we please also make this conditional on > !CONFIG_DMA_API_DEBUG so that that doesn't lose coverage for validating > syncs? Agreed.