Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b9984b78
Commit
b9984b78
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sn: Some small bte code clean ups
From: Pat Gefre <pfg@sgi.com> Some small bte code clean ups
parent
050b3e58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
35 deletions
+19
-35
arch/ia64/sn/io/sn2/bte_error.c
arch/ia64/sn/io/sn2/bte_error.c
+3
-28
include/asm-ia64/sn/bte.h
include/asm-ia64/sn/bte.h
+16
-7
No files found.
arch/ia64/sn/io/sn2/bte_error.c
View file @
b9984b78
...
...
@@ -62,36 +62,11 @@ bte_crb_error_handler(vertex_hdl_t hub_v, int btenum,
* in the bte handle structure for the thread excercising the
* interface to consume.
*/
switch
(
ioe
->
ie_errortype
)
{
case
IIO_ICRB_ECODE_PERR
:
bte
->
bh_error
=
BTEFAIL_POISON
;
break
;
case
IIO_ICRB_ECODE_WERR
:
bte
->
bh_error
=
BTEFAIL_PROT
;
break
;
case
IIO_ICRB_ECODE_AERR
:
bte
->
bh_error
=
BTEFAIL_ACCESS
;
break
;
case
IIO_ICRB_ECODE_TOUT
:
bte
->
bh_error
=
BTEFAIL_TOUT
;
break
;
case
IIO_ICRB_ECODE_XTERR
:
bte
->
bh_error
=
BTEFAIL_XTERR
;
break
;
case
IIO_ICRB_ECODE_DERR
:
bte
->
bh_error
=
BTEFAIL_DIR
;
break
;
case
IIO_ICRB_ECODE_PWERR
:
case
IIO_ICRB_ECODE_PRERR
:
/* NO BREAK */
default:
bte
->
bh_error
=
BTEFAIL_ERROR
;
}
bte
->
bh_error
=
ioe
->
ie_errortype
+
BTEFAIL_OFFSET
;
bte
->
bte_error_count
++
;
BTE_PRINTK
((
"Got an error on cnode %d bte %d
\n
"
,
bte
->
bte_cnode
,
bte
->
bte_num
));
BTE_PRINTK
((
"Got an error on cnode %d bte %d
: HW error type 0x%x
\n
"
,
bte
->
bte_cnode
,
bte
->
bte_num
,
ioe
->
ie_errortype
));
bte_error_handler
((
unsigned
long
)
hinfo
->
h_nodepda
);
}
...
...
include/asm-ia64/sn/bte.h
View file @
b9984b78
...
...
@@ -81,16 +81,25 @@
/* Possible results from bte_copy and bte_unaligned_copy */
/* The following error codes map into the BTE hardware codes
* IIO_ICRB_ECODE_* (in shubio.h). The hardware uses
* an error code of 0 (IIO_ICRB_ECODE_DERR), but we want zero
* to mean BTE_SUCCESS, so add one (BTEFAIL_OFFSET) to the error
* codes to give the following error codes.
*/
#define BTEFAIL_OFFSET 1
typedef
enum
{
BTE_SUCCESS
,
/* 0 is success */
BTEFAIL_DIR
,
/* Directory error due to IIO access*/
BTEFAIL_POISON
,
/* poison error on IO access (write to poison page) */
BTEFAIL_WERR
,
/* Write error (ie WINV to a Read only line) */
BTEFAIL_ACCESS
,
/* access error (protection violation) */
BTEFAIL_PWERR
,
/* Partial Write Error */
BTEFAIL_PRERR
,
/* Partial Read Error */
BTEFAIL_TOUT
,
/* CRB Time out */
BTEFAIL_XTERR
,
/* Incoming xtalk pkt had error bit */
BTEFAIL_NOTAVAIL
,
/* BTE not available */
BTEFAIL_POISON
,
/* poison page */
BTEFAIL_PROT
,
/* Protection violation */
BTEFAIL_ACCESS
,
/* access error */
BTEFAIL_TOUT
,
/* Time out */
BTEFAIL_XTERR
,
/* Diretory error */
BTEFAIL_DIR
,
/* Diretory error */
BTEFAIL_ERROR
,
/* Generic error */
}
bte_result_t
;
...
...
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