[PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
Hi All, This is a follow up in my long running effort of making inb()/outb() and similar I/O port accessors compile-time optional. After initially sending this as a treewide series with the latest revision at[0] we switched to per subsystem series. Now though as we're left with only 5 patches left

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
On Mon, 2024-10-21 at 12:58 +0200, Thomas Zimmermann wrote: > Hi > > Am 21.10.24 um 12:08 schrieb Arnd Bergmann: > > On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: > > > Am 08.10.24 um 14:39 schrieb Niklas Schnelle: > > d 100644 > > > > --- a/drivers/gpu/drm/qxl/Kconfig > > > > +++ b/dri

Re: [PATCH 0/2] drm: Treewide plane/crtc legacy state sweeping

2024-10-27 Thread Dmitry Baryshkov
On Fri, 25 Oct 2024 at 10:46, Ville Syrjälä wrote: > > On Wed, Oct 02, 2024 at 09:21:58PM +0300, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > An attempt to hide the drm_plane/crtc legacy state better. > > > > This also highlights the fact that a lot of supposedly > > atomic drivers are po

[PATCH v9 1/5] hexagon: Don't select GENERIC_IOMAP without HAS_IOPORT support

2024-10-27 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. As hexagon does not support I/O port access it also the GENERIC_IOMAP mechanism of dynamically choosing between I/O port and MMIO access doesn't work so don't select it. Reviewed-by: Brian Cain Co-developed-by:

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
On Mon, Oct 21, 2024 at 01:18:20PM +0200, Niklas Schnelle wrote: > On Mon, 2024-10-21 at 12:58 +0200, Thomas Zimmermann wrote: > > Hi > > > > Am 21.10.24 um 12:08 schrieb Arnd Bergmann: > > > On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: > > > > Am 08.10.24 um 14:39 schrieb Niklas Schne

[PATCH v9 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them. In the bochs driver there is optional MMIO support detected at runtime, warn if this isn't taken when HAS_IOPORT is not defined. There is

[PATCH v9 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them unconditionally. Some 8250 serial drivers support MMIO only use, so fence only the parts requiring I/O ports and print an error message if

Re: [PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Arnd Bergmann
On Thu, Oct 24, 2024, at 17:54, Niklas Schnelle wrote: > Hi All, > > This is a follow up in my long running effort of making inb()/outb() and > similar I/O port accessors compile-time optional. After initially > sending this as a treewide series with the latest revision at[0] > we switched to per s

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Arnd Bergmann
On Mon, Oct 21, 2024, at 10:58, Thomas Zimmermann wrote: > Am 21.10.24 um 12:08 schrieb Arnd Bergmann: >> On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: >> --- a/drivers/gpu/drm/tiny/bochs.c >> +++ b/drivers/gpu/drm/tiny/bochs.c >> @@ -112,14 +112,12 @@ static void bochs_vga_writeb(struct

Re: [PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
On Fri, 2024-10-25 at 13:41 +, Arnd Bergmann wrote: > On Thu, Oct 24, 2024, at 17:54, Niklas Schnelle wrote: > > Hi All, > > > > This is a follow up in my long running effort of making inb()/outb() and > > similar I/O port accessors compile-time optional. After initially > > sending this as a

[PATCH v9 5/5] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
With all subsystems and drivers either declaring their dependence on HAS_IOPORT or fencing I/O port specific code sections we can finally make inb()/outb() and friends compile-time dependent on HAS_IOPORT as suggested by Linus in the linked mail. The main benefit of this is that on platforms such a

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Arnd Bergmann
On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: > Am 08.10.24 um 14:39 schrieb Niklas Schnelle: d 100644 >> --- a/drivers/gpu/drm/qxl/Kconfig >> +++ b/drivers/gpu/drm/qxl/Kconfig >> @@ -2,6 +2,7 @@ >> config DRM_QXL >> tristate "QXL virtual GPU" >> depends on DRM && PCI && MMU

[PATCH v9 2/5] Bluetooth: add HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. We thus need to add HAS_IOPORT as dependency for those drivers using them. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/bluetooth/Kconfig | 6 +++---