{"id":5135,"date":"2019-10-13T19:09:31","date_gmt":"2019-10-13T11:09:31","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5135"},"modified":"2020-05-05T16:57:03","modified_gmt":"2020-05-05T08:57:03","slug":"setpci","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/setpci","title":{"rendered":"setpci\u547d\u4ee4 – \u914d\u7f6ePCI\u8bbe\u5907"},"content":{"rendered":"\n

setpci\u547d\u4ee4\u662f\u4e00\u4e2a\u67e5\u8be2\u548c\u914d\u7f6ePCI\u8bbe\u5907\u7684\u5b9e\u7528\u5de5\u5177\u3002 \u547d\u4ee4\u4e2d\u4f7f\u7528\u7684\u6570\u5b57\u90fd\u662f\u5341\u516d\u8fdb\u5236\u6570\u3002<\/p>\n\n\n\n

\u7531\u4e8esetpci\u547d\u4ee4\u9700\u8981\u4fee\u6539\u786c\u4ef6\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u6240\u4ee5\u5fc5\u987b\u5177\u6709\u201croot\u201d\u7528\u6237\u6743\u9650\u3002<\/p>\n\n\n\n

\u901a\u5e38\u4f7f\u7528setpci\u547d\u4ee4\u914d\u7f6ePCI\u8bbe\u5907\u4e4b\u524d\uff0c\u4e3a\u4e86\u9632\u6b62\u64cd\u4f5c\u7cfb\u7edf\u51fa\u73b0\u95ee\u9898\uff0c\u603b\u662f\u5148\u4f7f\u7528\u201csetpci -vD\u201d\u547d\u4ee4\u67e5\u770bsetpci\u547d\u4ee4\u7684\u64cd\u4f5c\u8fc7\u7a0b\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>setpci [\u53c2\u6570] [PCI\u8bbe\u5907\/\u64cd\u4f5c]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-v<\/td>\u663e\u793a\u6307\u4ee4\u6267\u884c\u7684\u7ec6\u8282\u4fe1\u606f<\/td><\/tr>
-f<\/td>\u5f53\u6ca1\u6709\u4efb\u4f55\u64cd\u4f5c\u9700\u8981\u5b8c\u6210\u65f6\uff0c\u4e0d\u663e\u793a\u4efb\u4f55\u4fe1\u606f<\/td><\/tr>
-D<\/td>\u6d4b\u8bd5\u6a21\u5f0f\uff0c\u5e76\u4e0d\u771f\u6b63\u5c06\u914d\u7f6e\u4fe1\u606f\u5199\u5165\u5bc4\u5b58\u5668<\/td><\/tr>
-d<\/td>\u4ec5\u663e\u793a\u7ed9\u5b9a\u5382\u5546\u548c\u8bbe\u5907\u7684\u4fe1\u606f<\/td><\/tr>
-s<\/td>\u4ec5\u663e\u793a\u6307\u5b9a\u603b\u7ebf\u3001\u63d2\u69fd\u4e0a\u7684\u8bbe\u5907\u6216\u8bbe\u5907\u4e0a\u7684\u529f\u80fd\u5757\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u662f\u5c06\u8bbe\u59070\uff1a14.0\u8bbe\u5907\uff0cPCI\u914d\u7f6e\u7a7a\u95f4\u4fbf\u5b9c\u91cf\u4e3a0x60\uff0c\u5199\u5165\u65b0\u7684\u5b57\u8282\u53d8\u91cf6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setpci -s 0:14.0 60.B=6<\/pre>\n\n\n\n

\u8bbe\u7f6ePCI\u8bbe\u5907\u7684\u5b9a\u65f6\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# setpci -d :<\/em> latency_time=40<\/pre>\n\n\n\n

\u5217\u51faPCI\u8bbe\u5907\u5e76\u5bf9\u5176\u8fdb\u884c\u8c03\u8282\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lspci\n00:0f.0 VGA compatible controller: VMware SVGA II Adapter\n[root@linuxcool ~]# setpci -s 00:0f.0 F4.B=FF\n[root@linuxcool ~]# setpci -s 00:0f.0 F4.B=CC<\/pre>\n","protected":false},"excerpt":{"rendered":"

setpci\u547d\u4ee4\u662f\u4e00\u4e2a\u67e5\u8be2\u548c\u914d\u7f6ePCI\u8bbe\u5907\u7684\u5b9e\u7528\u5de5\u5177\u3002 \u547d\u4ee4\u4e2d\u4f7f\u7528\u7684\u6570\u5b57\u90fd\u662f\u5341\u516d\u8fdb\u5236\u6570\u3002 \u7531\u4e8esetpci\u547d\u4ee4 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5135"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5135"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5135\/revisions"}],"predecessor-version":[{"id":7507,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5135\/revisions\/7507"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}