Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
b5463305
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b5463305
编写于
2月 28, 2006
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
上级
7b14e3b5
56ec6462
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
42 addition
and
23 deletion
+42
-23
arch/powerpc/kernel/vdso64/gettimeofday.S
arch/powerpc/kernel/vdso64/gettimeofday.S
+2
-2
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/hash_utils_64.c
+1
-1
arch/powerpc/platforms/pseries/eeh.c
arch/powerpc/platforms/pseries/eeh.c
+14
-0
arch/powerpc/platforms/pseries/eeh_driver.c
arch/powerpc/platforms/pseries/eeh_driver.c
+1
-1
arch/powerpc/platforms/pseries/pci_dlpar.c
arch/powerpc/platforms/pseries/pci_dlpar.c
+20
-16
include/asm-powerpc/eeh.h
include/asm-powerpc/eeh.h
+4
-3
未找到文件。
arch/powerpc/kernel/vdso64/gettimeofday.S
浏览文件 @
b5463305
...
...
@@ -225,9 +225,9 @@ V_FUNCTION_BEGIN(__do_get_xsec)
.
cfi_startproc
/
*
check
for
update
count
&
load
values
*/
1
:
ld
r8
,
CFG_TB_UPDATE_COUNT
(
r3
)
andi
.
r0
,
r
4
,
1
/*
pending
update
?
loop
*/
andi
.
r0
,
r
8
,
1
/*
pending
update
?
loop
*/
bne
-
1
b
xor
r0
,
r
4
,
r4
/*
create
dependency
*/
xor
r0
,
r
8
,
r8
/*
create
dependency
*/
add
r3
,
r3
,
r0
/
*
Get
TB
&
offset
it
*/
...
...
arch/powerpc/mm/hash_utils_64.c
浏览文件 @
b5463305
...
...
@@ -169,7 +169,7 @@ int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
#ifdef CONFIG_PPC_ISERIES
if
(
_machine
==
PLATFORM_ISERIES_LPAR
)
ret
=
iSeries_hpte_insert
(
hpteg
,
va
,
virt_to_abs
(
p
addr
),
__pa
(
v
addr
),
tmp_mode
,
HPTE_V_BOLTED
,
psize
);
...
...
arch/powerpc/platforms/pseries/eeh.c
浏览文件 @
b5463305
...
...
@@ -893,6 +893,20 @@ void eeh_add_device_tree_early(struct device_node *dn)
}
EXPORT_SYMBOL_GPL
(
eeh_add_device_tree_early
);
void
eeh_add_device_tree_late
(
struct
pci_bus
*
bus
)
{
struct
pci_dev
*
dev
;
list_for_each_entry
(
dev
,
&
bus
->
devices
,
bus_list
)
{
eeh_add_device_late
(
dev
);
if
(
dev
->
hdr_type
==
PCI_HEADER_TYPE_BRIDGE
)
{
struct
pci_bus
*
subbus
=
dev
->
subordinate
;
if
(
subbus
)
eeh_add_device_tree_late
(
subbus
);
}
}
}
/**
* eeh_add_device_late - perform EEH initialization for the indicated pci device
* @dev: pci device for which to set up EEH
...
...
arch/powerpc/platforms/pseries/eeh_driver.c
浏览文件 @
b5463305
...
...
@@ -37,7 +37,7 @@
static
inline
const
char
*
pcid_name
(
struct
pci_dev
*
pdev
)
{
if
(
pdev
->
dev
.
driver
)
if
(
pdev
&&
pdev
->
dev
.
driver
)
return
pdev
->
dev
.
driver
->
name
;
return
""
;
}
...
...
arch/powerpc/platforms/pseries/pci_dlpar.c
浏览文件 @
b5463305
...
...
@@ -106,6 +106,8 @@ pcibios_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus)
}
}
}
eeh_add_device_tree_late
(
bus
);
}
EXPORT_SYMBOL_GPL
(
pcibios_fixup_new_pci_devices
);
...
...
@@ -114,7 +116,6 @@ pcibios_pci_config_bridge(struct pci_dev *dev)
{
u8
sec_busno
;
struct
pci_bus
*
child_bus
;
struct
pci_dev
*
child_dev
;
/* Get busno of downstream bus */
pci_read_config_byte
(
dev
,
PCI_SECONDARY_BUS
,
&
sec_busno
);
...
...
@@ -129,10 +130,6 @@ pcibios_pci_config_bridge(struct pci_dev *dev)
pci_scan_child_bus
(
child_bus
);
list_for_each_entry
(
child_dev
,
&
child_bus
->
devices
,
bus_list
)
{
eeh_add_device_late
(
child_dev
);
}
/* Fixup new pci devices without touching bus struct */
pcibios_fixup_new_pci_devices
(
child_bus
,
0
);
...
...
@@ -160,18 +157,25 @@ pcibios_add_pci_devices(struct pci_bus * bus)
eeh_add_device_tree_early
(
dn
);
/* pci_scan_slot should find all children */
slotno
=
PCI_SLOT
(
PCI_DN
(
dn
->
child
)
->
devfn
);
num
=
pci_scan_slot
(
bus
,
PCI_DEVFN
(
slotno
,
0
));
if
(
num
)
{
pcibios_fixup_new_pci_devices
(
bus
,
1
);
pci_bus_add_devices
(
bus
);
}
if
(
_machine
==
PLATFORM_PSERIES_LPAR
)
{
/* use ofdt-based probe */
of_scan_bus
(
dn
,
bus
);
if
(
!
list_empty
(
&
bus
->
devices
))
{
pcibios_fixup_new_pci_devices
(
bus
,
0
);
pci_bus_add_devices
(
bus
);
}
}
else
{
/* use legacy probe */
slotno
=
PCI_SLOT
(
PCI_DN
(
dn
->
child
)
->
devfn
);
num
=
pci_scan_slot
(
bus
,
PCI_DEVFN
(
slotno
,
0
));
if
(
num
)
{
pcibios_fixup_new_pci_devices
(
bus
,
1
);
pci_bus_add_devices
(
bus
);
}
list_for_each_entry
(
dev
,
&
bus
->
devices
,
bus_list
)
{
eeh_add_device_late
(
dev
);
if
(
dev
->
hdr_type
==
PCI_HEADER_TYPE_BRIDGE
)
pcibios_pci_config_bridge
(
dev
);
list_for_each_entry
(
dev
,
&
bus
->
devices
,
bus_list
)
if
(
dev
->
hdr_type
==
PCI_HEADER_TYPE_BRIDGE
)
pcibios_pci_config_bridge
(
dev
);
}
}
EXPORT_SYMBOL_GPL
(
pcibios_add_pci_devices
);
include/asm-powerpc/eeh.h
浏览文件 @
b5463305
...
...
@@ -27,6 +27,7 @@
#include <linux/string.h>
struct
pci_dev
;
struct
pci_bus
;
struct
device_node
;
#ifdef CONFIG_EEH
...
...
@@ -61,7 +62,7 @@ void __init pci_addr_cache_build(void);
*/
void
eeh_add_device_early
(
struct
device_node
*
);
void
eeh_add_device_tree_early
(
struct
device_node
*
);
void
eeh_add_device_
late
(
struct
pci_dev
*
);
void
eeh_add_device_
tree_late
(
struct
pci_bus
*
);
/**
* eeh_remove_device - undo EEH setup for the indicated pci device
...
...
@@ -116,12 +117,12 @@ static inline void pci_addr_cache_build(void) { }
static
inline
void
eeh_add_device_early
(
struct
device_node
*
dn
)
{
}
static
inline
void
eeh_add_device_late
(
struct
pci_dev
*
dev
)
{
}
static
inline
void
eeh_remove_device
(
struct
pci_dev
*
dev
)
{
}
static
inline
void
eeh_add_device_tree_early
(
struct
device_node
*
dn
)
{
}
static
inline
void
eeh_add_device_tree_late
(
struct
pci_bus
*
bus
)
{
}
static
inline
void
eeh_remove_bus_device
(
struct
pci_dev
*
dev
)
{
}
#define EEH_POSSIBLE_ERROR(val, type) (0)
#define EEH_IO_ERROR_VALUE(size) (-1UL)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录