Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp85849rdb; Mon, 22 Jan 2024 12:46:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpVcYbh7OELJxAvOrCqR0u1Rs5QYozenMYp1kY+4+kDQC9zxYaH/lIYuhndj2TRTgjGvzt X-Received: by 2002:a17:907:8b98:b0:a2f:c5a1:da98 with SMTP id tb24-20020a1709078b9800b00a2fc5a1da98mr2922574ejc.79.1705956415214; Mon, 22 Jan 2024 12:46:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705956415; cv=pass; d=google.com; s=arc-20160816; b=muDgI0ocGvdFEOhR4Fle76KSOwGRIbWGztU6z4+7c7d9/29yx0USfWdmw1EFy8PQgW /7KBodYlCLpi381Df2DJwdTzPzbsCEOevdlmLL6gRcmLi0w2MreWJsMNng8BSyX4EFiB It2NqL0jtbSdUHJtoweLL1Os7oB0IqQXST9E/aCNU6XpBTLg1FpnLdLZQ86sZJnCDfYl dXf5ut+JxY2wqVTpNNsPWNqWTKU+RJjjD/fWgUy2LhnGjz6s4y7RyyTNCXamyAP2Xjbn 2QluK0fr/TdoAJ/SdZiOYWcJoOCIQXrzI6gn1bOMR1ckG81/VLlZmc3nZDPdkxP3Qasg Dx4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=NknfBqxyeArB5sr9Kwtp3IMv27vftUekDkOawLRCvOs=; fh=WtHdgVyuaGnSFFdfqtTEk8uoNksckgLmNsAInzlGXAA=; b=N4iG1tV/C9a9TPwiNgqFTdWNWWy66R4CymoWcgV24hmJGNOT6OGhqGnmu6A7VsKKpE mrHPulualJLdtlqY0/gAIOKQiqY44Hs8UxTmiVTI2oTdSQXiBbInRuml7fpdAhWlamvk rsZ6MxCyqt4qGb4q56DN5GMJjMcv6oQryH6MdXmRZVRfqPl2fsjROGDWN+Ic5skWv04I U1yqKhChqkXQyDQPiVVifAaYQA6NnJwLOz1WBXugvudB+O4YdmL+t7Ck036Sdi0rxDdY lz80MoKvbWdu86EkEEkrtSw602b23aECO70/7mV7Zs93ZrBv+CyiI3Ucuj4kXl/Pmq8Z UaIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=Odv6hbDj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fa7i8sq5; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-34143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z11-20020a1709060acb00b00a2f7b4b12d0si3702260ejf.620.2024.01.22.12.46.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:46:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=Odv6hbDj; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fa7i8sq5; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-34143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9DDEF1F22B65 for ; Mon, 22 Jan 2024 20:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 318F848CEE; Mon, 22 Jan 2024 20:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="Odv6hbDj"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="fa7i8sq5" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 A545E48CD7; Mon, 22 Jan 2024 20:44:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705956276; cv=none; b=QhbbuU7kuTmQvEjxjo8e7lh9HgiAYhIfGygqhXdIMR9oe43vL9X9C6AFlOJx9wRlFbpuACNbEdW58AJQeGy49n+2CyV3g4e13qWWpCOCXKlBMzJhFBSPRlulZ/8opRWcLHIoIrAx5wMQRqVyzVpSC0Y3mRp7OTV4Y0Tu1cPPvbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705956276; c=relaxed/simple; bh=HTfVJjeKPMLdJ2VK7VUKQP9eFDr8nmzwZ1hMuarqhpA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oK7RrB7LO/mf9EBofDaU2rAeKUuXnBVtD3kA6iebvg84Idvmei4kwkW3hQP530YtSz2YMTJQKUoV5HeEemOpgGkGUR3R7P6zv9CUvHk+OAVvVa1kkGp6oKjGNBQ7EOAQo0Xr/g6ez02EAmAMZ5J8PaHgGdAdciuur38ZwuZCwg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=Odv6hbDj; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=fa7i8sq5; arc=none smtp.client-ip=66.111.4.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 98BFE5C01C4; Mon, 22 Jan 2024 15:44:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 22 Jan 2024 15:44:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1705956272; x=1706042672; bh=NknfBqxyeA rB5sr9Kwtp3IMv27vftUekDkOawLRCvOs=; b=Odv6hbDjNwnNeBzNZA1T1Q6POa P0Qju2BklHfroy3YCvN/BsKzfC8slpmP1wUDxnhD43LN7TO7ss3jHqqqIJBDR7bh LFrZsBxnaUnI4D8nzT+76au3MDVaonZnkdK9sclw+cEBW9sCbq+3ICKnhd+2upd0 NBH6J/01cX/5IDXem2sM8KUSb5YShpWwXcjHzynGDBRogwCaM5+GU2gQcQqVqbSi eHhvt8DHNHV5AYQrSJvqRGTlRaXK/IdDM/CwXecnJjV2E+LO8xOMIdWDQ4l8Xsnf ERPZ1jPlToEQQK0BMBg02F3FJtz3bDqh11BLH0SQY+ru5bMqDJ9FN3+tvJyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705956272; x=1706042672; bh=NknfBqxyeArB5sr9Kwtp3IMv27vf tUekDkOawLRCvOs=; b=fa7i8sq52tXBq5GIfOXxG2FGFNnFyTWaysLu48akDagj C/9sSpaTu2KcmPuDBAcfoGtXOX3y12svVkhsvKBSTwWNjMBcnqhPWa6+qJ3218n6 a3q0QI/Chn69g8QUB/+z+BtIyhPTXg8JAlBIoHQPSo/SqoFaWFcp7pzM78y7sDp1 1/PaiWunj3Ydnsr4Ql0pCIFGCUowG6PUfzXS+KDQU6qe76KrjPZ0FnuhzmGVJIBo eK/k0Bo7A4SwepSDXt9tA5I1Pls/AhvqFsDHeSgxmONeI3UfD0v3jKUem62WV8hs ze/UATIkrzdiyR+bDtO4s3S07N9+Kss/mbmz6uvepQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekiedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgv ghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeeghe euhefgtdeluddtleekfeegjeetgeeikeehfeduieffvddufeefleevtddtvdenucffohhm rghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 15:44:31 -0500 (EST) Date: Mon, 22 Jan 2024 12:44:28 -0800 From: Greg KH To: "Isaac J. Manjarres" Cc: stable@vger.kernel.org, Joerg Roedel , Will Deacon , Lu Baolu , Tom Murphy , Saravana Kannan , Joerg Roedel , kernel-team@android.com, iommu@lists.linux-foundation.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5.15.y] iommu/dma: Trace bounce buffer usage when mapping buffers Message-ID: <2024012219-mushiness-implement-4fb5@gregkh> References: <2024012226-unmanned-marshy-5819@gregkh> <20240122203758.1435127-1-isaacmanjarres@google.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: <20240122203758.1435127-1-isaacmanjarres@google.com> On Mon, Jan 22, 2024 at 12:37:54PM -0800, Isaac J. Manjarres wrote: > When commit 82612d66d51d ("iommu: Allow the dma-iommu api to > use bounce buffers") was introduced, it did not add the logic > for tracing the bounce buffer usage from iommu_dma_map_page(). > > All of the users of swiotlb_tbl_map_single() trace their bounce > buffer usage, except iommu_dma_map_page(). This makes it difficult > to track SWIOTLB usage from that function. Thus, trace bounce buffer > usage from iommu_dma_map_page(). > > Fixes: 82612d66d51d ("iommu: Allow the dma-iommu api to use bounce buffers") > Cc: stable@vger.kernel.org # v5.15+ > Cc: Tom Murphy > Cc: Lu Baolu > Cc: Saravana Kannan > Signed-off-by: Isaac J. Manjarres > Link: https://lore.kernel.org/r/20231208234141.2356157-1-isaacmanjarres@google.com > Signed-off-by: Joerg Roedel > (cherry picked from commit a63c357b9fd56ad5fe64616f5b22835252c6a76a) > Signed-off-by: Isaac J. Manjarres Now queued up, thanks. greg k-h