Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp722835pxb; Thu, 21 Oct 2021 08:16:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh1w/Nmo8LTGq86lnoo5WT8e9p+/gkFHqZTQ/lwI08r8rGEW1RmY53KhmdnQ7yAifVwr/A X-Received: by 2002:a63:cf44:: with SMTP id b4mr4930263pgj.215.1634829418027; Thu, 21 Oct 2021 08:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634829418; cv=none; d=google.com; s=arc-20160816; b=LpGIiHMYHGuJlUSYXJYJUhEj0JSzT7l/GCeJfQCxBWjIQaPk0lUooIjSC5/IVs7lQn 7WodSRY21C5dzDGFp+RoB+IJco5xXF/glImjxuuO8Meyj9Bj9YZfnYQL+Q8jWtODL5c4 4ENu+fX8nWIIR7/nA/siX5K+jS+xU0p1w5EAsMANu5/d+eIdRTs5q4xXhu1fc7N98u8Q JiqSY9U9ab5sFqAwMM/CXpWKG0AkQS92tSn29ehn5NdBfaws+j2GZseTQxO95rZQ1aZJ 5VAxQlmatno2t8TkvXB0aDyYz75CDadxyaUiqxQPuiJO3TdO5Owr1xUUK/yu2d7lNpFQ 7+xg== 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=CD7r2JlbysI9wliPfrkuC0MHY1rENRMFz+j1vzlStHM=; b=oRZtgPORQNVGsTrL9BJr3j7seHpEKSAAa105eKQfyIpizII/immzEUdMYGYeIrd8XK c5R4N/35Ox+IQ8c5DmbK4wfRsKOfME5laJ3FHtdglXTT8FTHjtGMQ7RW94J688pcVJl3 ObnFK4cSP+bUoDe6b6XzrVrinJ0Gij6JZUJoVTzeNQ4C9GAQazKv7WcXs8x5tYMXG7fD kBMUGDMkSQ0OmEZagkz5UmAbYRyM08denwRLpgbeAmDIBLQp+bRwR7dy4Ab+SxABQRN7 SgCTbQ7kRRwTkmjOCzoCWuXz3qb9ciuJYTGVQ5Co4HsEkGu2bdkPWNW29om5KXKRjDqd NbIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oDFCNSD9; 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 np5si9635768pjb.9.2021.10.21.08.16.41; Thu, 21 Oct 2021 08:16:58 -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=oDFCNSD9; 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 S231880AbhJUPSA (ORCPT + 99 others); Thu, 21 Oct 2021 11:18:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232160AbhJUPRk (ORCPT ); Thu, 21 Oct 2021 11:17:40 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FADC079787; Thu, 21 Oct 2021 08:15:21 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id np13so726990pjb.4; Thu, 21 Oct 2021 08:15:21 -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=CD7r2JlbysI9wliPfrkuC0MHY1rENRMFz+j1vzlStHM=; b=oDFCNSD9eXmglDMVHyAk5MQTQay51LCLoU0OKnLVLIJ7VZjwfRS43u720yBteKnac1 p/lwD3xlqwhz6jgJCIyEpcwG0woAnh4SPlq3ehA2Dp6roi1MizNQvP9UmKO5XmzgzXHh Yo8hCUXDbYf/vLOy2UTggbqD86Qs6k+rvdXbbW3GQfeNrWG8QOThYpWh1j/EefuDhdpi GYRjhfePIpEwov/eAxotQJb+gVbAmx0u3U/6QuWyGHc0mWmlXKvy0suP20VFDVbzyuvO 8JtlUB+qUtIMOvvnBRXJARMpbYmbSTgNllBbT2hj5UdRBE7T3jLTou7IG+zlJdFAJ+xS Kx6w== 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=CD7r2JlbysI9wliPfrkuC0MHY1rENRMFz+j1vzlStHM=; b=M+3u73zx2G8UWAr1L3WyaXdt1GT5xd9lZsd4tq0rmgJPLQ64PnyjvzdjIJwulxY9G2 xUuel64SCDmJ1dqH9b9bT0sPazh0Fp/OgsHCYrJrF6+S86ta/MUoQQ+w8pxkhNdjoqz+ lALWoruFLci7D5uv7dsT5vBu8sBfhYbCAwqWEVZGM2skYCWHp9xBg7HThwL1MZlTWc1C KwZzPIhxsm/86exfDlxzlYTVf/Lr36OfSpTqLideBmrVLlpqC4eebO9+92d7/BDeTyom jgzHEk9a16nsYJOXXwMR19TB8iZytqvS2Ma5j+i+FZfPtwdoRvIFNCw5C3te2wXcRHgS FvbA== X-Gm-Message-State: AOAM530Pden5Z0jZQPkE6WXqg3qr0w46E6n1/zNgFsw8xGgBbKylhxf5 3fJoaIodI7xufeZVGeZFjeU= X-Received: by 2002:a17:90b:3809:: with SMTP id mq9mr7333076pjb.7.1634829320924; Thu, 21 Oct 2021 08:15:20 -0700 (PDT) Received: from localhost.localdomain ([2406:7400:63:29a4:d874:a949:6890:f95f]) by smtp.gmail.com with ESMTPSA id c9sm5508027pgq.58.2021.10.21.08.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 08:15:20 -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, skhan@linuxfoundation.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 v3 25/25] PCI: xgene: Use PCI_ERROR_RESPONSE to specify hardware error Date: Thu, 21 Oct 2021 20:37:50 +0530 Message-Id: <4a5e5a4625a3259e20e70f73ce9c294b695cfdde.1634825082.git.naveennaidu479@gmail.com> 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 MMIO read errors easier to find. 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