Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1221725rdb; Mon, 19 Feb 2024 08:02:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGR+Ql4GHbu64Ua7+aO3KjcV+Bzidw2+AdU1ICR6E7UKtgMgfa7G5p/ArS+Halg59G6McMCBfisTa4hHcV7+U61BJ+egYTV67qN6DdMQ== X-Google-Smtp-Source: AGHT+IHi9yJ+bacYwRgBJ0yUXMUmXHIV49zCi6Npb11khf1jcQVKLY/5r5gzY88HoUj/Nunb00o3 X-Received: by 2002:a05:6a20:2156:b0:19a:508a:7f70 with SMTP id z22-20020a056a20215600b0019a508a7f70mr8741451pzz.30.1708358565745; Mon, 19 Feb 2024 08:02:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708358565; cv=pass; d=google.com; s=arc-20160816; b=t+If3nfzyiZ/KALaBatlZxxvc0umuQthARR/YJ6clrf6oi5Rrk2hXRFLAcPQEUplAj w/bTjhzWiSt8pfsoKowNHiBiKeKP9ISyukch5Mde01rDaEgnoAVSfRlz7N3Z4Q/CkshZ fb0hXBJ/Ivx2I/0pTejm3JV+E2f4jLUs8tA62UUqgvkGpuS57mG5pkQoNllLYFTLFwyS uyhqkH7+LgNE2XXNi4RB2jreww5SdmEQTiMokjEv3629pHY4Hm9TuiLP1nk13u0iRrEa 2LelBld8+SW3sql9MD+H9Vm5HwugXuqNgOYeol1xs6Ut6lQZNsgT0oC2MhauY/ogypnF Y2wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date :subject:cc:to:from:message-id; bh=7u8BKoZPmqehfI5zYiyhoGg7FLRYDnWozYDo5oR0kmc=; fh=g5Fy58+5SRAYhLwhNwGdUPxGvtryXsoLHZjmND6ksWs=; b=DIFpRdtXIvaVcxuWrn9kk0HkiMxAp6+YJzj+huZccvxXpukxYztUubQYVjY2bi0Cf5 ZT1pxsDrppy+WuZVNAvoRe+TPyM9cV9YuNYEcxJNh5lOO9wCCnEux5XBYfvNRmEgLWkf 9q9obPZArCvvBXAA2L3q9eqU8UICHrG1lB+WQmyom8r2ABbEjGma3lQgYx/+8Jj/3KPr exl6g6qHQSRvm8PcVbwH9FkopZT7J6vkV7FarXFQpc1Feg9otVBIe88JwMA+dT6paWgL rUhMJzWSnYCYrlUtWg2Y0aPK7U9Q2ftTTSfbORPNF2xeuOFHsma7TV8FtqCc1Y7mFXpk VuEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-71616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l12-20020a65680c000000b005d504797b69si4541320pgt.164.2024.02.19.08.02.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:02:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-71616-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71616-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Message-ID: <65d37ba5.650a0220.8e8ce.6a20SMTPIN_ADDED_BROKEN@mx.google.com> X-Google-Original-Message-ID: <170802702416.398.14922976721740218856.tip-bot2@tip-bot2> (raw) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5732CB22B7C for ; Mon, 19 Feb 2024 15:50:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 279533AC1E; Mon, 19 Feb 2024 15:50:46 +0000 (UTC) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C819638DEA; Mon, 19 Feb 2024 15:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357845; cv=none; b=oi2qbWzYRSMbga4vj7Vb0EQFocUz2sd9/25GZNLSA7+VVCr5N2oPFl+szH55CsziXlwM8DuMygr4oX0YXQzuiv38M1ZLZhkTXuKtlEWkY4wXubsYPEyUG9WBMXvM5jdK8pjOBRCjJaI/uXbflllU1/MqgqNiQShUwQAOI3MGkMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357845; c=relaxed/simple; bh=3gljEuQh4fhhlvTwEdHbLdMg7pIM+AmlQfvPws8ZqqY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Dc+aqwZnq0OnyJejVnUar3oX+sn52g0NdZ+F8l7jKtVWO0Mnc4YuP4WVatzUjOP9pZNuMmFIx2VoKwE408f4iJiQPcjmy6WxdbPV6dTyKlWcwgSehOYe32j7qNm9Vi0PyvVm56o5W+C+xwp8yMo+fineqqC5kCiFkSvAIlCY2CU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.06,170,1705330800"; d="scan'208";a="194447432" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 20 Feb 2024 00:50:41 +0900 Received: from localhost.localdomain (unknown [10.226.92.217]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 56E95400FFE9; Tue, 20 Feb 2024 00:50:38 +0900 (JST) From: Biju Das To: tip-bot2@linutronix.de Cc: apatel@ventanamicro.com, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, tglx@linutronix.de, geert@linux-m68k.org, maz@kernel.org, linux-renesas-soc@vger.kernel.org, x86@kernel.org Subject: [tip: irq/msi] genirq/irqdomain: Remove the param count restriction from select() Date: Mon, 19 Feb 2024 15:50:36 +0000 X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240127161753.114685-3-apatel@ventanamicro.com> References: <170802702416.398.14922976721740218856.tip-bot2@tip-bot2> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Now that the GIC-v3 callback can handle invocation with a fwspec parameter > count of 0 lift the restriction in the core code and invoke select() > unconditionally when the domain provides it. This patch breaks on RZ/G2L SMARC EVK as of_phandle_args_to_fwspec count() is called after irq_find_matching_fwspec() is causing fwspec->param_count=0 and this results in boot failure as the patch removes the check. Maybe we need to revert this patch or fix the fundamental issue. Cheers, Biju --- kernel/irq/irqdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 0bdef4f..8fee379 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -448,7 +448,7 @@ struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, */ mutex_lock(&irq_domain_mutex); list_for_each_entry(h, &irq_domain_list, link) { - if (h->ops->select && fwspec->param_count) + if (h->ops->select) rc = h->ops->select(h, fwspec, bus_token); else if (h->ops->match) rc = h->ops->match(h, to_of_node(fwnode), bus_token);