From nobody Tue Apr 7 15:27:34 2026 Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (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 F212530CDA9 for ; Wed, 25 Feb 2026 22:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772058473; cv=none; b=t0Za3vNAPnSUu/JZPdXelbBMvvRuPEhhR7OhmFfLwb0SFlDlnsnWGBSnUlTn2IIlZ9WiL3SgmCin3aDUEvm+4oDXo+SdV+8eM+WZa76NIpkcHEaSHZvCsaH4sQ/7eIjaTZW2YRxwOxeeOpsOE8VAUngOLKr4imp+fnKHqqnZaJo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772058473; c=relaxed/simple; bh=iyTeSfTJMYGYxdgoCrwsYsndSeF9ybjDDhtlwvg2Ytc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SYOXQ9RU+NSuziCW3kqR+T+WozrPoD4FLGFxespsIUQp9aX5RS73h8+vPUZQEjh7/62RlhRr4hvVpVYSFL+Q3oh5PnzE+lgoebGCwBQ1LxUGSRa2gRgvMBFuzOHrqZdobsa1OxQEqBw7b6yDEqv9B8VmTh+DEN7bnbXCYDoNkMI= 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=bBoZuO5K; arc=none smtp.client-ip=209.85.221.177 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="bBoZuO5K" Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-567543b8989so142477e0c.2 for ; Wed, 25 Feb 2026 14:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772058471; x=1772663271; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RbmElmhsWLmxkCWwbLCza2bJ6ctDAX0b+gZt/+eBHkg=; b=bBoZuO5KyP+4PLXPuu42xPJ8lUzGcdlNWo7aoycArjbY+fLwE1x8ukpY02aVIkwKfs 1tUco5HIH7c+Bvz11U/my0A5l8KUK7dalPnL2cInjGFOTcRA/yPpR5HDPf7F10DOhgX4 mblZEgxXdh8uf0vGhwhCwG3RxGFBdEO79BQWuFVM3oluL4k6dhsjTafgMzEQtq8JorEa FKt8bLZn4yrLfzo79qzjIB/VGBwQP6thKltG3gTQk372jtk0NbFHhnE24NfWcNQlRsLO aLe7mBrA/DuBnWoRPJ/aRQFQ3oTEE9rmz+yOkX3bfBFQxrt6YyHhHFxJwO94R41pOyLS niQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772058471; x=1772663271; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RbmElmhsWLmxkCWwbLCza2bJ6ctDAX0b+gZt/+eBHkg=; b=H3T9uWP2r/rk9UMCCwnyTALw8K6DLrDetpG/pwBNMiMahasHPU5Sq4q5T7lbjlYe1l CCU8YuNvSw1Vg4dGygepVQ2lIJi82dVZ76dme9GX76u6RTYQlHwoN687gRMFz4YJgSug eO2AjKHPZiRCPsUMyEJxuENWGB3y5cxpgZ++T33hgkxjTtQLCmSufTYIlRTtRl5p2c5i KnTtz7VWZ6E6fPWtRlolExVxdV+UiTV16qctolHg2cHjSR5Efvtzdlc8d9kXcc/iPycL 7GT7Z4+DPxgHbYrWAUGIKzPiL+IrOm707DMDtlXGasPQ4kYy7y5YfHeE0eDlcjnaq6it dFVA== X-Forwarded-Encrypted: i=1; AJvYcCX0fq6FaBYOF8eOtpnJJVgQ1vqsNlTTbLbMSjumL81R6jxlNQR06bs7e9N7hYoOSGIfAVrabzqdMyJd8jA=@vger.kernel.org X-Gm-Message-State: AOJu0YxNO00loMDprloaBNgwX1fKDgyohSyWa+hZFoo5WETi/WUWDKnd +6+65hoxAXgPNLxe3GXbbG4qW89L7EH4mZ1CvdssNgwqc2/45CxK4nAy X-Gm-Gg: ATEYQzx6PJJK4jQ3KpH8vs/NMfRl2Zn3PR2428NLyzDYJlB7zh6OJdr7E+XABSKE3Pl VQ5gwr/AdLIu8W9wMuTkGS6qvac6WHM0mWGk7PHa6XEyx1JPYldaBy18steDPjcGCgHsZ+uCVS+ dPQGpUwP1+heRyaPgqFrTcZ25JOyBGnuDpS1WgKkGVkPdl3D3LceSAMNOV9DvN/86KfJorB7UzO t2lErGY12Cp697we35bLZ0A59DYqo1zwlzGQUJl3U4KxjB04ZODR/0POhkE25MEAFldfvMoP20Z AF7XpxG4OA9On80z2epwY/Idk0gMHBGrbct1u4QIeHBW0dJMzInyj/UADxGyjPCvGtVbUtCW3b+ P8jY8gpuqHhwlV+qJ0LgN9EtrRkA7UJCyDICjCXJCMlr2zAQuKGWu47iP2RrJnV1MxO8uBvkD6z 4J7MZSnn+mfQ== X-Received: by 2002:a05:6122:3306:b0:566:37dc:e219 with SMTP id 71dfb90a1353d-568e48c946cmr7126900e0c.15.1772058470884; Wed, 25 Feb 2026 14:27:50 -0800 (PST) Received: from geday ([2804:7f2:800b:f14d::dead:c001]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-56a922afe47sm399366e0c.20.2026.02.25.14.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 14:27:50 -0800 (PST) Date: Wed, 25 Feb 2026 19:27:44 -0300 From: Geraldo Nascimento To: Shawn Lin , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Heiko Stuebner , Geraldo Nascimento , Dragan Simic Cc: linux-rockchip@lists.infradead.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] PCI: rockchip-host: comment danger of 5.0 GT/s speed Message-ID: <8db835ffe384db63ee598a203751b298ad1cc267.1772057799.git.geraldogabriel@gmail.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" According to Rockchip sources, there is grave danger in enabling 5.0 GT/s speed for this core. Add a comment documenting this risk of "catastrophic failure" and discouraging end-users from forcing higher speed. Link: https://lore.kernel.org/all/ffd05070-9879-4468-94e3-b88968b4c21b@rock= -chips.com/ Cc: stable@vger.kernel.org Reported-by: Dragan Simic Reported-by: Shawn Lin Reviewed-by: Dragan Simic Signed-off-by: Geraldo Nascimento --- drivers/pci/controller/pcie-rockchip-host.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie-rockchip-host.c b/drivers/pci/cont= roller/pcie-rockchip-host.c index ee1822ca01db..4faf3e29b7d5 100644 --- a/drivers/pci/controller/pcie-rockchip-host.c +++ b/drivers/pci/controller/pcie-rockchip-host.c @@ -332,6 +332,10 @@ static int rockchip_pcie_host_init_port(struct rockchi= p_pcie *rockchip) /* * Enable retrain for gen2. This should be configured only after * gen1 finished. + * + * Dangerous and may lead to "catastrophic failure", with data loss + * or worse! + * */ status =3D rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKC= TL2); status &=3D ~PCI_EXP_LNKCTL2_TLS; --=20 2.52.0