Thread (16 messages) flat view 16 messages, 7 authors, 2022-06-08

Re: [PATCH 0/6] phase out CONFIG_VIRT_TO_BUS

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2022-06-06 09:25:46
Also in: linux-alpha, linux-arch, linux-iommu, linux-m68k, linux-scsi

On Mon, Jun 06, 2022 at 10:41:03AM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

The virt_to_bus/bus_to_virt interface has been deprecated for
decades. After Jakub Kicinski put a lot of work into cleaning out the
network drivers using them, there are only a couple of other drivers
left, which can all be removed or otherwise cleaned up, to remove the
old interface for good.

Any out of tree drivers using virt_to_bus() should be converted to
using the dma-mapping interfaces, typically dma_alloc_coherent()
or dma_map_single()).

There are a few m68k and ppc32 specific drivers that keep using the
interfaces, but these are all guarded with architecture-specific
Kconfig dependencies, and are not actually broken.

There are still a number of drivers that are using virt_to_phys()
and phys_to_virt() in place of dma-mapping operations, and these
are often broken, but they are out of scope for this series.
I'll take patches 1 and 2 right now through my staging tree if that's
ok.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help