Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1704494pxb; Mon, 11 Oct 2021 11:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO1HGdDW24xhbOuI4H8z4neT900qjeWasegNiFKHEFLXa7t5GBjjgGNZjPvU0MTF7pUYvs X-Received: by 2002:a05:6402:1914:: with SMTP id e20mr43879398edz.304.1633976141637; Mon, 11 Oct 2021 11:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633976141; cv=none; d=google.com; s=arc-20160816; b=SEUQez+KkmO2c01nNh/y+ofF/kEYuWhe2u3SrnRMKhdOT+Un8jZ9AIHaAVRhEw3I/p iDw7kIx8Kepw8qs6MqnilJq9kfrlPG7q1u8wsMisAKav5/cPEv7q1g44S8B2Hppyxnam MAvVB9mpHd4R+AttMkAcavzkshOJacBgZwHIrdLKUs5SvEdk7doqq2sDw4AYU4iIHPq8 PCWhxTgR2UgquHQxtVDuWfYNQkxSJHJIO0A5T21C8ZI4Nq6SEzxJR9OCOQdkho1gJvSr nQDKArEiuj1ZLd0V9DQ8SpMAATDrplLq0w7l6g+fTbltGqUt1SOnoDVmOj4syuNSrF0g EQWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+xcssxkZTlEueyseAvWLLQTd3E+oYkVw7Pd99PMykLI=; b=ZV6Ym7Jrt4ddXl+V7ZpiC1slV0qGcPP6cDSqpMmelOvotLNZ/flIVwgK/+3KoDpsQL ZIZb70wFuaSe9jD11GwBAUl6xfKUCDJkk/LmJedkB/ADXic383Q8KYbBfK2Mzy/nq6/8 R8pYxK/PQWJ5v1zu8RHHT9Pasuw7i7KSJiJC6n/Xj95g5stFRwtF3UxtcBTt670gQ/4W Fq8Ey+OPnTFwV0h/Ib2VEH2Ovur1Yxb4SlEiyyyI/mq3DYTzpyAoI0s9znIgMPAUyqPU YLY0YySV89mre1N3Mofmo+vScyySAEtkI5cEFowf62wuksMX3WRF0X51s0bYJkkmpkfB 9cgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=co5exKtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si12263724ejt.173.2021.10.11.11.15.16; Mon, 11 Oct 2021 11:15:41 -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=@gmail.com header.s=20210112 header.b=co5exKtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232071AbhJKSPg (ORCPT + 99 others); Mon, 11 Oct 2021 14:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhJKSPf (ORCPT ); Mon, 11 Oct 2021 14:15:35 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C61D0C061570; Mon, 11 Oct 2021 11:13:34 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id s11so11536218pgr.11; Mon, 11 Oct 2021 11:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+xcssxkZTlEueyseAvWLLQTd3E+oYkVw7Pd99PMykLI=; b=co5exKtJ6qDmfzZFrPgxDp6dqyVCFIoEid4UcPCcvPulI+0EzTXG61Pdez9ro0k9TS rOqlkqHbLbs2QHttLz3uTb6FqVFfYGau8dOoF7d8CZwoS8IEYnHQZBODZEK+ayBNrDC4 mmf1m5zkVYjFjoFAZO+qn4E//mgIiKpgP9WawSEHMmuJH5366WhZeUNOgVEvJQ9WoKc1 w1I1YrdkMK4y17nyUPVbWsw/BUl5YZdgZWUWmAuHlTUTRqsnesaIrFsyYA+gGHJdB4+V e8K3rRj5c63yQgy8L641j+g+Fp1O3jICAzScshja8m+16hA+t3Fo7xzZfrbZB4ZV8VOd Wg9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+xcssxkZTlEueyseAvWLLQTd3E+oYkVw7Pd99PMykLI=; b=KDZIwvN4e2olCKi6pMp98GFAnzw2vBOXIx92iB1QAJvGrnBlsmPB3u9k3HzTorJcO9 60PQ9OZmvBdcI8qm5Ufp8xHiJIjO4zojX5v59AM0Xs/xne2VDMtlU2A9tl8nrhejIL+C /t0ZEQWyGuHOCFviNlnXSZItqq8iU0OeiYwAAY6F66tAmYtFIk8hZEHhH+N9wBLW84aE UviC5AACZPuT0o0HjckplOWXxsxbczViZ/SNgb1dOwBMQjHTve84udETBfMEH1d1zH/B ZE2EdHuGHdN6idxBmSmBlwaoSeoKReuyZry/NSugosos2CN7npyBHbSHnbBK333ubXQL OS0A== X-Gm-Message-State: AOAM531fJ7WI6rbsL1Q5Bbol75QtaJHCq/LKJ7mkY7A6EqLybqdErO0G BunsGlecsy2NWBr5s4+RMdqKdLTIIDfWoQNx X-Received: by 2002:a63:1717:: with SMTP id x23mr19276856pgl.182.1633976014242; Mon, 11 Oct 2021 11:13:34 -0700 (PDT) Received: from localhost.localdomain ([2406:7400:63:9f95:848b:7cc8:d852:ad42]) by smtp.gmail.com with ESMTPSA id m7sm8780611pgn.32.2021.10.11.11.13.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 11:13:33 -0700 (PDT) From: Naveen Naidu To: bhelgaas@google.com Cc: Naveen Naidu , linux-kernel-mentees@lists.linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Toan Le , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , linux-arm-kernel@lists.infradead.org (moderated list:PCI DRIVER FOR APPLIEDMICRO XGENE) Subject: [PATCH 22/22] PCI: xgene: Use PCI_ERROR_RESPONSE to specify hardware error Date: Mon, 11 Oct 2021 23:43:19 +0530 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include PCI_ERROR_RESPONSE along with 0xffffffff in the comment to specify a hardware error. This makes finding where MMIO read error occurs easier. Signed-off-by: Naveen Naidu --- drivers/pci/controller/pci-xgene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/controller/pci-xgene.c b/drivers/pci/controller/pci-xgene.c index e64536047b65..4b10794e1ba1 100644 --- a/drivers/pci/controller/pci-xgene.c +++ b/drivers/pci/controller/pci-xgene.c @@ -176,10 +176,10 @@ static int xgene_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, * Retry Status (CRS) logic: when CRS Software Visibility is * enabled and we read the Vendor and Device ID of a non-existent * device, the controller fabricates return data of 0xFFFF0001 - * ("device exists but is not ready") instead of 0xFFFFFFFF - * ("device does not exist"). This causes the PCI core to retry - * the read until it times out. Avoid this by not claiming to - * support CRS SV. + * ("device exists but is not ready") instead of + * 0xFFFFFFFF (PCI_ERROR_RESPONSE) ("device does not exist"). This causes + * the PCI core to retry the read until it times out. + * Avoid this by not claiming to support CRS SV. */ if (pci_is_root_bus(bus) && (port->version == XGENE_PCIE_IP_VER_1) && ((where & ~0x3) == XGENE_V1_PCI_EXP_CAP + PCI_EXP_RTCTL)) -- 2.25.1