On 12/26/2017 9:14 AM, Sagi Grimberg wrote:
Are you sure it won't get populated at all ? even if you manually set
IRQ affinity via sysfs ?
Yes, the msi_desc affinity is not initialized without the affinity
descriptor passed (which is what PCI_IRQ_AFFINITY is for).
Anyway we can implement this driver helper function to return the IRQ
affinity hint stored in the driver:
"cpumask_first(mdev->priv.irq_info[vector].mask);"
minus the cpumask_first, but yea. Please send a new patch so we can
test it out.
Actually using mdev->priv.irq_info[vector].mask is wrong since it only
gives the initial hint and not the current actual affinity mask.
I found a better way to address this and return the actual dynamic
affinity of an interrupt vector.
I will send a patch to net soon.