Pass hwInfo to AubHelper::getMemBankSize()

Change-Id: If77775cb5fb10dc82e0c7bef06a71e4292ceb6f9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2019-02-12 13:37:39 +01:00
committed by sys_ocldev
parent 958d931cd9
commit 12245bc88d
5 changed files with 14 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ extern aub_stream::AubManager *createAubManager(uint32_t productFamily, uint32_t
AubCenter::AubCenter(const HardwareInfo *pHwInfo, bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType) {
if (DebugManager.flags.UseAubStream.get()) {
auto devicesCount = AubHelper::getDevicesCount(pHwInfo);
auto memoryBankSize = AubHelper::getMemBankSize();
auto memoryBankSize = AubHelper::getMemBankSize(pHwInfo);
CommandStreamReceiverType type = static_cast<CommandStreamReceiverType>(DebugManager.flags.SetCommandStreamReceiver.get() != CommandStreamReceiverType::CSR_HW
? DebugManager.flags.SetCommandStreamReceiver.get()
: csrType);

View File

@@ -12,6 +12,10 @@
namespace OCLRT {
uint64_t AubHelper::getTotalMemBankSize() {
return 2 * GB;
}
int AubHelper::getMemTrace(uint64_t pdEntryBits) {
return AubMemDump::AddressSpaceValues::TraceNonlocal;
}
@@ -27,8 +31,8 @@ uint32_t AubHelper::getMemType(uint32_t addressSpace) {
return 0;
}
uint64_t AubHelper::getMemBankSize() {
return 2 * GB;
uint64_t AubHelper::getMemBankSize(const HardwareInfo *pHwInfo) {
return getTotalMemBankSize();
}
uint32_t AubHelper::getDevicesCount(const HardwareInfo *pHwInfo) {

View File

@@ -27,11 +27,13 @@ class AubHelper : public NonCopyableOrMovableClass {
return false;
}
}
static uint64_t getTotalMemBankSize();
static int getMemTrace(uint64_t pdEntryBits);
static uint64_t getPTEntryBits(uint64_t pdEntryBits);
static void checkPTEAddress(uint64_t address);
static uint32_t getMemType(uint32_t addressSpace);
static uint64_t getMemBankSize();
static uint64_t getMemBankSize(const HardwareInfo *pHwInfo);
static uint32_t getDevicesCount(const HardwareInfo *pHwInfo);
static MMIOList getAdditionalMmioList();