From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27B61ECE587 for ; Mon, 14 Oct 2019 14:18:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F08742133F for ; Mon, 14 Oct 2019 14:18:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571062713; bh=OrX/0cJJ1bZkXK4paYon6yRNkBd7p5Rb6RxMPtz3CYA=; h=To:Subject:Date:From:Cc:In-Reply-To:References:List-ID:From; b=19ymx1j2bkUQKYMsKxSoxm/TRNLAapREUMKFchbFV5oSRfxF/EWeS5C/glbFxqJse opHvsweUF7AvvcXJ5UY+ksOvJOwutJ4oLnPwfdgnegfyzsBfZ7VJb/gp3yPWij7VrM tx10Zf3NWXb1KbcYU08XOdfNNefcQM8GJgHoFzCs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732502AbfJNOSc (ORCPT ); Mon, 14 Oct 2019 10:18:32 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:40576 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732362AbfJNOSc (ORCPT ); Mon, 14 Oct 2019 10:18:32 -0400 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1iK1B7-0001sz-0w; Mon, 14 Oct 2019 16:18:29 +0200 To: Remi Pommarel Subject: Re: [PATCH v3] PCI: aardvark: Use LTSSM state to build link training flag X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Oct 2019 15:18:28 +0100 From: Marc Zyngier Cc: Lorenzo Pieralisi , Andrew Murray , Ellie Reeves , , , Bjorn Helgaas , Thomas Petazzoni , In-Reply-To: <20191014140026.GB1426@voidbox> References: <20190522213351.21366-3-repk@triplefau.lt> <20190930154017.GF42880@e119886-lin.cambridge.arm.com> <20190930165230.GA12568@voidbox> <20191001080546.GI42880@e119886-lin.cambridge.arm.com> <20191013113415.3c653526@why> <20191014100129.GA18832@e121166-lin.cambridge.arm.com> <20191014130627.GA1426@voidbox> <20191014140026.GB1426@voidbox> Message-ID: <971be151d24312cc533989a64bd454b4@www.loen.fr> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: repk@triplefau.lt, lorenzo.pieralisi@arm.com, andrew.murray@arm.com, ellierevves@gmail.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, helgaas@kernel.org, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On 2019-10-14 15:00, Remi Pommarel wrote: > On Mon, Oct 14, 2019 at 02:45:34PM +0100, Marc Zyngier wrote: >> Hi Remi, >> >> On 2019-10-14 14:06, Remi Pommarel wrote: >> > Hi Lorenzo, Marc, [...] >> > Sure, I think this could be considered a fix for the following >> commit : >> > Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI >> > bridge config space") >> > >> > Moreover, Marc, I am also a bit supprised that you did not have to >> use >> > [1] to even be able to boot. >> >> No, I don't have that one, and yet the system boots fine (although >> PCI >> doesn't get much use on this box). I guess I'm lucky... >> >> > Also if you want to be completely immune to this kind of SError >> (that >> > could theoretically happen if the link goes down for other reasons >> than >> > being retrained) you would have to use mainline ATF along with >> [2]. But >> > the chances to hit that are low (could only happen in case of link >> > errors). >> >> Now you've got me worried. Can you point me to that ATF patch? I'm >> quite >> curious as to how you recover from an SError on a v8.0 CPU given >> that it >> has no syndrome information and may as well signal "CPU on fire!"... >> > > The patch is at [1]. Please note that this is done quite similarly > for > rcar. > > [1] > https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/1541 That patch, without any other information, looks quite flaky. Unless there is a strong guarantee that ESR_EL3.ISS==2 only when the PCIe controller goes wrong, it looks like this only papers over the issue... That's pretty much independent from the patch at hand in this thread, but I certainly wouldn't trust this ATF patch without some more information about how the fault is reported to the CPU. M. -- Jazz is not dead. It just smells funny...