Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1845855pxa; Sun, 2 Aug 2020 23:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgDZSwXw0Copr26COGaZUtq4DgRZTPMP/C1WMnNYnLMQMurYzoBn3+6R3+Y3L+KUn0bgPe X-Received: by 2002:a50:d80f:: with SMTP id o15mr14530593edj.156.1596437864951; Sun, 02 Aug 2020 23:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596437864; cv=none; d=google.com; s=arc-20160816; b=gqn8aB/yM3ZbKnZPdZK1hG/YJieUp7N2opCsu+wyqVuiWdqOE/5FAJLD1mKJM+wDAJ XaDqSTzK0OqgJ5+Sou0j/sFLJ4/6LOXnOk+7R4et84t9Q3nDhN+ZBSTA2t5pJ4lqNgHu GGiABtD4fbyTkSD6iIP13l1CChcAToL6sVA6zFv8VMvRWr9LfGIWwR1aSSm3L40ckCtZ hbrLruMxb/e+OMliYaMitiHH02BPu4gPNAecZ3NPIcCFb65G5VXHzc7qbxcXXyYiMo18 TVO2IaNiTh43J/qwtjXwuHa/ezVLrBaZFGHtziZIg2JXBkNSM1MNx8mLP/0P4X4cbBrX 6fJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S81Y7/E/1KRByHOMFTAO1WQMOll7HWoP+pv/fCo/3sI=; b=q0p0OjESRlUh2JZaG6/AEz/mMZNBjDGDJHPbwXCL7Nmkllmm+AyHJ3PyN+Lu7u3i2Y C0vJgCxu2OBkKKLYmpOHwHhUJ/IVHpc9Ljy676qB4sbs0aLHdYgtuv1b1zgQ3BjjpRxN ieHG3s2nUWlb0WwWzeOKAy0wqWN1kJZK0rvmrHlohoSAeYVyh7AZvwpcbJHCtspRRKe/ Lzb5B9GZrHgW18abUbXpXcbEu2IwsRzBY+Zr4S5e5CC2U8KwNbkjtjWlsYxwRdFgJmTe arK61rOvTooGvFOFXmAP4i+beWJmRyPVCkwc8h5dB2whH6tVKDUviFDx8rtC+fxpvp6c L8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Imiqwh2w; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si11828168ejl.71.2020.08.02.23.57.07; Sun, 02 Aug 2020 23:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Imiqwh2w; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726795AbgHCG5C (ORCPT + 99 others); Mon, 3 Aug 2020 02:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbgHCG5C (ORCPT ); Mon, 3 Aug 2020 02:57:02 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFBB4C06174A; Sun, 2 Aug 2020 23:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=S81Y7/E/1KRByHOMFTAO1WQMOll7HWoP+pv/fCo/3sI=; b=Imiqwh2wh6gfO95HVgGWdIpJ7R qFqJDaURIpsOiDpUCq2k3ILdHp9/G64PbhflfbfwXUHR3YCqdMM2JIr5p2HV5QlEFNjYcibq1cAwB k5jcDFqNUiYh1ErghhsIpsN5baKyFw50AsjkOnyh0RkcQvG4I/FuQV4i+K4smxUlt0gQ8ZINX4zk1 zqYZrKBpxdTsr3nucjd2JPKqfEkufPqh/aFaSwGu2mFtFylC2a36pyZdPfsQXEbP1+7In5Kkj2kTD iIuAdnnH0jCfMh5vNRvgFzTjztCURqfBsmyFjwViAe1IQB++yIvaVvpqhNNNwV/B+lmZFzbHjUNTv QTu3Qcmg==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2UOb-0005Zd-6v; Mon, 03 Aug 2020 06:56:29 +0000 Date: Mon, 3 Aug 2020 07:56:29 +0100 From: Christoph Hellwig To: Bjorn Helgaas Cc: Borislav Petkov , Saheed Bolarinwa , trix@redhat.com, Kalle Valo , "David S. Miller" , Jakub Kicinski , Wolfgang Grandegger , Marc Kleine-Budde , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Joerg Roedel , bjorn@helgaas.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-mtd@lists.infradead.org, iommu@lists.linux-foundation.org, linux-rdma@vger.kernel.org, linux-ide@vger.kernel.org, linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-gpio@vger.kernel.org, linux-fpga@vger.kernel.org, linux-edac@vger.kernel.org, dmaengine@vger.kernel.org, linux-crypto@vger.kernel.org, linux-atm-general@lists.sourceforge.net Subject: Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value Message-ID: <20200803065629.GA19534@infradead.org> References: <20200802184648.GA23190@nazgul.tnic> <20200802191406.GA248232@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200802191406.GA248232@bjorn-Precision-5520> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, Aug 02, 2020 at 02:14:06PM -0500, Bjorn Helgaas wrote: > But what guarantees that a PCI config register cannot contain ~0? > If there's something about that in the spec I'd love to know where it > is because it would simplify a lot of things. There isn't. An we even have cases like the NVMe controller memory buffer and persistent memory region, which are BARs that store abritrary values for later retreival, so it can't. (now those features have a major issue with error detection, but that is another issue)