From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8F06126C03 for ; Wed, 22 Jul 2026 19:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784750233; cv=none; b=m/XLIFX9D0smQmSzNzpkPLF2SGeHQ2tVt/XSGL5sfp9nJM0M0OcJTdjhxIYeG1OqtwUSSXyPKerlUFC6BH+ucPmpjNupBcAnNqU/Cml/R78TFxHzTzA6hM3TwyeRzwDL8sM/ra9A/KJOKeHO846WwCdt+c4OnZNSLidCtxha2RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784750233; c=relaxed/simple; bh=tJmj53zfWsNVLl4x+pL+wraxm36ZaOa5Vnqva167EKc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YYRt4Y3NNEvqi//tzdbBWMDrhffBwMnMQf2AB0wQ4dbMWx43IM6JYyJL732/LMZYXVEE0qbSMBzIkT/vJgqxNFrFGRCl4U9F4EuQofcVfyZQMYu26hBgjZ7+HhOJvFsbdUjIm16eWDlJKjbN7o6p/870vmFOBnmOd1XG+1B7lf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=oDZA4Pf+; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="oDZA4Pf+" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2caced6038eso88512985ad.0 for ; Wed, 22 Jul 2026 12:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1784750231; x=1785355031; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=N2NbIgCir1Hq8D+FOL5JeKeK13r88FeOdRS8YSok+dE=; b=oDZA4Pf+wgi15rPXFudIBMaZZDQVIZlLC5iyTBPzr/va5Onl2D6fdTymLvEKNVOVNe sGpoX+hCiQ5pvbPEGyCkivu+ujIFxVWgiLoawEdUoeLS1wb2DC7BMGUyAN8MB1Oimj5O hpqNzSH5XVPlU/Ugc60WGKqaXEsYZHVlWqffu9H5G/Y19X+ZK6lh5xc/KAm8oBD4qFu9 xXwtl4ZRhFSczpnnkkiCGxfcC9sGmzVlvJVapH2+l1o0x11GMvxoDa8rxY+B/d0voqW9 7bAvEhiWBEgdGbGR4eb0WX+X9mfOHNVZh5SbEVQW1d9u3Rlpyd+CkJD7FgSu3GbtaaXE FZ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784750231; x=1785355031; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=N2NbIgCir1Hq8D+FOL5JeKeK13r88FeOdRS8YSok+dE=; b=hCaicMAm9GtUcTdTqW/ROFE7qNPldQGDw/fT1Ij+/919VBc1bGGs4NbG/m3ZRQRhaf BDhfnjOpz2GVay9itmbj9Z4MAEV9dl/i1ORtydytrpB9tVI82HtK05alB0ww6DRfURJu 5fAcIzE7pqzdjsYCilGLXm54YkXQakGPdDP+4xMwJc5AbIiJhWxczkirfVElncImuDez TPCKyuXfh5kI9gPEffpFQ5PQzlTQUQJQgph0oLL29hHa1YyKNnZtC+afIkwGpL7UD3Bq MEYTCYzFp39M5Evf+eEBkkhBuN8DhRNKSjSemxcqUEWwVZdkPPByU2EoOr572J6og8sz SsJA== X-Forwarded-Encrypted: i=1; AHgh+Rq15m2UXjpIdQpJPTk/XesXvezGjqZvr2o+NmkK8ZDVk6mQi0e2lmFxC62Q/jZuCre7pvzwCX9G+Lo0CbA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz7mEZenAp3YzxYRcfNTXqO7WPEloOMLnpmmOSsFveo/ET8l5yG H7iQqjLIMgVBztqykYD+Z6JIYQE1WdcZ8g/MXT0JWaQZNOtcEtmf20yHfltlQYxIa9U= X-Gm-Gg: AR+sD13DO7wcjOZrC/wMzDk5WjxaFq6I5XO7OCLHKx+RF94SZY3CVDFTOOY0QI0sIqz 3BANDCPv/Ourakda5zUz85lwbG3XpSKFWfo/Ir43xCih5e4U4j4WGZCLMjQQIQ1OQh2Vafh8mg2 8waqRRChUTMVIeQO3egDMGfUnwWFWpuLIY0l2DCFe9wtrid/GNtzoFIuQx07fHFroavMHyfhYZs BQcGC+KAeep9yzHnCLX3KHjSdMWIBCJDJxe3G6fKLB0mXwm0biSVMwcOehLEQgEAUZ2z1itzhHc hUBKRvoF6S6bmx6mJVMp3ITWH1u9JwVgomq6F+FaCOaX+3FDvG23brVZtq/fl3rg6KjLs2XicGN 4BSosPjgCpWy59s9tDPsZzpgob0nPtcLc84WdJbe6kzuWlfu1jUkX X-Received: by 2002:a17:903:4410:b0:2cb:402:70cc with SMTP id d9443c01a7336-2cf8df30504mr51520965ad.28.1784750231136; Wed, 22 Jul 2026 12:57:11 -0700 (PDT) Received: from ziepe.ca ([216.228.115.8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147dc6162csm11833170eec.7.2026.07.22.12.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 12:57:10 -0700 (PDT) Received: from jgg by NV-9X0Z6D3.localdomain with local (Exim 4.97) (envelope-from ) id 1wmd42-000000002HD-06RY; Wed, 22 Jul 2026 16:57:10 -0300 Date: Wed, 22 Jul 2026 16:57:09 -0300 From: Jason Gunthorpe To: Leon Romanovsky Cc: "Aneesh Kumar K.V (Arm)" , Marek Szyprowski , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Robin Murphy , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Catalin Marinas , Jiri Pirko , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Dan Williams , Xu Yilun , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , x86@kernel.org Subject: Re: [PATCH v8 00/23] dma-mapping: Track shared DMA state through direct, pool and swiotlb paths Message-ID: References: <20260717180442.110954-1-aneesh.kumar@kernel.org> <20260721124056.GK110966@unreal> 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: <20260721124056.GK110966@unreal> On Tue, Jul 21, 2026 at 03:40:56PM +0300, Leon Romanovsky wrote: > Why don't we continue the effort to remove "struct page" entirely > from the DMA API internals? > > IMHO, everything not exposed to DMA API users should use > phys_addr_t, including the DMA address pool. The alloc interfaces return a struct page, that is why this stuff is organized like this. Look at dma_alloc_pages() There is also an API that forms a scatterlist that has to be struct page as well Jason