2018-08-20 15:54:20 +02:00
|
|
|
/*
|
2021-02-08 11:46:03 +00:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-08-20 15:54:20 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-08-20 15:54:20 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-10-16 12:10:52 +02:00
|
|
|
#include "shared/source/aub/aub_helper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
|
#include "shared/source/helpers/basic_math.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2021-03-19 13:43:50 +01:00
|
|
|
#include "aub_mem_dump.h"
|
2020-08-22 14:12:46 +02:00
|
|
|
#include "third_party/aub_stream/headers/aubstream.h"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-09-11 10:26:39 +02:00
|
|
|
|
2019-02-12 13:37:39 +01:00
|
|
|
uint64_t AubHelper::getTotalMemBankSize() {
|
|
|
|
|
return 2 * GB;
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-20 15:54:20 +02:00
|
|
|
int AubHelper::getMemTrace(uint64_t pdEntryBits) {
|
|
|
|
|
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
|
|
|
|
}
|
2018-09-11 10:26:39 +02:00
|
|
|
|
|
|
|
|
uint64_t AubHelper::getPTEntryBits(uint64_t pdEntryBits) {
|
|
|
|
|
return pdEntryBits;
|
|
|
|
|
}
|
2018-10-15 13:01:45 +02:00
|
|
|
|
2018-11-09 23:00:58 -08:00
|
|
|
uint32_t AubHelper::getMemType(uint32_t addressSpace) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-02-12 13:37:39 +01:00
|
|
|
uint64_t AubHelper::getMemBankSize(const HardwareInfo *pHwInfo) {
|
|
|
|
|
return getTotalMemBankSize();
|
2018-12-12 13:09:45 +01:00
|
|
|
}
|
|
|
|
|
|
2020-08-22 14:12:46 +02:00
|
|
|
void AubHelper::setTbxConfiguration() {
|
|
|
|
|
aub_stream::setTbxServerIp(DebugManager.flags.TbxServer.get());
|
|
|
|
|
aub_stream::setTbxServerPort(DebugManager.flags.TbxPort.get());
|
|
|
|
|
aub_stream::setTbxFrontdoorMode(DebugManager.flags.TbxFrontdoorMode.get());
|
|
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|