Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp479056pxp; Wed, 16 Mar 2022 09:31:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+8f6FxIBMwMBcuDdhUKlOQYLHPAZHqD7aLwe4ZvVQQsXXvZE8OgEgqr+QKqYzoPnGep62 X-Received: by 2002:a17:907:3e82:b0:6da:6f15:ff38 with SMTP id hs2-20020a1709073e8200b006da6f15ff38mr710218ejc.324.1647448281944; Wed, 16 Mar 2022 09:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647448281; cv=none; d=google.com; s=arc-20160816; b=RJU/EvtGIWT1w4THQKMM0vqM3Xk9nkvkEdy63veggdRPEk4D8B3gMxDFrMs8MQULMs Z6+n9oc5N45z0WiA/QQha16qwU/KVid5+byx472vkxK2dMXzyi7oFAHfaWWcJBTi3iyH UZj3ssdUG5A0YlNMeqEfuFIMWPbME+52+RlNVePFx/sbLknGGvP7NgZeyymOil0NHn4A iTIGnwR2IZc4FbWb/kjsXPqlelAW9nAhmToSCVpvHynx7A4WPJ3OvXoMe8AatoXqBf2z 92ixjG3un1djh4Hplroe7/RlIKHXu4TF+BP6BHQbC2XikZxwc1nEAgR0svSpklIi05SS s7Fw== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xgus+7qmbSJ9nJIqIcIxl/J+AKyxRbFiTCWjU46hP/c=; b=vGTJ3QKKtzXT6X5V9ZqsYDRZTXa0gEoXOSxA1iN6uBkPyLrlBDcvOgcXDYuWgsnEUF HIANFnViLrhITCms8pJBMVg1HAiCzRGX6SCRQVgogcV7/7XVzTVsOs+RBdj+Ipjt6/zB 4+ZqDfG3G+fqI78mqfj/LesPNYCzMPAh9w5xmAOAf5w5MEkJLae5m5zA3Ic2L1KWcIH0 Sh9G6PMvLg5c+lAOnvFr58quQy2EVzmk1bX+oFcR8r1DAigGnj1BxcLR+waYvfdwg+IZ d+6BZI2NblUpkKmFkWan46irel8LeXfyvrRzb39f7pD1trVsQhROC7d8Oa1y+7zWQnZN JZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@purestorage.com header.s=google header.b="hQkHI/A3"; 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=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz22-20020a0564021d5600b00415c2f4884dsi2235552edb.575.2022.03.16.09.30.56; Wed, 16 Mar 2022 09:31:21 -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=@purestorage.com header.s=google header.b="hQkHI/A3"; 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=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350502AbiCORPn (ORCPT + 99 others); Tue, 15 Mar 2022 13:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350498AbiCORPm (ORCPT ); Tue, 15 Mar 2022 13:15:42 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B785325C69 for ; Tue, 15 Mar 2022 10:14:29 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id q13so16740636plk.12 for ; Tue, 15 Mar 2022 10:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Xgus+7qmbSJ9nJIqIcIxl/J+AKyxRbFiTCWjU46hP/c=; b=hQkHI/A3LRXnPnAlt7EGrixwAoVxbfQnxHbS174svfz/cEFEWbHmIrVQ+n9av6Z9lF CxmZ6608U+o2fZKbzJ0PpnteN5mTfDaXyRii/kkF4qaoKtqPYuAs6wtQiDmOBt/2ZAM5 WBJt87LUxcPe/6tI2cP92k7ist6mx/DTYf5Iw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Xgus+7qmbSJ9nJIqIcIxl/J+AKyxRbFiTCWjU46hP/c=; b=EpHO0/AT8w+f6RIBDEwnvqAG6lAhqK3H5NU0qlfWW68Q6XbYZwkpZ1s8vJv6tuaF81 4Uss4+s0wxK2KdE3QTmdXPzwagw8oqUp20Qj9EoTQptTednUzWSoZNrM4KwE3Yr9n0bs XEJhH7WzdH9xkDAJU0+st+dIGLLlnwgCL/gWKBoUVJxkCIQabHKsI1BxzU4P2ZeWkdFi 2+PR9056QyqHfPc+BummuhDM2xvcjVy0TwiqQrYT3meLRkgIyLvBT0PC97303JrdlxTf QXXLqmgefE5B1+sZA8ZDUWvs//VyuETOVAk9NhU2chdZ3TH7HnOk/6QS2TyaeRSec/fY /jkw== X-Gm-Message-State: AOAM530z5H9UppP0sFeHMAPydWr2hrL1U6iFrKGOlvUtKgzmhoWW5Yqo spat0ZOJmcUrbxPfc8o8jwgEfg== X-Received: by 2002:a17:902:cccf:b0:14e:eb44:40a1 with SMTP id z15-20020a170902cccf00b0014eeb4440a1mr29427014ple.111.1647364469225; Tue, 15 Mar 2022 10:14:29 -0700 (PDT) Received: from ebps (cpe-75-80-179-40.san.res.rr.com. [75.80.179.40]) by smtp.gmail.com with ESMTPSA id mw7-20020a17090b4d0700b001b8baf6b6f5sm3909768pjb.50.2022.03.15.10.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 10:14:28 -0700 (PDT) Date: Tue, 15 Mar 2022 10:14:25 -0700 From: Eric Badger To: Kuppuswamy Sathyanarayanan Cc: Bjorn Helgaas , Russell Currey , Oliver OHalloran , linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, ebadger@purestorage.com Subject: Re: [PATCH v2] PCI/AER: Handle Multi UnCorrectable/Correctable errors properly Message-ID: <20220315171425.GA1521135@ebps> References: <20220315050842.120063-1-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315050842.120063-1-sathyanarayanan.kuppuswamy@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 On Tue, Mar 15, 2022 at 05:08:42AM +0000, Kuppuswamy Sathyanarayanan wrote: > This error can be reproduced by making following changes to the > aer_irq() function and by executing the given test commands. > > static irqreturn_t aer_irq(int irq, void *context) > struct aer_err_source e_src = {}; > > pci_read_config_dword(rp, aer + PCI_ERR_ROOT_STATUS, > &e_src.status); > + pci_dbg(pdev->port, "Root Error Status: %04x\n", > + e_src.status); > if (!(e_src.status & AER_ERR_STATUS_MASK)) > return IRQ_NONE; > > + mdelay(5000); > > # Prep injection data for a correctable error. > $ cd /sys/kernel/debug/apei/einj > $ echo 0x00000040 > error_type > $ echo 0x4 > flags > $ echo 0x891000 > param4 > > # Root Error Status is initially clear > $ setpci -s ECAP0001+0x30.w > 0000 > > # Inject one error > $ echo 1 > error_inject > > # Interrupt received > pcieport : AER: Root Error Status 0001 > > # Inject another error (within 5 seconds) > $ echo 1 > error_inject > > # No interrupt received, but "multiple ERR_COR" is now set > $ setpci -s ECAP0001+0x30.w > 0003 > > # Wait for a while, then clear ERR_COR. A new interrupt immediately > fires. > $ setpci -s ECAP0001+0x30.w=0x1 > pcieport : AER: Root Error Status 0002 > > Currently, the above issue has been only reproduced in the ICL server > platform. > > [Eric: proposed reproducing steps] Hmm, this differs from the procedure I described on v1, and I don't think will work as described here. Eric