alexparser Posted October 11, 2016 Posted October 11, 2016 Hello! I have a board based on dual core SoC A20, I can run processes on separate cores?I want run Armbian on the one core and my module on other core. Thanks!
vincele Posted October 11, 2016 Posted October 11, 2016 I'm not sure what you want to achieve, but I think you should have a look at: $ man taskset TASKSET(1) User Commands TASKSET(1) NAME taskset - retrieve or set a process's CPU affinity [...] This will pin a process to a cpu set, but it won't be isolated from other activities (other scheduled processes, kernel activities) If you want your userspace process(es) to be shielded from OS kernel activity, this probably won't be suffcient... There's the isolcpus kernel boot option: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/kernel-parameters.txt#n1814
alexparser Posted October 11, 2016 Author Posted October 11, 2016 Thanks vincele, This complicated question for me, but I try understand. I want to run Kernel with IRQ and with all user mode applications on the one core. And I wanr to run my Kernel module with specific IRQ on other core.
tkaiser Posted October 11, 2016 Posted October 11, 2016 Please also check this for H3 here: http://forum.armbian.com/index.php/topic/1901-patch-for-quick-interrupt-handling-on-the-h3-fast-gpio/ (and please be aware that I've no idea whether/how this could be ported to A20 -- but since H3 devices start at $7.99 currently...) 1
alexparser Posted October 15, 2016 Author Posted October 15, 2016 Please also check this for H3 here: http://forum.armbian.com/index.php/topic/1901-patch-for-quick-interrupt-handling-on-the-h3-fast-gpio/ (and please be aware that I've no idea whether/how this could be ported to A20 -- but since H3 devices start at $7.99 currently...) This great example about work with IRQ for H3. But for my project need only A20, I will try use this method for this SoC. One more question - can I run a kernel module on the selected SoC core?
Recommended Posts