Skip to content

PCI io.h clean-up

Rob Herring linux-arm-kernel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 3/30 of 15 patches 0 repliesNew
  2. v2 posting 2/30 of 15 patches 0 repliesSuperseded
  3. v2 posting 1/315 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v115 patches0 repliesSuperseded

Patches in v2 posting 3/3 No applies recorded yet

None of the 15 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/15] PCI io.h clean-up
Quoted 11 lines · Andrew Lunn
Quoted 5 lines · Rob Herring

From: Rob Herring <[email protected]>

This is the 2nd part of mach/io.h removals. This series removes io.h on platforms with PCI by creating a fixed virtual I/O mapping and a common __io() macro.

Hi Rob

Time to show my ignorance of PCI again.

Quoted 8 lines

root at orion5x:~# cat /proc/ioports
00001000-0000ffff : PCI0 I/O
00010000-0001ffff : PCI1 I/O

The changes you made for Orion decreased the window to 64K. However, i see here that PCI0 only gets 60K, where as PCI1 gets the full 64K.

Is this asymmetry correct?

First, thanks for testing.

PC's only have 64K, so that should be enough for any platform. 0-0x1000 is reserved for legacy ISA range. Even if we set the start to 0, pcibios_min_io would still limit it to above 0x1000.

Also, based on the address translation masking on these platforms, I believe it should be okay to start the PCI bus address on a 64K boundary.

Rob

Quoted 6 lines

I see this for both orion5x and kirkwood.

Thanks
Andrew