《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 电源技术 > 设计应用 > PCIe设备功耗管理驱动程序的开发
PCIe设备功耗管理驱动程序的开发
2020年电子技术应用第12期
王法臻,崔少辉,王 成
陆军工程大学石家庄校区,河北 石家庄050003
摘要: 随着PCIe设备在计算机系统中使用数量的增多,若能在确保设备正常工作的前提下适时调整设备的电源管理状态,可有效降低功耗。PCIe设备的电源管理需要依靠操作系统和驱动程序协同处理实现。通过对电源管理技术和WDF驱动程序框架的研究和分析,介绍了I/O请求的处理流程、队列使用的原则规范等内容,设计了基于I/O请求入列触发、跟随系统电源状态转换及设置框架属性的解决方案来实现设备的休眠和唤醒,并展示部分代码和实例验证了设计的可行性。
關(guān)鍵詞: WDF 电源管理 功耗控制 IO请求 PCIe
中圖分類號(hào): TN91;TP39
文獻(xiàn)標(biāo)識(shí)碼: A
DOI:10.16157/j.issn.0258-7998.200046
中文引用格式: 王法臻,崔少輝,王成. PCIe設(shè)備功耗管理驅(qū)動(dòng)程序的開發(fā)[J].電子技術(shù)應(yīng)用,2020,46(12):89-93.
英文引用格式: Wang Fazhen,Cui Shaohui,Wang Cheng. Development of driver for PCIe device power management[J]. Application of Electronic Technique,2020,46(12):89-93.
Development of driver for PCIe device power management
Wang Fazhen,Cui Shaohui,Wang Cheng
Shijiazhang Campus of Army Engineering University,Shijiazhuang 050003,China
Abstract: As the number of PCIe devices used in computer systems increases, timely adjusting the power management state of the device can effectively reduce power consumption. The operating system and drivers need to cooperate with each other to complete the control for the PCIe device′s power management. Based on the research and analysis of the Windows operating system′s power management technology and the WDF, this paper introduces the processing flow of I/O requests and the principle of queue′s usage, as well as designs the solutions based on I/O request processing, power state transitions and framework property settings to achieve device hibernation and wake-up. Moreover, there are some codes shown to prove the feasibility of the design.
Key words : WDF;power management;power controlling;I/O request;PCIe

0 引言

    PCIe(Peripheral Component Interconnect express)總線能夠?qū)崿F(xiàn)與計(jì)算機(jī)系統(tǒng)、服務(wù)器等所有周邊I/O設(shè)備的互連,同前兩代I/O總線相比,在結(jié)構(gòu)上的改變和優(yōu)化使得傳輸速率得到了大幅度提高,克服了PCI總線在系統(tǒng)帶寬、傳輸速度等方面的固有缺陷,同時(shí)具有支持熱插拔、低消耗和電源管理能力等方面特點(diǎn)。PCIe總線因此已得到廣泛應(yīng)用[1-3]。 

    在計(jì)算機(jī)系統(tǒng)中實(shí)現(xiàn)對(duì)PCIe總線設(shè)備合理的電源管理,及時(shí)準(zhǔn)確地調(diào)整設(shè)備狀態(tài),對(duì)降低功耗具有實(shí)際意義。驅(qū)動(dòng)程序作為操作系統(tǒng)與硬件交互的中間環(huán)節(jié),當(dāng)驅(qū)動(dòng)程序具備電源管理能力時(shí),操作系統(tǒng)便能夠在系統(tǒng)范圍上管理控制設(shè)備的電源消耗。若驅(qū)動(dòng)程序不具有電源管理功能,則設(shè)備會(huì)一直處于工作狀態(tài),也會(huì)阻止操作系統(tǒng)在空閑時(shí)自動(dòng)進(jìn)入休眠狀態(tài)。




本文詳細(xì)內(nèi)容請(qǐng)下載:http://m.ihrv.cn/resource/share/2000003260




作者信息:

王法臻,崔少輝,王  成

(陸軍工程大學(xué)石家莊校區(qū),河北 石家莊050003)

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。

相關(guān)內(nèi)容