Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2385920lqp; Sun, 24 Mar 2024 17:07:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWqp9Xhj2Sqzgx/pvR9yvyYb6lRJO4g0YI/e8xjPfIMdBsj4FsOL239l3uxh8OzXLSHTZEGAW8fZF8+8HUAhIhOkFD8tWWMmA/uR8I1A== X-Google-Smtp-Source: AGHT+IHxLQu+iCMd7QM2kYye9q/mKAQHm/Ou2+unm7ALLfMW/UBDMnjMBsk9nltV9OnYyzZI9QXX X-Received: by 2002:a17:906:d81:b0:a46:a9ad:837c with SMTP id m1-20020a1709060d8100b00a46a9ad837cmr3149816eji.49.1711325223953; Sun, 24 Mar 2024 17:07:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325223; cv=pass; d=google.com; s=arc-20160816; b=ZAZmwot4xbAcCivCWassWsn2tw7OB+yIEc8lSmqigx4r4KPEzfFp4DsA9wPXLowbsc fVDTSITsZWJwBXf40cvZjHfhaIz2MV50A3rQ0oc16LN9mTd4K7E4yyEErt9NzgVfPDhC R4AnP4pLpVGKy6AKTQkvZGbZhMt+d1wfO8VTFBy7M+xVGrBUPRG6vSJT/oQRZWH9sOQ9 nK/iQpFV9qBwsF+gpC5j5huryj4Pr5KlwN1F5hoMhDVLH+EBRotX93T7cLZ62t53xIYq vK+ONKlPMMygA+lh7l3FXWcIs3+sUFeTs4nPd3DaNs//hyjdAAtXADwbRIpc4j6ivJ37 Q0ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=omVRLrSf4lZkBPix/mcR8Yn8JxyyJsZiJbDPXiDSQ40=; fh=PuXfdepGU2Y/fEiRkHzdQ2wynxN5rxRjTVsYXSJ3LrU=; b=fagiWzKOJU8UvGzZHf+CELjWca+09NAnwCOY+6OGLlJ87clZuDS3J3ewLSHHAwv1sF fRAwF1ZIvzaxYXS/OiXSIWddI+0dbceZc9DBB5Jl08+9PH7HDoHHVP8RwcwyG1xYLtU6 ZNTS00WmfwS1FaZ1EHTCp8FVMNNOvL7BOTNmjEvZe77LxjVIG87OXJ3IjsZNE+3+QVoD I046i2D4+9X19K1UB6Pe19hhb+VSeW6crgZySkpMccqX8TtbsOYrwotF3qvgJ0m0RTfD HqTKnytpaO/V/iTp5ghWE7JKTl7CfA+rckoKA/TuQP9ZOy0n9sSUVOja1oYC2o/nzYW0 dyAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r7quGLt4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c11-20020a170906154b00b00a4734c89017si1949977ejd.724.2024.03.24.17.07.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r7quGLt4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113265-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DDE001F21E3A for ; Sun, 24 Mar 2024 23:57:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 146EA189A5A; Sun, 24 Mar 2024 22:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="r7quGLt4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29F9A189A38; Sun, 24 Mar 2024 22:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320065; cv=none; b=Cuq/REdD9IKCjltHyJJjmweMYZPBr/wB6liVjJjXrnr+1RqibfcZMZATkyWtVfr0O51Tivwed2wNhobAICWQavyMmjJkLVZTeE/C5FeWxt1Q6UWDIPTBCfys5ZT3QPX/YiLRtre9+/uCi1aL6Vz3XICdkRyVwnmdyjFIZHWoZJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320065; c=relaxed/simple; bh=Bi+CbrTK4iD6H6njG6um+soEi21PZdr3qsucuDdlk/w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cmjxeRvdo19df0GPA7f/E7N1HoT7nyUs3tuBg7SESXGwYm120wVVRAGDICLhkWvu96CTMBnIgCcsB61Qq6DfHJur8dOqw11AEzTpKv6GNC9Ig+KLSEaT16Nph7vqYhOAD1wcC+C6wMOjps7rCvFH1m3CwKKitM8B1AZNN6cHarI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=r7quGLt4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D5E1C433F1; Sun, 24 Mar 2024 22:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320064; bh=Bi+CbrTK4iD6H6njG6um+soEi21PZdr3qsucuDdlk/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r7quGLt4gvan3PXumkrefb3EAeZaGxUq4CPkzXtqyICzinx+ss0gwMtp0LZ+lXIxZ tcsoXwxms0lAhGIUoLvA9ZSfMnBepXQ2rq3hkX3k8K7PB3jWuRi0SPW7N6SKFiobtJ qSsMr+C/OQfYiXWlGDfjK3W1RqxOmRq6h8q+lRuYy91b80/SnV42DHljHFLh8t2xdF b9Fbl6qEns3+E8MGIURgGdKgrK7yJ4/ByDAxkN3n256G4hL4a5Z0aSFmyDFg3Ops3E MK+BwHTdgCAM+wDTi+av41m1WPB/zUiuVm8N7Gq1/c2Bxgz9MkGENllfiYTLajmmMF L9h243NiWtf3g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Bjorn Helgaas , Sasha Levin Subject: [PATCH 6.8 374/715] PCI/DPC: Print all TLP Prefixes, not just the first Date: Sun, 24 Mar 2024 18:29:13 -0400 Message-ID: <20240324223455.1342824-375-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Ilpo Järvinen [ Upstream commit 6568d82512b0a64809acff3d7a747362fa4288c8 ] The TLP Prefix Log Register consists of multiple DWORDs (PCIe r6.1 sec 7.9.14.13) but the loop in dpc_process_rp_pio_error() keeps reading from the first DWORD, so we print only the first PIO TLP Prefix (duplicated several times), and we never print the second, third, etc., Prefixes. Add the iteration count based offset calculation into the config read. Fixes: f20c4ea49ec4 ("PCI/DPC: Add eDPC support") Link: https://lore.kernel.org/r/20240118110815.3867-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen [bhelgaas: add user-visible details to commit log] Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/pcie/dpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c index 94111e4382413..e5d7c12854fa0 100644 --- a/drivers/pci/pcie/dpc.c +++ b/drivers/pci/pcie/dpc.c @@ -234,7 +234,7 @@ static void dpc_process_rp_pio_error(struct pci_dev *pdev) for (i = 0; i < pdev->dpc_rp_log_size - 5; i++) { pci_read_config_dword(pdev, - cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG, &prefix); + cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG + i * 4, &prefix); pci_err(pdev, "TLP Prefix Header: dw%d, %#010x\n", i, prefix); } clear_status: -- 2.43.0