[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3ajy2xcjo3t6xdrbeo5xinlwtxzujvx4plzk3vqj3za7ren2rv@wdmwpjlaq6ql>
Date: Mon, 27 Oct 2025 12:46:02 +0100
From: Jörg Rödel <joro@...tes.org>
To: Mostafa Saleh <smostafa@...gle.com>
Cc: linux-mm@...ck.org, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org, corbet@....net, will@...nel.org,
robin.murphy@....com, akpm@...ux-foundation.org, vbabka@...e.cz, surenb@...gle.com,
mhocko@...e.com, jackmanb@...gle.com, hannes@...xchg.org, ziy@...dia.com,
david@...hat.com, lorenzo.stoakes@...cle.com, Liam.Howlett@...cle.com,
rppt@...nel.org
Subject: Re: [RFC PATCH 3/4] drivers/iommu-debug: Track IOMMU pages
On Fri, Oct 03, 2025 at 05:32:28PM +0000, Mostafa Saleh wrote:
> void iommu_debug_map(struct iommu_domain *domain, phys_addr_t phys, size_t size)
> {
> + size_t off;
> + size_t page_size = iommu_debug_page_size(domain);
> +
> + if (!static_branch_likely(&iommu_debug_initialized))
> + return;
This still adds function call overhead even in cases where iommu-debugging is
disabled. Move the static_branches to the header files as well.
Powered by blists - more mailing lists