{"id":2220094,"url":"http://patchwork.ozlabs.org/api/covers/2220094/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/cover/20260406103237.1203127-1-18255117159@163.com/","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260406103237.1203127-1-18255117159@163.com>","list_archive_url":null,"date":"2026-04-06T10:32:35","name":"[v3,0/2] PCI: cadence: Add LTSSM debugfs","submitter":{"id":89937,"url":"http://patchwork.ozlabs.org/api/people/89937/?format=json","name":"Hans Zhang","email":"18255117159@163.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-pci/cover/20260406103237.1203127-1-18255117159@163.com/mbox/","series":[{"id":498837,"url":"http://patchwork.ozlabs.org/api/series/498837/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-pci/list/?series=498837","date":"2026-04-06T10:32:36","name":"PCI: cadence: Add LTSSM debugfs","version":3,"mbox":"http://patchwork.ozlabs.org/series/498837/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2220094/comments/","headers":{"Return-Path":"\n <linux-pci+bounces-51942-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256\n header.s=s110527 header.b=a/Kw02SF;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-51942-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=\"a/Kw02SF\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=117.135.210.5","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=163.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fq5KV1cK4z1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 20:34:06 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 828BC301484A\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  6 Apr 2026 10:33:33 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3649732AADE;\n\tMon,  6 Apr 2026 10:33:26 +0000 (UTC)","from m16.mail.163.com (m16.mail.163.com [117.135.210.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 70F06330330;\n\tMon,  6 Apr 2026 10:33:23 +0000 (UTC)","from Precision-7960.. (unknown [])\n\tby gzga-smtp-mtada-g0-4 (Coremail) with SMTP id\n _____wAHyuPNi9NplrBRDg--.19284S2;\n\tMon, 06 Apr 2026 18:32:46 +0800 (CST)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775471606; cv=none;\n b=tQqrW5oRNBWT1AKkM475z8ZuG4EkrcwtrWTeZ4UxIjAvwj/8A+Re1mk3f2njeQ5ix+RA0HxUVnVeNv5skgGAoDven6FA/ZcE3i6TV+GStUmuwjFOTm+hPqR8sJPf2X079WFRJ0MQ/SeZZ2iWxxst6xx4FCnaBj01syjq7vqBaSk=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775471606; c=relaxed/simple;\n\tbh=qUOQE+9RmzChpZsDmkWFXmZRdnTeJOlCZlOKCP+Je8A=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=cMd+vfYJGm1ZFj4ybJ2A9x0Pq3f3BC6GRsj2dTFS/tWdRd7EfGI//se85VWqsdEWAnvQXWX+ZJ1/kOzjLpAYVcZpskldySucLhFn43nptF64m1S59blPAiynMtoQB+R1y+WXb99DvwPsCnIrpW2B5ME4ZP6Q/10jpxWPiaLRLeM=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=163.com;\n spf=pass smtp.mailfrom=163.com;\n dkim=pass (1024-bit key) header.d=163.com header.i=@163.com\n header.b=a/Kw02SF; arc=none smtp.client-ip=117.135.210.5","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;\n\ts=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=QR\n\tklyE92/++5ay+6Wu0lmX7bnfg+iz/Yf042yUwUxMY=; b=a/Kw02SFomUvn9H6ve\n\tNyNBTWj5cvb1yqCO32Z63VmBBq5VEho6zCrv/ubjyQUGZaC0MygL6Hh8las9XgOE\n\tcLRxF3pnTsOemIqK+ebGIVl7kbaGuM8IPhAdyIfQl3R3/QAHYVgILqG5S76jhkCn\n\tVmVJv31M8ZPksMjw0/JCPzV9M=","From":"Hans Zhang <18255117159@163.com>","To":"bhelgaas@google.com,\n\tlpieralisi@kernel.org,\n\tkwilczynski@kernel.org,\n\tmani@kernel.org,\n\thans.zhang@cixtech.com","Cc":"robh@kernel.org,\n\tmpillai@cadence.com,\n\tlinux-pci@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tHans Zhang <18255117159@163.com>","Subject":"[PATCH v3 0/2] PCI: cadence: Add LTSSM debugfs","Date":"Mon,  6 Apr 2026 18:32:35 +0800","Message-Id":"<20260406103237.1203127-1-18255117159@163.com>","X-Mailer":"git-send-email 2.34.1","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-CM-TRANSID":"_____wAHyuPNi9NplrBRDg--.19284S2","X-Coremail-Antispam":"1Uf129KBjvJXoW7tF4Uur4xJw43Zr17ZryUtrb_yoW8KFyUpa\n\tyDGrWfAF1xZrW3Zan3Z3WUXFyftF93Aa97JwsF9w1xZF13CryDXF4IqF4rXrW7GrZFqr17\n\ttr15twnrKr1ayFUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUUxhdUUUUU=","X-CM-SenderInfo":"rpryjkyvrrlimvzbiqqrwthudrp/xtbCxBBmCmnTi9CINAAA3l"},"content":"Hi,\n\nThis series adds debugfs support to the Cadence PCIe controller driver,\nallowing users to read the current LTSSM state of the link for debugging\npurposes.\n\nPatch 1 introduces a new flag 'is_hpa' in the cdns_pcie structure to\ndistinguish HPA (High Performance Architecture IP) platforms, which\nhave a different register layout for LTSSM status.\n\nPatch 2 implements the debugfs file \"ltssm_status\" under a per-device\ndirectory. It reads the LTSSM state from the appropriate hardware register\nbased on the 'is_hpa' flag and displays both a descriptive string and the\nraw value.\n\n---\nChanges for v3:\n- Export cdns_pcie_debugfs_deinit (Mani)\n- pcie-cadence-ep.c pcie-cadence-host.c pci-sky1.c call cdns_pcie_debugfs_deinit\n\nChanges for v2:\nhttps://patchwork.kernel.org/project/linux-pci/patch/20260321033035.3008585-3-18255117159@163.com/\n\n- s/DW_PCIE_LTSSM_NAME/CDNS_PCIE_LTSSM_NAME/\n- S/January 2026/March 2026/\n- EXPORT_SYMBOL_GPL(cdns_pcie_debugfs_init); // Resolve the following error issues.\n  >> ERROR: modpost: \"cdns_pcie_debugfs_init\" [drivers/pci/controller/cadence/pcie-cadence-host-mod.ko] undefined!\n  >> ERROR: modpost: \"cdns_pcie_debugfs_init\" [drivers/pci/controller/cadence/pcie-cadence-ep-mod.ko] undefined!\n\nv1:\nhttps://patchwork.kernel.org/project/linux-pci/cover/20260315155514.127255-1-18255117159@163.com/\n---\n\nHans Zhang (2):\n  PCI: cadence: Add HPA architecture flag\n  PCI: cadence: Add debugfs property to provide LTSSM status of the PCIe\n    link\n\n Documentation/ABI/testing/debugfs-cdns-pcie   |   5 +\n drivers/pci/controller/cadence/Kconfig        |   9 +\n drivers/pci/controller/cadence/Makefile       |   1 +\n drivers/pci/controller/cadence/pci-sky1.c     |   4 +\n .../controller/cadence/pcie-cadence-debugfs.c | 215 ++++++++++++++++++\n .../pci/controller/cadence/pcie-cadence-ep.c  |   3 +\n .../cadence/pcie-cadence-host-hpa.c           |   8 +-\n .../controller/cadence/pcie-cadence-host.c    |   9 +-\n drivers/pci/controller/cadence/pcie-cadence.h | 147 ++++++++++++\n 9 files changed, 399 insertions(+), 2 deletions(-)\n create mode 100644 Documentation/ABI/testing/debugfs-cdns-pcie\n create mode 100644 drivers/pci/controller/cadence/pcie-cadence-debugfs.c\n\n\nbase-commit: 525e91d84dc085492b36d4b87abb7c1cc93fcb44"}