From mboxrd@z Thu Jan 1 00:00:00 1970 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 350772153F1; Thu, 24 Jul 2025 08:03:19 +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=1753344201; cv=none; b=kSRdj0YJ8rLXiFenwVjFDJ2OlZpKwV2VHuFvgy3OPbThg5Qs9VTqakz0osIU4hIFvvWBJa+mVy/ZqqINfErcXR8r5wNZutldf73xqu+YmJKUG33FXclhzEvYZJuIihSYytUb3SBGPSyJGLCyhmQuFx9p8b8+MxL5JVBV2e4ZsHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753344201; c=relaxed/simple; bh=49v1E/7ewNuQu1DVPLRW30sxbH70wkeU4OA49WI/cBI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NLd5zTENaoXIhT/OmoXSic2rYAMLBoNI0N8WacjMVDmHD8k6BCodNcaMfzhC5VJt108uBEF6QrecF/hM5Wq5x10nUFV1A1VEmzLGAbGzBMMjC1RavnWht2n5W6yWCdGqw50hF2XouQQczLduFj/jaBQl6tArmIM1Fk7MLGitrKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (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=pass (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 BD46068BEB; Thu, 24 Jul 2025 10:03:13 +0200 (CEST) Date: Thu, 24 Jul 2025 10:03:13 +0200 From: Christoph Hellwig To: Leon Romanovsky Cc: Alex Williamson , Leon Romanovsky , Christoph Hellwig , Jason Gunthorpe , Andrew Morton , Bjorn Helgaas , Christian =?iso-8859-1?Q?K=F6nig?= , dri-devel@lists.freedesktop.org, iommu@lists.linux.dev, Jens Axboe , =?iso-8859-1?B?Suly9G1l?= Glisse , Joerg Roedel , kvm@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, Logan Gunthorpe , Marek Szyprowski , Robin Murphy , Sumit Semwal , Vivek Kasireddy , Will Deacon Subject: Re: [PATCH 05/10] PCI/P2PDMA: Export pci_p2pdma_map_type() function Message-ID: <20250724080313.GA31887@lst.de> References: <82e62eb59afcd39b68ae143573d5ed113a92344e.1753274085.git.leonro@nvidia.com> Precedence: bulk X-Mailing-List: linux-pci@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: <82e62eb59afcd39b68ae143573d5ed113a92344e.1753274085.git.leonro@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Jul 23, 2025 at 04:00:06PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Export the pci_p2pdma_map_type() function to allow external modules > and subsystems to determine the appropriate mapping type for P2PDMA > transfers between a provider and target device. External modules have no business doing this.