Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4143178imm; Mon, 20 Aug 2018 10:31:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwu+gLVvvbfEXFRh7q1DriXTLsRSAJwIdOp9bgBwgxP0GZUzpCpdVMQyoPmbRskpmko3TB2 X-Received: by 2002:a17:902:5381:: with SMTP id c1-v6mr45763920pli.201.1534786306000; Mon, 20 Aug 2018 10:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534786305; cv=none; d=google.com; s=arc-20160816; b=LOb5LpHiKbTPW7VWAoauURuqINcavJm2jLE2OSkHVUy4ueSfvc8ALTUktpFH5VAYlm PrNJwXqDhDePJipyOTPAwHIz9mGM3HH9AiDRZV1Rr7dLbzp4igkCG5ptE/rsiwQsKRUt dKvR4pNfM7dk951yCGEhCpBbxcEXsE70DVEav9gaJA56rECCw9pQzbT/pwYmSYbARyvP Kkxx0OuwW63PIZ79xWJp7GVgU5pde3IPpqsray8V1RjJJnHVB8o7cFQWyEQuJ7m6Ecea GL5wKsPFEwV7Cu642sPx4vEk6L6X3piV6kao1fE+F286KAqOZQfRxaLaXDMr56M8xtqk 1jkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=x8PYmOcuhoHromOyG6thcwDnlZVNOjj5loRyPvMtBjc=; b=t5uiN0F976APkvwwoUtVnUask8YGR2uTi6CgdqF3/HEhZ4qheFo+NZ7wGh8NBit/8+ i+aGEFn/08ZPdAMQ7Sn1LD/aEkRj1tWyLONwp6CcJh0c2X0oPpqjreAjDf//hKroGW78 8LFXn/xtx2TLOXNLMH001TljdxmBj6B/EtNFGTRQgoDin52xDmAIMqVc6LwOKhRi7cgS 1vwxfMkNURPvVfIAYeuM1dOymO7TfXLEFeRYWM4cEOU1RQKdVOed09shCaX5J2uXBdFC JR61YqIcVKa24aK8LXMiIAsD79iG/MvbYjklIbK+Ms6aO3xNPHgajz8TTnOpHVmPutsP JjPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35-v6si10125995pla.116.2018.08.20.10.31.30; Mon, 20 Aug 2018 10:31:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbeHTUq7 (ORCPT + 99 others); Mon, 20 Aug 2018 16:46:59 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:40127 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbeHTUq7 (ORCPT ); Mon, 20 Aug 2018 16:46:59 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 9CD01100DA1A6; Mon, 20 Aug 2018 19:22:13 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4EEF5240DDC; Mon, 20 Aug 2018 19:22:13 +0200 (CEST) Date: Mon, 20 Aug 2018 19:22:13 +0200 From: Lukas Wunner To: Sinan Kaya Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Mika Westerberg , Oza Pawandeep , Keith Busch , open list Subject: Re: [PATCH v8 1/2] PCI: pciehp: Ignore link events when there is a fatal error pending Message-ID: <20180820172213.tg4fle6ugi7lkhxx@wunner.de> References: <20180818065126.77912-1-okaya@kernel.org> <20180820092238.kvktwlovc64oa66e@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 12:59:05PM -0400, Sinan Kaya wrote: > On 8/20/2018 5:22 AM, Lukas Wunner wrote: > > > + > > This differs from v7 of the patch in that*any* fatal error, not just > > a Surprise Link Down, results in pciehp waiting for the error to clear. > > > > I'm wondering if that's safe: Theoretically, the user might quickly > > swap the card in the slot during, say, a Completion Timeout Error, > > and with this patch pciehp would carry on as if nothing happened. > > Functionally both patches are identical. The v7 was still allowing > AER/DPC to handle all fatal error events except Surprise Link Down. > > Now, second patch (v8 2/2) is masking the surprise link down event > as we have talked before. Therefore, there is no need to filter > out incoming errors by reading the status register and masking the > unwanted bits. Ok, missed that. > Just to clarify something, this patch will wait for only the FATAL > error events to be handled by the error handling services only. > > Completion Timeout is a NONFATAL error event by default unless > somebody tweaks the severity bits. > > Anyhow, all FATAL errors cause one sort of link down either > initiated by software (AER) or hardware (DPC). > Therefore, hotplug driver will observe a link down event and > AER/DPC needs to handle the event as usual. Thanks for the clarification. Lukas