Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
216c7f92
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看板
提交
216c7f92
编写于
9月 24, 2009
作者:
R
Roland Dreier
浏览文件
操作
浏览文件
下载
差异文件
Merge branches 'ipoib', 'mad', 'mlx4', 'mthca' and 'nes' into for-linus
上级
5ee95120
0e442afd
c57e20dc
d686159e
bdf64381
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
8 deletion
+26
-8
drivers/infiniband/core/mad_rmpp.c
drivers/infiniband/core/mad_rmpp.c
+13
-4
drivers/infiniband/hw/mthca/mthca_catas.c
drivers/infiniband/hw/mthca/mthca_catas.c
+8
-3
drivers/infiniband/hw/nes/nes_nic.c
drivers/infiniband/hw/nes/nes_nic.c
+0
-1
drivers/net/mlx4/fw.c
drivers/net/mlx4/fw.c
+5
-0
未找到文件。
drivers/infiniband/core/mad_rmpp.c
浏览文件 @
216c7f92
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
enum
rmpp_state
{
enum
rmpp_state
{
RMPP_STATE_ACTIVE
,
RMPP_STATE_ACTIVE
,
RMPP_STATE_TIMEOUT
,
RMPP_STATE_TIMEOUT
,
RMPP_STATE_COMPLETE
RMPP_STATE_COMPLETE
,
RMPP_STATE_CANCELING
};
};
struct
mad_rmpp_recv
{
struct
mad_rmpp_recv
{
...
@@ -86,19 +87,23 @@ void ib_cancel_rmpp_recvs(struct ib_mad_agent_private *agent)
...
@@ -86,19 +87,23 @@ void ib_cancel_rmpp_recvs(struct ib_mad_agent_private *agent)
unsigned
long
flags
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
agent
->
lock
,
flags
);
spin_lock_irqsave
(
&
agent
->
lock
,
flags
);
list_for_each_entry
(
rmpp_recv
,
&
agent
->
rmpp_list
,
list
)
{
if
(
rmpp_recv
->
state
!=
RMPP_STATE_COMPLETE
)
ib_free_recv_mad
(
rmpp_recv
->
rmpp_wc
);
rmpp_recv
->
state
=
RMPP_STATE_CANCELING
;
}
spin_unlock_irqrestore
(
&
agent
->
lock
,
flags
);
list_for_each_entry
(
rmpp_recv
,
&
agent
->
rmpp_list
,
list
)
{
list_for_each_entry
(
rmpp_recv
,
&
agent
->
rmpp_list
,
list
)
{
cancel_delayed_work
(
&
rmpp_recv
->
timeout_work
);
cancel_delayed_work
(
&
rmpp_recv
->
timeout_work
);
cancel_delayed_work
(
&
rmpp_recv
->
cleanup_work
);
cancel_delayed_work
(
&
rmpp_recv
->
cleanup_work
);
}
}
spin_unlock_irqrestore
(
&
agent
->
lock
,
flags
);
flush_workqueue
(
agent
->
qp_info
->
port_priv
->
wq
);
flush_workqueue
(
agent
->
qp_info
->
port_priv
->
wq
);
list_for_each_entry_safe
(
rmpp_recv
,
temp_rmpp_recv
,
list_for_each_entry_safe
(
rmpp_recv
,
temp_rmpp_recv
,
&
agent
->
rmpp_list
,
list
)
{
&
agent
->
rmpp_list
,
list
)
{
list_del
(
&
rmpp_recv
->
list
);
list_del
(
&
rmpp_recv
->
list
);
if
(
rmpp_recv
->
state
!=
RMPP_STATE_COMPLETE
)
ib_free_recv_mad
(
rmpp_recv
->
rmpp_wc
);
destroy_rmpp_recv
(
rmpp_recv
);
destroy_rmpp_recv
(
rmpp_recv
);
}
}
}
}
...
@@ -260,6 +265,10 @@ static void recv_cleanup_handler(struct work_struct *work)
...
@@ -260,6 +265,10 @@ static void recv_cleanup_handler(struct work_struct *work)
unsigned
long
flags
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
rmpp_recv
->
agent
->
lock
,
flags
);
spin_lock_irqsave
(
&
rmpp_recv
->
agent
->
lock
,
flags
);
if
(
rmpp_recv
->
state
==
RMPP_STATE_CANCELING
)
{
spin_unlock_irqrestore
(
&
rmpp_recv
->
agent
->
lock
,
flags
);
return
;
}
list_del
(
&
rmpp_recv
->
list
);
list_del
(
&
rmpp_recv
->
list
);
spin_unlock_irqrestore
(
&
rmpp_recv
->
agent
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
rmpp_recv
->
agent
->
lock
,
flags
);
destroy_rmpp_recv
(
rmpp_recv
);
destroy_rmpp_recv
(
rmpp_recv
);
...
...
drivers/infiniband/hw/mthca/mthca_catas.c
浏览文件 @
216c7f92
...
@@ -68,11 +68,16 @@ static void catas_reset(struct work_struct *work)
...
@@ -68,11 +68,16 @@ static void catas_reset(struct work_struct *work)
spin_unlock_irq
(
&
catas_lock
);
spin_unlock_irq
(
&
catas_lock
);
list_for_each_entry_safe
(
dev
,
tmpdev
,
&
tlist
,
catas_err
.
list
)
{
list_for_each_entry_safe
(
dev
,
tmpdev
,
&
tlist
,
catas_err
.
list
)
{
struct
pci_dev
*
pdev
=
dev
->
pdev
;
ret
=
__mthca_restart_one
(
dev
->
pdev
);
ret
=
__mthca_restart_one
(
dev
->
pdev
);
/* 'dev' now is not valid */
if
(
ret
)
if
(
ret
)
mthca_err
(
dev
,
"Reset failed (%d)
\n
"
,
ret
);
printk
(
KERN_ERR
"mthca %s: Reset failed (%d)
\n
"
,
else
pci_name
(
pdev
),
ret
);
mthca_dbg
(
dev
,
"Reset succeeded
\n
"
);
else
{
struct
mthca_dev
*
d
=
pci_get_drvdata
(
pdev
);
mthca_dbg
(
d
,
"Reset succeeded
\n
"
);
}
}
}
mutex_unlock
(
&
mthca_device_mutex
);
mutex_unlock
(
&
mthca_device_mutex
);
...
...
drivers/infiniband/hw/nes/nes_nic.c
浏览文件 @
216c7f92
...
@@ -1566,7 +1566,6 @@ static const struct net_device_ops nes_netdev_ops = {
...
@@ -1566,7 +1566,6 @@ static const struct net_device_ops nes_netdev_ops = {
.
ndo_set_mac_address
=
nes_netdev_set_mac_address
,
.
ndo_set_mac_address
=
nes_netdev_set_mac_address
,
.
ndo_set_multicast_list
=
nes_netdev_set_multicast_list
,
.
ndo_set_multicast_list
=
nes_netdev_set_multicast_list
,
.
ndo_change_mtu
=
nes_netdev_change_mtu
,
.
ndo_change_mtu
=
nes_netdev_change_mtu
,
.
ndo_set_mac_address
=
eth_mac_addr
,
.
ndo_validate_addr
=
eth_validate_addr
,
.
ndo_validate_addr
=
eth_validate_addr
,
.
ndo_vlan_rx_register
=
nes_netdev_vlan_rx_register
,
.
ndo_vlan_rx_register
=
nes_netdev_vlan_rx_register
,
};
};
...
...
drivers/net/mlx4/fw.c
浏览文件 @
216c7f92
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
*/
*/
#include <linux/mlx4/cmd.h>
#include <linux/mlx4/cmd.h>
#include <linux/cache.h>
#include "fw.h"
#include "fw.h"
#include "icm.h"
#include "icm.h"
...
@@ -698,6 +699,7 @@ int mlx4_INIT_HCA(struct mlx4_dev *dev, struct mlx4_init_hca_param *param)
...
@@ -698,6 +699,7 @@ int mlx4_INIT_HCA(struct mlx4_dev *dev, struct mlx4_init_hca_param *param)
#define INIT_HCA_IN_SIZE 0x200
#define INIT_HCA_IN_SIZE 0x200
#define INIT_HCA_VERSION_OFFSET 0x000
#define INIT_HCA_VERSION_OFFSET 0x000
#define INIT_HCA_VERSION 2
#define INIT_HCA_VERSION 2
#define INIT_HCA_CACHELINE_SZ_OFFSET 0x0e
#define INIT_HCA_FLAGS_OFFSET 0x014
#define INIT_HCA_FLAGS_OFFSET 0x014
#define INIT_HCA_QPC_OFFSET 0x020
#define INIT_HCA_QPC_OFFSET 0x020
#define INIT_HCA_QPC_BASE_OFFSET (INIT_HCA_QPC_OFFSET + 0x10)
#define INIT_HCA_QPC_BASE_OFFSET (INIT_HCA_QPC_OFFSET + 0x10)
...
@@ -735,6 +737,9 @@ int mlx4_INIT_HCA(struct mlx4_dev *dev, struct mlx4_init_hca_param *param)
...
@@ -735,6 +737,9 @@ int mlx4_INIT_HCA(struct mlx4_dev *dev, struct mlx4_init_hca_param *param)
*
((
u8
*
)
mailbox
->
buf
+
INIT_HCA_VERSION_OFFSET
)
=
INIT_HCA_VERSION
;
*
((
u8
*
)
mailbox
->
buf
+
INIT_HCA_VERSION_OFFSET
)
=
INIT_HCA_VERSION
;
*
((
u8
*
)
mailbox
->
buf
+
INIT_HCA_CACHELINE_SZ_OFFSET
)
=
(
ilog2
(
cache_line_size
())
-
4
)
<<
5
;
#if defined(__LITTLE_ENDIAN)
#if defined(__LITTLE_ENDIAN)
*
(
inbox
+
INIT_HCA_FLAGS_OFFSET
/
4
)
&=
~
cpu_to_be32
(
1
<<
1
);
*
(
inbox
+
INIT_HCA_FLAGS_OFFSET
/
4
)
&=
~
cpu_to_be32
(
1
<<
1
);
#elif defined(__BIG_ENDIAN)
#elif defined(__BIG_ENDIAN)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录