From nobody Tue Dec 2 03:01:28 2025 Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 EC4B72D47E8 for ; Mon, 17 Nov 2025 21:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763416051; cv=none; b=l8dHELnhw68OPFI8qnjJa2xajL5h95yfgt3bLVwFQ9Y60Ultg3w149FfDFuZVz/l+lpQ/QXEycZxARlwNMortvjvwmNVcPhiHc2MUJDMxcMbeeOYdd+Vr8W738jY4ukXi47LpR+fCeVIlrw3AudDgDBD3ozunFOxv59lXhcQWeI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763416051; c=relaxed/simple; bh=02KrjkcVEGcP4+KgwEdLutAwHLpirxYLnBEVXSkC1SU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hdM7NWxSMfbu1mzGXB4LV2COvm0wx/8k35SVZcL+02YHy3uJNZ01S3/Uhgyk6u+8BnYsN4dil/vbyK21PDwgt/d2cX8iJOCrfs2ia8cMnALljTlKT4f2Fu6s1cojOHqGeKCaveLkYBL/9REN9JEwntUKWJc7lbZOQnIMALDSSlw= 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=KrLZGxZ5; arc=none smtp.client-ip=209.85.160.53 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="KrLZGxZ5" Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-3e37ad3d95aso2877748fac.3 for ; Mon, 17 Nov 2025 13:47:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763416049; x=1764020849; 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=e5/Mnk8IlwC7NVL0B0/CURaWGhjHy5jv43K5mCqYKF4=; b=KrLZGxZ57y0EfwLM7nhWWZAvoFQl/YP8+pu78/yV3TXSysHdHs2TUhNvpbV1O++qob w02s139adKBn6y/Wg87rjt5mg90Oiygrl3QbjGj7usc95quOrOp3dp5OZfWMBMFMnCQ3 BXM6/wDD7l9dsWb+LABlojtCxQRysb7Npbk+zDq6xugwqIdBpxd46mSc/6PFJjWzjW80 pnS1orCMmPILd21+ahAcZjQFRhsl/m0+2UU6ArFp0fu297CidJEa3NIh0zixxbGMYLDX mlMt5aVdRV/6f2xs1Gn3FL7euIqlAWR76Dcxv7VtDLexCVWwf0r6DME4foNmxUcdqbul yTaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763416049; x=1764020849; 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=e5/Mnk8IlwC7NVL0B0/CURaWGhjHy5jv43K5mCqYKF4=; b=G9/yEdqPXHGVeeG25ozK1dZj//qESj5SPzgWTudXbV6WmmmIh2J/wIrYai796dGAcC akXy/neR9Y/RB1WnZVxpOCLUD5VydiAxA4uBFPjYJddB6ELG9UxtjrYA0z397M0DHgfN aiTrFH8N6qGmqKqFq/S7dh4IxDdJfNnVLjF73sO8ToJaqS4I62vhnxnemNFPCbTbvChI 5FlBI0l2/vQcmFV/5aF4WkiIBiiW1yOekQHdBCMAS4K2ivtSdj5io4uMLG0+QWLVv2+m ir31Xn+LBYcxGKkgD92enf5XlThmpr8+IZv2jt/usTV9rXaaaW3CEsdSmUixO2ngx9tn VJSQ== X-Forwarded-Encrypted: i=1; AJvYcCUa/F8z71cpyTUkl+pit4sO/Tbbu2lmbLBq9/H5KhZS1TCWK/eluo9kReAOPIXmulf13ODIND2l7zd2tqE=@vger.kernel.org X-Gm-Message-State: AOJu0YzNhDdlW4rM7dyuMOTmOXWs/GUwYDbvb25mINXvrk/amzfWaWan 0zXTsHS6jM+KsP5YnEcfBvDuDOYeh/vZyHTofSHm02+ZIJIMogww6/bC X-Gm-Gg: ASbGncuDN1C59zB0Fxbv2o3UfYbF4wiZkx/az4NmvKDmS5SQi4TWILeK+2sdMH9c928 dtdLtK1DP8ZBSEq+so25bXG2xlSE36KzE5SiYaRfzZ77S0cGdTWnCWgL4ErIcbcxRuSVd85rtwg 7coQqcBHuXZSYrRKQ79rhnbgNjYbG6hKNp78gaWC1475FOgCpbHzVqbbdCZ9deebAnGJ0xdPv1S uTjbz4wUFyPXmZUUGLZVg4wJVPAmD0skq24LyYiwxowKGOCoooSa5/e9PNZObnx//FILLO/ArpN Q9aSFdNPf/FqHyYVZSuJ4aQXzy+p2GxB/VJAvvfpefFb6o55jd0aFVxn2Lx3b1RHqt5+0ozqnDj 4QjC3vF5Mi2nyE68+Rr2y8yfysiNy/fAUfn1sDNJVN8KMsGd9Ur6cE44Clboz5oxeBJG2swhpa2 DPb5023h2U X-Google-Smtp-Source: AGHT+IFbFQICWh2gP02Uz3H7G+3A9sZE2Z07hnxBP+XT6lcLkkYORqspu5DTPztkG3lR2Z2E4DHMXA== X-Received: by 2002:a05:6870:a711:b0:3ec:64d2:3fd6 with SMTP id 586e51a60fabf-3ec64d2691amr104353fac.41.1763416049047; Mon, 17 Nov 2025 13:47:29 -0800 (PST) Received: from geday ([2804:7f2:800b:a807::dead:c001]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-3e851ffc62dsm6367892fac.5.2025.11.17.13.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Nov 2025 13:47:28 -0800 (PST) Date: Mon, 17 Nov 2025 18:47:22 -0300 From: Geraldo Nascimento To: Shawn Lin , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Heiko Stuebner , Krzysztof Kozlowski , Conor Dooley , Johan Jonker , 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, devicetree@vger.kernel.org Subject: [PATCH v2 2/4] PCI: rockchip-host: comment danger of 5.0 GT/s speed Message-ID: <2f2825741e189f5d915560eede6ff7bf827546f4.1763415706.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 that danger 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/pcie-rockchip-host.c b/drivers/pci/cont= roller/pcie-rockchip-host.c index ee1822ca01db..0af550277ee5 100644 --- a/drivers/pci/controller/pcie-rockchip-host.c +++ b/drivers/pci/controller/pcie-rockchip-host.c @@ -332,6 +332,9 @@ static int rockchip_pcie_host_init_port(struct rockchip= _pcie *rockchip) /* * Enable retrain for gen2. This should be configured only after * gen1 finished. + * + * Dangerous and may lead to catastrophic failure eventually! + * */ status =3D rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKC= TL2); status &=3D ~PCI_EXP_LNKCTL2_TLS; --=20 2.49.0