summaryrefslogtreecommitdiff
path: root/src/mem/dram_ctrl.hh
diff options
context:
space:
mode:
authorMatthew Poremba <matthew.poremba@amd.com>2019-05-01 11:32:49 -0700
committerMatthew Poremba <matthew.poremba@amd.com>2019-06-06 19:55:38 +0000
commitf2be9f195c5aa226fa546e79c9acf95c8a800915 (patch)
treedcfe73963c796bb17001b1967f66474661ead9ce /src/mem/dram_ctrl.hh
parentf5cf6d5f5ef8df0fedcba9d3cf3c16d76a6dceae (diff)
downloadgem5-f2be9f195c5aa226fa546e79c9acf95c8a800915.tar.xz
mem: Option to toggle DRAM low-power states
Adding an option to enable DRAM low-power states. The low power states can have a significant impact on application performance (sim_ticks) on the order of 2-3x, especially for compute-gpu apps. The options allows for it to easily be enabled/disabled to compare performance numbers. The option is disabled by default. Change-Id: Ib9bddbb792a1a6a4afb5339003472ff8f00a5859 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18548 Reviewed-by: Wendy Elsasser <wendy.elsasser@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/mem/dram_ctrl.hh')
-rw-r--r--src/mem/dram_ctrl.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/dram_ctrl.hh b/src/mem/dram_ctrl.hh
index 54826e0a8..7de0872ea 100644
--- a/src/mem/dram_ctrl.hh
+++ b/src/mem/dram_ctrl.hh
@@ -1140,6 +1140,9 @@ class DRAMCtrl : public QoS::MemCtrl
/** The time when stats were last reset used to calculate average power */
Tick lastStatsResetTick;
+ /** Enable or disable DRAM powerdown states. */
+ bool enableDRAMPowerdown;
+
/**
* Upstream caches need this packet until true is returned, so
* hold it for deletion until a subsequent call