Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2227145imd; Fri, 2 Nov 2018 08:01:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5cMVDb2GKJvYn5Vwp6cb9Tl9+TR66+JcqgyTWP5a/IqzGNytWfZZFE5qGrl23JnMpQ+QKwr X-Received: by 2002:a62:32c4:: with SMTP id y187-v6mr12137196pfy.4.1541170882200; Fri, 02 Nov 2018 08:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541170882; cv=none; d=google.com; s=arc-20160816; b=d4LrBI/WipuZVraWSBJAQdWIU+q6NlX9/afFFTV1OO6wMkTI9k/kPnLO7jP7j6mHrm SDR5UoR6o2IoVs+ClSj+pV4cuVmx5hR0nVohhzPzmXCUYYRxg1xf/nIXB/YdC6z1L5uq osSToEjGUSz7AHnxRSK7tDy6PmzTzAVxuM8+zElhCNyxpzkNyLtIP2vUpVtq84zBEe9n jUuVxAI6cPcFigZ7roF7fbXxdGBR+2ccKUKXNlO5BtP72Ci02kHsYUyYAmVstu0L6iph 1DndR5atLH6h3U9419kbexDqVc+6rqDzPSEwjZ4dd2o0E6l62zL66Vk1a3UYOsBCenoM 3h3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=dFq1SYzysrZu70oKiv8XoRX2wwbg3ruiIHB6651K/I4=; b=nA+661/eiR/Gyv/DPM2Yckm0X+5KqqXdRnBRCirNAQiRrAEhzm9EppXo17b5PErKYh d4VT5cxueZu7HZtl6U8B5Ov6EU9TCDe3z9BheIv1jwlWxZa0Nt2ntEma50wL1MScWm5S whFYXeigKrY/g0qA68tbBIHzq5KUTmoAwOs1L461L9eJOcSx49CxrUr/PsOHvKeZ46xR okm+RslcRxpSowjgJKIXnwOFiD91XJR1ZJh/odP52j1nXUfu/ZzN5D0bGnif2mwp4Cqr V1Bc46rmcue6bk47t7vB08Pq4Ms55Jl2J8HCoxrKW82aAwdiYQi2RcS0VdYCZanbyx26 XZtg== 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 v4-v6si32307422plp.247.2018.11.02.08.01.07; Fri, 02 Nov 2018 08:01:22 -0700 (PDT) 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 S1728018AbeKCAH4 (ORCPT + 99 others); Fri, 2 Nov 2018 20:07:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbeKCAH4 (ORCPT ); Fri, 2 Nov 2018 20:07:56 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 09E813083394; Fri, 2 Nov 2018 15:00:34 +0000 (UTC) Received: from localhost (ovpn-8-27.pek2.redhat.com [10.72.8.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 27F8D5D76A; Fri, 2 Nov 2018 15:00:32 +0000 (UTC) From: Ming Lei To: Jens Axboe Cc: linux-block@vger.kernel.org, Ming Lei , Thomas Gleixner , linux-kernel@vger.kernel.org, Hannes Reinecke , Keith Busch , Sagi Grimberg Subject: [PATCH 0/4] irq: fix support for allocating sets of IRQs Date: Fri, 2 Nov 2018 22:59:47 +0800 Message-Id: <20181102145951.31979-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 02 Nov 2018 15:00:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Jens Axboe (1): irq: add support for allocating (and affinitizing) sets of IRQs Ming Lei (3): Revert "irq: add support for allocating (and affinitizing) sets of IRQs" irq: move 2-stage irq spread into one helper irq: pass first vector to __irq_build_affinity_masks kernel/irq/affinity.c | 119 +++++++++++++++++++++++++++++++------------------- 1 file changed, 75 insertions(+), 44 deletions(-) Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Cc: Hannes Reinecke Cc: Ming Lei Cc: Keith Busch Cc: Sagi Grimberg -- 2.9.5