From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sagi Grimberg Subject: Re: [net 02/14] Revert "mlx5: move affinity hints assignments to generic code" Date: Mon, 25 Dec 2017 15:53:17 +0200 Message-ID: <459db705-4586-9eab-2f5b-15014a6730da@grimberg.me> References: <20171219222456.29627-1-saeedm@mellanox.com> <20171219222456.29627-3-saeedm@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Thomas Gleixner , Jes Sorensen To: Saeed Mahameed , "David S. Miller" Return-path: Received: from mail-wr0-f178.google.com ([209.85.128.178]:42087 "EHLO mail-wr0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751681AbdLYNxV (ORCPT ); Mon, 25 Dec 2017 08:53:21 -0500 Received: by mail-wr0-f178.google.com with SMTP id w107so7168413wrb.9 for ; Mon, 25 Dec 2017 05:53:20 -0800 (PST) In-Reply-To: <20171219222456.29627-3-saeedm@mellanox.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: > Before the offending commit, mlx5 core did the IRQ affinity itself, > and it seems that the new generic code have some drawbacks and one > of them is the lack for user ability to modify irq affinity after > the initial affinity values got assigned. > > The issue is still being discussed and a solution in the new generic code > is required, until then we need to revert this patch. > > This fixes the following issue: > echo > /proc/irq//smp_affinity > fails with -EIO > > This reverts commit a435393acafbf0ecff4deb3e3cb554b34f0d0664. > Note: kept mlx5_get_vector_affinity in include/linux/mlx5/driver.h since > it is used in mlx5_ib driver. This won't work for sure because the msi_desc affinity cpumask won't ever be populated. You need to re-implement it in mlx5 if you don't want to break rdma ULPs that rely on it.