Get Marketing name from libdrm-amdgpu
Use the database provided by libdrm-amdgpu,as this is maintained by AMD Signed-off-by: Mike Li <Tianxinmike.Li@amd.com> Change-Id: I319a46d833cb23173a77fdff1deae69ea58588b8
This commit is contained in:
@@ -2150,7 +2150,6 @@ HSAKMT_STATUS fmm_init_process_apertures(unsigned int NumNodes)
|
||||
HSAKMT_STATUS ret = HSAKMT_STATUS_SUCCESS;
|
||||
char *disableCache, *pagedUserptr, *checkUserptr, *guardPagesStr, *reserveSvm;
|
||||
unsigned int guardPages = 1;
|
||||
struct pci_ids pacc;
|
||||
uint64_t svm_base = 0, svm_limit = 0;
|
||||
uint32_t svm_alignment = 0;
|
||||
|
||||
@@ -2197,13 +2196,11 @@ HSAKMT_STATUS fmm_init_process_apertures(unsigned int NumNodes)
|
||||
* gets called before hsaKmtAcquireSystemProperties() is called.
|
||||
*/
|
||||
|
||||
pacc = pci_ids_create();
|
||||
|
||||
is_dgpu = false;
|
||||
|
||||
for (i = 0; i < NumNodes; i++) {
|
||||
memset(&props, 0, sizeof(props));
|
||||
ret = topology_sysfs_get_node_props(i, &props, &gpu_id, pacc, NULL, NULL);
|
||||
ret = topology_sysfs_get_node_props(i, &props, &gpu_id, NULL, NULL);
|
||||
if (ret != HSAKMT_STATUS_SUCCESS)
|
||||
goto sysfs_parse_failed;
|
||||
|
||||
@@ -2240,8 +2237,6 @@ HSAKMT_STATUS fmm_init_process_apertures(unsigned int NumNodes)
|
||||
}
|
||||
}
|
||||
|
||||
pci_ids_destroy(pacc);
|
||||
|
||||
/* The ioctl will also return Number of Nodes if
|
||||
* args.kfd_process_device_apertures_ptr is set to NULL. This is not
|
||||
* required since Number of nodes is already known. Kernel will fill in
|
||||
|
||||
Reference in New Issue
Block a user