mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 15:26:21 +00:00
quick_dump/bdw: support Broadwell in device auto-detection
This patch exposes is_broadwell() to python, to be used by device auto-detection. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
ee4318931f
commit
d566972336
@ -8,6 +8,7 @@ extern int is_sandybridge(unsigned short pciid);
|
||||
extern int is_ivybridge(unsigned short pciid);
|
||||
extern int is_valleyview(unsigned short pciid);
|
||||
extern int is_haswell(unsigned short pciid);
|
||||
extern int is_broadwell(unsigned short pciid);
|
||||
extern struct pci_device *intel_get_pci_device();
|
||||
extern int intel_register_access_init(struct pci_device *pci_dev, int safe);
|
||||
extern uint32_t intel_register_read(uint32_t reg);
|
||||
|
@ -21,6 +21,11 @@ int is_haswell(unsigned short pciid)
|
||||
return IS_HASWELL(pciid);
|
||||
}
|
||||
|
||||
int is_broadwell(unsigned short pciid)
|
||||
{
|
||||
return IS_BROADWELL(pciid);
|
||||
}
|
||||
|
||||
/* Simple helper because I couldn't make this work in the script */
|
||||
unsigned short pcidev_to_devid(struct pci_device *pdev)
|
||||
{
|
||||
|
2
tools/quick_dump/quick_dump.py
Executable file → Normal file
2
tools/quick_dump/quick_dump.py
Executable file → Normal file
@ -61,6 +61,8 @@ if args.autodetect:
|
||||
args.profile = open('valleyview', 'r')
|
||||
elif chipset.is_haswell(devid):
|
||||
args.profile = open('haswell', 'r')
|
||||
elif chipset.is_broadwell(devid):
|
||||
args.profile = open('broadwell', 'r')
|
||||
else:
|
||||
print("Autodetect of devid " + hex(devid) + " failed")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user