Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2182880iof; Tue, 7 Jun 2022 22:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTAw9TDuoVhjF2zgq6zf9ovQc36rAIkhrPTAhY6FxkCi3vUFZ4O6z7L/yU6lJ9f0RLJisl X-Received: by 2002:a17:903:2344:b0:163:ce0a:4655 with SMTP id c4-20020a170903234400b00163ce0a4655mr32688200plh.122.1654666017223; Tue, 07 Jun 2022 22:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654666017; cv=none; d=google.com; s=arc-20160816; b=K3bTGyP8QJx/VmA6h5ZzEiiuECtlVwp/bri68DWtXLW0ZthzPpcrtXgSuqlmSK55P+ jRyuo+g0FcE45Ra7sndokaMRcsSG34k4VLAX9G+7k5FIn6wpe8v+vM8Cqgl0BLfcWeuj 94Dm0dP1AJiQwXL1VrSdCxt+THLfGq8I20EfDyfPMsEAXw3ySlVKYyMHz7UwkXmtReWH u1zrKvfLCJqDbNZlZMPFsjkU4TPfmuQQJA/tx0PbCCVXKV8MXEZ88ckies1I7vkgft8Q CfVhw6Il/zDbS/R11DQQTDVyqtLF2qDrB8GgWp98BFVbmgKRhLrjSHkzTjB3wTUtmLNU ZIew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gyGtEL8gNoxjxzzhxFxXturaKWFevSmBZ5qX30okSuI=; b=Kd2PZtqYf1rClguuVmhOrRKsgaX7utxCo5RWmyaHqRVok8dbO1MDQxFn5Yv/Vamng0 5XEYCQtfgGqaiEOkk0biaaTqbZAo+XX/Xn06e7exU93QY5dbAhXWnzaliCJ96pogTckC ej6ZT5cNFmGBwuv/ZDsEFf62VPtFWluBVZmyOIAigusifV726z8VWRldjpVqlasLJUKg 6G45yFyCXzZ7ntrvaGBYAvjduT0FPiIEyNiaI6HS2WQoGhNyN95NM8AISPAtBLE6PAsr kXQar/tqcsUeKfyEJMyxZp7J9y8Pa3Qkpu3OMdPHpl0SRI6W5DuXoPK6ifzsLuEGOIP6 vV7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YqBIyGSW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 130-20020a630488000000b003fc5ca10e2asi24777785pge.73.2022.06.07.22.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YqBIyGSW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32999479909; Tue, 7 Jun 2022 21:53:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385249AbiFGWbT (ORCPT + 99 others); Tue, 7 Jun 2022 18:31:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380700AbiFGVQl (ORCPT ); Tue, 7 Jun 2022 17:16:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0CE21F9AD; Tue, 7 Jun 2022 11:56:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 711B26159D; Tue, 7 Jun 2022 18:56:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81B02C385A2; Tue, 7 Jun 2022 18:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628185; bh=Q2EBRsgfT+PTS/7GnCfPNIMf+eKY8QMFmv+If5+/aew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YqBIyGSWlL+0I6wj7UiZw3zVH+DIeZK7fDFq26sI+UuQczmmBE3hlkOW+IQ3RerF/ JODK7hR+M6YJTrDRYJwZ+5A4OloPoHVqlrgz1EnsMnNLYcPByO6WuiCJQodFNYXraQ /inoSoaQ7k4396od8vYub/UkjAhv6eSZ55QS1xH8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Conor Dooley , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 5.18 235/879] PCI: microchip: Add missing chained_irq_enter()/exit() calls Date: Tue, 7 Jun 2022 18:55:53 +0200 Message-Id: <20220607165009.674819127@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Conor Dooley [ Upstream commit 30097efa334a706f9021b9aee6efcddcfa44a78a ] Two of the chained IRQ handlers miss their chained_irq_enter()/chained_irq_exit() calls, so add them in to avoid potentially lost interrupts. Reported by: Bjorn Helgaas Link: https://lore.kernel.org/linux-pci/87h76b8nxc.wl-maz@kernel.org Link: https://lore.kernel.org/r/20220511095504.2273799-1-conor.dooley@microchip.com Signed-off-by: Conor Dooley Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/controller/pcie-microchip-host.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pci/controller/pcie-microchip-host.c b/drivers/pci/controller/pcie-microchip-host.c index 29d8e81e4181..8175abed0f05 100644 --- a/drivers/pci/controller/pcie-microchip-host.c +++ b/drivers/pci/controller/pcie-microchip-host.c @@ -406,6 +406,7 @@ static void mc_pcie_enable_msi(struct mc_pcie *port, void __iomem *base) static void mc_handle_msi(struct irq_desc *desc) { struct mc_pcie *port = irq_desc_get_handler_data(desc); + struct irq_chip *chip = irq_desc_get_chip(desc); struct device *dev = port->dev; struct mc_msi *msi = &port->msi; void __iomem *bridge_base_addr = @@ -414,6 +415,8 @@ static void mc_handle_msi(struct irq_desc *desc) u32 bit; int ret; + chained_irq_enter(chip, desc); + status = readl_relaxed(bridge_base_addr + ISTATUS_LOCAL); if (status & PM_MSI_INT_MSI_MASK) { status = readl_relaxed(bridge_base_addr + ISTATUS_MSI); @@ -424,6 +427,8 @@ static void mc_handle_msi(struct irq_desc *desc) bit); } } + + chained_irq_exit(chip, desc); } static void mc_msi_bottom_irq_ack(struct irq_data *data) @@ -563,6 +568,7 @@ static int mc_allocate_msi_domains(struct mc_pcie *port) static void mc_handle_intx(struct irq_desc *desc) { struct mc_pcie *port = irq_desc_get_handler_data(desc); + struct irq_chip *chip = irq_desc_get_chip(desc); struct device *dev = port->dev; void __iomem *bridge_base_addr = port->axi_base_addr + MC_PCIE_BRIDGE_ADDR; @@ -570,6 +576,8 @@ static void mc_handle_intx(struct irq_desc *desc) u32 bit; int ret; + chained_irq_enter(chip, desc); + status = readl_relaxed(bridge_base_addr + ISTATUS_LOCAL); if (status & PM_MSI_INT_INTX_MASK) { status &= PM_MSI_INT_INTX_MASK; @@ -581,6 +589,8 @@ static void mc_handle_intx(struct irq_desc *desc) bit); } } + + chained_irq_exit(chip, desc); } static void mc_ack_intx_irq(struct irq_data *data) -- 2.35.1