summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2014-05-23 18:21:04 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-05-23 19:04:07 +0800
commite710ac9243cacd2f9c0ec2a2854946a3f7ff81a6 (patch)
tree70a1526d9e5c231b479327f7f8d0ce53a2230d2e /src
parentd365c54253050dd280b79250c3e9e0ed0da324a8 (diff)
downloadbeignet-e710ac9243cacd2f9c0ec2a2854946a3f7ff81a6.tar.gz
gbe_bin_generater: fix two bugs.
The pci id detecting method is broken on some system. And the gen pci id parsing in gbe_bin_generater is incorrect when the pci id has a-f hex digit. v2: Add VGA to filter out some nonVGA devices. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/GetGenID.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GetGenID.sh b/src/GetGenID.sh
index 3114bd82..f8cb0a71 100755
--- a/src/GetGenID.sh
+++ b/src/GetGenID.sh
@@ -1,2 +1,2 @@
#!/bin/bash
-lspci -nn | grep "Gen .* Graphics" -i | grep "\[8086:.*\]" -o | awk -F : '{print $2}' | awk -F ] '{print $1}'
+lspci -nn | grep "VGA.*Gen.*\[8086:" -i | grep "\[8086:.*\]" -o | awk -F : '{print $2}' | awk -F ] '{print $1}'