2018-08-20 15:54:20 +02:00
|
|
|
/*
|
2020-01-14 10:57:55 +01:00
|
|
|
* Copyright (C) 2018-2020 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-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/aub/aub_helper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "debug_settings/debug_settings_manager.h"
|
|
|
|
|
#include "helpers/basic_math.h"
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/aub_mem_dump/aub_mem_dump.h"
|
2018-08-20 15:54:20 +02:00
|
|
|
|
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-01-14 10:57:55 +01:00
|
|
|
void AubHelper::setAdditionalMmioList() {
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|