linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Question about a quirky (DesignWare) PCIe RC in Allwinner H6
@ 2018-03-05 14:50 Icenowy Zheng
  2018-03-05 21:47 ` Bjorn Helgaas
  0 siblings, 1 reply; 9+ messages in thread
From: Icenowy Zheng @ 2018-03-05 14:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hi everyone,

I'm trying to implement a driver for the quirky (DW) PCIe RC in the
Allwinner H6 SoC.

The quirk is that only the "dbi" space is always mapped, but at the
same time only 64KiB of other spaces (config, downstream IO and non-
prefetchable memory) are accessible. To access a certain address the
high 16-bit of the address (all bus addresses in H6 SoC are 32-bit
despite the CPU is 64-bit) needs to be written into the
PCIE_ADDR_PAGE_CFG register (a vendor-defined register in DBI space).
So the access to these spaces cannot be processed correctly with just
readl/writel, as the existing code does.

Is it possible to workaround this in the PCI subsystem of Linux?

(I have thought a workaround that only maps the current accessible
64KiB with the MMU, and when accessing the non-accessible part, catch
the page fault and re-setup the map to the new 64KiB page. But surely
it will kill the performance.)

Thanks,
Icenowy

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

end of thread, other threads:[~2018-03-08 14:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 14:50 Question about a quirky (DesignWare) PCIe RC in Allwinner H6 Icenowy Zheng
2018-03-05 21:47 ` Bjorn Helgaas
2018-03-06  3:57   ` Icenowy Zheng
2018-03-06 23:38     ` Bjorn Helgaas
2018-03-08  5:48       ` Icenowy Zheng
2018-03-08 11:55         ` Marc Gonzalez
2018-03-08 13:18           ` Icenowy Zheng
2018-03-08 14:11             ` Icenowy Zheng
2018-03-08 12:10       ` Marc Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).