Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmytro Levit
Software
Commits
45fd6796
Commit
45fd6796
authored
5 years ago
by
Patrick Robbe
Browse files
Options
Downloads
Patches
Plain Diff
Adapt to new driver
parent
be235d47
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Pcie40Applications/pcie40_reload.sh
+26
-26
26 additions, 26 deletions
Pcie40Applications/pcie40_reload.sh
with
26 additions
and
26 deletions
Pcie40Applications/pcie40_reload.sh
+
26
−
26
View file @
45fd6796
...
...
@@ -134,12 +134,12 @@ for dev in ${devs[@]}; do
echo
"PCIe40 interface
${
if_id
}
:"
if
[
$((
if_id
%
2
))
-eq
0
]
;
then
if
[
-e
/dev/pcie40_
${
if_id
}
_bar0
]
;
then
echo
" BAR0 used by:"
get_pids /dev/pcie40_
${
if_id
}
_bar0 pids_bar0
else
echo
" BAR0 missing!"
fi
#
if [ -e /dev/pcie40_${if_id}_bar0 ]; then
#
echo " BAR0 used by:"
#
get_pids /dev/pcie40_${if_id}_bar0 pids_bar0
#
else
#
echo " BAR0 missing!"
#
fi
if
[
-e
/dev/pcie40_
${
if_id
}
_bar2
]
;
then
echo
" BAR2 used by:"
get_pids /dev/pcie40_
${
if_id
}
_bar2 pids_bar2
...
...
@@ -147,12 +147,12 @@ for dev in ${devs[@]}; do
echo
" BAR2 missing!"
fi
fi
if
[
-e
/dev/pcie40_
${
if_id
}
_ctrl
]
;
then
echo
" CTRL used by:"
get_pids /dev/pcie40_
${
if_id
}
_ctrl pids_ctrl
else
echo
" CTRL missing!"
fi
#
if [ -e /dev/pcie40_${if_id}_ctrl ]; then
#
echo " CTRL used by:"
#
get_pids /dev/pcie40_${if_id}_ctrl pids_ctrl
#
else
#
echo " CTRL missing!"
#
fi
done
#ug`pcie40_reload.steps`1
...
...
@@ -220,13 +220,13 @@ for dev in ${devs[@]}; do
# . Checks the presence of the ECS registers
if
[
$((
if_id
%
2
))
-eq
0
]
;
then
echo
-n
" BAR0: "
if
[
-e
/dev/pcie40_
${
if_id
}
_bar0
]
;
then
echo
"OK"
else
echo
"NO"
ok
=
0
fi
#
echo -n " BAR0: "
#
if [ -e /dev/pcie40_${if_id}_bar0 ]; then
#
echo "OK"
#
else
#
echo "NO"
#
ok=0
#
fi
echo
-n
" BAR2: "
if
[
-e
/dev/pcie40_
${
if_id
}
_bar2
]
;
then
echo
"OK"
...
...
@@ -239,13 +239,13 @@ for dev in ${devs[@]}; do
#ug`pcie40_reload.steps`4
# . Checks the presence of the DMA controllers
echo
-n
" CTRL: "
if
[
-e
/dev/pcie40_
${
if_id
}
_ctrl
]
;
then
echo
"OK"
else
echo
"NO"
ok
=
0
fi
#
echo -n " CTRL: "
#
if [ -e /dev/pcie40_${if_id}_ctrl ]; then
#
echo "OK"
#
else
#
echo "NO"
#
ok=0
#
fi
done
if
[
"
$ok
"
-eq
0
]
&&
[
${
QUIET
}
-eq
0
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment