Skip to content

Allow PCI bus address, PA, and VA to differ

Becky Bruce u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v111 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mpc8641hpcn: Set up outbound pci windows before inboundboard/freescale/mpc8641hpcn/mpc8641hpcn.c+6 -65 replies
1/8mpc8641hpcn: Set up outbound pci windows before inbound+0 -00 replies
2/8drivers/pci: Create pci_map_bar functiondrivers/pci/pci.c include/pci.h+43 -41 reply
3/8powerpc: Move duplicated BAT defines to mmu.hboard/alaska/alaska.c board/etin/debris/flash.c board/etin/kvme080/kvme080.c +5 more+64 -1831 reply
4/8mpc86xx: Add support to populate addr map based on BATscpu/mpc86xx/cpu_init.c include/asm-ppc/mmu.h lib_ppc/bat_rw.c +1 more+69 -42 replies
5/8mpc8641hpcn: Clean up PCI mapping conceptsboard/freescale/mpc8641hpcn/mpc8641hpcn.c include/configs/MPC8641HPCN.h+16 -112 replies
6/8MPC8641HPCN: Enable CONFIG_ADDR_MAPinclude/configs/MPC8641HPCN.h+2 -02 replies
7/8drivers/block/ahci: Fix pci mapping bugdrivers/block/ahci.c+2 -51 reply
8/8mpc8641hpcn: Change PCI MEM pci bus addressinclude/configs/MPC8641HPCN.h+10 -12 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchJon Loeliger
1/8A-b
1/8A-b
2/8
3/8
4/8A-b
5/8A-b
6/8A-b
7/8
8/8A-b

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

Read the v2 thread

Cover letter [U-Boot] [PATCH 00/08 V2] Allow PCI bus address, PA, and VA to differ

This is resubmit of a series I sent back in December - I've rebased to the latest tree and split out a couple of the patches as requested.

This patch series cleans up much of the VA/PA/PCI bus address confusion that is is currently causing a couple of problems on the 8641 36-bit port, and was preventing us from having a PCI mem bus address that differed from the virtual address of the region.

I have fixed a number of problems, such as the ahci driver directly using the pci BAR setting as a virtual address and pci window mapping overlap. There's also some cleanup to the BAT code that were needed to make some of this cleaner.

Cheers,
Becky

The diffstat:

 board/alaska/alaska.c                     |   36 +++++++-------
 board/etin/debris/flash.c                 |    1 +
 board/etin/kvme080/kvme080.c              |    1 +
 board/freescale/mpc8641hpcn/mpc8641hpcn.c |   22 ++++----
 cpu/mpc86xx/cpu_init.c                    |   27 +++++++++++
 drivers/block/ahci.c                      |    7 +--
 drivers/pci/pci.c                         |   19 ++++++++
 include/74xx_7xx.h                        |   37 ---------------
 include/asm-ppc/e300.h                    |   35 --------------
 include/asm-ppc/mmu.h                     |   73 ++++++++++++++++++++++------
 include/configs/MPC8641HPCN.h             |   28 +++++++++--
 include/mpc824x.h                         |   39 ---------------
 include/mpc86xx.h                         |   41 ----------------
 include/pci.h                             |   28 +++++++++--
 lib_ppc/bat_rw.c                          |   28 +++++++++++
 lib_ppc/board.c                           |    2 +-
 16 files changed, 211 insertions(+), 213 deletions(-)