From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B313EC678DA for ; Tue, 10 Jun 2025 22:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+nqEkPlu56izKVRCcBxWQQRBgYviwPk2wR3cGWZ9+hA=; b=0Bcjv6zZ1kqj+JZKhCreQjmh2x AM3kwtH1tE7m0EsNNgeN8JGvjv8hMl9Gn30AWQ7G01mSSUUnJDDP3OTM+eR9HshC3XR0JoGwPzDYU G8GANvvp5HG47LeWClYFqM6jmYIdyZ46ppLG8Uv5o/5PbBNUiEc2Eocx8BOtwuF2ZuhW3ayZ4gzdC fUsl2z1f+yZP0p52dNTWv8P39DAjbC2mMla5BnrkvjufcqtGaY6Jb45BF9KSvzfFGiJY9JKW55PHH Ai+BEWhqxAEDF01OWdC+CPn544fUNNpgxxlTJ1Wn92JpiPdI7FNLqx4BPbDmOe5XWp5Dz0yrA66cI uGRyp22g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uP7lA-00000008EbZ-23FL; Tue, 10 Jun 2025 22:48:00 +0000 Received: from mail-vs1-xe2b.google.com ([2607:f8b0:4864:20::e2b]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uP1yD-00000007UcB-3emz; Tue, 10 Jun 2025 16:37:06 +0000 Received: by mail-vs1-xe2b.google.com with SMTP id ada2fe7eead31-4e5aa697e7eso4351137.1; Tue, 10 Jun 2025 09:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749573423; x=1750178223; darn=lists.infradead.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=+nqEkPlu56izKVRCcBxWQQRBgYviwPk2wR3cGWZ9+hA=; b=Hv9CZEx51+4Lao4WiFFUOcGWxgEN3oXPiLWW0rGhywDY/RXjqCQT7goYDS8EjxMSn9 DK/TxlqU8Rkh+rJPVj/ZtkJK0EyU9w9S5cvKkFAvf6JkUmyM8H8jKOT8cGCj2cuZX7jL 5rWr+TwCqfj5dPWSk/Lzb0nglm8L6JmO3uLeFZIcqVmigeIO2xms8PDfOYemCud7vUBq Y8NsyUy2LRf5XLiLj2+KVIu0eR0P20h4PbHKYDdLwAasyZ6nTTfajuTbRB/pymxE/kdC SQH5te5Kj2a9dpjo/Y5Lq1mxrwOdggd3DV084tBTaZk7cNdr8zOy5wLdZZCZG6VpHERL l0Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749573423; x=1750178223; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+nqEkPlu56izKVRCcBxWQQRBgYviwPk2wR3cGWZ9+hA=; b=R1NFszrEOZDKN6OzQ1D2oIPuDXmvxqv5ZcSToUt/GywgctL106vYctXf9eQHPU8OrV ArB69x3XvhrfstIhLzJnRCyKx4fi2DSCDfJ13gLjI5oJJNTerOWimeeQltYJimh3TQAP orPu5IOPn9p+iFY6pK5bp3OxbOidr6Bc5TeCpbDacsjGw4qd3mXEgoCuxfxnahcarZU7 W7qyLDQV05oQuh0yuSXZrhQzzIsoiM+FpV/yE+mdxz9KxqkiWXyN3c0r8UIapEOPiN7S oE348t1ED2JqQfATi735dnhIzkYnqisMA3fPOe12u8oX7h31XkIow/Am3ZpaCYpOclyo yJDw== X-Forwarded-Encrypted: i=1; AJvYcCXzlqFzWuywgr9UjjSP44sHZKjmqOLbK+JJNtsmD+9AFT/Q1ioaIjrwDVdVj8hwsFqAxhUZ3MNLe+nL0WXx7or1@lists.infradead.org X-Gm-Message-State: AOJu0YwnUF+ZTxS3WkvTzLAVBUBUj9d+OPWKumLn/YIOrSiXC3Qk/J3T UwuZAWdlDf/DbwvkmNywwUBaQUZuoO8APbx509D8PCqKfdSqa841xOSsMAYuaRQ1 X-Gm-Gg: ASbGnctashymkVtu0MyENPKiG9h8tcifpzCMam+dI8HJWhCbx2Ot5sp0HZJFzrpccKK 9prvEJfH3u/YWlD4eU0It1jpTS1cH9hiW1lmbCw/2wYVg2UDc35nT7utz0+zNQAs1GZmzlgPd3i kP+NdO+awwzjx+lIy2ScSP+aLKDOfK+P5hb7VOojHr0hvaUCjs05GY109iBRSlx3Wd8dx35siDn +SJZ8ou+JeLgJjfOmFg4PNI2aU2C/Uk13A0QBnU9+CXW8CTt9CdPgMyWm2KDhve3ZtqaxbGo6An kToCZI9WfZqaMqa+Py4M1wtboa3SQ5xyXMpfE81xNa7HfnltG/Tom3XHY6uj X-Google-Smtp-Source: AGHT+IGEWQ9kp7g1IHALe6XyZa16xeumaOw/ktccGJAoVzbIN5nr7Lb+92+/jcCF/Cfok6IL1EUV+Q== X-Received: by 2002:a05:6102:f9f:b0:4c5:2c3e:3841 with SMTP id ada2fe7eead31-4e7ba629798mr145476137.5.1749573423174; Tue, 10 Jun 2025 09:37:03 -0700 (PDT) Received: from geday ([2804:7f2:800b:5a56::dead:c001]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-4e7b5c7421esm801753137.13.2025.06.10.09.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jun 2025 09:37:02 -0700 (PDT) Date: Tue, 10 Jun 2025 13:36:52 -0300 From: Geraldo Nascimento To: linux-rockchip@lists.infradead.org Cc: Hugh Cole-Baker , 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 Subject: [RFC PATCH v2 0/2] PCI: rockchip-host: Support quirky devices Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250610_093705_907983_907A3553 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi folks, while I understand there are lots of already-working PCIe devices on RK3399 there are also many quirky devices which fail link training and refuse to enumerate. This RFC series is meant to alleviate this problem and has been tested on my Rock Pi N10. Note that with these patches, link will train for quirky devices but with Gen1 only and only one lane (x1). I have separate patches for improving to Gen2 and all four lanes (x4). They don't depend on this fix however and since I predict the present patches are bound to be controversial, I decided to send the quality improvements separately. Hopefully this time the series will be threaded. Thanks Heiko! Geraldo Nascimento (2): PCI: rockchip-host: Retry link training on failure without PERST# arm64: dts: rockchip: drop PCIe 3v3 always-on and boot-on .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 2 - drivers/pci/controller/pcie-rockchip-host.c | 141 +++++++++++------- 2 files changed, 87 insertions(+), 56 deletions(-) -- 2.49.0