Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp920788rbb; Sun, 25 Feb 2024 09:58:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW/u2uNIQIhC1wuGmkrjPhrZSmXOic3SFl2zI/9+FylC10KwNXKUVB2wlS/j5aAgUx+NQUlzzoNO9TSxiZtWz0NDBEC9h5MBL/WkvRa1w== X-Google-Smtp-Source: AGHT+IHR8aKW/a9zRnyne7wnOemFkHz5q1pHaK7gPF9Pqi7hi92S7ZM2KocX4A5y5AbnaU7jSKqt X-Received: by 2002:a05:6512:3e24:b0:512:fdc7:9200 with SMTP id i36-20020a0565123e2400b00512fdc79200mr527526lfv.11.1708883921071; Sun, 25 Feb 2024 09:58:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708883921; cv=pass; d=google.com; s=arc-20160816; b=JgdjAWUIR+O31elrxBGvYTKhaS4wsuxDzFXUOiEsj0vhYDvbS2ZvmPq7zq1H6/xasv KW24ux9dliAPqZu0MQ/gYahqN4IpQMiv7+HYd6AcL+4gj9XXgXbzYyZ2pNKU75RTth8o GKrqGmMRHJwJm6UWrpdH1JvBXjUmVjSpGwvWsj4Ms6GOVlNzw5bj3aY0J4LK2MC3eiVB 0jVCPrVf81lycVIqXEHM0SITKwJ/n6K3M/9hIeoRhGUnW4tEoAtKnY+Weps0qu9js5VV mPBj9vAbOTELZ2yv5xtXvLQSDR1RWhV6tZK0/YzXvO7YfYKSrAEqLRVmkHkzxOESz8/9 RNyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=VXjJ/yLSDKkAyllwMWv7UrxuK11qrnr7cHr/R7Ucfmw=; fh=5lChk1FuOQx47lPl17mQxJ0DvsC5MWw/ZlbefRhNECo=; b=IpyfDV1omVT2mu4TGGZ6Ta+wv0EyZ8GvhgzYvqWfpW6Iez20dt8Y10qJ5pbbYjev6I hJeMT86DZ14A8U4+tfwVt1T5rAahVh6noYlU/xfkTNjlSzWEQ7Uk6c86b5Psv6vuXUb2 C7uBiyarvgRShOYLrKksCu2jT2nbgnUjMH0nI6eEEI8DeF5BFxjWDrOh2h6P4oOnMKPK las2KsY6dO2+J44Qlb7QJRtqcimRKPcW6RxLpdRL0OOvxZFcINa0+60hgHdvmuh7UJWH /O4Wsbuph8Z9DdljR8snHOAYPsWiQVFqXK5pZ0QRopL/qdhyJea55AjA/FmxhWOXMV+X znVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bWACk36R; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-80241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w4-20020aa7cb44000000b00565b90910b3si1015888edt.308.2024.02.25.09.58.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 09:58:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bWACk36R; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-80241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CED9E1F219A0 for ; Sun, 25 Feb 2024 17:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8C2419BBA; Sun, 25 Feb 2024 17:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bWACk36R"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uNRu4Cxy" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 73C75171BB; Sun, 25 Feb 2024 17:58:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708883914; cv=none; b=rNPkSgYsrAiLvtjRUOC7VwqXWkWzJcjOqJE+Zd/xU//x8wsVQTzfenK6qr7DU+hmCI2xe0azcdorFiydMdcXOdDPARxT0n/nS97da+WrKz1xKCCcjgOgl0vZmAJPJMio22FzcldgGkcm4lTm3ACyPoP4ep6XOcZoiz4VCsfiC18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708883914; c=relaxed/simple; bh=472xf2OqAqsnb8f5NspBuhlX9Z+q0YjWrpV1JR9Szyc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=NO43FIUQyklmWcUE8mpU5Zrnzu+nySZqMke3wAe4rbAwTW3hgJxBZZZy+5f0cP5wksbK2w6v9N8lfmMUc+rWdOaOYw6FS0g51wJlaDyK+QPuW4OWbNtylwbNHqbDvUtYcxT0FDIeUPjw/yt5l91uHpX05TDosaiZJLVDdPvTnSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bWACk36R; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uNRu4Cxy; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sun, 25 Feb 2024 17:58:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708883910; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VXjJ/yLSDKkAyllwMWv7UrxuK11qrnr7cHr/R7Ucfmw=; b=bWACk36RKnC3ViCuFpaNrfi0/ALLx1Ua4VDayAOjibptVuN0ftNpKvm5xD0cw8AkTfNeY7 nGb1xMvVTx7MXEX2aOqBsMF0RD7PN23sJtIGC26ISoMgnx2dR+aKvGn+h2iheD1L+iHAcY ygY8VAOAx4lG4WA7s1ye1D+QvSNE1ltBlBcEvdV2u1Oc/JJhDOOFdaymdasIPR0EScB54I 7UYaY6ZabXWYqz1DPhm0fjpwY23uPd2vd8APVfc+0jhD0H+XKL2OLeLKBiO/w47lifvNqf q/Pam/afLyw7fLt+qW/xB/KwNXiLN14jLlhS6fY1OSYGz1LcnGlVAOjXtQX4Jg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708883910; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VXjJ/yLSDKkAyllwMWv7UrxuK11qrnr7cHr/R7Ucfmw=; b=uNRu4Cxyu+6cClX4n6yY4Ca8+AAOdVCr7EoCzQXeyAGdQuiGWM17F+lFyzEJFdfxC0xkZK JRVDjwsDcWa5eGDw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/msi] x86/apic/msi: Use DOMAIN_BUS_GENERIC_MSI for HPET/IO-APIC domain search Cc: "Borislav Petkov (AMD)" , Thomas Gleixner , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <878r38cy8n.ffs@tglx> References: <878r38cy8n.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170888390974.398.7311200606480641097.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the irq/msi branch of tip: Commit-ID: c147e1ef59d4751a60687074e4268ecc0ef31b5c Gitweb: https://git.kernel.org/tip/c147e1ef59d4751a60687074e4268ecc0ef31b5c Author: Thomas Gleixner AuthorDate: Sun, 25 Feb 2024 16:56:12 +01:00 Committer: Thomas Gleixner CommitterDate: Sun, 25 Feb 2024 18:53:08 +01:00 x86/apic/msi: Use DOMAIN_BUS_GENERIC_MSI for HPET/IO-APIC domain search The recent restriction to invoke irqdomain_ops::select() only when the domain bus token is not DOMAIN_BUS_ANY breaks the search for the parent MSI domain of HPET and IO-APIC. The latter causes a full boot fail. The restriction itself makes sense to avoid adding DOMAIN_BUS_ANY matches into the various ARM specific select() callbacks. Reverting this change would obviously break ARM platforms again and require DOMAIN_BUS_ANY matches added to various places. A simpler solution is to use the DOMAIN_BUS_GENERIC_MSI token for the HPET and IO-APIC parent domain search. This works out of the box because the affected parent domains check only for the firmware specification content and not for the bus token. Fixes: 5aa3c0cf5bba ("genirq/irqdomain: Don't call ops->select for DOMAIN_BUS_ANY tokens") Reported-by: Borislav Petkov (AMD) Signed-off-by: Thomas Gleixner Tested-by: Borislav Petkov (AMD) Reviewed-by: Marc Zyngier Link: https://lore.kernel.org/r/878r38cy8n.ffs@tglx --- arch/x86/kernel/apic/io_apic.c | 2 +- arch/x86/kernel/hpet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 40c7cf1..e66c775 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -2354,7 +2354,7 @@ static int mp_irqdomain_create(int ioapic) fwspec.param_count = 1; fwspec.param[0] = mpc_ioapic_id(ioapic); - parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_ANY); + parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_GENERIC_MSI); if (!parent) { if (!cfg->dev) irq_domain_free_fwnode(fn); diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index a38d0c9..c96ae8f 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c @@ -568,7 +568,7 @@ static struct irq_domain *hpet_create_irq_domain(int hpet_id) fwspec.param_count = 1; fwspec.param[0] = hpet_id; - parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_ANY); + parent = irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_GENERIC_MSI); if (!parent) { irq_domain_free_fwnode(fn); kfree(domain_info);