Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp245377pxu; Tue, 1 Dec 2020 10:09:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwu29J/8hZW3RQ88CGPWFJEgQP+NDKd8f9yB1HQecVJwKT1DlLX4FOGfKNB9QXke7emcan X-Received: by 2002:aa7:da81:: with SMTP id q1mr4337156eds.14.1606846168238; Tue, 01 Dec 2020 10:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606846168; cv=none; d=google.com; s=arc-20160816; b=VcPkEXc8sFBEmABMI6VvmLUaNxH3mTrj5bI7Pi6QR9UMYnqoP22SZQV+GkhSUeddqY W8ozb2ugnOqQXLQxx+mbFP0KxBCYw3jQMskX+aB5AGSPUCDociD2b7cZ/Xj0NJqABYhh ukvh/wTJG3BuVv4CPiMa3Yahs5wmedBcHS9san8vESxBvkKp5hOW+0YPxPw+/vdTW7Ju JMQP/457ZgRR0SIIoLjgphSICEdip/uaed4rkOY1W0MrmFvVBJmSoe406jQH857VClyT Op64jdOS4/FCvtvGdjwnTW/XrWLduFPyOgKNHXERqDgu1gy4Kee7x8kssB3Rzo17e1c+ 17Rw== 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=1c1AU7PPVCwtzw7mFMDxoO0vko1ATij5nEK86wR7qZ8=; b=A6T0UQi2qnaXbxHsLd/Abv3wGwngSkklJ4pqzyMrKsvmEIn2vpIjfKXMcGF6mynWjP YMV+D2vi9uU0TZGWD4H4/Ax9VwUyeUOB1adM/8ObaZid5+DjVaq3cJzLwvbFqwC0Y6ib 6Z/tU766VxdEu3iBULqPcMvGaKWDf0cahA36F8CPmEoOrmXEIyVkF1OpK0fbYI5srAZ4 V/djHM1Z36gZHXsw/q1s1ww87xnNCliW79Ziu8CkPJ3IbKCblYuC6KoPghrhzlMRpSUV q5NuH3nIEZ7PGf1YFucVsXj/A0iaDKx9jAhaZP8G2axoAbvRHbkGYB/H6+E5Bi8YPNy1 LVVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q+QSLRrN; 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 a25si375365edn.377.2020.12.01.10.08.58; Tue, 01 Dec 2020 10:09:28 -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=default header.b=Q+QSLRrN; 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 S1731156AbgLASFq (ORCPT + 99 others); Tue, 1 Dec 2020 13:05:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:57662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729690AbgLASFp (ORCPT ); Tue, 1 Dec 2020 13:05:45 -0500 Received: from localhost (129.sub-72-107-112.myvzw.com [72.107.112.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF0CD206E0; Tue, 1 Dec 2020 18:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606845905; bh=NDbqdi1dY0jePUs1m+Df4GZMk8/N7wk7RMYH342WSRE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Q+QSLRrNGaqVdwqvELVyoAGnIEyYdBsPIpCjKV1IQIOkHkOWQDY/Y3YmIWVeCAEx7 4VxxBgWm+Vzx1qb04KtqjZ53ccfD++0XYOKCZNaQLsAd77DRr6bht1zzgNRrgaqbxr MwtPmSrB6KHkZNJ43lj7RDMTubHcIbz+xueWOiSQ= Date: Tue, 1 Dec 2020 12:05:03 -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: <20201201180503.GA1321042@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. What happens during enumeration? pci_bus_generic_read_dev_vendor_id() assumes a read of Vendor ID returns 0xffffffff if the device doesn't exist. I assume this case doesn't cause the abort you're referring to here, or nothing would work. I think this enumeration case results in PCIe Unsupported Request errors (PCIe r5.0, sec 2.3.2 implementation note). Bjorn