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
a1027f20
Commit
a1027f20
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: A few small clean ups
From: Pat Gefre <pfg@sgi.com> A few small clean ups
parent
86d60daa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
14 deletions
+32
-14
arch/ia64/sn/io/platform_init/irix_io_init.c
arch/ia64/sn/io/platform_init/irix_io_init.c
+2
-0
arch/ia64/sn/io/sn2/klgraph.c
arch/ia64/sn/io/sn2/klgraph.c
+2
-3
arch/ia64/sn/io/sn2/ml_SN_init.c
arch/ia64/sn/io/sn2/ml_SN_init.c
+22
-7
arch/ia64/sn/kernel/setup.c
arch/ia64/sn/kernel/setup.c
+6
-0
include/asm-ia64/sn/ioerror.h
include/asm-ia64/sn/ioerror.h
+0
-4
No files found.
arch/ia64/sn/io/platform_init/irix_io_init.c
View file @
a1027f20
...
@@ -26,6 +26,8 @@ extern vertex_hdl_t hwgraph_root;
...
@@ -26,6 +26,8 @@ extern vertex_hdl_t hwgraph_root;
extern
void
io_module_init
(
void
);
extern
void
io_module_init
(
void
);
extern
int
pci_bus_to_hcl_cvlink
(
void
);
extern
int
pci_bus_to_hcl_cvlink
(
void
);
nasid_t
master_baseio_nasid
;
nasid_t
master_nasid
=
INVALID_NASID
;
/* This is the partition master nasid */
/*
/*
* This routine is responsible for the setup of all the IRIX hwgraph style
* This routine is responsible for the setup of all the IRIX hwgraph style
...
...
arch/ia64/sn/io/sn2/klgraph.c
View file @
a1027f20
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#define GRPRINTF(x)
#define GRPRINTF(x)
#endif
#endif
extern
char
arg_maxnodes
[];
void
mark_cpuvertex_as_cpu
(
vertex_hdl_t
vhdl
,
cpuid_t
cpuid
);
void
mark_cpuvertex_as_cpu
(
vertex_hdl_t
vhdl
,
cpuid_t
cpuid
);
...
@@ -159,7 +158,7 @@ klhwg_add_xbow(cnodeid_t cnode, nasid_t nasid)
...
@@ -159,7 +158,7 @@ klhwg_add_xbow(cnodeid_t cnode, nasid_t nasid)
printk
(
KERN_WARNING
"klhwg_add_xbow: Check for "
printk
(
KERN_WARNING
"klhwg_add_xbow: Check for "
"working routers and router links!"
);
"working routers and router links!"
);
p
anic
(
"klhwg_add_xbow: Failed to add "
p
rintk
(
"klhwg_add_xbow: Failed to add "
"edge: vertex 0x%p to vertex 0x%p,"
"edge: vertex 0x%p to vertex 0x%p,"
"error %d
\n
"
,
"error %d
\n
"
,
(
void
*
)
hubv
,
(
void
*
)
xbow_v
,
err
);
(
void
*
)
hubv
,
(
void
*
)
xbow_v
,
err
);
...
@@ -346,7 +345,7 @@ klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd,
...
@@ -346,7 +345,7 @@ klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd,
/* We don't know what to do with multiple router components */
/* We don't know what to do with multiple router components */
if
(
brd
->
brd_numcompts
!=
1
)
{
if
(
brd
->
brd_numcompts
!=
1
)
{
p
anic
(
"klhwg_connect_one_router: %d cmpts on router
\n
"
,
p
rintk
(
"klhwg_connect_one_router: %d cmpts on router
\n
"
,
brd
->
brd_numcompts
);
brd
->
brd_numcompts
);
return
;
return
;
}
}
...
...
arch/ia64/sn/io/sn2/ml_SN_init.c
View file @
a1027f20
...
@@ -23,10 +23,6 @@ int maxcpus;
...
@@ -23,10 +23,6 @@ int maxcpus;
extern
xwidgetnum_t
hub_widget_id
(
nasid_t
);
extern
xwidgetnum_t
hub_widget_id
(
nasid_t
);
nasid_t
master_nasid
=
INVALID_NASID
;
/* This is the partition master nasid */
nasid_t
master_baseio_nasid
=
INVALID_NASID
;
/* This is the master base I/O nasid */
/* XXX - Move the meat of this to intr.c ? */
/* XXX - Move the meat of this to intr.c ? */
/*
/*
* Set up the platform-dependent fields in the nodepda.
* Set up the platform-dependent fields in the nodepda.
...
@@ -34,22 +30,26 @@ nasid_t master_baseio_nasid = INVALID_NASID; /* This is the master base I/O nasi
...
@@ -34,22 +30,26 @@ nasid_t master_baseio_nasid = INVALID_NASID; /* This is the master base I/O nasi
void
init_platform_nodepda
(
nodepda_t
*
npda
,
cnodeid_t
node
)
void
init_platform_nodepda
(
nodepda_t
*
npda
,
cnodeid_t
node
)
{
{
hubinfo_t
hubinfo
;
hubinfo_t
hubinfo
;
nasid_t
nasid
;
extern
void
router_map_init
(
nodepda_t
*
);
extern
void
router_map_init
(
nodepda_t
*
);
extern
void
router_queue_init
(
nodepda_t
*
,
cnodeid_t
);
extern
void
router_queue_init
(
nodepda_t
*
,
cnodeid_t
);
extern
void
intr_init_vecblk
(
nodepda_t
*
,
cnodeid_t
,
int
);
extern
void
intr_init_vecblk
(
nodepda_t
*
,
cnodeid_t
,
int
);
/* Allocate per-node platform-dependent data */
/* Allocate per-node platform-dependent data */
nasid
=
COMPACT_TO_NASID_NODEID
(
node
);
if
(
node
>=
numnodes
)
/* Headless/memless IO nodes */
hubinfo
=
(
hubinfo_t
)
alloc_bootmem_node
(
NODE_DATA
(
0
),
sizeof
(
struct
hubinfo_s
));
else
hubinfo
=
(
hubinfo_t
)
alloc_bootmem_node
(
NODE_DATA
(
node
),
sizeof
(
struct
hubinfo_s
));
hubinfo
=
(
hubinfo_t
)
alloc_bootmem_node
(
NODE_DATA
(
node
),
sizeof
(
struct
hubinfo_s
));
npda
->
pdinfo
=
(
void
*
)
hubinfo
;
npda
->
pdinfo
=
(
void
*
)
hubinfo
;
hubinfo
->
h_nodepda
=
npda
;
hubinfo
->
h_nodepda
=
npda
;
hubinfo
->
h_cnodeid
=
node
;
hubinfo
->
h_cnodeid
=
node
;
hubinfo
->
h_nasid
=
COMPACT_TO_NASID_NODEID
(
node
);
spin_lock_init
(
&
hubinfo
->
h_crblock
);
spin_lock_init
(
&
hubinfo
->
h_crblock
);
hubinfo
->
h_widgetid
=
hub_widget_id
(
hubinfo
->
h_nasid
);
npda
->
xbow_peer
=
INVALID_NASID
;
npda
->
xbow_peer
=
INVALID_NASID
;
/*
/*
...
@@ -69,6 +69,21 @@ void init_platform_nodepda(nodepda_t *npda, cnodeid_t node)
...
@@ -69,6 +69,21 @@ void init_platform_nodepda(nodepda_t *npda, cnodeid_t node)
init_MUTEX_LOCKED
(
&
npda
->
xbow_sema
);
/* init it locked? */
init_MUTEX_LOCKED
(
&
npda
->
xbow_sema
);
/* init it locked? */
}
}
void
init_platform_hubinfo
(
nodepda_t
**
nodepdaindr
)
{
cnodeid_t
cnode
;
hubinfo_t
hubinfo
;
nodepda_t
*
npda
;
extern
int
numionodes
;
for
(
cnode
=
0
;
cnode
<
numionodes
;
cnode
++
)
{
npda
=
nodepdaindr
[
cnode
];
hubinfo
=
(
hubinfo_t
)
npda
->
pdinfo
;
hubinfo
->
h_nasid
=
COMPACT_TO_NASID_NODEID
(
cnode
);
hubinfo
->
h_widgetid
=
hub_widget_id
(
hubinfo
->
h_nasid
);
}
}
void
void
update_node_information
(
cnodeid_t
cnodeid
)
update_node_information
(
cnodeid_t
cnodeid
)
{
{
...
...
arch/ia64/sn/kernel/setup.c
View file @
a1027f20
...
@@ -287,6 +287,12 @@ sn_setup(char **cmdline_p)
...
@@ -287,6 +287,12 @@ sn_setup(char **cmdline_p)
*/
*/
sn_cpu_init
();
sn_cpu_init
();
/*
* Setup hubinfo stuff. Has to happen AFTER sn_cpu_init(),
* because it uses the cnode to nasid tables.
*/
init_platform_hubinfo
(
nodepdaindr
);
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
init_smp_config
();
init_smp_config
();
#endif
#endif
...
...
include/asm-ia64/sn/ioerror.h
View file @
a1027f20
...
@@ -184,13 +184,9 @@ typedef enum {
...
@@ -184,13 +184,9 @@ typedef enum {
typedef
int
error_handler_f
(
void
*
,
int
,
ioerror_mode_t
,
ioerror_t
*
);
typedef
int
error_handler_f
(
void
*
,
int
,
ioerror_mode_t
,
ioerror_t
*
);
typedef
void
*
error_handler_arg_t
;
typedef
void
*
error_handler_arg_t
;
extern
void
sn_ioerror_dump
(
char
*
,
int
,
int
,
ioerror_t
*
);
#ifdef ERROR_DEBUG
#ifdef ERROR_DEBUG
#define IOERROR_DUMP(x, y, z, t) sn_ioerror_dump((x), (y), (z), (t))
#define IOERR_PRINTF(x) (x)
#define IOERR_PRINTF(x) (x)
#else
#else
#define IOERROR_DUMP(x, y, z, t)
#define IOERR_PRINTF(x)
#define IOERR_PRINTF(x)
#endif
/* ERROR_DEBUG */
#endif
/* ERROR_DEBUG */
...
...
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