Enable version info via thunk interface
- Replace HSAuint32 with HSA_ENGINE_ID for EngineId type so it explicitely
presents version information for ucode and GfxIP
- Created a GfxIP lookup table to pass the version information. This lookup
searches for matching device ID.
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Acked-by: John Bridgman <John.Bridgman@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
[ROCm/ROCR-Runtime commit: a3925a3a19]
Этот коммит содержится в:
коммит произвёл
Felix Kuehling
родитель
0f0e28cbdb
Коммит
92e34fcda6
@@ -148,6 +148,17 @@ typedef struct _HsaSystemProperties
|
||||
HSAuint32 PlatformRev; // HSA platform revision, reflects Platform Table Revision ID
|
||||
} HsaSystemProperties;
|
||||
|
||||
typedef union
|
||||
{
|
||||
HSAuint32 Value;
|
||||
struct
|
||||
{
|
||||
unsigned int uCode : 10; // ucode packet processor version
|
||||
unsigned int Major : 6; // GFXIP Major engine version
|
||||
unsigned int Minor : 8; // GFXIP Minor engine version
|
||||
unsigned int Stepping : 8; // GFXIP Stepping info
|
||||
};
|
||||
} HSA_ENGINE_ID;
|
||||
|
||||
typedef union
|
||||
{
|
||||
@@ -223,7 +234,7 @@ typedef struct _HsaNodeProperties
|
||||
HSAuint32 MaxSlotsScratchCU; // Number of temp. memory ("scratch") wave slots available to access,
|
||||
// may be 0 if HW has no restrictions
|
||||
|
||||
HSAuint32 EngineId; // Identifier (rev) of teh GPU uEngine or Firmware, may be 0
|
||||
HSA_ENGINE_ID EngineId; // Identifier (rev) of the GPU uEngine or Firmware, may be 0
|
||||
|
||||
HSAuint16 VendorId; // GPU vendor id; 0 on latency (= CPU)-only nodes
|
||||
HSAuint16 DeviceId; // GPU device id; 0 on latency (= CPU)-only nodes
|
||||
|
||||
Ссылка в новой задаче
Block a user