[PI3] 树莓派3 set irq_affinity求问

[复制链接]
749|1
 楼主 | 2017-7-3 22:03 | 显示全部楼层 |阅读模式
大家好,最近我在用树莓派3做实时系统控制。
遇到一个问题,就是irq中断必须不能受到其他进程的干扰,所以我想将irq中断绑定到固定的一个核上面。
但是出现以下问题
# echo 3 > /proc/irq/52/smp_affinity
bash: echo: write error: Input/output error

下面是网上搜来的,貌似是硬件问题无法set_affinity.请问大神还有其他解决办法吗

Hardware IRQ affinity isn't possible due to the way that the interrupt controller has been implemented.

Because the entirety of the hardware apart from the A7s is untouched, the BCM2835 interrupt routing is still in place. This exposes two lines (nIRQ and nFIQ) that go into the A7 interrupt routing. There is no vectored interrupt controller implemented for the A7s - a simple register-based interface is used to route the global top-level interrupt to a specific core, therefore a single core will get all interrupts and have to service them.

You could reconfigure this on-the-fly (for example, on entry to the top-level IRQ handler) to have some sort of distributed handling, servicing each successive interrupt on a different core, but the benefits of this are debatable.
| 2017-9-4 21:27 | 显示全部楼层
这个我也没做过,所以不会。2个月没人帮忙回答,帮你顶起来,看看有没高手会的。
扫描二维码,随时随地手机跟帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复

您需要登录后才可以回帖
登录 | 注册
高级模式
我要创建版块 申请成为版主

论坛热帖

关闭

热门推荐上一条 /5 下一条

快速回复 返回顶部 返回列表