From: Adham Masarwah Date: Wed, 18 May 2016 12:05:48 +0000 (+0300) Subject: Fix HCA SELF TEST to support PPC device with Domain X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a1bea3f0ffd289a757c46fb14f6ccd478cf8bdcc;p=~adrianc%2Fmstflint.git Fix HCA SELF TEST to support PPC device with Domain Signed-off-by: Adham Masarwah --- diff --git a/small_utils/hca_self_test.ofed b/small_utils/hca_self_test.ofed index e5d8ae9..9458821 100755 --- a/small_utils/hca_self_test.ofed +++ b/small_utils/hca_self_test.ofed @@ -268,7 +268,7 @@ function get_device_id { current_pci_info=`get_curr_ca_pci_info $loop_cnt` PCI_DEV=$(echo $current_pci_info | awk '{print $1}') - HexDevice_ID=$(lspci -n -d "15b3:" 2> /dev/null | grep $PCI_DEV | tail -1 | cut -d ":" -f4 | cut -d " " -f1) + HexDevice_ID=$(lspci -D -n -d "15b3:" 2> /dev/null | grep $PCI_DEV | tail -1 | cut -d ":" -f5 | cut -d " " -f1) if [ "$HexDevice_ID" != "" ]; then HexDevice_ID=0x$HexDevice_ID let "tmp=$HexDevice_ID"