libhsakmt: Expose device Unique Id

Read device unique id from sysfs and expose it in HsaNodeProperties.
For devices not supported the value will be 0

Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com>
Change-Id: I97b8689dfa090971c6876de6feaa97652e28c03d
Tá an tiomantas seo le fáil i:
Divya Shikre údaraithe agus Divya Uday Shikre tiomanta 2020-03-10 10:06:11 -05:00
1 tuismitheoir 4e7b2f2e27
tiomantas ebe7de1f99
2 comhad athraithe
+4 -1

Níor tháinig aon chomhaid le do chuardach

+2 -1
Féach ar an gComhad
@@ -308,7 +308,8 @@ typedef struct _HsaNodeProperties
HSAuint8 Reserved2;
HSAuint32 Domain; // PCI domain of the GPU
HSAuint8 Reserved[28];
HSAuint64 UniqueID; // Globally unique immutable id
HSAuint8 Reserved[20];
} HsaNodeProperties;