免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6589 | 回复: 8
打印 上一主题 下一主题

谁有关于PCI-E 中断部分MSI的相关资料 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-13 18:38 |只看该作者 |倒序浏览
10可用积分
小弟最近在看PCI-E的千兆网卡驱动,但是对于MSI或者MSI-X部分总是不太理解。所以不得不寻求帮助了。
有没有详细讲述MSI中断相关寄存器配置的文章?谢谢了

最佳答案

查看完整内容

贴两个PCI的协议规范吧,准备研究中……[ 本帖最后由 dreamice 于 2008-11-19 13:13 编辑 ]

论坛徽章:
3
金牛座
日期:2014-06-14 22:04:062015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
2 [报告]
发表于 2008-11-13 18:38 |只看该作者
贴两个PCI的协议规范吧,准备研究中……

[ 本帖最后由 dreamice 于 2008-11-19 13:13 编辑 ]

PCI-HOWTO.pdf

157.8 KB, 下载次数: 8280

PCI.Express.Base.Specification.v2.0.pdf

3.54 MB, 下载次数: 4402

PCI Express Card Electromechanical Specification v1.0a (2003-04-15).pdf

1.03 MB, 下载次数: 2485

论坛徽章:
3
金牛座
日期:2014-06-14 22:04:062015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
3 [报告]
发表于 2008-11-13 21:42 |只看该作者

回复 #1 emmoblin 的帖子

这个可能得看数据手册来定义。

论坛徽章:
0
4 [报告]
发表于 2008-11-19 13:00 |只看该作者
在PCI规范里有讲

对于驱动来说,MSI和INTx没有区别

论坛徽章:
0
5 [报告]
发表于 2008-11-19 13:19 |只看该作者
原帖由 eRicBIN 于 2008-11-19 13:00 发表
在PCI规范里有讲

对于驱动来说,MSI和INTx没有区别


Yes, MSI and MSI-X are defined in PCI Conventional spec 3.0

For PCI, both of them are optional; for PCI-E, at least one of them must be implemented.  Because MSI has a potential weakness (PVM : Per-Vector masting is optional), most PCI-E devices implements MSI-X directly.

The device vendor can implement both MSI and MSI-X for their device/function, but for the system software(OS kernel, driver), at most one of them can be enabled at the same time.

PCI-E spec 1.1 or 2.0 doesn't talk a lot about MSI/MSI-X, because they are already defined in PCI 3.0

>>对于驱动来说,MSI和INTx没有区别
Not true.  Driver should used MSI/MSI-X instead of INT<X> to improve performance.  Let's take an example, legacy INT<X> might be shared with other devices/functions, so, on the interrupt the OS will call every handler of this interrupt line to handle it.  It's slow, and to some extent, ineffective.

As for MSI/MSI-X, the interrupts are not shared between functions.  The device write a MSI/MSI-X message directly to the FSB,  even without bothering IO-APIC!  Apparently it's a better choice.

*I'm not able to input Chinese words now*.

论坛徽章:
0
6 [报告]
发表于 2009-06-27 17:40 |只看该作者

最近我也碰到这方面的问题.

看完收益菲浅,, 回头马上试验去

论坛徽章:
0
7 [报告]
发表于 2009-06-27 19:22 |只看该作者
学习一下pci-e

论坛徽章:
0
8 [报告]
发表于 2009-06-27 23:31 |只看该作者
学习下

论坛徽章:
0
9 [报告]
发表于 2009-06-28 13:58 |只看该作者
原帖由 dreamice 于 2008-11-13 18:38 发表
贴两个PCI的协议规范吧,准备研究中……


大赞~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP