Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
08f1360d
Commit
08f1360d
authored
Mar 08, 2017
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSS9000 Co card, stall action for remote rack added
parent
5cbcdcd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_co.c
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_co.c
+21
-15
No files found.
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_co.c
View file @
08f1360d
...
@@ -327,16 +327,6 @@ static pwr_tStatus IoCardRead (
...
@@ -327,16 +327,6 @@ static pwr_tStatus IoCardRead (
if
(
sts1
==
-
1
||
sts2
==
-
1
)
if
(
sts1
==
-
1
||
sts2
==
-
1
)
{
{
#if 0
if ( io_fatal_error)
{
/* Activate emergency break */
errh_Error( "Fatal read error, card '%s', IO i stopped", cp->Name);
ctx->Node->EmergBreakTrue = 1;
return IO__ERRDEVICE;
}
#endif
/* Increase error count and check error limits */
/* Increase error count and check error limits */
op
->
ErrorCount
++
;
op
->
ErrorCount
++
;
...
@@ -345,14 +335,30 @@ static pwr_tStatus IoCardRead (
...
@@ -345,14 +335,30 @@ static pwr_tStatus IoCardRead (
ctx
->
IOHandler
->
CardErrorSoftLimit
=
1
;
ctx
->
IOHandler
->
CardErrorSoftLimit
=
1
;
ctx
->
IOHandler
->
ErrorSoftLimitObject
=
cdh_ObjidToAref
(
cp
->
Objid
);
ctx
->
IOHandler
->
ErrorSoftLimitObject
=
cdh_ObjidToAref
(
cp
->
Objid
);
}
}
if
(
op
->
ErrorCount
>
=
op
->
ErrorHardLimit
)
if
(
op
->
ErrorCount
=
=
op
->
ErrorHardLimit
)
{
{
errh_Error
(
"IO Error hard limit reached on card '%s', IO stopped"
,
cp
->
Name
);
ctx
->
Node
->
EmergBreakTrue
=
1
;
ctx
->
IOHandler
->
CardErrorHardLimit
=
1
;
ctx
->
IOHandler
->
CardErrorHardLimit
=
1
;
ctx
->
IOHandler
->
ErrorHardLimitObject
=
cdh_ObjidToAref
(
cp
->
Objid
);
ctx
->
IOHandler
->
ErrorHardLimitObject
=
cdh_ObjidToAref
(
cp
->
Objid
);
return
IO__ERRDEVICE
;
}
}
if
(
op
->
ErrorCount
>=
op
->
ErrorHardLimit
)
{
if
(
r_local
->
Qbus_fp
!=
0
&&
r_local
->
s
==
0
)
{
/* Local I/O, emergency break */
ctx
->
Node
->
EmergBreakTrue
=
1
;
if
(
op
->
ErrorCount
==
op
->
ErrorHardLimit
)
errh_Error
(
"IO Error hard limit reached on card '%s', IO stopped"
,
cp
->
Name
);
return
IO__ERRDEVICE
;
}
else
{
/* Ethernet I/O, check stall action */
if
(
op
->
ErrorCount
==
op
->
ErrorHardLimit
)
errh_Error
(
"IO Error hard limit reached on card '%s', stall action %d"
,
cp
->
Name
,
((
pwr_sClass_Ssab_RemoteRack
*
)
rp
->
op
)
->
StallAction
);
if
(
((
pwr_sClass_Ssab_RemoteRack
*
)
rp
->
op
)
->
StallAction
==
pwr_eSsabStallAction_EmergencyBreak
)
{
ctx
->
Node
->
EmergBreakTrue
=
1
;
return
IO__ERRDEVICE
;
}
}
}
continue
;
continue
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment