From patchwork Sat Jan 27 16:17:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 193042 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp565980dyb; Sat, 27 Jan 2024 08:21:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLPF62b7Ft5UeiAesw33B11IHw93gTDTbPQco47PpDFHpBkautxl0OulsKkqGRy5H8hyJg X-Received: by 2002:a05:6a00:9389:b0:6da:cbee:9d9c with SMTP id ka9-20020a056a00938900b006dacbee9d9cmr1076740pfb.29.1706372518566; Sat, 27 Jan 2024 08:21:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706372518; cv=pass; d=google.com; s=arc-20160816; b=qQCkniUg6TFyHZtYVo0FhHR8nKqhTG5x+ujDQhUkbk7mrOIF9PlDuN3L+6ekC7K2tW rBH4xK4LICtsFB4A01p1wJjx1UEi7V/jpewaJDkB3HmOeqFKaRbaldAbTESV1RMtGBBR WRWEfkdsOSB/NOGBdOtP+3xDi437MOQEYhY+Zs+81JAcZW1pctAEzepYh9GZ3rJ4MXjC 2RupDIbBFFMiZk0VBz21EDizHT1mD/awYAMKJc17EymcrsdKIu2H00NNEUItJ1QlShA6 Apq1prrX1a2GGwdeTVrv8Ct48LNNKAf3PbDKVrgBxtJBgxzwN0zuw9QuDnCIEn0PcxD8 0VWQ== 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:message-id :date:subject:cc:to:from:dkim-signature; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; fh=706cnY5t7hpwBXQypCTGH3HYLPe+/lcVAB5kbpxvl24=; b=SuFouHW241mLegvfroaaFnnl4FxfNCnpayrlvr1SySPaYW8+pswvusBUXt4x6R6Uuw p1mNUoBGcMavEEAtFN2UsbIGlH4mxuLgDlyZpWFTGkJ8SIvxf9RYIuPLe4HYhsIg2iU/ OjihTeY6IOkkNWVhR1qP6EvJJA+knFhf1MZKxPCxH0pGuk4NmnAroHf/sUxCyeLYQkyk +5QEq2wfxbUqT22FvnJInzZZMVPPE7pFdIo0590nZvlZo1cWU/Xr6gqgfgkkvchNQU57 J6blyBnsLPaG5V7oJJwJdGSLw/zrfAYJEhDhYPdXnup/DTZMkLF0tBM9iClFpDeHPYwd m3Uw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=OLFUkwd5; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-41276-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41276-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m185-20020a633fc2000000b005d5434a5732si2932130pga.456.2024.01.27.08.21.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:21:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41276-ouuuleilei=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; dkim=pass header.i=@ventanamicro.com header.s=google header.b=OLFUkwd5; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-41276-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41276-ouuuleilei=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F27C4B224E8 for ; Sat, 27 Jan 2024 16:19:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6675C2DF9F; Sat, 27 Jan 2024 16:18:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="OLFUkwd5" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70DBD2D052 for ; Sat, 27 Jan 2024 16:18:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706372310; cv=none; b=eRQKsDywwhHzTxE4F/mtGZ/YcjoRNvjT6xRM1sx/7kvSRyGhmGapYfx2uzG7zvwt1QV4uqw6donVIxnUiQod4efObhQ2vZPvYRx+T0jOsFHfNlmQCtvZm/FuuDvLHgE3LQlT5Uf9Y4gkRugT+AQjv1zgujGzFE17NLF+pkAUPlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706372310; c=relaxed/simple; bh=eJFuo3cIfXEq1mEON0RCgiaWMZ23JLuACI8xiBlZ4CY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SA69LUEkeQJtBCp4F+k+SiWt7J+nOEREmkLKO3cPaoPn8pfjfmSgRTtF94jXKHyb6pwAUFyGKrPBydyG98Wji8t9+6OYpYY4nTNzz4ZBawBSrDu1QTI/GYcO94hIQRmYT1s/Ie43gU32aHcwOT3bmXEmVq0qqTw0Ngmz1L6SMSE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=OLFUkwd5; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d730b6943bso7060275ad.2 for ; Sat, 27 Jan 2024 08:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1706372309; x=1706977109; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; b=OLFUkwd5v6tkfaultzA8WwqEMA3GwD6QeZUFT8YUzgO1ZY7XS34jIRPfoDVfXTNek/ tAbd/n4kTnjhZWXHVw7nAwPgyIogameaQYLn3NbPO9QglqvkTMKlYbYppRXu6rD0CHKr XnDiIsa8jfQShhMkcweTg4NpTuN2l8Okz+urrnttE2ec3AlUwgckyCAUE/f83DvOvHCO tQhqBepp4RRU+BNHmWoUuI9/4xahnS7CE9qScsmtg94DSWXSXLWdSFMPiTJV7tPgJDPL ymE1PTE/g7q6SAgeMXLCUsyWje4GgZXKNYG47nq4N0z6SdbvCD0WLK/uacCnRMMK5x0B FdjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706372309; x=1706977109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gio4VcisYA6evHi9fLFTB/NsIADoYywgfT0MwGlZzIc=; b=p2JrS1iX7NyRXxzoLW71210fyeg3ZjpTgniRnMcp1N1AUd/f2xEA16hlvdh88/1tAR qOw1jV5UpqoYzD2aH8E9UvDl62HDB8vRjif/YXQcLU4MQzzM1lIK8vwsBlCGP+oufO/Q 7ao2bJEntD2rAyyUbvjesSDuHPLMHne1JDfhkD57C84vjgwxe3+9GYZHdkL8d4XfKCLg wexEuqSYcFYdF+0fobRW6WrWlYB3XGjG81O9eoEn4epa8jy15cAVCeEwshpsoESWKIbH LKL3AI7McATWoaau6quKeVewc4CP6Kez7TKQExP4gHLECU5B+amj/W1DNjDVnffxJrdh 2wCQ== X-Gm-Message-State: AOJu0Yy+8QEcmRHwhsjolh3XzaTklTwi0PDqzEDeh78ADkaEX/Qvlr5v abNU86QzO1gdUAubQvfg02k3Do4WYvkWKiu/xYHAL/QHIdCsvm7RyHK0NExX4hU= X-Received: by 2002:a17:903:1c3:b0:1d4:326c:1c89 with SMTP id e3-20020a17090301c300b001d4326c1c89mr1195988plh.10.1706372308671; Sat, 27 Jan 2024 08:18:28 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([171.76.86.17]) by smtp.gmail.com with ESMTPSA id d11-20020a17090ac24b00b00290f8c708d0sm5091620pjx.57.2024.01.27.08.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:18:28 -0800 (PST) From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: Marc Zyngier , =?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, Anup Patel Subject: [PATCH v12 02/25] genirq/irqdomain: Remove the param count restriction from select() Date: Sat, 27 Jan 2024 21:47:30 +0530 Message-Id: <20240127161753.114685-3-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240127161753.114685-1-apatel@ventanamicro.com> References: <20240127161753.114685-1-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789261270358928439 X-GMAIL-MSGID: 1789261270358928439 From: Thomas Gleixner 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. Preparatory change for per device MSI domains. Signed-off-by: Thomas Gleixner Signed-off-by: Anup Patel --- 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 0bdef4fe925b..8fee37918195 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);