Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp278436lqe; Sat, 6 Apr 2024 00:18:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9iovTS+zrDHAnsd9+/OV5CV3iHNy5VvTue7a+rEVxN0rwPANX/dWtPaNo0dfUMPo8l922QuvvifePVz6RPrBF4+vY5CuhfSfnfckglw== X-Google-Smtp-Source: AGHT+IFPTeW6+Aku03ZKsZdjMCuYzHcERnnIowaFSywjLjNla6dl012KCaMXH1LtcpltEozurgpF X-Received: by 2002:a17:906:c417:b0:a4e:67ca:1040 with SMTP id u23-20020a170906c41700b00a4e67ca1040mr2279105ejz.14.1712387902428; Sat, 06 Apr 2024 00:18:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712387902; cv=pass; d=google.com; s=arc-20160816; b=MJnsgn9SHEkO45rXc1OUtbDX2gn9Hj8ktDXOzg4HWW9z8Uev8NEMuOk6a//CDqT2w6 w2E5Usjh9rbcHYZqE5mMC+RAN5EUZgfCwQX5hzOIWcVzQTeQCed83DJ1quV5+bwmv3FO lVVOMJ/UOH2HNLA7JA/Viw9OjIlnbmL/3YTPW8ui66kEEyy/UQOxPliDmSyXiCW90Cnb LROhj1i0iFaejdzNd75qMdtVQZkZOUo8o11XRzH2PGutaQsCMzk5EJnmz3ZpuIaFyx+5 0N8F/IWWsq3l07dbk8ypPmdvVqWskKlmBKw6qSFWRINbJmXwrEU4Qxt2zkA4QOneTuKv w+tQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8K7E2YTbaUW0zxQWvxmIwVmVkXI3U8J9qFa2Vwc2plU=; fh=1oMjsUo0SCW770ZmCEcgkkesSPfzZgf4Z4tSlglLelY=; b=AE+76p1Yq5fVoXwwQNFIT0LzBhMM0/RGp3epzEC5T74SMGAm6g2NXvkrk4/ioZs8Qo LHkapZmm4rZynnGKQqakH5R99W5IzMsfd4X5c3h2qzQtC6mGw64Ky+LiuYKidT+4/Eh4 S9HVb3X/DLdk5u0BKVCGJYDztBZw4ODjObVmZabUdIJUQOa0o+q3oszyRS6cwTd57Ff2 jHjH9ImIZwnUWGx4BzwTYMwQjOMXk7CUUWXzMJ9IlrNt/PvzRQPYWydpniH8pRLLZu2v KFrcKpVIPl+UrYDFqlTkgvB1yGSjSOmHuXZJXMB5ryeU5vEBNxoqkcnR4JYjE3o2C5u2 75xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ea6S6N6K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v7-20020a170906488700b00a46674fd64bsi1427556ejq.122.2024.04.06.00.18.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 00:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ea6S6N6K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 296E41F22544 for ; Sat, 6 Apr 2024 07:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 151E422EE8; Sat, 6 Apr 2024 07:18:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ea6S6N6K" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3656C2110F; Sat, 6 Apr 2024 07:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712387894; cv=none; b=PmaWRBAm5Rzcq1LIphWjxnpv4O6awHoHJAt1fItSqZ/xzkXytAB52FxJY3RHuCu7WLTKGk5tR4TW/fu6/qV5drvhJp24VE867kQjar9JNL4pCwlmyUHKUi1adqQGhtptJOXhgOA4KLHvT57Quw/Qc03NPxtdfwmcZ0ly08BNpPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712387894; c=relaxed/simple; bh=dS8bADZziQoLtHlnkHj0dQ2paJIGjWmIuNewalgbWUA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SxKlxYxHIrwIVL+Nwp4mC8soeo9AtoOcL/bi0MfnIJI5EVzSsQd9u8daatZw+xdzdYDiP7Ny7VnHDZoPsQN/Y9knOBLDGAfSBnp8N7Pp+TCPvJrSfGmQuZVLycZgsGKBV6/IB2EfCzF/qEAzGfyQyOH1dPK+lZfeP5V6QLgR2L8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ea6S6N6K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9DA8C433C7; Sat, 6 Apr 2024 07:18:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712387893; bh=dS8bADZziQoLtHlnkHj0dQ2paJIGjWmIuNewalgbWUA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ea6S6N6KseF8FYU91uMYJN7GD6yzmV7gab0MK5qCOM9EoxQmArIK+Qf4SmrVk7wWd w4XXWVDPPOYHHZv3evO6BMbfX4VxnqR46iifX3EPm2YW1Dotyn0Z+UrRWpPLayVoIj WKMckBsbZZVR2Azg9mLn9kc6wee9HAP7/p7lvdSggO5kzf8s8yplkVQXxU6qyMQclo hSdF9W6liKlu+0CsLtUDcVuJqsrZxKyA6LHu7IsCpPTRaYEe8NzCHJhG7GB+S3w8Ye ptA0UggHfPqrixdz4A5ghcTFtERIWFgc6L2T1QHsXRcikxX+L11f46KBcCk7g+So27 mCktSUaE1/xGQ== Date: Sat, 6 Apr 2024 12:48:09 +0530 From: Vinod Koul To: Marcel Ziswiler Cc: linux-phy@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Richard Zhu , Lucas Stach , linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Marcel Ziswiler , Fabio Estevam , Heiko Stuebner , Kishon Vijay Abraham I , Rob Herring , Sascha Hauer , Sergio Paracuellos , Shawn Guo , Tim Harvey , Yang Li , imx@lists.linux.dev Subject: Re: [PATCH v2] phy: freescale: imx8m-pcie: fix pcie link-up instability Message-ID: References: <20240327071946.8869-1-marcel@ziswiler.com> 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 In-Reply-To: <20240327071946.8869-1-marcel@ziswiler.com> On 27-03-24, 08:19, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > On the i.MX 8M Mini, the AUX_PLL_REFCLK_SEL has to be left at its reset > default of AUX_IN (PLL clock). > > Background Information: > In our automated testing setup, we use Delock Mini-PCIe SATA cards [1]. > While this setup has proven very stable overall we noticed upstream on > the i.MX 8M Mini fails quite regularly (about 50/50) to bring up the > PCIe link while with NXP's downstream BSP 5.15.71_2.2.2 it always works. > As that old downstream stuff was quite different, I first also tried > NXP's latest downstream BSP 6.1.55_2.2.0 which from a PCIe point of view > is fairly vanilla, however, also there the PCIe link-up was not stable. > Comparing and debugging I noticed that upstream explicitly configures > the AUX_PLL_REFCLK_SEL to I_PLL_REFCLK_FROM_SYSPLL while working > downstream [2] leaving it at reset defaults of AUX_IN (PLL clock). > Unfortunately, the TRM does not mention any further details about this > register (both for the i.MX 8M Mini as well as the Plus). > NXP confirmed their validation codes for the i.MX8MM PCIe doesn't > configure cmn_reg063 (offset: 0x18C). > BTW: On the i.MX 8M Plus we have not seen any issues with PCIe with the > exact same setup which is why I left it unchanged. This does not apply on phy/fixes, pls rebase -- ~Vinod