Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2823541pxp; Mon, 14 Mar 2022 05:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDwkqYVSiYGSJWilQi+uCp64/TLK8gnZEFeQKC/R+Vajov1t1Pg+TJJwZLYzOsJdwZ9leG X-Received: by 2002:a05:6a00:ad0:b0:4e1:2d96:2ab0 with SMTP id c16-20020a056a000ad000b004e12d962ab0mr23776388pfl.3.1647262204670; Mon, 14 Mar 2022 05:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647262204; cv=none; d=google.com; s=arc-20160816; b=wT+ek/hv8Ly5IpE0En8hpFNuojsRMseXrCnfzicyddu0LT7ZXQE3gY9p/2GVpQq18L AdWp2pVOwLKZhKIlaPjvmdjvLgKnV3vgrmuybs6kpa/raxmOi0L4oqlO7ooBH08LMbaW M9SYIxwFBPG2+nBHFoqZwQYaS8LKfA4dPus2Ls7KF4o9Il/W2PVw3qfF0fSjyU24+BSr 4Vr17erEnFE8ji/rpJ/W9ZAtPA9vKzXy3yXeOupU4+EPvWvg+8UQ2dIDg7FeMnWVKPsn 3Amq8zPBhtimBJ4KWJPcYeGdVbEeYDil2aklVgA+JFuN6sEvpNj4bakmOBsjeBp3KT/U UA0w== 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-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=4jwfRYg7YH5zJYZj6u9NUaCAFgPW7vhTfNGAWRCCJH4=; b=Sop35gafIwdNghgAn5Crmx7yGIn0/jB3WFV7UMYvRzDhSou1aT+7MHeKAenL2SEzVH 1p+XNSq0xgDeOF9wDGUMKBP5mHY7Ji+8i9YQAsBog8njIyDLgMCSXVRkW48tFRcvvd9a IASSbvJGKoWlmDmRVx/c57ZhADquWwwa7jgGQhQQOImyGY2pcaiJ90wBwJczeE1bHiHS RhlCxGU303rQFexH/Lm+ZsDmS19gMJ6goNr1ee83+nx1lVe9ccURrZ4fPFxUfNi6jbJd 0FsKr0bBQMFctirFM837nwBotnw+w+dae8/p+WCZntRpckhErzbIoXas0BqBkSb3XJQG qgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HMeEHZcW; 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 j129-20020a625587000000b004f7a1382982si7238765pfb.302.2022.03.14.05.49.51; Mon, 14 Mar 2022 05:50:04 -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=HMeEHZcW; 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 S235480AbiCMTxd (ORCPT + 99 others); Sun, 13 Mar 2022 15:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiCMTxb (ORCPT ); Sun, 13 Mar 2022 15:53:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA5C7B572; Sun, 13 Mar 2022 12:52:23 -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 9007260A3C; Sun, 13 Mar 2022 19:52:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B64DCC340E8; Sun, 13 Mar 2022 19:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647201143; bh=3YY45948+lUQY17XqnXTmmU1Wh530X/CvV7eUsfsqhU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HMeEHZcWAimq+XX3e2Ucdlbxn9PVDQlUgPvmjoL88o74cGqdTlYISTpWqDRqMeQEl 2b9dylkYug1cFQqnZAICO+QDW+T1aX9Yza/RFUPUH+fjwc6u40Nibfszn2cVC6gSSY 9GyeNch1zkZoC1QSMBqL2vLsZuqhSHvIPDjoa0/RyzEmmz66ALFm8yLuixK2C3cM7y lbrkztEPsZx7cz0InHdHQSC0IRkbNCpIOCw4bRYD0KD8rH+TmYHfHJ2UOdrqLBg0C9 X4LhqBPxUoi7m1oQVyOlFnN8LZ6hZqY/Nvs8KDUMAPLOelNb+4q/LHtH/MA+rGHLxS hGbRXB1+anYhw== Date: Sun, 13 Mar 2022 14:52:20 -0500 From: Bjorn Helgaas To: Kuppuswamy Sathyanarayanan Cc: Bjorn Helgaas , Russell Currey , Oliver OHalloran , Kuppuswamy Sathyanarayanan , Ashok Raj , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Badger , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v1] PCI/AER: Handle Multi UnCorrectable/Correctable errors properly Message-ID: <20220313195220.GA436941@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220311025807.14664-1-sathyanarayanan.kuppuswamy@linux.intel.com> X-Spam-Status: No, score=-8.6 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 Fri, Mar 11, 2022 at 02:58:07AM +0000, Kuppuswamy Sathyanarayanan wrote: > Currently the aer_irq() handler returns IRQ_NONE for cases without bits > PCI_ERR_ROOT_UNCOR_RCV or PCI_ERR_ROOT_COR_RCV are set. But this > assumption is incorrect. > > Consider a scenario where aer_irq() is triggered for a correctable > error, and while we process the error and before we clear the error > status in "Root Error Status" register, if the same kind of error > is triggered again, since aer_irq() only clears events it saw, the > multi-bit error is left in tact. This will cause the interrupt to fire > again, resulting in entering aer_irq() with just the multi-bit error > logged in the "Root Error Status" register. > > Repeated AER recovery test has revealed this condition does happen > and this prevents any new interrupt from being triggered. Allow to > process interrupt even if only multi-correctable (BIT 1) or > multi-uncorrectable bit (BIT 3) is set. > > Reported-by: Eric Badger Is there a bug report with any concrete details (dmesg, lspci, etc) that we can include here?