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
Kirill Smelkov
linux
Commits
b41a3eec
Commit
b41a3eec
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: One less panic
From: Pat Gefre <pfg@sgi.com> One less panic
parent
5aa27b7b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
arch/ia64/sn/io/sn2/ml_iograph.c
arch/ia64/sn/io/sn2/ml_iograph.c
+6
-3
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
+19
-0
No files found.
arch/ia64/sn/io/sn2/ml_iograph.c
View file @
b41a3eec
...
@@ -587,11 +587,14 @@ io_init_node(cnodeid_t cnodeid)
...
@@ -587,11 +587,14 @@ io_init_node(cnodeid_t cnodeid)
npdap
->
basew_id
=
0
;
npdap
->
basew_id
=
0
;
}
else
{
}
else
{
npdap
->
basew_id
=
(((
*
(
volatile
int32_t
*
)(
NODE_SWIN_BASE
(
COMPACT_TO_NASID_NODEID
(
cnodeid
),
0
)
+
BRIDGE_WID_CONTROL
)))
&
WIDGET_WIDGET_ID
);
void
*
bridge
;
extern
uint64_t
pcireg_control_get
(
void
*
);
panic
(
" ****io_init_node: Unknown Widget Part Number 0x%x Widget ID 0x%x attached to Hubv 0x%p ****
\n
"
,
widget_partnum
,
npdap
->
basew_id
,
(
void
*
)
hubv
);
bridge
=
(
void
*
)
NODE_SWIN_BASE
(
COMPACT_TO_NASID_NODEID
(
cnodeid
),
0
);
npdap
->
basew_id
=
pcireg_control_get
(
bridge
)
&
WIDGET_WIDGET_ID
;
/*NOTREACHED*/
printk
(
" ****io_init_node: Unknown Widget Part Number 0x%x Widget ID 0x%x attached to Hubv 0x%p ****
\n
"
,
widget_partnum
,
npdap
->
basew_id
,
(
void
*
)
hubv
);
return
;
}
}
{
{
char
widname
[
10
];
char
widname
[
10
];
...
...
arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
View file @
b41a3eec
...
@@ -17,6 +17,25 @@
...
@@ -17,6 +17,25 @@
#define IS_IOADDR(ptr) (!(((uint64_t)(ptr) & CAC_BASE) == CAC_BASE))
#define IS_IOADDR(ptr) (!(((uint64_t)(ptr) & CAC_BASE) == CAC_BASE))
/*
* Control Register Access -- Read/Write 0000_0020
*/
uint64_t
pcireg_control_get
(
void
*
ptr
)
{
uint64_t
ret
=
0
;
pic_t
*
bridge
;
if
(
IS_IOADDR
(
ptr
)
)
bridge
=
(
pic_t
*
)
ptr
;
else
bridge
=
(
pic_t
*
)((
pcibr_soft_t
)(
ptr
))
->
bs_base
;
ret
=
((
pic_t
*
)
bridge
)
->
p_wid_control
;
return
ret
;
}
void
void
pcireg_intr_enable_bit_clr
(
void
*
ptr
,
uint64_t
bits
)
pcireg_intr_enable_bit_clr
(
void
*
ptr
,
uint64_t
bits
)
{
{
...
...
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