Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2282544pxk; Sun, 27 Sep 2020 01:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0AMjh1p0/NTyJkRK4NbJ7B0U+wW+yXYWl6zaeh51zJeM9NKWqQi9h1RI92HQMpMuXF7uh X-Received: by 2002:aa7:c648:: with SMTP id z8mr10210261edr.239.1601196483204; Sun, 27 Sep 2020 01:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601196483; cv=none; d=google.com; s=arc-20160816; b=iabqfrAKR0uL5kGppueJbo164t75K5dO+M7B2G5Px1pMvejMQABYLsfA7FXKuPd3Df qUDw2OIcGBPGkuP5AzFdVyjumpK9qik0XObQGhRSb+gLS20liWtFRPO3iLWURgElk8b8 RV6oVys+D9p+cEcgaOj4MTyqotSrJnNJkYD3eDNmDCXlOFug4gFxGm4TMUYUmJzXSr6+ YLVLktqYhoxVoy6nVjTCp2Sa9HCwcw/lEs1r0qlOZpeEFRBaRWTG/lBUhq3QmPgtbcgM fyF8vKP2LaIWNBk6d387oceYWucTC0UIp52ZoaAiCZAcu/ATDHANiU+NCP3efo7T3eqR az/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:dkim-signature:dkim-signature:from; bh=3LGtm2OI8qF06h9KMGGQRJ7d4e/B09d0iYRNLqK19DE=; b=dGXDcY/CY67PZLIb2q5lovfWgflUjKH+GPZE9QDelzcqDm/jbC+TWw9zJkFGKK1tje HccV3NkFCk4PEnn7ANXkQ/m1lYTt6Sgps96MmrmvUFilPNP0f8icU7QVG1ZLtAHhro8B Z1sjZZrBGhVoD6iYxZEKlbN2Ls3O2a1vLKsuMPpTK7gY8vZFSJ3wP768/tiBnJa5ASni H0NL817gvgkrXpDqgnDJVaK5q+XF4STua6Tc6TLJUh+MTV41g1hKmyt3TmxR2ElXXGfB oBAxQulq6sF6iWeW3rlxDQgaFxhBfL1FuHplfy74jGJD/ZtGGaPTXR4IjkzCEvu7SPCq bCTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vtWT6FXN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=2lHZQSLV; 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 b6si6183300ejb.204.2020.09.27.01.47.40; Sun, 27 Sep 2020 01:48:03 -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=vtWT6FXN; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=2lHZQSLV; 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 S1728986AbgI0Iqs (ORCPT + 99 others); Sun, 27 Sep 2020 04:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727369AbgI0Iqs (ORCPT ); Sun, 27 Sep 2020 04:46:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB24C0613CE; Sun, 27 Sep 2020 01:46:48 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1601196405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=3LGtm2OI8qF06h9KMGGQRJ7d4e/B09d0iYRNLqK19DE=; b=vtWT6FXNpv1rJGdbEJJKxhxZ2hkowdjPcJEaDMAro5/mwYgF7f2qjEeiKFQSSH9PtTbtjQ HsUFQz/Trt8kMSfUg/AQa+Dd6H6TLmp85HgtKhILMKJEBPAXZTlBVlCuBVrTlZ3SWkXObd A3uYhH4wFHZJacmbgX2O+NsHMqa/9G2Pkuz65AAv9jSfW+iCB+ZS9fYcuTgvLwKZwmDf/O zZgGz9fCusPWYJqd2bYwAHlyXGdEd/MWFvhUhNXr7HHWvB0uTZIwM6dBXR4V6SnJO+mQK+ WSRcbCQJ++zz1iV8DGtZCO9vHOjRIHe69AAw88TEiMXTyc69NYyY/moKXh9SBg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1601196405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=3LGtm2OI8qF06h9KMGGQRJ7d4e/B09d0iYRNLqK19DE=; b=2lHZQSLVc5ukVdtzXcK6JAqYUmFwK6ZXXzxyFLvvd4IZf5x37NfcDYaGYy6WSVTOsGs4s7 44wL1Jbt8wkVdCAA== To: Peter Zijlstra , Qian Cai Cc: LKML , Stephen Rothwell , linux-next@vger.kernel.org, x86@kernel.org, Joerg Roedel , iommu@lists.linux-foundation.org, linux-hyperv@vger.kernel.org, Haiyang Zhang , Jon Derrick , Lu Baolu , Wei Liu , "K. Y. Srinivasan" , Stephen Hemminger , Steve Wahl , Dimitri Sivanich , Russ Anderson , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Marc Zyngier , Greg Kroah-Hartman , "Rafael J. Wysocki" , Megha Dey , Jason Gunthorpe , Dave Jiang , Alex Williamson , Jacob Pan , Baolu Lu , Kevin Tian , Dan Williams Subject: [PATCH] x86/apic/msi: Unbreak DMAR and HPET MSI In-Reply-To: <87tuvltpo5.fsf@nanos.tec.linutronix.de> Date: Sun, 27 Sep 2020 10:46:44 +0200 Message-ID: <87wo0fli8b.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/kernel/apic/msi.c | 2 ++ 1 file changed, 2 insertions(+) --- 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_do 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_do 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)