Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
c4d052ce
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c4d052ce
编写于
2月 21, 2017
作者:
B
Bjorn Helgaas
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'pci/virtualization' into next
* pci/virtualization: PCI: Add ACS quirk for Qualcomm QDF2400 and QDF2432
上级
42d87e3f
33be632b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
0 deletion
+23
-0
drivers/pci/quirks.c
drivers/pci/quirks.c
+23
-0
未找到文件。
drivers/pci/quirks.c
浏览文件 @
c4d052ce
...
@@ -4159,6 +4159,26 @@ static int pci_quirk_intel_pch_acs(struct pci_dev *dev, u16 acs_flags)
...
@@ -4159,6 +4159,26 @@ static int pci_quirk_intel_pch_acs(struct pci_dev *dev, u16 acs_flags)
return
acs_flags
&
~
flags
?
0
:
1
;
return
acs_flags
&
~
flags
?
0
:
1
;
}
}
/*
* These QCOM root ports do provide ACS-like features to disable peer
* transactions and validate bus numbers in requests, but do not provide an
* actual PCIe ACS capability. Hardware supports source validation but it
* will report the issue as Completer Abort instead of ACS Violation.
* Hardware doesn't support peer-to-peer and each root port is a root
* complex with unique segment numbers. It is not possible for one root
* port to pass traffic to another root port. All PCIe transactions are
* terminated inside the root port.
*/
static
int
pci_quirk_qcom_rp_acs
(
struct
pci_dev
*
dev
,
u16
acs_flags
)
{
u16
flags
=
(
PCI_ACS_RR
|
PCI_ACS_CR
|
PCI_ACS_UF
|
PCI_ACS_SV
);
int
ret
=
acs_flags
&
~
flags
?
0
:
1
;
dev_info
(
&
dev
->
dev
,
"Using QCOM ACS Quirk (%d)
\n
"
,
ret
);
return
ret
;
}
/*
/*
* Sunrise Point PCH root ports implement ACS, but unfortunately as shown in
* Sunrise Point PCH root ports implement ACS, but unfortunately as shown in
* the datasheet (Intel 100 Series Chipset Family PCH Datasheet, Vol. 2,
* the datasheet (Intel 100 Series Chipset Family PCH Datasheet, Vol. 2,
...
@@ -4315,6 +4335,9 @@ static const struct pci_dev_acs_enabled {
...
@@ -4315,6 +4335,9 @@ static const struct pci_dev_acs_enabled {
/* I219 */
/* I219 */
{
PCI_VENDOR_ID_INTEL
,
0x15b7
,
pci_quirk_mf_endpoint_acs
},
{
PCI_VENDOR_ID_INTEL
,
0x15b7
,
pci_quirk_mf_endpoint_acs
},
{
PCI_VENDOR_ID_INTEL
,
0x15b8
,
pci_quirk_mf_endpoint_acs
},
{
PCI_VENDOR_ID_INTEL
,
0x15b8
,
pci_quirk_mf_endpoint_acs
},
/* QCOM QDF2xxx root ports */
{
0x17cb
,
0x400
,
pci_quirk_qcom_rp_acs
},
{
0x17cb
,
0x401
,
pci_quirk_qcom_rp_acs
},
/* Intel PCH root ports */
/* Intel PCH root ports */
{
PCI_VENDOR_ID_INTEL
,
PCI_ANY_ID
,
pci_quirk_intel_pch_acs
},
{
PCI_VENDOR_ID_INTEL
,
PCI_ANY_ID
,
pci_quirk_intel_pch_acs
},
{
PCI_VENDOR_ID_INTEL
,
PCI_ANY_ID
,
pci_quirk_intel_spt_pch_acs
},
{
PCI_VENDOR_ID_INTEL
,
PCI_ANY_ID
,
pci_quirk_intel_spt_pch_acs
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录