2021-08-30 22:34:53 +08:00
|
|
|
/*
|
2022-01-05 22:24:16 +08:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2021-08-30 22:34:53 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-12-07 19:22:25 +08:00
|
|
|
#include "shared/source/aub_mem_dump/aub_mem_dump.h"
|
2021-09-14 19:41:01 +08:00
|
|
|
#include "shared/source/helpers/constants.h"
|
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
2021-08-30 22:34:53 +08:00
|
|
|
|
2021-09-14 19:41:01 +08:00
|
|
|
namespace NEO {
|
2021-08-30 22:34:53 +08:00
|
|
|
|
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::convertTimestampsFromOaToCsDomain(uint64_t ×tampData) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getMaxThreadsForWorkgroupInDSSOrSS(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice, uint32_t maxNumEUsPerDualSubSlice) const {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getMaxThreadsForWorkgroup(const HardwareInfo &hwInfo, uint32_t maxNumEUsPerSubSlice) const {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::setForceNonCoherent(void *const commandPtr, const StateComputeModeProperties &properties) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
2021-09-01 00:04:40 +08:00
|
|
|
uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getHostMemCapabilities(const HardwareInfo *hwInfo) {
|
2021-08-30 22:34:53 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getDeviceMemCapabilities() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getSingleDeviceSharedMemCapabilities() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getCrossDeviceSharedMemCapabilities() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-12-01 23:14:07 +08:00
|
|
|
template <>
|
|
|
|
uint64_t HwInfoConfigHw<IGFX_UNKNOWN>::getSharedSystemMemCapabilities(const HardwareInfo *hwInfo) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-08-30 22:34:53 +08:00
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::getKernelExtendedProperties(uint32_t *fp16, uint32_t *fp32, uint32_t *fp64) {
|
|
|
|
}
|
|
|
|
|
2021-11-30 20:43:06 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::overrideGfxPartitionLayoutForWsl() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-08-30 22:34:53 +08:00
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getDeviceMemoryMaxClkRate(const HardwareInfo *hwInfo) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isAdditionalStateBaseAddressWARequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isMaxThreadsForWorkgroupWARequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::obtainBlitterPreference(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-10-28 04:22:31 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isBlitterFullySupported(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-08-30 22:34:53 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isPageTableManagerSupported(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const {
|
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getSteppingFromHwRevId(const HardwareInfo &hwInfo) const {
|
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getAubStreamSteppingFromHwRevId(const HardwareInfo &hwInfo) const {
|
|
|
|
switch (getSteppingFromHwRevId(hwInfo)) {
|
|
|
|
default:
|
|
|
|
case REVISION_A0:
|
|
|
|
case REVISION_A1:
|
|
|
|
case REVISION_A3:
|
|
|
|
return AubMemDump::SteppingValues::A;
|
|
|
|
case REVISION_B:
|
|
|
|
return AubMemDump::SteppingValues::B;
|
|
|
|
case REVISION_C:
|
|
|
|
return AubMemDump::SteppingValues::C;
|
|
|
|
case REVISION_D:
|
|
|
|
return AubMemDump::SteppingValues::D;
|
|
|
|
case REVISION_K:
|
|
|
|
return AubMemDump::SteppingValues::K;
|
|
|
|
}
|
|
|
|
}
|
2021-08-31 23:17:18 +08:00
|
|
|
template <>
|
|
|
|
std::string HwInfoConfigHw<IGFX_UNKNOWN>::getDeviceMemoryName() const {
|
|
|
|
return "";
|
|
|
|
}
|
2021-08-30 22:34:53 +08:00
|
|
|
|
2021-08-31 23:48:56 +08:00
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::setAdditionalPipelineSelectFields(void *pipelineSelectCmd, const PipelineSelectArgs &pipelineSelectArgs, const HardwareInfo &hwInfo) {
|
|
|
|
}
|
|
|
|
|
2021-09-02 19:11:39 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isDefaultEngineTypeAdjustmentRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-06 18:34:34 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isDisableOverdispatchAvailable(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-06 23:21:40 +08:00
|
|
|
template <>
|
2021-12-03 21:52:16 +08:00
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::allowCompression(const HardwareInfo &hwInfo) const {
|
2021-09-06 23:21:40 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-08 23:07:46 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::allowStatelessCompression(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-11-22 20:49:26 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isDirectSubmissionSupported(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-09 20:27:41 +08:00
|
|
|
template <>
|
|
|
|
LocalMemoryAccessMode HwInfoConfigHw<IGFX_UNKNOWN>::getDefaultLocalMemoryAccessMode(const HardwareInfo &hwInfo) const {
|
|
|
|
return LocalMemoryAccessMode::Default;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
LocalMemoryAccessMode HwInfoConfigHw<IGFX_UNKNOWN>::getLocalMemoryAccessMode(const HardwareInfo &hwInfo) const {
|
|
|
|
return LocalMemoryAccessMode::Default;
|
|
|
|
}
|
|
|
|
|
2021-09-10 08:37:27 +08:00
|
|
|
template <>
|
2022-03-08 01:00:26 +08:00
|
|
|
std::vector<int32_t> HwInfoConfigHw<IGFX_UNKNOWN>::getKernelSupportedThreadArbitrationPolicies() {
|
|
|
|
return {};
|
2021-09-10 08:37:27 +08:00
|
|
|
}
|
|
|
|
|
2021-09-14 22:57:43 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isAllocationSizeAdjustmentRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-15 17:53:12 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isPrefetchDisablingRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-20 20:05:09 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isNewResidencyModelSupported() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-21 20:29:24 +08:00
|
|
|
template <>
|
2022-02-04 23:43:17 +08:00
|
|
|
std::pair<bool, bool> HwInfoConfigHw<IGFX_UNKNOWN>::isPipeControlPriorToNonPipelinedStateCommandsWARequired(const HardwareInfo &hwInfo, bool isRcs) const {
|
|
|
|
return {false, false};
|
2021-09-21 20:29:24 +08:00
|
|
|
}
|
|
|
|
|
2021-09-21 21:34:25 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::heapInLocalMem(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-22 22:39:01 +08:00
|
|
|
template <>
|
|
|
|
void HwInfoConfigHw<IGFX_UNKNOWN>::setCapabilityCoherencyFlag(const HardwareInfo &hwInfo, bool &coherencyFlag) {
|
|
|
|
}
|
|
|
|
|
2021-09-23 23:08:41 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isAdditionalMediaSamplerProgrammingRequired() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isInitialFlagsProgrammingRequired() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isReturnedCmdSizeForMediaSamplerAdjustmentRequired() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-24 01:46:36 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::extraParametersInvalid(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-24 22:29:49 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::pipeControlWARequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::imagePitchAlignmentWARequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::is3DPipelineSelectWARequired() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-28 18:54:52 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isStorageInfoAdjustmentRequired() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-10-13 21:30:45 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isBlitterForImagesSupported() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-10-15 23:24:03 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isTile64With3DSurfaceOnBCSSupported(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
2021-12-20 22:37:33 +08:00
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isDcFlushAllowed() const {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-11-30 18:19:27 +08:00
|
|
|
template <>
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::computeMaxNeededSubSliceSpace(const HardwareInfo &hwInfo) const {
|
|
|
|
return hwInfo.gtSystemInfo.MaxSubSlicesSupported;
|
|
|
|
}
|
2021-10-15 23:24:03 +08:00
|
|
|
|
2021-11-26 17:40:06 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::getUuid(Device *device, std::array<uint8_t, HwInfoConfig::uuidSize> &uuid) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-02-18 05:44:55 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isFlushTaskAllowed() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-03-07 22:31:53 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::programAllStateComputeCommandFields() const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-03-09 23:39:57 +08:00
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isSpecialPipelineSelectModeChanged(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isSystolicModeConfigurable(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isComputeDispatchAllWalkerEnableInComputeWalkerRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
2022-03-24 16:59:17 +08:00
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isGlobalFenceInCommandStreamRequired(const HardwareInfo &hwInfo) const {
|
2022-03-09 23:39:57 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isAdjustProgrammableIdPreferredSlmSizeRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
2022-03-22 01:44:02 +08:00
|
|
|
uint32_t HwInfoConfigHw<IGFX_UNKNOWN>::getThreadEuRatioForScratch(const HardwareInfo &hwInfo) const {
|
|
|
|
return 8u;
|
2022-03-09 23:39:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
bool HwInfoConfigHw<IGFX_UNKNOWN>::isComputeDispatchAllWalkerEnableInCfeStateRequired(const HardwareInfo &hwInfo) const {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-09-14 19:41:01 +08:00
|
|
|
} //namespace NEO
|