MEM: Enable multiple distributed generalized memories
Review Request #1113 - Created March 21, 2012 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
MEM: Enable multiple distributed generalized memories This patch removes the assumption on having on single instance of PhysicalMemory, and enables a distributed memory where the individual memories in the system are each responsible for a single contiguous address range. All memories inherit from an AbstractMemory that encompasses the basic behaviuor of a random access memory, and provides untimed access methods. What was previously called PhysicalMemory is now SimpleMemory, and a subclass of AbstractMemory. All future types of memory controllers should inherit from AbstractMemory. To enable e.g. the atomic CPU and RubyPort to access the now distributed memory, the system has a wrapper class, called PhysicalMemory that is aware of all the memories in the system and their associated address ranges. This class thus acts as an infinitely-fast bus and performs address decoding for these "shortcut" accesses. Each memory can specify that it should not be part of the global address map (used e.g. by the functional memories by some testers). Moreover, each memory can be configured to be reported to the OS configuration table, useful for populating ATAG structures, and any potential ACPI tables. Checkpointing support currently assumes that all memories have the same size and organisation when creating and resuming from the checkpoint. A future patch will enable a more flexible re-organisation.
util/regress all passing (disregarding t1000 and eio)
Posted (March 21, 2012, 2:32 p.m.)
Seems like a reasonable start. i have same question below and would like a better description of the options.
-
src/dev/arm/RealView.py (Diff revision 1) -
i don't think this should be conf table reported
-
src/dev/arm/RealView.py (Diff revision 1) -
this looks like it's wrong
-
src/mem/AbstractMemory.py (Diff revision 1) -
when would you have a memory that wasn't?
-
src/mem/abstract_mem.hh (Diff revision 1) -
wrong style and below
Review request changed
Updated (March 25, 2012, 10:11 p.m.)
Diff: |
Revision 2 (+1437 -959) |
|---|
Posted (April 2, 2012, 2:07 a.m.)
-
src/cpu/simple/atomic.cc (Diff revision 2) -
I wonder about caching this information vs the indirection. Since it's in the fetch paths it's going to get called a lot.
-
src/mem/physical.cc (Diff revision 2) -
might want to consider caching the latest start/end here to avoid the constant lookup.
Review request changed
Updated (April 2, 2012, 7:34 a.m.)
Diff: |
Revision 3 (+1452 -954) |
|---|
Ship It!
Posted (April 4, 2012, 2:23 p.m.)
Hi Andreas, Sorry it took me a couple weeks to look this patch over. It is an impressive amount of work. My biggest concern is it appears that this patch will break all existing checkpoints, correct? Your comment states that a later patch will enable checkpoint migration between different NUMA layouts, but will it also support checkpoints created prior to this change? Can you delay checking this patch in until that later patch with checkpoint support is ready to be checked in? Thanks
-
src/sim/system.cc (Diff revision 3) -
Does memRanges only support continous segments? Would it be possible to support physical pages striped across all NUMA memories?
Ship It!
