Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3883191pxb; Wed, 13 Oct 2021 15:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAlibP/g8/IfcLYqmLsh/SqY75g2oCWrzh9t1MqJmouBzAzMYCaRA+M4m46MJ0nxyniztH X-Received: by 2002:a17:90a:5d11:: with SMTP id s17mr16411201pji.230.1634163390593; Wed, 13 Oct 2021 15:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634163390; cv=none; d=google.com; s=arc-20160816; b=KfT+GkJSrDFSebCpS0VNoODXrPj6wk2W7bln2VbpDdDQVP/GEvGOsmKKAgHKnpp9QK 1nWXFKEx+gCAwFls5wRwGLq0OdOjR7bPdA7Jw36dMaZ7jZz60quGgT9ln5e6R5pu6a5S xS9/pB/pct4Q1CGGqWRGeGGHD+1LCma07gIIzNB1tVsXWxZwRE+N6VALMiYSVlwYnHL3 qsHhJXVFhytlwouvUT4s/hcU6psC7iZWj2CO6Zhj8QVBiU9aajUIUcGnP8USCIT6Cqkm F5UshaBMb0xB54yR34rynVYGTzmRzrfQvDPhrjn+DyTtju2Fp6/B4REGa4SIO4mnbeeK zucg== 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=z2GMB62z43fQjg3Q6VZNBkWkiZaVpNS1tFryfJifz1I=; b=J4wkdRrkZa7fFBbuNUyB22E1Clihb+GWPINccAgT/1oe+1zF4ZVAJfgfJ0uZywjERs 4Wnz9kJzB3d3oVTchUsRfB6FcGGrEptDpLjkPt4xnaMajBFjlVpU8MznGvIzZzE85pfA z2GO00N/gRZbze9XT8eg/MFFW8BVIW4whHvS+g14S81SsCNpJjZdBOKo3CD+vCyQil1o uf1fsb5Z/SxGPLIM4nTGBRXMyedTAJXREbnLAwozdhcFWJbrolMgT9B7dJo/9/ahLoKo cp61kRwMCDAD/GB5LaILO/qKe2Gd/SkYHYXOTWr8T2tlZ3X/DdNZqYc6wENMNITjzOVD MkSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pucg75TZ; 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 l6si1068389plg.396.2021.10.13.15.16.17; Wed, 13 Oct 2021 15:16:30 -0700 (PDT) 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=Pucg75TZ; 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 S230407AbhJMWO7 (ORCPT + 99 others); Wed, 13 Oct 2021 18:14:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:43882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhJMWO7 (ORCPT ); Wed, 13 Oct 2021 18:14:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5A64161151; Wed, 13 Oct 2021 22:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634163175; bh=u/bQLZfhgnTnBbANf/qHToPTgbfBAr7b4QRmI0DM+VQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Pucg75TZ34Ae7T9jQ+XgW7e3rakhnRpGxYCSWvo2KxWvClG4ZbIKbtjeC2UVH+oO7 iVoNz/cLB6cSajRUNncbKcrPGbXD+ShoH15SzmVOLk+06vQmt6Z/lB063sUIpLOTmw R1laj0u3CVt86yKRk6JI9fS1kR5UQXiBp7dmZdRiInrPT8zKXLqikFm+SUZILmBlek 41SxPxZsmdwemO4Ok3cqgzGZGIl2UTjmWHhgRpCimk10jJ02LX/h899Uur3nfBbMeH coJjsSJGtt5f3YMjTcOCBHPuG+mnNeFJ3lz3CO5q4I8oPbVyKrgmbMtI3WATZIFq6J SQrjktw55/ahg== Date: Wed, 13 Oct 2021 17:12:53 -0500 From: Bjorn Helgaas To: Rob Herring Cc: Naveen Naidu , Bjorn Helgaas , PCI , linux-kernel-mentees@lists.linuxfoundation.org, "linux-kernel@vger.kernel.org" , Pali =?iso-8859-1?Q?Roh=E1r?= Subject: Re: [PATCH 02/22] PCI: Unify PCI error response checking Message-ID: <20211013221253.GA1928518@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 04:47:43PM -0500, Rob Herring wrote: > Presumably, there could be some register somewhere where all 1s is > valid? So I think we need the error values. We have to assume ~0 is a valid value for any config registers except the few defined by the spec that have bits required to be 0. There can be all kinds of vendor-defined stuff in config space that can be anything. > Also, I seem to recall only the vendor/device IDs are defined to be > all 1s for non-existent devices. Other errors are undefined? I think this case is actually an instance of the PCI controller fabricating ~0 because a PCI/PCIe error occurred (I think on PCI it's a Master Abort when nothing responds; on PCIe the read terminates as an Unsupported Request (PCIe r5.0, sec 2.3.2)).