From nobody Wed Feb 11 06:30:45 2026 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 0C9D525F98B for ; Sat, 15 Nov 2025 09:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763197826; cv=none; b=FNm+tSeiPpydj2eDNHr6fy/HdxmA+/xw7zRfWeVvubB5y13jZuNAAgmOQfMOh8S6mGAlZ4705GfZBhZKN5Zgh153Igp+vOzu6f5rXMLVUes6hchiAT71YWwRrJf1McglNW8f0ahC6vtVorX2I6eq7f2Q+XVE0r8MNbQExbIW/Ww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763197826; c=relaxed/simple; bh=39GjL804A0Af6T0xqj2B986g8wFCu7FUQ0sHq5hPvBs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y5R2wgLhp1Hp6AAs7XGoq+TGUHtXijpogtFjqPUxeicomP2hI1dK4K+t1rhhkhCCE4jYrKNaG1LxahD7PAa0B2JboUdsHJf3ccRGOmxgUiOZDjxn7q++GAWwIVfG3CjTk5aYNlInlXW9+mYcv4Ib+NozvnulWlkDg4DJbaS8CNQ= 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=m1uZM9PM; arc=none smtp.client-ip=209.85.215.180 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="m1uZM9PM" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-b994baabfcfso1710673a12.3 for ; Sat, 15 Nov 2025 01:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763197824; x=1763802624; 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=ucj2p+rgYAXgwVH9kYepl5CbaaWyr15G4v4y10s3RPA=; b=m1uZM9PM5/S0RV76ZkiTgEKkXZPcOkQyX8rU6jhhl2pR9bphHcCJQ4C2WKiqHbh4TL wGiwJy1AOOQfDBalTGSia+quFVUQCofAPrsARF7RxhUWYaVU8FtIkRg74XEM2W4aIA3o e960Ruc4lBUY68moQ/tD/E6yC/FTfFiBpq16j9Bb9pT2fttCEdk32lRA8Hr8Y7t9lGd0 7+IikJtivQ6sSfH7kFkVhrR33C5FcTW6FNi0PsKpVqCBXTCLux7CXhMV3mih5yl3lnwc DkrDlAIByL2tZJn3l5kgr+7IlG5haDL8PAlr8Q/9j1ROucTGaNWqwK06oyaxGUgjYheH gdpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763197824; x=1763802624; 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=ucj2p+rgYAXgwVH9kYepl5CbaaWyr15G4v4y10s3RPA=; b=u7Y6d8a0sRKrIvD2DoN4KkY+VAXpKQh8/416aEDFxpCviNhJCeIPISprzgATHWlIfW pKwbswQ6lLk8akQ5OcFIOh0VmdlXYXsvAxWHSY4GjkaWLwYSaun26ElHhX4sT2WcXkXQ 6fINFqNcXLataQz72QKXsNysra/AoDZ3lm8zApcVGVAkxJvxFJA7mm1HiCw60sJPP3zc WAVsEcdBKgavfqD/2+UKXmqkOVXbfsLCBHxXaFJn/U5ZUb02xDrQBV809bwYjUHbF/OL n9CR7Pas7Wby4EP02XeYYaZSh3o32JlEjy7uOob5FXHOVQAT6hg3pORQrVILPEIPpBfQ tdlQ== X-Forwarded-Encrypted: i=1; AJvYcCVRgSub7ESpW/vJQ6l9GzIGH4WTBjuyoFn1enwgrCKnSgLTHK4xZqrjTTYQjUW2Zy8eQ6VZDi663dktC3M=@vger.kernel.org X-Gm-Message-State: AOJu0Yyi0SQ1K7DgyqqApT/1uqyVzNkKKeBm33lEUyOalexDx8/ezsEC fxs5VmKifA/zCA+Dg/98zW1XRBMN5B9aziJoSxt2dSd4Lr2VsgXfthD5 X-Gm-Gg: ASbGncvN4tHwxR2s1BgJTLDG87oJrQ7aXsIf41GSH5XSkUU35QbwgcbgizmxdV+pV0+ W2azK0MAJ1XA8YwKBLjpGrPj5OtU8HGEkr+qMGMvGKxcfFzGlA44ph3+4gUbuvGlwxJoRnn2GeI r7RMq8/ZdGgtPXPfcbYg25Y3tE140UP+fLrnF0vGcoYumNZMP85IuxAcwN37u8dkVyl+kxRZrD8 KORG1hlENh2aCBReHtymZ/32SWUAqbt8l7P+KBuoWTaf3ipecl2rIK65/HA1ZQbfXhCv49DVPqw /CtxmW6aQJtJIfFa4kaAhYY48AOGyhjcmlsD0fEQ9oUytY0B2CrZAX8T1ZKelw/OsD5SloCpsRv 2ppUGhrBb0rZzT0dphMl6dXnV4Bi+zY6VJsygLLBUYKvvMLVjhZRjBa881x/QR4Sah4iQMPeXJw == X-Google-Smtp-Source: AGHT+IFdOsYpOF/1IoUjLFcOg8Bhmt7xGXHygPshYo3UvTQSI65Ig5BIOny2NN8RVI+eyWKKQcuUNQ== X-Received: by 2002:a05:7022:688a:b0:119:e56b:9899 with SMTP id a92af1059eb24-11b40b3420cmr2866205c88.0.1763197824064; Sat, 15 Nov 2025 01:10:24 -0800 (PST) Received: from geday ([2804:7f2:800b:a07a::dead:c001]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11b060885c0sm23408196c88.3.2025.11.15.01.10.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Nov 2025 01:10:23 -0800 (PST) Date: Sat, 15 Nov 2025 06:10:17 -0300 From: Geraldo Nascimento To: linux-rockchip@lists.infradead.org Cc: Shawn Lin , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Heiko Stuebner , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , Johan Jonker , Geraldo Nascimento , Dragan Simic Subject: [PATCH 1/3] PCI: rockchip: warn of danger of 5.0 GT/s speeds Message-ID: 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" Shawn Lin from Rockchip has reiterated that there may be danger in using their PCIe with 5.0 GT/s speeds. Warn the user if they make a DT change from the default and at the same time, drive at 2.5 GT/s only, in case the DT max-link-speed property is invalid or inexistent. Fixes: 956cd99b35a8 ("PCI: rockchip: Separate common code from RC driver") Link: https://lore.kernel.org/all/ffd05070-9879-4468-94e3-b88968b4c21b@rock= -chips.com/ Reported-by: Shawn Lin Signed-off-by: Geraldo Nascimento Reviewed-by: Dragan Simic --- drivers/pci/controller/pcie-rockchip.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-rockchip.c b/drivers/pci/controlle= r/pcie-rockchip.c index 0f88da378805..ed67886a6d43 100644 --- a/drivers/pci/controller/pcie-rockchip.c +++ b/drivers/pci/controller/pcie-rockchip.c @@ -66,8 +66,12 @@ int rockchip_pcie_parse_dt(struct rockchip_pcie *rockchi= p) } =20 rockchip->link_gen =3D of_pci_get_max_link_speed(node); - if (rockchip->link_gen < 0 || rockchip->link_gen > 2) - rockchip->link_gen =3D 2; + if (rockchip->link_gen < 0 || rockchip->link_gen > 2) { + rockchip->link_gen =3D 1; + dev_warn(dev, "invalid max-link-speed, set to 2.5 GT/s\n"); + } + else if (rockchip->link_gen =3D=3D 2) + dev_warn(dev, "5.0 GT/s may lead to catastrophic failure\n"); =20 for (i =3D 0; i < ROCKCHIP_NUM_PM_RSTS; i++) rockchip->pm_rsts[i].id =3D rockchip_pci_pm_rsts[i]; --=20 2.49.0