-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/3204/
-----------------------------------------------------------

Review request for Default.


Repository: gem5


Description
-------

Changeset 11205:3c8223c4386f
---------------------------
dev: Rewrite PCI host functionality

The gem5's current PCI host functionality is very ad hoc. The current
implementations require PCI devices to be hooked up to the
configuration space via a separate configuration port. Devices query
the platform to get their config-space address range. Un-mapped parts
of the config space are intercepted using the XBar's default port
mechanism and a magic catch-all device (PciConfigAll).

This changeset redesigns the PCI host functionality to improve code
reuse and make config-space and interrupt mapping more transparent.

PCI devices now register themselves with a PCI host controller. The
host controller interface is defined in the abstract base class
PciHost. Registration is done by PciHost::registerDevice() which takes
the device, its bus position (bus/dev/func tuple), and its interrupt
pin (INTA-INTC) as a parameter. The registration interface returns a
PciHost::DeviceInterface that the PCI device can use to query memory
mappings and signal interrupts.

The host device manages the entire PCI configuration space. Accesses
to devices decoded into the devices bus position and then forwarded to
the correct device.

Basic PCI host functionality is implemented in the GenericPciHost base
class. Most platforms can use this class as a basic PCI controller. It
provides the following functionality:

  * Configuration space decoding using the PCI CAM, ECAM, or a legacy
    mode that can be implemented in platform-specific devices.

  * Basic interrupt mapping using the interruptLine value from a
    device's configuration space. This behavior is the same as in the
    old implementation.

  * Simple (base + addr) remapping from the PCI bus's address space to
    physical addresses for PIO, memory, and DMA.


Diffs
-----

  configs/common/FSConfig.py 7a9eeecf2b52 
  src/dev/Pci.py 7a9eeecf2b52 
  src/dev/SConscript 7a9eeecf2b52 
  src/dev/alpha/Tsunami.py 7a9eeecf2b52 
  src/dev/alpha/tsunami.hh 7a9eeecf2b52 
  src/dev/alpha/tsunami.cc 7a9eeecf2b52 
  src/dev/alpha/tsunami_pchip.hh 7a9eeecf2b52 
  src/dev/alpha/tsunami_pchip.cc 7a9eeecf2b52 
  src/dev/arm/RealView.py 7a9eeecf2b52 
  src/dev/arm/SConscript 7a9eeecf2b52 
  src/dev/arm/pci_host.hh PRE-CREATION 
  src/dev/arm/pci_host.cc PRE-CREATION 
  src/dev/arm/realview.hh 7a9eeecf2b52 
  src/dev/arm/realview.cc 7a9eeecf2b52 
  src/dev/pci/PciHost.py PRE-CREATION 
  src/dev/pci/SConscript PRE-CREATION 
  src/dev/pci/host.hh PRE-CREATION 
  src/dev/pci/host.cc PRE-CREATION 
  src/dev/pci/types.hh PRE-CREATION 
  src/dev/pciconfigall.hh 7a9eeecf2b52 
  src/dev/pciconfigall.cc 7a9eeecf2b52 
  src/dev/pcidev.hh 7a9eeecf2b52 
  src/dev/pcidev.cc 7a9eeecf2b52 
  src/dev/platform.hh 7a9eeecf2b52 
  src/dev/platform.cc 7a9eeecf2b52 
  src/dev/x86/Pc.py 7a9eeecf2b52 
  src/dev/x86/SouthBridge.py 7a9eeecf2b52 
  src/dev/x86/pc.hh 7a9eeecf2b52 
  src/dev/x86/pc.cc 7a9eeecf2b52 

Diff: http://reviews.gem5.org/r/3204/diff/


Testing
-------

Quick regressions pass. Manually verified the diff between two checkpoints of a 
booted system.


Thanks,

Andreas Sandberg

_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to