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>
이 커밋은 다음에 포함됨:
1 부모
fc4e07daa3
커밋
a3925a3a19
2 파일이 변경됨
+70
-6
검색과 일치하는 파일 없음
+12
-1
@@ -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
|
||||
|
||||
새 이슈에서 참조
사용자 차단