Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1716083ybv; Fri, 21 Feb 2020 02:14:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzVAN862vyu6EdtuupLQBWcReVYFInKVRcaN48SWeKHt2jFK2CynIGu/yOzyGur1GDsvAeX X-Received: by 2002:aca:d610:: with SMTP id n16mr1374353oig.108.1582280081285; Fri, 21 Feb 2020 02:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582280081; cv=none; d=google.com; s=arc-20160816; b=op8cMLEp4RThaSpgcbrvSsC0Av4x+HhBy+M388tbH+8T2awn6K/hZlnVM0FHfS5n+J UQ89HZqRSkUVT96+lslSp/db/cIvn1dXb6t0kTrAHm1E0+kx+weFwmOegaMpOn4IFZlP 29pXGu0Cdjd9BDyuomcL5404YZz9NDX/sdHE+BNbmxTxFj0Gehw4QiylGSiurIvVbcwA 6goITpSsQo0mnZ2dcgzjorn7FcKjRXBXyLXTUr45CrffPRhrmve3R7GLtOXUQtWl05un wNSPH1Iq8efp3+3Hj1zsuoYwdVmsiDVHQuo7aeqsjNxOs7i5X7t4Rnl98I/R88WKjDNC Trhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=zkA8ZdgT9FML5rJF5zh2L6CERpK0RB1FZC9JfDGPP8U=; b=o+EwaiFd/DLsVoBGHzxfkfIhGqV/vrXzEOAyfceW0ATUI7l5dY0QGNqxiCqdrdOyMw xaWqa5Nk6T2l8xiYRzaWBCBM3nYGqFhzsy+2VwsUQGEDmqV2Qjw0Aa0YSaoybcRTOkqy w5Qs9fLkh7QNe78GcB6jpG51IJEGa9A9fYIr9GK1e9Bar/96kvTJTi25zx6K6Ind+6Ah KDAyDA4dILtk3e+9cjAxF2W7vCWWI9dN8TLIz0hO/bJGe4dVFrJIxs8/QmvkSOsxj8zT TgVwLpUowU1PcKHwZDbbnjprnloWDB7aaw6+uywOeEFTjLe5d0glcrz7S1DqnPXeZZ4b tU8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GeJYVaIK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q124si642037oig.228.2020.02.21.02.14.28; Fri, 21 Feb 2020 02:14:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=GeJYVaIK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbgBUKOD (ORCPT + 99 others); Fri, 21 Feb 2020 05:14:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:49702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbgBUKOB (ORCPT ); Fri, 21 Feb 2020 05:14:01 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14A4C20722; Fri, 21 Feb 2020 10:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582280041; bh=nO5MzX5N/JzArtsAYaiCeqGA2+KEQX9ht2RlhkrW54s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GeJYVaIKmz6PQk7Ypo8ZZVVod/zsrBbqXb3cv/VBI8N6TjBFUMc9QnnJhMaN3HtrX rofkMc88HrtsU2ixHL7y2QBJYavb5B95FhYEkbhb3WYL5SATkPw0Y6TwAk2naiPQY8 xp08rqmWcWcubPI+AnzmJyCz0fTJ9ueox47B8JS8= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j55Jn-0070UG-3T; Fri, 21 Feb 2020 10:13:59 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 21 Feb 2020 10:13:58 +0000 From: Marc Zyngier To: Zenghui Yu Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, wanghaibin.wang@huawei.com Subject: Re: [PATCH] genirq/irqdomain: Make sure all irq domain flags are distinct In-Reply-To: <20200221020725.2038-1-yuzenghui@huawei.com> References: <20200221020725.2038-1-yuzenghui@huawei.com> Message-ID: <7dec8c6eb07f634a4cccec3be5136e2f@kernel.org> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/1.3.10 X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: yuzenghui@huawei.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, wanghaibin.wang@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-21 02:07, Zenghui Yu wrote: > This was noticed when printing debugfs for MSIs on my ARM64 server. > The new dstate IRQD_MSI_NOMASK_QUIRK came out surprisingly while it > should only be the x86 stuff for the time being... > > It's the overlap in irqdomain flags which leads to this confusion. > (1 << 1) might be a good choice for old IRQ_DOMAIN_NAME_ALLOCATED, > use it to avoid this overlap. > > Fixes: 6f1a4891a592 ("x86/apic/msi: Plug non-maskable MSI affinity > race") To be fair, the real source of the bug is this: 6a6544e520abe ("genirq/irqdomain: Remove auto-recursive hierarchy support") > Signed-off-by: Zenghui Yu > --- > include/linux/irqdomain.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h > index b2d47571ab67..8d062e86d954 100644 > --- a/include/linux/irqdomain.h > +++ b/include/linux/irqdomain.h > @@ -192,7 +192,7 @@ enum { > IRQ_DOMAIN_FLAG_HIERARCHY = (1 << 0), > > /* Irq domain name was allocated in __irq_domain_add() */ > - IRQ_DOMAIN_NAME_ALLOCATED = (1 << 6), > + IRQ_DOMAIN_NAME_ALLOCATED = (1 << 1), > > /* Irq domain is an IPI domain with virq per cpu */ > IRQ_DOMAIN_FLAG_IPI_PER_CPU = (1 << 2), Acked-by: Marc Zyngier Thomas, do you mind picking this one up, as I don't have anything else for the time being? M. -- Jazz is not dead. It just smells funny...