[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cae40e8e-dff7-1c2f-71db-97e6545bf098@mellanox.com>
Date: Thu, 4 Jan 2018 12:19:30 -0800
From: Saeed Mahameed <saeedm@...lanox.com>
To: Sagi Grimberg <sagi@...mberg.me>,
Saeed Mahameed <saeedm@....mellanox.co.il>
Cc: "David S. Miller" <davem@...emloft.net>,
Linux Netdev List <netdev@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Jes Sorensen <jsorensen@...com>
Subject: Re: [net 02/14] Revert "mlx5: move affinity hints assignments to
generic code"
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.
Powered by blists - more mailing lists