From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f171.google.com (mail-dy1-f171.google.com [74.125.82.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 707363A8746 for ; Tue, 16 Jun 2026 15:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623502; cv=none; b=F2tWN8S51D4d2e+3gbbb4o+QPkixczZhQ6AdEl+dGQ1sa9dArjefuS9Zh7MRVkDUp1XGxB9q93hu4T8IkSeIMQ6MdGddpzLi1YyD3hnIKjy7duf+UInzZo+dUyq/MQL/VA8Ioaa0N9oRjnF0r6+ZPx841JUCYLVoFoV1qzymHwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781623502; c=relaxed/simple; bh=1kDGigjH9Bd+ieIKS1Zpg/McayMKxT526HLIh+wIm5s=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=gs9haVC3lk5Dz0RtjmR4Y55WLQFh3jIZbLYNuKJoGhoeuKcPaSWHCIpxkpTbLKH27GHUlknPnTGbYh4QNyloaFiW8CEsa0ZqOC4iSQ8LH6Damgvoy0iAeMHEKf9nv8TGRcuU/V7DnDem3HHqkypJBIE7U1OnssYtxwhtxQ/AFYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ha+L8Vbl; arc=none smtp.client-ip=74.125.82.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ha+L8Vbl" Received: by mail-dy1-f171.google.com with SMTP id 5a478bee46e88-306f36df4feso3293667eec.0 for ; Tue, 16 Jun 2026 08:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781623500; x=1782228300; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=b7M8qZtmu0bZQdu1QNURqoYjrqJMG0t/ykNnN1cBj2w=; b=ha+L8VblI9SXgvSCHLAVuuaj9rioGQSDREYiYxQVaGuVEaVQ88JhbXZILvlyiQwbzl GhwIfoonDXzCEHvCVZqyWc+Yx1BrsSYU2Zad1+qJHAfuxpgEnCmCpMp0UrDST7wIxxw2 la6qy9uQDSLPiu9EeTlh9Phktd9S5HlJnIrHonrxamdovi2DJtQVFLm3X+T2x/ZBK5Ug zzFGWhx5IBdjUM0ky/qLADViuOZI5LcJXdCFwfoenaVGIbEeaoj3PPPypiJbxetxgA0Y Csup7QnOrviv7/rAYjtG8eeimOSpHxHd06Qm7swRtKbVjl6gMOLW65tMJws7acLUpGxK bheA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781623500; x=1782228300; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b7M8qZtmu0bZQdu1QNURqoYjrqJMG0t/ykNnN1cBj2w=; b=kKoZA0WUaowYjWujDqn1A8VSvldfvPg6g+A1gbcRKCcwMLkK2YyVrKiheS0vewNCF7 T1kG6sq09e3sPXKfWQWiKnZnClSOLJFLUzxv3PYsyFCpeAEZtz4NXAwQOszhkKdHB7CT p2fyu25gkKQ9yxoCbnQ0j508STq+0NkTkXFmecmmlPPTL2ykUPLIScwD+fw7Qh9xLKhI IyEHqOAqPjlBa+4F4kVCBp8cxrCMWmMQBjGSelgEn9i2PhpLnrFKYZ7naioVRhEaTxlh gAT5j3AocoJwdjdKucBQEgWWK2So1AeQ8qVVTbhmIw9vaCP2JW7WHlcf8o0aMdOgEL6m vvkQ== X-Forwarded-Encrypted: i=1; AFNElJ8ubv/JtVcnZwgXUz8LMNDcaOQt1c0+vnVrgFfD/cJogctcbRl5s0QfmD5AuFe3+UD6Ne47XywXTaCSkYc=@vger.kernel.org X-Gm-Message-State: AOJu0Ywsm8XZ58SMa05a1hRnIRljv1vmMHA4KrxCDbjly4QIuG3tasK0 GoLWBHxYD7iMaZ6rzCClPb/ke35F0bMdP8CpyYJ9sVNvzCZLuflx0Ovm X-Gm-Gg: Acq92OH8LfdKsnryOem7p/rSd4Zrk2dy9rGpmgvtDMIEvklA084/I78fiJcHdJZkag0 f3XOOqju6q+vErf2hAFel+OTg5dzvs/KvpEK7GvHv/KsLLoIeu2xPhvgzh27hhh9wbCS565Vldx CagewOguB1bcdaFxffbmcg0+dCCbTWS7nLuCoMgi5QQHRhb61LBO2iWxz8og8tlozQXrMolPeFB jF1z9ouIvY+ApuSnnm+hrQhrNkiCPOGYQYgmnnT/08QjJZFpjrfvYe9iLQ3qXlca/E+W8hAidnc ju+PmIGsrn5T9z1Ji5173SUtxeOHYqr0So5pBhpXE4K+hoG74RucsdO1YoNLXqGySx09WXrteis DBOzbUBF7CHjew7OlC7AM8deVI/Et3iHIn9D8tdOvht9rD2wSdU45OIFgINnyTueYyzpmDoZnBE FuoE0BincnsDmQZ6NugTSa X-Received: by 2002:a05:7300:bb07:b0:2f9:1004:b2cd with SMTP id 5a478bee46e88-30ba3ad0bcfmr2565276eec.20.1781623499389; Tue, 16 Jun 2026 08:24:59 -0700 (PDT) Received: from geday ([189.115.92.220]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3081eb95450sm23757871eec.28.2026.06.16.08.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 08:24:58 -0700 (PDT) Date: Tue, 16 Jun 2026 12:24:48 -0300 From: Geraldo Nascimento To: Shawn Lin , Dragan Simic Cc: linux-rockchip@lists.infradead.org, Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geraldo Nascimento Subject: [PATCH v7 0/3] PCI: rockchip: 5.0 GT/s speed discouraged by Rockchip Message-ID: 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=us-ascii Content-Disposition: inline Dragan Simic already had warned me of potential issues with 5.0 GT/s speed operation in Rockchip PCIe. However, in recent interactions with Shawn Lin from Rockchip it came to my attention there's grave danger in the unknown errata regarding 5.0 GT/s operational speed of their PCIe core, including data loss. Drop all code related to 5.0 GT/s operational speed from this driver. Endpoint Mode driver was not tested. Changes in v7: - In pcie-rockchip.c (PATCH 3) drop unreachable code - Link to v6: https://lore.kernel.org/all/cover.1781207474.git.geraldogabriel@gmail.com/T/ Changes in v6: - Squashed patches 3 & 4 together as suggested by Mani - More formal warning message as suggested by Dragan - Set the 2.5 GT/s bit regardless of if link-speed is set to 2 - Link to v5: https://lore.kernel.org/all/cover.1772239598.git.geraldogabriel@gmail.com/T/ Changes in v5: - Changed commit order to not break builds and adjusted copy pasted commit message. (thanks Charalampos!) - Reintroduced behavior to force 2.5 GT/s in case there's something non-default in the DT. (thanks Dragan!) - Link to v4: https://lore.kernel.org/linux-rockchip/cover.1772169998.git.geraldogabriel@gmail.com/T/ Changes in v4: - Incorporate suggestion by Bjorn and refined by Dragan to drop the "catastrophic" code - Link to v3: https://lore.kernel.org/linux-rockchip/cover.1772057799.git.geraldogabriel@gmail.com/T/ Changes in v3: - Clarify warning message even though Rockchip won't disclose details - Drop DT changes as they were applied as subset by Heiko - Link to v2: https://lore.kernel.org/all/cover.1763415705.git.geraldogabriel@gmail.com/T/ Changes in v2: - hard limit to 2.5 GT/s, not just warn - add Reported-by: and Reviewed-by: Dragan Simic - remove redundant declaration of max-link-speed from helios64 dts - fix Link: of helios64 patch - simplify RC mode comment - Link to v1: https://lore.kernel.org/all/aRhR79u5BPtRRFw3@geday/T/ Geraldo Nascimento (3): PCI: rockchip-ep: do not attempt 5.0 GT/s retraining PCI: rockchip-host: do not attempt 5.0 GT/s retraining PCI: rockchip: drive at 2.5 GT/s, error other speeds drivers/pci/controller/pcie-rockchip-ep.c | 13 ------------- drivers/pci/controller/pcie-rockchip-host.c | 20 -------------------- drivers/pci/controller/pcie-rockchip.c | 14 ++++++-------- drivers/pci/controller/pcie-rockchip.h | 3 --- 4 files changed, 6 insertions(+), 44 deletions(-) -- 2.54.0