Files
compute-runtime/runtime/gen11/reg_configs.h
Barreyra, Bruno R d7c56eb7d6 Fix GPU debugging on gen11+
Format of debug mode register changed for gen11+ projects. Without this
change, the SIP is never invoked.

Change-Id: Ie8314acbee1ead527deeea45cb5689b4a39df24c
2019-10-14 11:28:20 +02:00

49 lines
1.2 KiB
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/helpers/preamble.h"
namespace NEO {
struct ICLFamily;
template <>
struct L3CNTLREGConfig<IGFX_ICELAKE_LP> {
static const uint32_t valueForSLM = 0xA0000720u;
static const uint32_t valueForNoSLM = 0xA0000720u;
};
template <>
struct L3CNTLRegisterOffset<ICLFamily> {
static const uint32_t registerOffset = 0x7034;
};
namespace DebugModeRegisterOffset {
template <>
constexpr uint32_t registerOffset<ICLFamily> = 0x20d8;
template <>
constexpr uint32_t debugEnabledValue<ICLFamily> = (1 << 5) | (1 << 21);
}; // namespace DebugModeRegisterOffset
namespace gen11HdcModeRegister {
const uint32_t address = 0xE5F4;
const uint32_t forceNonCoherentEnableBit = 4;
} // namespace gen11HdcModeRegister
namespace gen11PowerClockStateRegister {
const uint32_t address = 0x20C8;
const uint32_t minEuCountShift = 0;
const uint32_t maxEuCountShift = 4;
const uint32_t subSliceCountShift = 8;
const uint32_t sliceCountShift = 12;
const uint32_t vmeSliceCount = 1;
const uint32_t enabledValue = 0x80040800u;
const uint32_t disabledValue = 0x80040800u;
} // namespace gen11PowerClockStateRegister
} // namespace NEO