Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3234431imw; Mon, 11 Jul 2022 04:54:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uIld0W9lgZoEH/4hsqSy1SsxW9sLLzaUXtpI6RdMpCAE/bwsah95oMBKL4yq9sJPmkEp4n X-Received: by 2002:a05:6402:3201:b0:43a:b203:219c with SMTP id g1-20020a056402320100b0043ab203219cmr20863120eda.371.1657540452400; Mon, 11 Jul 2022 04:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657540452; cv=none; d=google.com; s=arc-20160816; b=f3XSR6r8ClwYkQu/QLFjwSlI+P7T8V0G+tZ+Kguah43uJ1mdilcxhbqhnMsRD2M0OC DbTE/IYh0wpWmTddXh+6zPNrP8F6k9zeH1OOaq77jFXzJIAoTdGrpEAI5DjUMb5uVjr6 CygZU7KBtdc6QJdzrd4yfGhszdHCjLWWdr5g+0403eLVwhQgBON6c9dHiNmr19n21fkz iwAKV0Ni3uHyeM+Cu7eywNob8oGkpzXqI7jWPNeTivYarJtazgt9/v2TAkfXW4xoWmnR 7m1RGMV8esLbJ3fBY0X6VfBgmE2YQBF3GoU0iOzHD07Q6gfjPn7CiJ8pfwo1tWx2pXff 1b4A== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=l9kFNBjXCnFMglSVVw/g0laVVMuPKoSOLTyWT3WpymE=; b=izPHa63N+mrD9dzb0e4cP0cPAM1JuI6GzyPaFh8cAcOY8RvJomcZ/XPjfVn21aII7C NlsfN+nCld0TyhHat4Cw5Q4gYtrKRkMUSocbRULmXIdDEFYCWgNrV0JrMVNTD9Lk6kNN yqDAidHDWd0q7yrfDM6SBGLEA6wZ5Zms6eXbPpK6XJrjnDEHTgcHt+jiuHee7MValpWB 5LVGk2jXlj3s8qxmqpF1S+pNqUsAFx5aRVXLZlxcjpNr5xc34MqB0N9IZpJ6murVQInf baFdf7EluAAbKKopQYE8xkeFQzNPVksmRYIuPkWKNKdyJcOFKqAhP/qZ7o4nZLykfwcC gLbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WNSpR05Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji18-20020a170907981200b0070337fc0e1asi9767653ejc.27.2022.07.11.04.53.48; Mon, 11 Jul 2022 04:54:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WNSpR05Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbiGKLrG (ORCPT + 99 others); Mon, 11 Jul 2022 07:47:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbiGKLqu (ORCPT ); Mon, 11 Jul 2022 07:46:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C65CF138; Mon, 11 Jul 2022 04:44:25 -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 67A7161032; Mon, 11 Jul 2022 11:44:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EB43C34115; Mon, 11 Jul 2022 11:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657539864; bh=UzO+eoR2gdyxbkEMVthgFEEl4Ykpah7DCyZuEQPq10Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WNSpR05ZZxJDxOIL4hVvtm/ZOwUx8D3fS8wEjhaksFhkHpS+7eehFd6qT72jjiZJ6 m+lyR1sAAUGOR93ZKpLBBcfGr60+Xco6Zb0ChJLGgB/vMy6Gja1ZABJ/eFDPA30HrH f11jzaWn9ycQ2xxAi4I3QiDLv0kwhmF8VMSk+VsRDTl3WWbLRlv+bJOLjxvGpReZrZ fDcHF54eKcyy31+mBtzmmuW8Ek7m1XQYPL9AQ5DC3q++V1q17yDe+AMl6/MdRgrhL/ Np9gk2WnyMPhzUHZEFjRRuD36lcevfL0EpfGjkOHe9xqrD2tQrKwVHFHdvhd/Ei1H1 ByJOAiwqWpAGA== Date: Mon, 11 Jul 2022 13:44:18 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Thomas Petazzoni , Lorenzo Pieralisi , Rob Herring , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Bjorn Helgaas , Hajo Noerenberg , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: mvebu: Dispose INTx irqs prior to removing INTx domain Message-ID: <20220711134418.69f20344@thinkpad> In-Reply-To: <20220709161858.15031-1-pali@kernel.org> References: <20220709161858.15031-1-pali@kernel.org> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sat, 9 Jul 2022 18:18:58 +0200 Pali Roh=C3=A1r wrote: > Documentation for irq_domain_remove() says that all mapping within the > domain must be disposed prior to domain remove. >=20 > Currently INTx irqs are not disposed in pci-mvebu.c device unbind callback > which cause that kernel crashes after unloading driver and trying to read > /sys/kernel/debug/irq/irqs/ or /proc/interrupts. >=20 > Fixes: ec075262648f ("PCI: mvebu: Implement support for legacy INTx inter= rupts") > Reported-by: Hajo Noerenberg > Signed-off-by: Pali Roh=C3=A1r Reviewed-by: Marek Beh=C3=BAn