Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp454839rwd; Tue, 16 May 2023 03:32:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ54/I/vmoBQTQRDvJ0qy1W95Wai1qoN0ABf719yWHAbF4q8J/ehdpD1R4YF1Be7J2Kyx3SM X-Received: by 2002:a17:90b:1e51:b0:24e:d06:6912 with SMTP id pi17-20020a17090b1e5100b0024e0d066912mr45332738pjb.18.1684233153933; Tue, 16 May 2023 03:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684233153; cv=none; d=google.com; s=arc-20160816; b=h2o0HASqWateg6zxqoGHDVDcZ5Sjv42tHLClccsvfJTDnarNJgV1Cmw97cVtNQ/EZi KRv3ykv5rKbzdO9ij8/ay2bK1aPiAAmo2Zh/tb7y315JIYt3hwNewZnVxfT7e6g9OZT3 /MQ3uv3XplXXQmPCzouLMiznR1/FhgOXLk6RZB9fAWS61X+k00oyPaGZ+ihmdJHclPlZ aYO5wjzbPO/MP96EGjMDMAEWegVu1iK3iW1pUDiofRynK58pJDqBvI0lz3RVXLcZZiNc xxHU8n32WDgaQ1nK2xynW1Nff71nnVuREeG0+WydilGGwSW2+EbkQUFgL0fA0b1Ah/sj FJFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=45TBQfoKmyjIZDvEYg0moa7BtRIXtrsDF9ewD6rEZME=; b=Sy6aiYtLgx+lfPFTyIAeM3cyP0ApifXfcEL5GmNo8rKnFM7sV3s2VEksMf8U9ODuHU 2NRiGrhKTFYuMfQTt80nX1NQd510OwtVNp17THvJq+Px7zZH2KFmZpf8Q/loBgfyHSNv UwHSlwTyKPevFIx7tx8kl6YIjzldPPa0xIICFHdcBrXrFTalBjJ+h05RXyL2Il4tHbxr eNvIhOIHirlIqmxwT0sdJFbbwGmy+f1aQ2PUJTP8NU0Ef7Eo7VaSJYQLb+BQQUh6/iSp +AdbQnFZVbyMDFpEEZeiM1TZX7hHAI1JSaowNIaSkA+zgk3ECKlnTcjkqjNXEn5UNUYw q7cw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 65-20020a630244000000b00524b0295005si18094124pgc.558.2023.05.16.03.32.19; Tue, 16 May 2023 03:32:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231920AbjEPKOH (ORCPT + 99 others); Tue, 16 May 2023 06:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbjEPKOG (ORCPT ); Tue, 16 May 2023 06:14:06 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95AB2E6A; Tue, 16 May 2023 03:14:05 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL Global TLS RSA4096 SHA256 2022 CA1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id AB0B930000347; Tue, 16 May 2023 12:14:03 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 9FFB3260B59; Tue, 16 May 2023 12:14:03 +0200 (CEST) Date: Tue, 16 May 2023 12:14:03 +0200 From: Lukas Wunner To: Smita Koralahalli Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , oohall@gmail.com, Mahesh J Salgaonkar , Kuppuswamy Sathyanarayanan , Yazen Ghannam , Fontenot Nathan Subject: Re: [PATCH 1/2] PCI: pciehp: Add support for OS-First Hotplug and AER/DPC Message-ID: <20230516101403.GA3398@wunner.de> References: <20221101000719.36828-1-Smita.KoralahalliChannabasappa@amd.com> <20221101000719.36828-2-Smita.KoralahalliChannabasappa@amd.com> <20221104101536.GA11363@wunner.de> <20230510201937.GA11550@wunner.de> <20230511152326.GA16215@wunner.de> <579cb233-4827-2d03-56ad-1b807a189ba8@amd.com> <20230515193835.GA17526@wunner.de> <14ac1391-9ab9-d352-d3b1-ba6caae3d9df@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14ac1391-9ab9-d352-d3b1-ba6caae3d9df@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, 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 Mon, May 15, 2023 at 01:56:25PM -0700, Smita Koralahalli wrote: > Could I please know, why do you think masking surprise down during > initialization would be a better approach than reading surprise down error > status on a DPC event? Because in both approaches we should be however > clearing status registers right? Masking seemed much simpler, more elegant, less code. I wasn't aware that masking the error merely suppresses the message to the Root Complex plus the resulting interrupt, but still logs the error. That's kind of a bummer, so I think your approach is fine and I've just sent you some review feedback on your patch. Thanks, Lukas