From: Vladimir Sokolovsky Date: Wed, 25 Nov 2009 08:36:41 +0000 (+0200) Subject: install: add width to setpci command X-Git-Tag: vofed-1.5-rc4~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=fe2d384d9d525825e6b671242f135cd6668ff4b9;p=~vlad%2Fofed_scripts.git install: add width to setpci command Signed-off-by: Vladimir Sokolovsky --- diff --git a/install.pl b/install.pl index b2c75c1..07255cd 100755 --- a/install.pl +++ b/install.pl @@ -4148,7 +4148,7 @@ sub check_pcie_link my $devinfo = $_; $devinfo =~ /(15b3:[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])/; my $devid = $&; - my $link_width = `$setpci -d $devid 72 | cut -b1`; + my $link_width = `$setpci -d $devid 72.B | cut -b1`; chomp $link_width; print BLUE "Device ($devid):\n"; @@ -4160,7 +4160,7 @@ sub check_pcie_link else { print "\tLink Width is not 8x\n"; } - my $link_speed = `$setpci -d $devid 72 | cut -b2`; + my $link_speed = `$setpci -d $devid 72.B | cut -b2`; chomp $link_speed; if ( $link_speed eq "1" ) { print "\tLink Speed: 2.5Gb/s\n";