mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
feature: add support for SIMD16 EU per DSS to xe-prelim helper
Related-To: NEO-12012 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4f1262645b
commit
dfbad8029b
@@ -11,7 +11,6 @@ set(NEO_CORE_OS_INTERFACE_LINUX_XE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ioctl_helper_xe.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ioctl_helper_xe.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/ioctl_helper_xe_perf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/ioctl_helper_xe_eu_dss.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/xedrm.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/xedrm_prelim.h
|
||||
)
|
||||
|
||||
@@ -1719,4 +1719,7 @@ void IoctlHelperXe::querySupportedFeatures() {
|
||||
};
|
||||
supportedFeatures.flags.pageFault = checkVmCreateFlagsSupport(DRM_XE_VM_CREATE_FLAG_LR_MODE | DRM_XE_VM_CREATE_FLAG_FAULT_MODE);
|
||||
};
|
||||
bool IoctlHelperXe::isEuPerDssTopologyType(uint16_t topologyType) const {
|
||||
return topologyType == DRM_XE_TOPO_EU_PER_DSS;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -133,6 +133,7 @@ class IoctlHelperXe : public IoctlHelper {
|
||||
void registerBOBindHandle(Drm *drm, DrmAllocation *drmAllocation) override;
|
||||
bool resourceRegistrationEnabled() override { return true; }
|
||||
bool isPreemptionSupported() override { return true; }
|
||||
virtual bool isEuPerDssTopologyType(uint16_t topologyType) const;
|
||||
|
||||
protected:
|
||||
static constexpr uint32_t maxContextSetProperties = 4;
|
||||
@@ -174,7 +175,6 @@ class IoctlHelperXe : public IoctlHelper {
|
||||
uint16_t revision;
|
||||
};
|
||||
bool queryHwIpVersion(GtIpVersion >IpVersion);
|
||||
static bool isEuPerDssTopologyType(uint16_t topologyType);
|
||||
|
||||
int maxExecQueuePriority = 0;
|
||||
std::mutex xeLock;
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/linux/xe/ioctl_helper_xe.h"
|
||||
#include "shared/source/os_interface/linux/xe/xedrm.h"
|
||||
namespace NEO {
|
||||
|
||||
bool IoctlHelperXe::isEuPerDssTopologyType(uint16_t topologyType) {
|
||||
return topologyType == DRM_XE_TOPO_EU_PER_DSS;
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -11,7 +11,8 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
IoctlHelperXePrelim::~IoctlHelperXePrelim() {
|
||||
xeLog("IoctlHelperXePrelim::~IoctlHelperXePrelim\n", "");
|
||||
bool IoctlHelperXePrelim::isEuPerDssTopologyType(uint16_t topologyType) const {
|
||||
return topologyType == DRM_XE_TOPO_EU_PER_DSS ||
|
||||
topologyType == DRM_XE_TOPO_SIMD16_EU_PER_DSS;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace NEO {
|
||||
class IoctlHelperXePrelim : public IoctlHelperXe {
|
||||
public:
|
||||
using IoctlHelperXe::IoctlHelperXe;
|
||||
~IoctlHelperXePrelim() override;
|
||||
bool isEuPerDssTopologyType(uint16_t topologyType) const override;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user