All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] add __iomem cookie for EPF BAR
@ 2023-08-07 12:28 Li Chen
  2023-08-08  7:03 ` mani
  0 siblings, 1 reply; 5+ messages in thread
From: Li Chen @ 2023-08-07 12:28 UTC (permalink / raw)
  To: linux-pci, Lorenzo Pieralisi, mani, Kishon Vijay Abraham I,
	Bjorn Helgaas, Arnd Bergmann

Hi All

Currently, the EPF's bar is allocated by pci_epf_alloc_space, which internally uses dma_alloc_coherent and the caching behavior of dma_alloc_coherent may vary depending on platforms.

The bar space is exported to RC, which means that RC may modify it without EP being aware of it, so EP still read from the cache and get stalled data. To address this issue, the bar space should be treated as iomem instead and forced to use io read/write APIs, which enforces volatile. 

If you agree, I would create patches for existing EPF and EPF/EPC core and submit them for review.

Regards,
Li

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

end of thread, other threads:[~2023-08-09  7:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 12:28 [RFC] add __iomem cookie for EPF BAR Li Chen
2023-08-08  7:03 ` mani
2023-08-08  7:44   ` Arnd Bergmann
2023-08-09  1:09     ` Li Chen
2023-08-09  7:10       ` Arnd Bergmann

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.