diff options
author | Mark Janes <[email protected]> | 2019-07-25 15:57:30 -0700 |
---|---|---|
committer | Mark Janes <[email protected]> | 2019-08-01 16:39:56 -0700 |
commit | 086c486a75fe64440cb1e76de47b3838215246b1 (patch) | |
tree | e5a808f4953f30752630e1af7fe03fbf3beac9d3 /src/intel/tools | |
parent | d594d2a0524ff8d7c14b4842119936163bfa9318 (diff) |
intel/device: rename gen_get_device_info
Rename the original device info initialization routine so callers
don't mistakenly call the wrong one:
gen_get_device_info_from_fd:
Queries kernel for full device info, including topology
details.
gen_get_device_info_from_pci_id:
Partially initializes device info based on PCI ID lookup, when
the kernel is not available.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools')
-rw-r--r-- | src/intel/tools/aub_read.c | 4 | ||||
-rw-r--r-- | src/intel/tools/aub_write.c | 2 | ||||
-rw-r--r-- | src/intel/tools/aubinator.c | 2 | ||||
-rw-r--r-- | src/intel/tools/aubinator_error_decode.c | 2 | ||||
-rw-r--r-- | src/intel/tools/i965_asm.c | 2 | ||||
-rw-r--r-- | src/intel/tools/i965_disasm.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/src/intel/tools/aub_read.c b/src/intel/tools/aub_read.c index de1057b7fe4..a98e2c38180 100644 --- a/src/intel/tools/aub_read.c +++ b/src/intel/tools/aub_read.c @@ -87,7 +87,7 @@ handle_trace_header(struct aub_read *read, const uint32_t *p) if (end > &p[12] && p[12] > 0) { if (sscanf((char *)&p[13], "PCI-ID=%i", &aub_pci_id) > 0) { - if (!gen_get_device_info(aub_pci_id, &read->devinfo)) { + if (!gen_get_device_info_from_pci_id(aub_pci_id, &read->devinfo)) { parse_error(read, p, "can't find device information: pci_id=0x%x\n", aub_pci_id); return false; @@ -118,7 +118,7 @@ handle_memtrace_version(struct aub_read *read, const uint32_t *p) app_name[app_name_len] = 0; if (sscanf(app_name, "PCI-ID=%i %n", &aub_pci_id, &pci_id_len) > 0) { - if (!gen_get_device_info(aub_pci_id, &read->devinfo)) { + if (!gen_get_device_info_from_pci_id(aub_pci_id, &read->devinfo)) { parse_error(read, p, "can't find device information: pci_id=0x%x\n", aub_pci_id); return false; } diff --git a/src/intel/tools/aub_write.c b/src/intel/tools/aub_write.c index dcbde639214..c4d1cbbbfb7 100644 --- a/src/intel/tools/aub_write.c +++ b/src/intel/tools/aub_write.c @@ -172,7 +172,7 @@ aub_file_init(struct aub_file *aub, FILE *file, FILE *debug, uint16_t pci_id, co aub->verbose_log_file = debug; aub->file = file; aub->pci_id = pci_id; - fail_if(!gen_get_device_info(pci_id, &aub->devinfo), + fail_if(!gen_get_device_info_from_pci_id(pci_id, &aub->devinfo), "failed to identify chipset=0x%x\n", pci_id); aub->addr_bits = aub->devinfo.gen >= 8 ? 48 : 32; diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index e8c3db71f0e..4b4ba48445e 100644 --- a/src/intel/tools/aubinator.c +++ b/src/intel/tools/aubinator.c @@ -78,7 +78,7 @@ aubinator_init(void *user_data, int aub_pci_id, const char *app_name) { pci_id = aub_pci_id; - if (!gen_get_device_info(pci_id, &devinfo)) { + if (!gen_get_device_info_from_pci_id(pci_id, &devinfo)) { fprintf(stderr, "can't find device information: pci_id=0x%x\n", pci_id); exit(EXIT_FAILURE); } diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index 147b580de3b..35e049cfad9 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -490,7 +490,7 @@ read_data_file(FILE *file) matched = sscanf(pci_id_start, "PCI ID: 0x%04x\n", ®); } if (matched == 1) { - if (!gen_get_device_info(reg, &devinfo)) { + if (!gen_get_device_info_from_pci_id(reg, &devinfo)) { printf("Unable to identify devid=%x\n", reg); exit(EXIT_FAILURE); } diff --git a/src/intel/tools/i965_asm.c b/src/intel/tools/i965_asm.c index a8e7fe6eff0..74891d145cf 100644 --- a/src/intel/tools/i965_asm.c +++ b/src/intel/tools/i965_asm.c @@ -79,7 +79,7 @@ i965_disasm_init(uint16_t pci_id) if (devinfo == NULL) return NULL; - if (!gen_get_device_info(pci_id, devinfo)) { + if (!gen_get_device_info_from_pci_id(pci_id, devinfo)) { fprintf(stderr, "can't find device information: pci_id=0x%x\n", pci_id); free(devinfo); diff --git a/src/intel/tools/i965_disasm.c b/src/intel/tools/i965_disasm.c index 5fe4afa35ff..bf9aee7b355 100644 --- a/src/intel/tools/i965_disasm.c +++ b/src/intel/tools/i965_disasm.c @@ -74,7 +74,7 @@ i965_disasm_init(uint16_t pci_id) if (devinfo == NULL) return NULL; - if (!gen_get_device_info(pci_id, devinfo)) { + if (!gen_get_device_info_from_pci_id(pci_id, devinfo)) { fprintf(stderr, "can't find device information: pci_id=0x%x\n", pci_id); exit(EXIT_FAILURE); |