Thread 中讨论的其他器件:AM67
工具与软件:
我们要使用 AM67x Linux PCIe 驱动程序–用于与 FPGA 连接。 IP 或驱动程序是否根据活动自动切换到相应的 L 状态(L0s–L3)?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
做出权衡
来自 AM67/J722S/J7AEN 的技术参考手册、网址为 https://www.ti.com/product/AM67:
12.2.2.1.1 PCIe 子系统特性
–L1电源管理子状态支持
–器件电源管理状态 D0、D1、D3Hot
12.2.2.1.2 PCIe 子系统不支持的特性
12.2.2.3.3 PCIe 子系统电源管理
PCIe 子系统中的 CLIENT_REQ_EXIT_L1_SUBSTATE 位。
可以使用启用或禁用 Linux 中的 ASPM CONFIG_PCIEASPM config。 Linux 有一个独立于 PCIe 控制器驱动程序的专用 ASPM 驱动程序。 PCIe 控制器驱动程序向 PCIe 子系统以及 ASPM 驱动程序公开 API、从而允许对包含 ASPM 特定寄存器的 PCIe 配置空间进行读取和写入、从而实现链路状态转换。
根据系统的节能策略、ASPM 驱动程序中的以下函数将转换为相应的链接电源状态:
https://github.com/torvalds/linux/blob/v6.13/drivers/pci/pcie/aspm.c#L269