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


[ROCm/ROCR-Runtime commit: 97a669a979]
This commit is contained in:
Mukul Joshi
2022-01-31 15:57:57 -05:00
کامیت شده توسط Graham Sider
والد ea4e2a82bb
کامیت 0f7cfe5e4b
3فایلهای تغییر یافته به همراه33 افزوده شده و 20 حذف شده
@@ -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;