Navigation Menu

Skip to content

Commit

Permalink
Find card evol (#916)
Browse files Browse the repository at this point in the history
* snap_find_card: added PCI second reference

Signed-off-by: fmoyen <fabrice_moyen@fr.ibm.com>

* snap_find_card: typo

Signed-off-by: fmoyen <fabrice_moyen@fr.ibm.com>

* snap_find_card: cosmetic modification

Signed-off-by: fmoyen <fabrice_moyen@fr.ibm.com>
  • Loading branch information
fmoyen committed Jan 29, 2020
1 parent fb12509 commit c8ea186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion software/tools/snap_find_card
Expand Up @@ -109,6 +109,7 @@ function detect_snap_cards() {
load_image_on_perst=`cat /sys/class/cxl/card${card}/load_image_on_perst`
pci=`ls -lhaF //sys/class/cxl/card${card}/device | awk -F"../../../" '{print $2}'`
slot=`cat /sys/firmware/opal/msglog | grep SLOT | grep ${pci::-9} | tail -1 | cut -d = -f 2`
pci_bis=`cd /sys/class/cxl/card${card}/device/pci*; ls -d *:*`

echo -e ""
echo -e "$card_name card has been detected in card position: ${card}"
Expand All @@ -118,7 +119,8 @@ function detect_snap_cards() {
echo -e " Sub device is : ${check_sub}"
echo -e " Image loaded is self defined as : ${image_loaded}"
echo -e " Next image to be loaded at next reset (load_image_on_perst) is : ${load_image_on_perst}"
echo -e " Card PCI location is : ${pci::-1}"
echo -e " Hardware Card PCI location is : ${pci::-1}"
echo -e " Virtual Card PCI location is : ${pci_bis}"
echo -e " Card PCI physical slot is : ${slot}"
else
echo -n "${card} "
Expand Down

0 comments on commit c8ea186

Please sign in to comment.