《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 電源技術(shù) > 設(shè)計(jì)應(yīng)用 > PCIe設(shè)備功耗管理驅(qū)動(dòng)程序的開(kāi)發(fā)
PCIe設(shè)備功耗管理驅(qū)動(dòng)程序的開(kāi)發(fā)
2020年電子技術(shù)應(yīng)用第12期
王法臻,,崔少輝,,王 成
陸軍工程大學(xué)石家莊校區(qū),河北 石家莊050003
摘要: 隨著PCIe設(shè)備在計(jì)算機(jī)系統(tǒng)中使用數(shù)量的增多,,若能在確保設(shè)備正常工作的前提下適時(shí)調(diào)整設(shè)備的電源管理狀態(tài),,可有效降低功耗,。PCIe設(shè)備的電源管理需要依靠操作系統(tǒng)和驅(qū)動(dòng)程序協(xié)同處理實(shí)現(xiàn)。通過(guò)對(duì)電源管理技術(shù)和WDF驅(qū)動(dòng)程序框架的研究和分析,,介紹了I/O請(qǐng)求的處理流程,、隊(duì)列使用的原則規(guī)范等內(nèi)容,設(shè)計(jì)了基于I/O請(qǐng)求入列觸發(fā),、跟隨系統(tǒng)電源狀態(tài)轉(zhuǎn)換及設(shè)置框架屬性的解決方案來(lái)實(shí)現(xiàn)設(shè)備的休眠和喚醒,,并展示部分代碼和實(shí)例驗(yàn)證了設(shè)計(jì)的可行性。
中圖分類號(hào): TN91,;TP39
文獻(xiàn)標(biāo)識(shí)碼: A
DOI:10.16157/j.issn.0258-7998.200046
中文引用格式: 王法臻,,崔少輝,王成. PCIe設(shè)備功耗管理驅(qū)動(dòng)程序的開(kāi)發(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://forexkbc.com/resource/share/2000003260




作者信息:

王法臻,崔少輝,,王  成

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

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