Re: [PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-10 Thread Jason Gunthorpe
On Sat, Aug 09, 2025 at 12:53:09PM -0400, Demi Marie Obenour wrote: > > With a long term goal that struct page only exists for legacy code, > > and is maybe entirely compiled out of modern server kernels. > > Why just server kernels? I suspect client systems actually run > newer kernels than serv

Re: [PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-09 Thread Demi Marie Obenour
On 8/9/25 09:34, Jason Gunthorpe wrote: > On Fri, Aug 08, 2025 at 08:51:08PM +0200, Marek Szyprowski wrote: >> First - basing the API on the phys_addr_t. >> >> Page based API had the advantage that it was really hard to abuse it and >> call for something that is not 'a normal RAM'. > > This is n

Re: [PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-09 Thread Jason Gunthorpe
On Fri, Aug 08, 2025 at 08:51:08PM +0200, Marek Szyprowski wrote: > First - basing the API on the phys_addr_t. > > Page based API had the advantage that it was really hard to abuse it and > call for something that is not 'a normal RAM'. This is not true anymore. Today we have ZONE_DEVICE as a s

Re: [PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-08 Thread Marek Szyprowski
On 07.08.2025 16:19, Jason Gunthorpe wrote: > On Mon, Aug 04, 2025 at 03:42:34PM +0300, Leon Romanovsky wrote: >> Changelog: >> v1: >> * Added new DMA_ATTR_MMIO attribute to indicate >> PCI_P2PDMA_MAP_THRU_HOST_BRIDGE path. >> * Rewrote dma_map_* functions to use thus new attribute >> v0: h

Re: [PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-07 Thread Jason Gunthorpe
On Mon, Aug 04, 2025 at 03:42:34PM +0300, Leon Romanovsky wrote: > Changelog: > v1: > * Added new DMA_ATTR_MMIO attribute to indicate >PCI_P2PDMA_MAP_THRU_HOST_BRIDGE path. > * Rewrote dma_map_* functions to use thus new attribute > v0: https://lore.kernel.org/all/cover.1750854543.git.l...@ke

[PATCH v1 00/16] dma-mapping: migrate to physical address-based API

2025-08-04 Thread Leon Romanovsky
Changelog: v1: * Added new DMA_ATTR_MMIO attribute to indicate PCI_P2PDMA_MAP_THRU_HOST_BRIDGE path. * Rewrote dma_map_* functions to use thus new attribute v0: https://lore.kernel.org/all/cover.1750854543.git.l...@kernel.org/ ---