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
c9607cc0
Commit
c9607cc0
authored
Feb 10, 2004
by
Grant Grundler
Committed by
David S. Miller
Feb 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Reset GRC, if necessary, before DMA test.
With help from Michael Chan.
parent
3783ad83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
drivers/net/tg3.c
drivers/net/tg3.c
+16
-1
No files found.
drivers/net/tg3.c
View file @
c9607cc0
...
@@ -3420,7 +3420,10 @@ static int tg3_abort_hw(struct tg3 *tp)
...
@@ -3420,7 +3420,10 @@ static int tg3_abort_hw(struct tg3 *tp)
if
(
err
)
if
(
err
)
goto
out
;
goto
out
;
memset
(
tp
->
hw_status
,
0
,
TG3_HW_STATUS_SIZE
);
if
(
tp
->
hw_status
)
memset
(
tp
->
hw_status
,
0
,
TG3_HW_STATUS_SIZE
);
if
(
tp
->
hw_stats
)
memset
(
tp
->
hw_stats
,
0
,
sizeof
(
struct
tg3_hw_stats
));
out:
out:
return
err
;
return
err
;
...
@@ -7750,6 +7753,18 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
...
@@ -7750,6 +7753,18 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
goto
err_out_iounmap
;
goto
err_out_iounmap
;
}
}
/*
* Reset chip in case UNDI or EFI driver did not shutdown
* DMA self test will enable WDMAC and we'll see (spurious)
* pending DMA on the PCI bus at that point.
*/
if
((
tr32
(
HOSTCC_MODE
)
&
HOSTCC_MODE_ENABLE
)
||
(
tr32
(
WDMAC_MODE
)
&
WDMAC_MODE_ENABLE
))
{
pci_save_state
(
tp
->
pdev
,
tp
->
pci_cfg_state
);
tw32
(
MEMARB_MODE
,
MEMARB_MODE_ENABLE
);
tg3_halt
(
tp
);
}
err
=
tg3_test_dma
(
tp
);
err
=
tg3_test_dma
(
tp
);
if
(
err
)
{
if
(
err
)
{
printk
(
KERN_ERR
PFX
"DMA engine test failed, aborting.
\n
"
);
printk
(
KERN_ERR
PFX
"DMA engine test failed, aborting.
\n
"
);
...
...
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