Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2584615pxk; Sun, 27 Sep 2020 13:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxKLXAXGwlqYN84+bxJnSumYQnQ+ynW8kqwhHQa25M1EQqlvK7eOxrS/zSXidv2ONzCnex X-Received: by 2002:a50:f199:: with SMTP id x25mr12086407edl.347.1601238496419; Sun, 27 Sep 2020 13:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601238496; cv=none; d=google.com; s=arc-20160816; b=Y4RiP2oCpi+iHFwd+TAsXU+YrkzpDtlqbsDUhX5MoMSnmWGvZU0vhr4w8v7fVx7xyn j7DI0Eq0TkdpDPLcMKxG0CAom7Gja3J0P7Me10+pxiiQm/X1sn4pPp0MqLkgCZWjnmGv C3Njrpv9dVCoMUU2Gz+/t/pKl/X7frFLTv53EICZjEob5fmCTUbyicgQEGcNbxtx17SA 8vBxHgqMS6Bn17OGYqoTrYNeT22Ja6GwhF9JMi9jn2VEBQf/7IVOcHFZDaNKGuwcNRTz ua6F4EyKOrgptQz3n+r3EBHfPa2+PVAx1tNhaXSt+nRThHmfi8nx50DkEEW5SYz7R3PI DhoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=a786VCv1z2fJcpCMIo7y6Vm7zl4rBDgJhy6TGsHsmKY=; b=DakJ7pqxD49d31pt/3uYMZI9EaAwsz67sBRtwPQXCJ5d84NoIWTPOQBYwa9Xx004mt w3dzE9bCMtNzMPoqa3ECWtSBzUgy9kUUb/6Wwp1S8xKFzBBZ6G1jiCCCYagy6biCD436 dW61aw9QxuNoYVzkba488Hav7dP5e0aZOhCK6c/i+Az0Q714/vZDnU1XLBB16nKQLFSX nrmUneOOdcvvj09qzGu20zjO6hbPsokhdDnzpKDLjbarb6StZpqgcOli6HH/KQeAMCcH JLqOOEfvjCG/Xr+IgH5OTJ+hsx7QW56ezD9laIR5urcOLWpt/EzzGk9yh6EGt95f9ERd OlAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uQ9Y1Nt0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GXextnyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si6824194edr.49.2020.09.27.13.27.53; Sun, 27 Sep 2020 13:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uQ9Y1Nt0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GXextnyg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727460AbgI0UA1 (ORCPT + 99 others); Sun, 27 Sep 2020 16:00:27 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41774 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgI0T5a (ORCPT ); Sun, 27 Sep 2020 15:57:30 -0400 Date: Sun, 27 Sep 2020 19:57:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1601236648; 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=a786VCv1z2fJcpCMIo7y6Vm7zl4rBDgJhy6TGsHsmKY=; b=uQ9Y1Nt0I3J2+gj6Dnxs3OHqNpOoVlXd20sprku0hNoZ3q7zoiWjBegA1jPOpHGbb7oocV OzlQKRqBV/zC/2D5AwW5moSIKxT8Is/v+BqHbf8eoDPoSZtfAPV8RW2pzECF6LIUMB+7C+ DlaSV1Mosad/V+4Amf6W1bJoVkXbXGAcAcDOikMVXu7PSxfb91uRL/27vRsRK0KSB+65tA +Ko0quSmrpvoldAKg33W1L3ABzIlvDVbWHarDFFJJ0hGYOg14+z1B45PUo7qGgSAiI1FVj eozwCVoJ7W0mUUIlDOQNiyBjw82CUYyRonugIuNGFJJV9+8OsU47Sn1UvEYcQA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1601236648; 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=a786VCv1z2fJcpCMIo7y6Vm7zl4rBDgJhy6TGsHsmKY=; b=GXextnyg1zjdLCUyRYucI62PQYjrxw81gg5ZNiUDB+1fVV4V0UfE0dyxEHh7Nc0CeRiCUI BNTxFqFrRru5D/Cw== 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: x86/irq] x86/apic/msi: Unbreak DMAR and HPET MSI Cc: Qian Cai , Peter Zijlstra , Thomas Gleixner , x86 , LKML In-Reply-To: <87wo0fli8b.fsf@nanos.tec.linutronix.de> References: <87wo0fli8b.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Message-ID: <160123664742.7002.8496872646322552146.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/irq branch of tip: Commit-ID: d27e623ace6af259075b6e0437380ee8d6268c5d Gitweb: https://git.kernel.org/tip/d27e623ace6af259075b6e0437380ee8d6268c5d Author: Thomas Gleixner AuthorDate: Sun, 27 Sep 2020 10:46:44 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 27 Sep 2020 21:53:41 +02:00 x86/apic/msi: Unbreak DMAR and HPET MSI Switching the DMAR and HPET MSI code to use the generic MSI domain ops missed to add the flag which tells the core code to update the domain operations with the defaults. As a consequence the core code crashes when an interrupt in one of those domains is allocated. Add the missing flags. Fixes: 9006c133a422 ("x86/msi: Use generic MSI domain ops") Reported-by: Qian Cai Reported-by: Peter Zijlstra Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/87wo0fli8b.fsf@nanos.tec.linutronix.de --- arch/x86/kernel/apic/msi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/apic/msi.c b/arch/x86/kernel/apic/msi.c index 3b522b0..6313f0a 100644 --- a/arch/x86/kernel/apic/msi.c +++ b/arch/x86/kernel/apic/msi.c @@ -309,6 +309,7 @@ static struct msi_domain_ops dmar_msi_domain_ops = { static struct msi_domain_info dmar_msi_domain_info = { .ops = &dmar_msi_domain_ops, .chip = &dmar_msi_controller, + .flags = MSI_FLAG_USE_DEF_DOM_OPS, }; static struct irq_domain *dmar_get_irq_domain(void) @@ -408,6 +409,7 @@ static struct msi_domain_ops hpet_msi_domain_ops = { static struct msi_domain_info hpet_msi_domain_info = { .ops = &hpet_msi_domain_ops, .chip = &hpet_msi_controller, + .flags = MSI_FLAG_USE_DEF_DOM_OPS, }; struct irq_domain *hpet_create_irq_domain(int hpet_id)