Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
8c64b4cc
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8c64b4cc
编写于
3月 23, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'sfc-2.6.39' of
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-2.6
上级
e6937ee6
d88d6b05
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
2 deletion
+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
未找到文件。
drivers/net/sfc/efx.c
浏览文件 @
8c64b4cc
...
@@ -1054,6 +1054,7 @@ static int efx_init_io(struct efx_nic *efx)
...
@@ -1054,6 +1054,7 @@ static int efx_init_io(struct efx_nic *efx)
{
{
struct
pci_dev
*
pci_dev
=
efx
->
pci_dev
;
struct
pci_dev
*
pci_dev
=
efx
->
pci_dev
;
dma_addr_t
dma_mask
=
efx
->
type
->
max_dma_mask
;
dma_addr_t
dma_mask
=
efx
->
type
->
max_dma_mask
;
bool
use_wc
;
int
rc
;
int
rc
;
netif_dbg
(
efx
,
probe
,
efx
->
net_dev
,
"initialising I/O
\n
"
);
netif_dbg
(
efx
,
probe
,
efx
->
net_dev
,
"initialising I/O
\n
"
);
...
@@ -1104,8 +1105,21 @@ static int efx_init_io(struct efx_nic *efx)
...
@@ -1104,8 +1105,21 @@ static int efx_init_io(struct efx_nic *efx)
rc
=
-
EIO
;
rc
=
-
EIO
;
goto
fail3
;
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
)
{
if
(
!
efx
->
membase
)
{
netif_err
(
efx
,
probe
,
efx
->
net_dev
,
netif_err
(
efx
,
probe
,
efx
->
net_dev
,
"could not map memory BAR at %llx+%x
\n
"
,
"could not map memory BAR at %llx+%x
\n
"
,
...
...
drivers/net/sfc/workarounds.h
浏览文件 @
8c64b4cc
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
#define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
#define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
/* Legacy interrupt storm when interrupt fifo fills */
/* Legacy interrupt storm when interrupt fifo fills */
#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
#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 */
/* Spurious parity errors in TSORT buffers */
#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录