Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp35625imu; Sun, 4 Nov 2018 18:19:18 -0800 (PST) X-Google-Smtp-Source: AJdET5ftEm0WsPRfnNdwV/1WyC+CnoZzJ6V2Xr3WhuVPXhiJBwIfRmS8hPQsV4wQEwhaH4nNVWdD X-Received: by 2002:a17:902:ab83:: with SMTP id f3-v6mr15358670plr.122.1541384358684; Sun, 04 Nov 2018 18:19:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541384358; cv=none; d=google.com; s=arc-20160816; b=y17PoGXzPfOxGLltwVo5IB9+2BU56LPuktYgsli+1odcndHvoQQoMwY6qfPCCxS40Y 0+YyVC+q+cGXsgmwypANAICsoZos0sDkQN4lB/iiM/WQtCQ+dC68oegjE5djRVGjyZXx 3nvK8iEOSMfvqG+Of2fWSFaLmaxNopQviG3KOTLqX90mV69xMm4jrQBSukLRHcTh0won OwGpLjkubYwaP7dmFXrvGSA95OOwYZ1gFxncdBrwYZIkSIRx4DNciK3MRsaP1HL1OQ+J lN+GZu04FYw671wdOWQght8ScY/tx+sIIAq67teqSwjGLS79Ah1E24o3PnY/c3TTJXJZ L0LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WMHJVngLDeRgOnR+/Ca0phtTsB8DakWIWPIpRWa7xho=; b=lZqVuaAaXYFynozEGGko6poUnrmXrIg9tAhsNsy1lcCFVFann7IuTtVKq0+bIln6Gg ZEPYQxmu83gjQ2wvKP+XcrTX1YR2gqgzJMHDRV+FnoueDLFWw9so0opyl9BVpBobwbXJ UJHQ0fQT7UkDS5tnLG5KXmKdke+Uht93OBsjHGmQMCLPJEgW2yC8qg+IvZT8wfjcq9UY /i4UILUSAk7ahEpMJ5+cPFjdngvV9TVL5O5cx3LWs75BbaOe6QjyYO4x2PKOK0I3wXI3 MTu1fQgLVpy0tlQWDXgLxDYp7DtEViniFfvPws0SdqzmUoE+VNLXz5ijf3IDN2OQ1pn2 ZxzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si43620379pgc.73.2018.11.04.18.18.49; Sun, 04 Nov 2018 18:19:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbeKELfh (ORCPT + 99 others); Mon, 5 Nov 2018 06:35:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54798 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbeKELfh (ORCPT ); Mon, 5 Nov 2018 06:35:37 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 220B680E7B; Mon, 5 Nov 2018 02:18:21 +0000 (UTC) Received: from ming.t460p (ovpn-8-22.pek2.redhat.com [10.72.8.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 05E8B10018FF; Mon, 5 Nov 2018 02:18:12 +0000 (UTC) Date: Mon, 5 Nov 2018 10:18:08 +0800 From: Ming Lei To: Thomas Gleixner Cc: Jens Axboe , linux-block@vger.kernel.org, LKML , Hannes Reinecke , Keith Busch , Sagi Grimberg , Long Li Subject: Re: [PATCH 0/4] irq: fix support for allocating sets of IRQs Message-ID: <20181105021807.GC13699@ming.t460p> References: <20181102145951.31979-1-ming.lei@redhat.com> <955edd2f-ad2f-ae8b-b8c2-98a01918c112@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 05 Nov 2018 02:18:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 04, 2018 at 01:02:18PM +0100, Thomas Gleixner wrote: > Jens, > > On Sat, 3 Nov 2018, Jens Axboe wrote: > > > On 11/2/18 8:59 AM, Ming Lei wrote: > > > Hi Jens, > > > > > > As I mentioned, there are at least two issues in the patch of ' > > > irq: add support for allocating (and affinitizing) sets of IRQs': > > > > > > 1) it is wrong to pass 'mask + usedvec' to irq_build_affinity_masks() > > > > > > 2) we should spread all possible CPUs in 2-stage way on each set of IRQs > > > > > > The fix isn't trivial, and I introduce two extra patches as preparation, > > > then the implementation can be more clean. > > > > > > The patchset is against mq-maps branch of block tree, feel free to > > > integrate into the whole patchset of multiple queue maps. > > > > Thanks Ming, I ran this through my testing, and I end up with the > > same maps and affinities for all the cases I cared about. I'm going > > to drop my initial version, and add the three. > > So I assume, that I can pick up Mings series instead. > > There is another patch pending affecting the irq affinity spreading. Can > you folks please have a look at it? > > https://lkml.kernel.org/r/20181102180248.13583-1-longli@linuxonhyperv.com This patch looks fine. It ensures that all CPUs are covered in irq's affinity when required vector number is <= nr_numa_nodes. Reviewed-by: Ming Lei Thanks, Ming