登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
128
Star
73
Fork
330
src-openEuler
/
kernel
关闭
代码
Issues
1197
Pull Requests
35
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[20.03-lts-sp4]Add the feature of pcie PTT and Add support 4TB bar
已完成
#I8ATME
任务
YangYunYi
创建于
2023-10-25 16:08
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 1. PCIe PTT feature The PCIe trace and tuning (PTT) function is used to debug and optimize the parameters of a specific PCIe link, filter the TLP packet headers on a specific link, and trace and record the TLP packet headers. It provides support for developers to debug, monitor, and optimize PCIe links. The main functions are as follows: - Tuning: Parameters of a specified link are supported. (Link Credit, Link DLLP policy, Buffer threshold setting, and data path QoS) Optimize the settings. - Trace: Traces and records packets sent and received by a specified function to the memory, and filters packets of a specified type (Post, nonPost, or Completion). To implement the preceding features: - the driver needs to be modified to support the PCIe Tune and Trace functions, and the corresponding documents need to be provided. - the SMMU needs to support PTT DMA quirk. - perf tools needs to support PTT trace. 2. PCIe 4 TB BAR function Some devices require 4 TB BAR space to meet the address requirements on the card side. Reserve a certain amount of space for future expansion and increase the space to 8 TB. Currently, the Linux kernel supports a maximum of 128 GB BAR devices and does not support 4 TB BAR allocation. Therefore, the kernel PCI resource management is modified and the BIOS 64-bit memory window is customized. **Patch information:** |name | Patch Description |Modification Type| Issue| |---|---|---|----| |PCI: Support BAR sizes up to 8TB |The bar size supported by some PCIe cards may reach 4 TB or 8 TB. However, the maximum bar size supported by the current kernel is 128 GB. Therefore, the maximum bar size supported by PCIe cards is changed. |无冲突|https://gitee.com/openeuler/kernel/issues/I6XOIU| |MAINTAINERS: Add maintainer for HiSilicon PTT driver |Add the maintainers involved in the hisi pcie ptt function. |仅修改maintainer文件|https://gitee.com/openeuler/kernel/issues/I5RP8T| |docs: trace: Add HiSilicon PTT device driver documentation |Add the documents the hisi pcie ptt function.| 新增特性文档|https://gitee.com/openeuler/kernel/issues/I5RP8T| |genirq: Export affinity setter for modules |The irq_set_affinity() interface needs to be invoked in the hisi pcie ptt function. However, this interface is a static interface. Therefore, it is changed to a normal interface. |无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu: Add def_domain_type() callback in iommu_ops| Modify device_domain_type() callback in the iommu_ops, so that any special requirement of default domain for a device could be aware by the iommu generic layer.|合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity | Add a quirk for the device to force the domain as passthrough. |合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu/arm-smmu-v3: Integrate the function for obtain.| When the CONFIG_SMMU_BYPASS_DEV macro is enabled, the obtaining of domain type is encapsulated as a function as a step in arm_smmu_device_domian_type function..|合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device |Add the driver for the device to enable the trace function.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I63WFC | |hwtracing: hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device |Add tune function for the HiSilicon Tune and Trace device. The interface of tune is exposed through sysfs attributes of PTT PMU device. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Fix up for "iommu/dma: Make header private" |Fix the error of include private header file. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Only add the supported devices to the filters list| The PTT device can only filter the devices on the same PCIe core, within BDF range [lower_bdf, upper_bdf]. Add the miss checking when initialize the filters list. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I60FNG | |hwtracing: hisi_ptt: Factor out filter allocation and release operation |Factor out the allocation and release of filters. This will make it easier to extend and manage the function of the filter.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX |hwtracing: hisi_ptt: Add support for dynamically updating the filter list| Add support for dynamically updating the available filter list by registering a PCI bus notifier block. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX| |hwtracing: hisi_ptt: Export available filters through sysfs| Export the available filters through sysfs. Each available filters is presented as an individual file with the name of the BDF number of the related PCIe device. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU |The PTT trace collects PCIe TLP headers from the PCIe link and don't have the ability to exclude certain context. It doesn't support itrace as well. So only advertise PERF_PMU_CAP_NO_EXCLUDE. | 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Fix potential sleep in atomic context |Cached the interrupt number in the probe() and uses the cached data instead to avoid potential sleep.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Keep to advertise PERF_PMU_CAP_EXCLUSIVE |Keep to advertise PERF_PMU_CAP_EXCLUSIVE. Such pmus can only have one event scheduled at a time, and the perf tool will report device busy. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7F2F2| |hwtracing: hisi_ptt: Add dummy callback pmu::read()| When the perf is tracing hisi_ptt pmu and then stopped immediately with "ctrl + c". the perf will call pmu::read() to updata trace data |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7F2F2| |config: arm64: Enable config of hisi ptt | Set CONFIG_HISI_PTT to m | 仅修改openeuler_defconfig | https://gitee.com/openeuler/kernel/issues/I7F2F2|
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 1. PCIe PTT feature The PCIe trace and tuning (PTT) function is used to debug and optimize the parameters of a specific PCIe link, filter the TLP packet headers on a specific link, and trace and record the TLP packet headers. It provides support for developers to debug, monitor, and optimize PCIe links. The main functions are as follows: - Tuning: Parameters of a specified link are supported. (Link Credit, Link DLLP policy, Buffer threshold setting, and data path QoS) Optimize the settings. - Trace: Traces and records packets sent and received by a specified function to the memory, and filters packets of a specified type (Post, nonPost, or Completion). To implement the preceding features: - the driver needs to be modified to support the PCIe Tune and Trace functions, and the corresponding documents need to be provided. - the SMMU needs to support PTT DMA quirk. - perf tools needs to support PTT trace. 2. PCIe 4 TB BAR function Some devices require 4 TB BAR space to meet the address requirements on the card side. Reserve a certain amount of space for future expansion and increase the space to 8 TB. Currently, the Linux kernel supports a maximum of 128 GB BAR devices and does not support 4 TB BAR allocation. Therefore, the kernel PCI resource management is modified and the BIOS 64-bit memory window is customized. **Patch information:** |name | Patch Description |Modification Type| Issue| |---|---|---|----| |PCI: Support BAR sizes up to 8TB |The bar size supported by some PCIe cards may reach 4 TB or 8 TB. However, the maximum bar size supported by the current kernel is 128 GB. Therefore, the maximum bar size supported by PCIe cards is changed. |无冲突|https://gitee.com/openeuler/kernel/issues/I6XOIU| |MAINTAINERS: Add maintainer for HiSilicon PTT driver |Add the maintainers involved in the hisi pcie ptt function. |仅修改maintainer文件|https://gitee.com/openeuler/kernel/issues/I5RP8T| |docs: trace: Add HiSilicon PTT device driver documentation |Add the documents the hisi pcie ptt function.| 新增特性文档|https://gitee.com/openeuler/kernel/issues/I5RP8T| |genirq: Export affinity setter for modules |The irq_set_affinity() interface needs to be invoked in the hisi pcie ptt function. However, this interface is a static interface. Therefore, it is changed to a normal interface. |无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu: Add def_domain_type() callback in iommu_ops| Modify device_domain_type() callback in the iommu_ops, so that any special requirement of default domain for a device could be aware by the iommu generic layer.|合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity | Add a quirk for the device to force the domain as passthrough. |合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |iommu/arm-smmu-v3: Integrate the function for obtain.| When the CONFIG_SMMU_BYPASS_DEV macro is enabled, the obtaining of domain type is encapsulated as a function as a step in arm_smmu_device_domian_type function..|合并时存在冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device |Add the driver for the device to enable the trace function.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I63WFC | |hwtracing: hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device |Add tune function for the HiSilicon Tune and Trace device. The interface of tune is exposed through sysfs attributes of PTT PMU device. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Fix up for "iommu/dma: Make header private" |Fix the error of include private header file. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I5RP8T| |hwtracing: hisi_ptt: Only add the supported devices to the filters list| The PTT device can only filter the devices on the same PCIe core, within BDF range [lower_bdf, upper_bdf]. Add the miss checking when initialize the filters list. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I60FNG | |hwtracing: hisi_ptt: Factor out filter allocation and release operation |Factor out the allocation and release of filters. This will make it easier to extend and manage the function of the filter.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX |hwtracing: hisi_ptt: Add support for dynamically updating the filter list| Add support for dynamically updating the available filter list by registering a PCI bus notifier block. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX| |hwtracing: hisi_ptt: Export available filters through sysfs| Export the available filters through sysfs. Each available filters is presented as an individual file with the name of the BDF number of the related PCIe device. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU |The PTT trace collects PCIe TLP headers from the PCIe link and don't have the ability to exclude certain context. It doesn't support itrace as well. So only advertise PERF_PMU_CAP_NO_EXCLUDE. | 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Fix potential sleep in atomic context |Cached the interrupt number in the probe() and uses the cached data instead to avoid potential sleep.| 仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7BZYX | |hwtracing: hisi_ptt: Keep to advertise PERF_PMU_CAP_EXCLUSIVE |Keep to advertise PERF_PMU_CAP_EXCLUSIVE. Such pmus can only have one event scheduled at a time, and the perf tool will report device busy. |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7F2F2| |hwtracing: hisi_ptt: Add dummy callback pmu::read()| When the perf is tracing hisi_ptt pmu and then stopped immediately with "ctrl + c". the perf will call pmu::read() to updata trace data |仅修改驱动文件,无冲突|https://gitee.com/openeuler/kernel/issues/I7F2F2| |config: arm64: Enable config of hisi ptt | Set CONFIG_HISI_PTT to m | 仅修改openeuler_defconfig | https://gitee.com/openeuler/kernel/issues/I7F2F2|
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已拒绝
负责人
未设置
标签
sig/Kernel
未设置
项目
未立项任务
未立项任务
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
1
https://gitee.com/src-openeuler/kernel.git
git@gitee.com:src-openeuler/kernel.git
src-openeuler
kernel
kernel
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册