Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1518828pxb; Wed, 20 Oct 2021 06:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhdQ7yStHFXBZs2YDn5s40CRnBOFqn6n3aMVTl6MIHGlS1ZAcpGBFbhLMUu4Z809S97xJk X-Received: by 2002:a63:555d:: with SMTP id f29mr65132pgm.33.1634737480832; Wed, 20 Oct 2021 06:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634737480; cv=none; d=google.com; s=arc-20160816; b=pxidlBkp9Ry7jA4/pAiJfg3/cDQdOgA2e4xCrISm48y/QA+JEObZt9ZkGUsI3N0fas xnchKyYvyXVZ5yGD9gdFInKRjHCvTcR112wp7rDHICxu2vQpp8BeN2snQJK7j8rl4/HA 1Pg5JjT03qsxjLBZ8R5PE1AfuGJIFAAz1xRwCmNw7OiEpcFWlrSJzQycuuBBuC7L35SK IxB7amwTvGWdnIpWv0HfYCSpDi0X9sIV+p2g3XP8LJfUomDaX8jwIQTubstTnSI6O8rt ssKyxAhXiUloGyntAlYBnMQneys9K5MtSvgEoJEKrYuTowP/NJmeW/vZ9eb8EmsrM5rQ v0sA== 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 :references:message-id:subject:cc:to:from:date; bh=C3zm8nKj/VABcyLNvlJFABEEbLCD2W5bXoiX6pdtUtw=; b=kJ7mvtXjpShjQP2X1y8FyXH7mqfw2kyB7O5TW4kIyEreSqNL/ttBhVOTGqjc96/z/a OEXCrLyQBzslf/3Q7T0xtaf9x5Gb8DOvX5G/hk3Qv1tIP2RXWLAi5m60+Xe7I7kLSFxr 86+zqpwD3YNlOyC9DOaQizj+WkJVVSuRGOpQEr6E49nqNeR1lzmjmnrEPYDXCJYMpyp9 vyXcpBwtm9u//tf/bGx9hS7opLVChZmlqjZs8aVUxWtfFPGRslSvxT7FESj8hQaf7k/1 DN2O3QkK9dXlRs8rNsjEfJgL5Pjal8OjoTdZusRha+QjX+Md/tpfkQInNVlyasjX9LkI SuwA== ARC-Authentication-Results: i=1; mx.google.com; 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 d4si2830265pfl.332.2021.10.20.06.44.20; Wed, 20 Oct 2021 06:44:40 -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; 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 S230105AbhJTNon (ORCPT + 99 others); Wed, 20 Oct 2021 09:44:43 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:45039 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbhJTNom (ORCPT ); Wed, 20 Oct 2021 09:44:42 -0400 Received: by mail-oi1-f175.google.com with SMTP id y207so9648522oia.11; Wed, 20 Oct 2021 06:42:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=C3zm8nKj/VABcyLNvlJFABEEbLCD2W5bXoiX6pdtUtw=; b=0OSSiWrcURMGdYQcZWNf2AAWvQ6xL7LsH/JU57BzATJAKUldenOQemaNC0dm3MugPu sGYrfU2gJonTAppQcW8DpUBqPNBj1hLY3YLG3WOb/V4hHaz+YghsvZEod7n1cX+WdLQ7 UQTIs8+kZwIvGzIbr+7pY6MTGUQ3+2k2ensfhDo3KITmvGoNSXc1c3lnOYLH9nbyRR67 E8tIy41Q+PlK+XqYMruumDhJm6slsiv89K6BIPENwnrok6Hjw9Xf/6xN7BfsVZ0IKcGS lRVYGyGpFBKt73sRlRT7qxCU4nOZUwI5+vehXey1Eye4BcFmkJKeo0Sxp9oL8zCdilXx vtdA== X-Gm-Message-State: AOAM5325bDdG/R7n6LaTT42tQOCHAxptATzsdTseuWBVmT4N+Dh7fgZ4 FE5S/ed/qa/E575d1ahhdi6TI0n/hQ== X-Received: by 2002:aca:3c87:: with SMTP id j129mr9607754oia.157.1634737347723; Wed, 20 Oct 2021 06:42:27 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id k4sm436183oic.48.2021.10.20.06.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 06:42:27 -0700 (PDT) Received: (nullmailer pid 2248211 invoked by uid 1000); Wed, 20 Oct 2021 13:42:26 -0000 Date: Wed, 20 Oct 2021 08:42:26 -0500 From: Rob Herring To: Naveen Naidu Cc: bhelgaas@google.com, linux-kernel-mentees@lists.linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/24] PCI: Remove redundant error fabrication when device read fails Message-ID: References: <0114a4a44ceacfbd6a7859d8613ca5942f5b35d7.1634306198.git.naveennaidu479@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0114a4a44ceacfbd6a7859d8613ca5942f5b35d7.1634306198.git.naveennaidu479@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 08:08:45PM +0530, Naveen Naidu wrote: > An MMIO read from a PCI device that doesn't exist or doesn't respond > causes a PCI error. There's no real data to return to satisfy the > CPU read, so most hardware fabricates ~0 data. > > The host controller drivers sets the error response values (~0) and > returns an error when faulty hardware read occurs. But the error > response value (~0) is already being set in PCI_OP_READ and > PCI_USER_READ_CONFIG whenever a read by host controller driver fails. > > Thus, it's no longer necessary for the host controller drivers to > fabricate any error response. > > This helps unify PCI error response checking and make error check > consistent and easier to find. > > Signed-off-by: Naveen Naidu > --- > drivers/pci/access.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) Reviewed-by: Rob Herring