diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2013-08-25 23:07:22 -0400 |
---|---|---|
committer | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-11-06 09:39:41 -0800 |
commit | d56697233699844db9262a9a056b62b24b69dd39 (patch) | |
tree | 0933656a3b19e68e7b4c9d2fd8d479ad9644bf99 | |
parent | ee4318931fdf968f98f47dd5d6a019b497037d16 (diff) |
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>
-rw-r--r-- | tools/quick_dump/chipset.i | 1 | ||||
-rw-r--r-- | tools/quick_dump/intel_chipset.c | 5 | ||||
-rw-r--r--[-rwxr-xr-x] | tools/quick_dump/quick_dump.py | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i index 524ea7d9..f1cc3685 100644 --- a/tools/quick_dump/chipset.i +++ b/tools/quick_dump/chipset.i @@ -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); diff --git a/tools/quick_dump/intel_chipset.c b/tools/quick_dump/intel_chipset.c index c26d36c2..392b85ec 100644 --- a/tools/quick_dump/intel_chipset.c +++ b/tools/quick_dump/intel_chipset.c @@ -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) { diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index cbc10268..ff151d17 100755..100644 --- a/tools/quick_dump/quick_dump.py +++ b/tools/quick_dump/quick_dump.py @@ -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") |