Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp399931rdb; Thu, 15 Feb 2024 03:54:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNWE9yFWEcu7TOjNEnAO4AGJnfZnwrhqdBc9FKVtqlN1HEkweeqhQ6hkoV3qRrei5ugCZpVto2J9mPElH8GZ0ZkCzUObhfD/tEk/Z81Q== X-Google-Smtp-Source: AGHT+IGn6aImG9XouzvCsnZ8HoB/1bQB/yCP5tJiqHz3TfMIO7pGVqyeZCpJXkBz6hM6CIoDqx6f X-Received: by 2002:a05:6a20:ce45:b0:19e:b192:1daf with SMTP id id5-20020a056a20ce4500b0019eb1921dafmr1849923pzb.56.1707998095766; Thu, 15 Feb 2024 03:54:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707998095; cv=pass; d=google.com; s=arc-20160816; b=E7DMgKb3UXtOWdjE/X0xXJSYZxv8AbHe6HgoGRzX1yNJPkqZX/2iloPvx1EeVzqHwx 8SSVBeTGf2tT3Kpc9tXoDsGmjcoKwtrlZK1gNxFdBLRjT6i5zx6OLIi+gFnwfmC4QxsM Wslo6tDIpVX8lrripHQP+NNtDQHrfekE/YbIJx9Y/8JZ9TkUiArysNXxjYI7jFDXxYHn vjMjxTOEGXLHojUEn7CZSP1XBYBZbQgfOSfihveFNYR94CgwyEUaXc6rTZfQxCUcpe0t X/cy5DbsyBbnzx5fM8LpvbKeAOI7DQbA9ssw8UqDlm4wY0lUd8uSfY2CBCMR10cp4xaj PV3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=nwZZ9aIrp2SzJv+OvS4wW1m03TE/eWhLbMWNbslSBbo=; fh=VtvNmZrotGG2tmyCw10LscmmdtKgXv6OBhaEtAwBQ2Q=; b=GI/n7bm73hYloESa+/uIMaFJRUv19oNj8pAmw0+Re7YZN98h9t2VX3JwpjHrlXFFHl HQMGqhSfwO69BCt2j28Vd0/xquixbgV2Zynq6DfMbwDqfUvh8VprG50Pb+20Cvyiieh8 365NbLsh335CduaY8hLYNwZjLAcCvPuhequ7aEgt4XlTffM7xSfUWxtjXxGzJTARfVrJ x51QKG84YCq6tQz/9Q8eN+42dLurCpYoCT6XJVg+Ah5Fv0H5+IFxbKiVLHnYdI7KlbW3 SPvj9eVv4qagzO1SAdX5vTwfqICjz9mhcFcB/CTZcCvUkXMO3IQAK6VuNJI/IGonliAQ M/JA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EPYNgNP3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m7-20020a056a00080700b006e04f294365si1037250pfk.193.2024.02.15.03.54.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:54:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EPYNgNP3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E5A25288B7E for ; Thu, 15 Feb 2024 11:48:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 707CA12BE9A; Thu, 15 Feb 2024 11:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EPYNgNP3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9855812B17C; Thu, 15 Feb 2024 11:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707997670; cv=none; b=pr5uwrVRKSSbkVPHwua8pOwRzPWMxvw2Q2sux0W49172FgmtpKNt1Ih2oiUjzAMIXeyY/hPuANdd3guLuyeedIvXEKYmKi/p1PiXTvGUBjEPDw7GS9lhgfIbwlguLc/os+17tNW4LO0CTwnPTA7yiqSJcJ1/X03eCBr1iEYnc28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707997670; c=relaxed/simple; bh=IvhtK4NnjopFMtWUJDl89y51jh2nXTnQDnXwhvzRRts=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=YZLmuMp2fJpj92SbDQgArcyWpPBgu5869Vxyk6ckIRKt+8zqWF0071QKMBfP7c7Xg+WUiiQXD00ar25Vd4/J9EyoF72LCUVivtLwfd+RV0ekUaKPj9voyrGAXyWC5pQ78rzOffYS9ysKRAo4mT7gU3yBQLZCmnbW7VPhBbOxd+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EPYNgNP3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DA8CC43390; Thu, 15 Feb 2024 11:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707997670; bh=IvhtK4NnjopFMtWUJDl89y51jh2nXTnQDnXwhvzRRts=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EPYNgNP3iDA5jyXFdr3i5AMJjnDbD2fVqsKizWPxyDdTn41VHa7W4ym6b6zPcrQWG oeP0yUCaD5B8i2jNYmqDc8VHWFS+329nYZx1r5K4ra4UPVoMgGNkzlVQhYZXYB2rj0 6zlVKmy9RhJ4oHnYCOKodqr2AC46XNiH31ZUSOg8MJKjqdTucUO4yj2cN+eER4Rgrm QUfAqlw/07CiLojlOv+KR61lV5iTczboDOuvNQbfoXvRk4dngMIKQAcSLevJQOYNak mlUhgcuJ3gtQ3Ek0C0WZ8GiAQsa4va0/1NsZzcfteoRrapSMt3UDh65s1BjC++VyWU K0YwJRlhRhIUQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1raaDT-003Tve-Iq; Thu, 15 Feb 2024 11:47:47 +0000 Date: Thu, 15 Feb 2024 11:47:46 +0000 Message-ID: <86plwy3q59.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v12 01/25] irqchip/gic-v3: Make gic_irq_domain_select() robust for zero parameter count In-Reply-To: <20240127161753.114685-2-apatel@ventanamicro.com> References: <20240127161753.114685-1-apatel@ventanamicro.com> <20240127161753.114685-2-apatel@ventanamicro.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: apatel@ventanamicro.com, palmer@dabbelt.com, paul.walmsley@sifive.com, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, frowand.list@gmail.com, conor+dt@kernel.org, bjorn@kernel.org, atishp@atishpatra.org, ajones@ventanamicro.com, sunilvl@ventanamicro.com, saravanak@google.com, anup@brainfault.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Sat, 27 Jan 2024 16:17:29 +0000, Anup Patel wrote: > > From: Thomas Gleixner > > Currently the irqdomain select callback is only invoked when the parameter > count of the fwspec arguments is not zero. That makes sense because then > the match is on the firmware node and eventually on the bus_token, which is > already handled in the core code. > > The upcoming support for per device MSI domains requires to do real bus > token specific checks in the MSI parent domains with a zero parameter > count. > > Make the gic-v3 select() callback handle that case. > > Signed-off-by: Thomas Gleixner > Signed-off-by: Anup Patel > Cc: Thomas Gleixner > Cc: Marc Zyngier Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.