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
Este commit está contenido en:
Mukul Joshi
2022-01-31 15:57:57 -05:00
cometido por Graham Sider
padre 6be4461a0d
commit 97a669a979
Se han modificado 3 ficheros con 33 adiciones y 20 borrados
+1 -1
Ver fichero
@@ -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;