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
8c64b4cc
Commit
8c64b4cc
authored
Mar 23, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sfc-2.6.39' of
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-2.6
parents
e6937ee6
d88d6b05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
drivers/net/sfc/efx.c
drivers/net/sfc/efx.c
+16
-2
drivers/net/sfc/workarounds.h
drivers/net/sfc/workarounds.h
+2
-0
No files found.
drivers/net/sfc/efx.c
View file @
8c64b4cc
...
...
@@ -1054,6 +1054,7 @@ static int efx_init_io(struct efx_nic *efx)
{
struct
pci_dev
*
pci_dev
=
efx
->
pci_dev
;
dma_addr_t
dma_mask
=
efx
->
type
->
max_dma_mask
;
bool
use_wc
;
int
rc
;
netif_dbg
(
efx
,
probe
,
efx
->
net_dev
,
"initialising I/O
\n
"
);
...
...
@@ -1104,8 +1105,21 @@ static int efx_init_io(struct efx_nic *efx)
rc
=
-
EIO
;
goto
fail3
;
}
efx
->
membase
=
ioremap_wc
(
efx
->
membase_phys
,
efx
->
type
->
mem_map_size
);
/* bug22643: If SR-IOV is enabled then tx push over a write combined
* mapping is unsafe. We need to disable write combining in this case.
* MSI is unsupported when SR-IOV is enabled, and the firmware will
* have removed the MSI capability. So write combining is safe if
* there is an MSI capability.
*/
use_wc
=
(
!
EFX_WORKAROUND_22643
(
efx
)
||
pci_find_capability
(
pci_dev
,
PCI_CAP_ID_MSI
));
if
(
use_wc
)
efx
->
membase
=
ioremap_wc
(
efx
->
membase_phys
,
efx
->
type
->
mem_map_size
);
else
efx
->
membase
=
ioremap_nocache
(
efx
->
membase_phys
,
efx
->
type
->
mem_map_size
);
if
(
!
efx
->
membase
)
{
netif_err
(
efx
,
probe
,
efx
->
net_dev
,
"could not map memory BAR at %llx+%x
\n
"
,
...
...
drivers/net/sfc/workarounds.h
View file @
8c64b4cc
...
...
@@ -38,6 +38,8 @@
#define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
/* Legacy interrupt storm when interrupt fifo fills */
#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
/* Write combining and sriov=enabled are incompatible */
#define EFX_WORKAROUND_22643 EFX_WORKAROUND_SIENA
/* Spurious parity errors in TSORT buffers */
#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
...
...
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