All of lore.kernel.org
 help / color / mirror / Atom feed
* Overhead of io{read,write}{8,16,32,64} on x86
@ 2023-10-31 21:41 Jiaxun Yang
  2023-11-01  9:08 ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Jiaxun Yang @ 2023-10-31 21:41 UTC (permalink / raw)
  To: linux-arch; +Cc: x86, linux-kernel, arnd, bhe

Hi all,

I'm trying to improve Kernel's support of devices that have ioports
mapped into MMIO, that involves converting existing driver which is
using {in,out}{l,w,b} to use io{read,write}{8,16,32,64}, so they can
benefit from ioport_map and pci_iomap.

However, the problem is io{read,write}{8,16,32,64} will incur penalty
on x86 by introducing extra function calls (they are not inlined) and
having extra condition judgment on MMIO vs PIO.

x86 folks, do you think this kind of overhead is acceptable? I do think
most of PCI/ISA drivers will need to be converted.

linux-arch folks, do you think it will be better if we introduce a
variant of io{read,write}{8,16,32,64} that direct to PIO on x86 but
remains the same functionality on other architectures?

Thanks
- Jiaxun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-01 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 21:41 Overhead of io{read,write}{8,16,32,64} on x86 Jiaxun Yang
2023-11-01  9:08 ` Arnd Bergmann
2023-11-01 10:28   ` Peter Zijlstra
2023-11-01 11:55   ` Jiaxun Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.