Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1417196rwp; Thu, 13 Jul 2023 10:29:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcPj3JM3i0W1a+IVDa3RMZ0c+KA1xiEs4HdDRlA8e1/0XA8Xi6atRJrgcQN+pyyDSaUBi2 X-Received: by 2002:a05:6a21:6d9a:b0:12c:2dc7:74bc with SMTP id wl26-20020a056a216d9a00b0012c2dc774bcmr2831831pzb.46.1689269383064; Thu, 13 Jul 2023 10:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689269383; cv=none; d=google.com; s=arc-20160816; b=VB2XLGk6m/gLCkFeesVqtlDMNk6oL6kDHhbm9v4Gq+/8aBKuyy+w8uQUkJgT/Qr2iC 2I/yD56qLWQO7NtuAYOf29IvkMZUJ3Em80iJwAqK/6kGQ66LNuHtG4TZjXfPDXO6vfdj uKsHUD0snzr7XTCi7625pjGuLjdJASWPu5KkQ/FdfhfRRqpxzvOLu8CX3+mQHUfpBLmM z0aWdd6xZd9mJ8PfoBuCM5l1Z94hqRt7fWz3lwg5ke2jyjNK2vjZboWgp9KEW5+Cv5PO vytSW+AVUuJxoSkiAffHWvhw8gI7437lsQmPGirz52TLDK3qPFg0NgPeSFJF9EMsQN8o l0jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=xjZmcPRtfljLAn6oMHzyAvbjFT8wH4zFNqQworRGd0w=; fh=drJrlxppuqekvGIKnZhxn9PgmmvjEEPMxqQL8bAj/eg=; b=hfL8YkyX2QlvHxfVJaL08l8DyhEoPgSGn3GJbMJ1PYSB5GkuDU7aEaM0dFNmpLWjZB BXJCutYpeLk8Q2Jq4J7lTibne7wbYNFVWrNTp4M4GE18rOoKGzb8VwUKxSihoQ+xKEMs Ue5NBZVHanxmQcfEjgpG/lRiypOtXUt1/l0wSpwH5ZCH4kOlO5kZqS/xlYm26E1BaL3l JPC+F+VrNU0fgQc56XkMNCKhqKhgBrAAn0fQxSe5zNjEjha+UtK7RZ/MO9jIUuOeGr8U S8nu+S0FbwaHZA0rCZ4M36spv4WzkCfugwsU0fEoo5jdvZACTMptN+tZY2y6tZ7Ltpqn cJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ldRUBCz1; 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 t13-20020a056a0021cd00b00682ad3438besi5500273pfj.214.2023.07.13.10.29.31; Thu, 13 Jul 2023 10:29:43 -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=ldRUBCz1; 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 S230199AbjGMRD7 (ORCPT + 99 others); Thu, 13 Jul 2023 13:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjGMRD6 (ORCPT ); Thu, 13 Jul 2023 13:03:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F6B52700; Thu, 13 Jul 2023 10:03:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6E6D61AED; Thu, 13 Jul 2023 17:03:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2C31C433C8; Thu, 13 Jul 2023 17:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689267837; bh=+qeyXsRrQ/U2yh6VTcdgE7vMtiDddsPP8kKRqmBbsC4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ldRUBCz1IijQ2TRJznDuOdfdNLVlCgTn8OwirEAkjEQzdy1+SVvxmVgg9yF8qf3RA GSXMDzrmc6CeMhEJsIwtEMxbWUjWfbKynBYzA6xfO57OQya8HgKi6EL4OOnMmdz6gG SExAd79qm0KKzjb/zY0GM2xLCz/VUcQXe8f6RJzA1Njuk13+5tUeQGunZGFFlAe2Px RxjqZMvof3cZguglyIFIalImEJlJsBQts9MCTAkLboqfs9rDNy0hcNgm3Eiilqd+pk PK71+MiET4cGnHEmQN8mC7+H1Soki7SRRL+GnMBzzs0j1+4FqW0LJBGIqygWYCmfYm ARAT3V8JMvRTA== Date: Thu, 13 Jul 2023 12:03:55 -0500 From: Bjorn Helgaas To: Radu Rendec Cc: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof Wilczynski , Rob Herring , Bjorn Helgaas , Marc Zyngier , Thomas Gleixner , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Pali =?iso-8859-1?Q?Roh=E1r?= Subject: Re: [PATCH 1/1] PCI: dwc: Use regular interrupt instead of chained Message-ID: <20230713170355.GA323073@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8715f2b298c04422db311666eb2409464c29458b.camel@redhat.com> X-Spam-Status: No, score=-7.1 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 Thu, Jun 29, 2023 at 11:04:50PM -0400, Radu Rendec wrote: > On Thu, 2023-06-29 at 17:11 -0500, Bjorn Helgaas wrote: > ... > > If converting from chained to normal handlers can be done safely, I > > would definitely be in favor if doing it across all of drivers/pci/ at > > once so they're all consistent.? Otherwise that code just gets copied > > to new drivers, so the issue persists and spreads. > > I think the conversion can be done safely, meaning that it won't break > the drivers. And by the way, there are other IRQ drivers (outside the > PCI space) that use chained interrupts. > > Unfortunately, it seems we are going in circles. Chained interrupts are > bad because they let IRQ storms go unnoticed and lock up the system, > but converting them to regular interrupts is also bad because it breaks > the userspace ABI. > > I am willing to help clean up this mess, but I think first we need to > come up with a solution that's acceptable for everybody. I was hoping > Marc and Thomas would chime in, but unfortunately that hasn't happened > yet - other than each of them pointing out (separately) what is wrong > with each approach. I don't think Marc or Thomas are going to chime in with a fully-formed solution. I think to make progress, you (or Pali, or somebody) will have to try to address Marc and Thomas' comments, make a proposal, and we can iterate on it. Bjorn