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
7bf4c642
Commit
7bf4c642
authored
Jun 03, 2004
by
Pat Gefre
Committed by
David Mosberger
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: for SN2, disable MST errors on probe
Signed-off-by:
David Mosberger
<
davidm@hpl.hp.com
>
parent
08624481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
3 deletions
+47
-3
arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c
arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c
+47
-3
No files found.
arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c
View file @
7bf4c642
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* License. See the file "COPYING" in the main directory of this archive
* License. See the file "COPYING" in the main directory of this archive
* for more details.
* for more details.
*
*
* Copyright (C) 2001-200
3
Silicon Graphics, Inc. All rights reserved.
* Copyright (C) 2001-200
4
Silicon Graphics, Inc. All rights reserved.
*/
*/
#include <linux/types.h>
#include <linux/types.h>
...
@@ -1615,6 +1615,46 @@ pcibr_piomap_probe(pcibr_piomap_t piomap, off_t offset, int len, void *valp)
...
@@ -1615,6 +1615,46 @@ pcibr_piomap_probe(pcibr_piomap_t piomap, off_t offset, int len, void *valp)
piomap
->
bp_kvaddr
+
offset
,
len
,
valp
);
piomap
->
bp_kvaddr
+
offset
,
len
,
valp
);
}
}
static
uint64_t
pcibr_disable_mst_timeout
(
pcibr_soft_t
pcibr_soft
)
{
uint64_t
old_enable
;
uint64_t
new_enable
;
uint64_t
intr_bits
;
intr_bits
=
PIC_ISR_PCI_MST_TIMEOUT
|
PIC_ISR_PCIX_MTOUT
|
PIC_ISR_PCIX_SPLIT_EMSG
;
old_enable
=
pcireg_intr_enable_get
(
pcibr_soft
);
pcireg_intr_enable_bit_clr
(
pcibr_soft
,
intr_bits
);
new_enable
=
pcireg_intr_enable_get
(
pcibr_soft
);
if
(
old_enable
==
new_enable
)
{
return
0
;
/* was already disabled */
}
else
{
return
1
;
}
}
static
int
pcibr_enable_mst_timeout
(
pcibr_soft_t
pcibr_soft
)
{
uint64_t
old_enable
;
uint64_t
new_enable
;
uint64_t
intr_bits
;
intr_bits
=
PIC_ISR_PCI_MST_TIMEOUT
|
PIC_ISR_PCIX_MTOUT
|
PIC_ISR_PCIX_SPLIT_EMSG
;
old_enable
=
pcireg_intr_enable_get
(
pcibr_soft
);
pcireg_intr_enable_bit_set
(
pcibr_soft
,
intr_bits
);
new_enable
=
pcireg_intr_enable_get
(
pcibr_soft
);
if
(
old_enable
==
new_enable
)
{
return
0
;
/* was alread enabled */
}
else
{
return
1
;
}
}
/*
/*
* pcibr_probe_slot: read a config space word
* pcibr_probe_slot: read a config space word
* while trapping any errors; return zero if
* while trapping any errors; return zero if
...
@@ -1628,7 +1668,7 @@ pcibr_probe_work(pcibr_soft_t pcibr_soft,
...
@@ -1628,7 +1668,7 @@ pcibr_probe_work(pcibr_soft_t pcibr_soft,
int
len
,
int
len
,
void
*
valp
)
void
*
valp
)
{
{
int
rv
;
int
rv
,
changed
;
/*
/*
* Sanity checks ...
* Sanity checks ...
...
@@ -1642,15 +1682,19 @@ pcibr_probe_work(pcibr_soft_t pcibr_soft,
...
@@ -1642,15 +1682,19 @@ pcibr_probe_work(pcibr_soft_t pcibr_soft,
return
-
1
;
/* invalid alignment */
return
-
1
;
/* invalid alignment */
}
}
changed
=
pcibr_disable_mst_timeout
(
pcibr_soft
);
rv
=
snia_badaddr_val
((
void
*
)
addr
,
len
,
valp
);
rv
=
snia_badaddr_val
((
void
*
)
addr
,
len
,
valp
);
/* Clear the int_view register incase it was set */
/* Clear the int_view register incase it was set */
pcireg_intr_reset_set
(
pcibr_soft
,
BRIDGE_IRR_MULTI_CLR
);
pcireg_intr_reset_set
(
pcibr_soft
,
BRIDGE_IRR_MULTI_CLR
);
if
(
changed
)
{
pcibr_enable_mst_timeout
(
pcibr_soft
);
}
return
(
rv
?
1
:
0
);
/* return 1 for snia_badaddr_val error, 0 if ok */
return
(
rv
?
1
:
0
);
/* return 1 for snia_badaddr_val error, 0 if ok */
}
}
void
void
pcibr_device_info_free
(
vertex_hdl_t
pcibr_vhdl
,
pciio_slot_t
slot
)
pcibr_device_info_free
(
vertex_hdl_t
pcibr_vhdl
,
pciio_slot_t
slot
)
{
{
...
...
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