Skip to content

pci: add pci_iomap_wc() and pci_ioremap_wc_bar()

Luis R. Rodriguez linux-arch linux-fbdev linux-pci lkml xen-devel 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest8 patches 6 repliesIn review
  2. v89 patches 7 repliesSuperseded
  3. v79 patches 25 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v64 patches12 repliesSuperseded
v51 of 5 patches10 repliesSuperseded
v45 patches8 repliesSuperseded
v34 patches0 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8PCI: Add pci_ioremap_wc_bar()drivers/pci/pci.c include/linux/pci.h+15 -00 replies
2/8drivers/video/fbdev/i740fb: Use arch_phys_wc_add() and pci_ioremap_wc_bar()drivers/video/fbdev/i740fb.c+6 -290 replies
3/8drivers/video/fbdev/kyrofb: Use arch_phys_wc_add() and pci_ioremap_wc_bar()drivers/video/fbdev/kyro/fbdev.c include/video/kyro.h+12 -250 replies
4/8drivers/video/fbdev/gxt4500: Use pci_ioremap_wc_bar() to map framebufferdrivers/video/fbdev/gxt4500.c+1 -10 replies
5/8PCI: Add pci_iomap_wc() variantsinclude/asm-generic/pci_iomap.h lib/pci_iomap.c+80 -00 replies
6/8drivers/video/fbdev/arkfb.c: Use arch_phys_wc_add() and pci_iomap_wc()drivers/video/fbdev/arkfb.c+5 -310 replies
7/8drivers/video/fbdev/s3fb: Use arch_phys_wc_add() and pci_iomap_wc()drivers/video/fbdev/s3fb.c+6 -290 replies
8/8drivers/video/fbdev/vt8623fb: Use arch_phys_wc_add() and pci_iomap_wc()drivers/video/fbdev/vt8623fb.c+6 -250 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchArnd BergmannTomi Valkeinen
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/8] pci: add pci_iomap_wc() and pci_ioremap_wc_bar()

From: "Luis R. Rodriguez" <[email protected]>

Ingo,

Boris is on vacation, he picked up these patches on his bp#tip-mm tree [0] and they have baked there for a while now. That tree receives 0-day bot testing, but other than that its not clear what other tests were run on these patches. Boris modified the commit logs a bit, and made one optimizaiton to bail early on an PCI ioremap call when it should. These patches have no modifications from what is on Boris' tree and tip-mm branch.

The 0 day build bot did find issues on Boris' tree but those are related to ioremap_uc() (already upstream) and its first use on atyfb (not upstream) -- I will be addressing a fix for that ioremap_uc() issue through another patch series prior to posting the final set for atyfb which makes use of ioremap_uc().

No issues have been found with this series. Benh did note some possible issues with expectations with what is done for write-combining for PowerPC [1] but the issue is a rather general long standing issue with semantics of ioremap -- in the case for ioremap_wc() on PowerPC benh notes that writel() will never write-combine as it uses too heavy barriers. Benh notes that although writel_relaxed() today is identical to writel() this can be changed. There are other general semantics issues with ioremap() variant calls -- we seem to have all gotten together to discuss all these issues on a thread where Dan Williams is proposing to "unify ioremap prototypes and macro aliases" [1], folks intersted on these issues or semantic concerns can drop in and chime there.

Let me know if these are OK or if there are any questions.

[0] http://lkml.kernel.org/r/[email protected]
[1] http://lkml.kernel.org/r/[email protected]

Luis R. Rodriguez (8):
PCI: Add pci_ioremap_wc_bar()
drivers/video/fbdev/i740fb: Use arch_phys_wc_add() and
pci_ioremap_wc_bar()
drivers/video/fbdev/kyrofb: Use arch_phys_wc_add() and
pci_ioremap_wc_bar()
drivers/video/fbdev/gxt4500: Use pci_ioremap_wc_bar() to map
framebuffer
PCI: Add pci_iomap_wc() variants drivers/video/fbdev/arkfb.c: Use arch_phys_wc_add() and pci_iomap_wc() drivers/video/fbdev/s3fb: Use arch_phys_wc_add() and pci_iomap_wc() drivers/video/fbdev/vt8623fb: Use arch_phys_wc_add() and

    pci_iomap_wc()
 drivers/pci/pci.c                | 14 +++++++++
 drivers/video/fbdev/arkfb.c      | 36 +++-------------------
 drivers/video/fbdev/gxt4500.c    |  2 +-
 drivers/video/fbdev/i740fb.c     | 35 ++++-----------------
 drivers/video/fbdev/kyro/fbdev.c | 33 +++++++-------------
 drivers/video/fbdev/s3fb.c       | 35 ++++-----------------
 drivers/video/fbdev/vt8623fb.c   | 31 ++++---------------
 include/asm-generic/pci_iomap.h  | 14 +++++++++
 include/linux/pci.h              |  1 +
 include/video/kyro.h             |  4 +--
 lib/pci_iomap.c                  | 66 ++++++++++++++++++++++++++++++++++++++++
 11 files changed, 131 insertions(+), 140 deletions(-)
Signature · 1 line
2.3.2.209.gd67f9d5.dirty