feature: Retrieve CXL type info from drm query

Related-To: NEO-11362

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2024-06-07 18:46:33 +00:00
committed by Compute-Runtime-Automation
parent d2d8925cd3
commit 1cca55624b
4 changed files with 8 additions and 2 deletions

View File

@@ -153,6 +153,8 @@ bool IoctlHelperXe::initialize() {
hwInfo->platform.usRevId = static_cast<int>((config->info[DRM_XE_QUERY_CONFIG_REV_AND_DEVICE_ID] >> 16) & 0xff);
hwInfo->capabilityTable.gpuAddressSpace = (1ull << config->info[DRM_XE_QUERY_CONFIG_VA_BITS]) - 1;
hwInfo->capabilityTable.cxlType = getCxlType(config);
queryGtListData = queryData<uint64_t>(DRM_XE_DEVICE_QUERY_GT_LIST);
if (queryGtListData.empty()) {

View File

@@ -17,6 +17,7 @@
struct drm_xe_engine_class_instance;
struct drm_xe_query_gt_list;
struct drm_xe_query_config;
namespace NEO {
@@ -154,6 +155,7 @@ class IoctlHelperXe : public IoctlHelper {
void *freeDebugMetadata(void *metadata);
int getRunaloneExtProperty();
virtual bool isExtraEngineClassAllowed(uint16_t engineClass) const { return false; }
virtual uint32_t getCxlType(struct drm_xe_query_config *config) { return 0u; }
struct UserFenceExtension {
static constexpr uint32_t tagValue = 0x123987;