Problems with IRQ affinity for timer64

Mats Liljegren liljegren.mats2 at
Wed Oct 2 09:01:50 EDT 2013

I'm doing a timer driver for timer64 found on a tci6638k2k board. The
idea is to use it as a generic interrupt source for testing purposes.

I want it to generate interrupts on a specific CPU that I decide. I
therefore try the following command:

echo 8 > /proc/irq/148/smp_affinity

But I get the following message:

-sh: echo: write error: Input/output error

This is timer18, which is supposed to be dedicated for CPU2 according
to the board documentation, but interrupts are taken on CPU0.

Looking at the specification for the driver itself, I cannot see
anything that the driver itself can do about this. I would expect that
the interrupt controller handles the affinity request.

I use the Arago version of Linux 3.8.4,

Board information:
Timer64 device data sheet:

What do I need to do to get this working?

Mats Liljegren

More information about the linux-arm-kernel mailing list