Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1068126pxu; Wed, 6 Jan 2021 11:21:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWQw0WnR2JIAjss3m+kuns7MYq+HyUACGKKX+DVWR1GSYB3XlI3ENI3Q5d9/ZVGDn7Yu1L X-Received: by 2002:a17:906:6a45:: with SMTP id n5mr4026499ejs.514.1609960912752; Wed, 06 Jan 2021 11:21:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609960912; cv=none; d=google.com; s=arc-20160816; b=QRJb6Q0+sDmdtE36s1FdJ+XbFTMfkVUkhac7HOu/H0zWmdRvr7DU7nHW6LKHuiQWyC qFHRedai5vvMPc14ywuoXHXayw3jCoqSkmgwMbOmMHLFDKUPFIH99WKk58Xuu0qy9qi2 Z0qDA7SbuCvy+b05S/KiVg5Jffy/NKjfAZu74UUq9TPsLRcAnCSYf9pMY8JAZh+hd8cZ EESuYWo6/hfCqwzvzUwrjMj/oxTTfPKBMMv6MHLqWkwpy/zJD1nvEN27HVjCvsP+QycL jgWmEh+ATjyDyCdglyse3LxE+6Y6fgZmtcbk4rJQmyUqFM+phZxhRbQkipH6X3z92MRO TxqQ== 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=2jKkHV8txYdBQzQrzB4FXEHS4kWV0jvQ0uRwZSdOpqw=; b=Oc0Kj5OlhRDtZ1PVGh3fxQ90dhDwv0nKUEvnZ0RbyvUAKWbubuJlzGymxX8dkgE4XA eF7MUls2BQpnXGAs5Wj8tVWv8ZvzTxKAqoTmTJ+2gMHJexOfbs240CWNWSBh9x+DrEaX DMNmEDrVx/xCLUH4MBSyBEhUh5j/MGxMelO4SjAz2EU3PZZbrkwmGIUUCVZqBrSbQ5HW PuiCAn70ML9FOHaA7hveVV+BNUBo2Mdz/n36EUtkR8zgkXBQhEe8xFt/6eV9Hcj9ahwU XU1GBYdkwf2OD9rx/sZDD9Wh9hY+JzOoLBTcPkZ6fbhU/rDqW31n/FtTdG50ILsutw15 qmGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DONdN+za; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si1170994ejq.225.2021.01.06.11.21.29; Wed, 06 Jan 2021 11:21:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DONdN+za; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726731AbhAFTUb (ORCPT + 99 others); Wed, 6 Jan 2021 14:20:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:39008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbhAFTUb (ORCPT ); Wed, 6 Jan 2021 14:20:31 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B221C2311B; Wed, 6 Jan 2021 19:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609960791; bh=U+g+SuPIZ3hN3vmlC/G3kLSsF0KrlCHBBpEFAdw5Ufc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=DONdN+za2JdOMS2tkNX8Udx10Mgoz1zTTX4/LKKwowRFEzME2OtA9A7gmmeMPWWqo ViCopXvbUuS9KNaQHGfPb2KNJUv2pQY+2eSXaKusAxA1jHrDa7Aw3OVlSSdCjf2F7b LUiof3UhPYIzqo04pYAHvwWWdU1jbFg50riZk1G1XuGS38/rFuqksebfc6jnNU84vT 0QIqwREaJTIxPCw/n2g7XnsER++6GD/SsPJtmOIpPcnX5eGZ0CybB0GsIYWsLc9/Zn Jw5P9CuYgde/UB1DwI5gwNDrz8BP+06XjI+7xckZG4jU1Ri2ar71uDh3FYw7LGlzt9 h2rtn0rv1WNfg== Date: Wed, 6 Jan 2021 13:19:49 -0600 From: Bjorn Helgaas To: Jim Quinlan Cc: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , broonie@kernel.org, bcm-kernel-feedback-list@broadcom.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v2 5/6] PCI: brcmstb: Add panic/die handler to RC driver Message-ID: <20210106191949.GA1328757@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201130211145.3012-6-james.quinlan@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 04:11:42PM -0500, Jim Quinlan wrote: > Whereas most PCIe HW returns 0xffffffff on illegal accesses and the like, > by default Broadcom's STB PCIe controller effects an abort. This simple > handler determines if the PCIe controller was the cause of the abort and if > so, prints out diagnostic info. > > Example output: > brcm-pcie 8b20000.pcie: Error: Mem Acc: 32bit, Read, @0x38000000 > brcm-pcie 8b20000.pcie: Type: TO=0 Abt=0 UnspReq=1 AccDsble=0 BadAddr=0 What does this mean for all the other PCI core code that expects 0xffffffff data returns? Does it work? Does it break differently on STB than on other platforms? > +/* > + * Dump out pcie errors on die or panic. s/pcie/PCIe/ This could be a single-line comment. > + */