libhsakmt: Update context save handling for multi XCC

Allocate debug area big enough for all XCCs in the partition. Also, fix
the cu_num calculations as driver now reports cu_num as the total number
of CUs in the partition.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Change-Id: I6e80d57196b770bb3c2506bc58cb366c0046084b
This commit is contained in:
Mukul Joshi
2022-01-31 15:57:57 -05:00
committato da Graham Sider
parent 6be4461a0d
commit 97a669a979
3 ha cambiato i file con 33 aggiunte e 20 eliminazioni
+1 -1
Vedi File
@@ -329,10 +329,10 @@ typedef struct _HsaNodeProperties
HSAuint32 VGPRSizePerCU; // VGPR size in bytes per CU
HSAuint32 SGPRSizePerCU; // SGPR size in bytes per CU
HSAuint32 NumXcc; // Number of XCC
HSAuint32 KFDGpuID; // GPU Hash ID generated by KFD
HSAuint32 FamilyID; // GPU family id
HSAuint8 Reserved[4];
} HsaNodeProperties;