mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
quick_dump/skl: Make quick_dump SKL aware
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
d0a412597b
commit
7f8228955f
@ -11,6 +11,7 @@ extern int is_valleyview(unsigned short pciid);
|
||||
extern int is_cherryview(unsigned short pciid);
|
||||
extern int is_haswell(unsigned short pciid);
|
||||
extern int is_broadwell(unsigned short pciid);
|
||||
extern int is_skylake(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);
|
||||
@ -28,6 +29,7 @@ extern int is_valleyview(unsigned short pciid);
|
||||
extern int is_cherryview(unsigned short pciid);
|
||||
extern int is_haswell(unsigned short pciid);
|
||||
extern int is_broadwell(unsigned short pciid);
|
||||
extern int is_skylake(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);
|
||||
|
@ -33,6 +33,11 @@ int is_broadwell(unsigned short pciid)
|
||||
return IS_BROADWELL(pciid);
|
||||
}
|
||||
|
||||
int is_skylake(unsigned short pciid)
|
||||
{
|
||||
return IS_SKYLAKE(pciid);
|
||||
}
|
||||
|
||||
/* Simple helper because I couldn't make this work in the script */
|
||||
unsigned short pcidev_to_devid(struct pci_device *pdev)
|
||||
{
|
||||
|
@ -72,6 +72,8 @@ def autodetect_chipset():
|
||||
return open('haswell', 'r')
|
||||
elif chipset.is_broadwell(devid):
|
||||
return open('broadwell', 'r')
|
||||
elif chipset.is_skylake(devid):
|
||||
return open('skylake', 'r')
|
||||
else:
|
||||
print("Autodetect of devid " + hex(devid) + " failed")
|
||||
return None
|
||||
|
1
tools/quick_dump/skylake
Normal file
1
tools/quick_dump/skylake
Normal file
@ -0,0 +1 @@
|
||||
skl_display.txt
|
Loading…
x
Reference in New Issue
Block a user