Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5044011rwe; Tue, 18 Apr 2023 00:56:34 -0700 (PDT) X-Google-Smtp-Source: AKy350aaJikVyqGp7qsRLeV5PAo8a1Wj5FzrMyD41g9HJp5xSkpyuCr6HCdAN6Tux6q0myuKbcWd X-Received: by 2002:a17:90b:30cb:b0:240:1014:a1b3 with SMTP id hi11-20020a17090b30cb00b002401014a1b3mr1110920pjb.35.1681804594435; Tue, 18 Apr 2023 00:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681804594; cv=none; d=google.com; s=arc-20160816; b=p5v3UuIQjgIuwMo3H/FEka+EGVUoqw3+TD/aeUZj/bA9oK6/8uRib1UdYkTI1GDt7q 0HU8/i5gdD6s9V/QgeF0kyHL5+LgAdef+hOgtXesm2m6ajZllc7f58XxnHqrzg/3JSVy Rhp9Bk0PNFcxhIAeAz0+3DkUYaB3ZUCHVi62i2wyjWv6kQTOArmO/uA7+wjROyPQPzIL F48TQCcQbPfEoA2207l8m33eoIsARRo8V8OKhXjxFyuEfumUqX73XxNOYKgJQ+dDuxaF Jqlvp7fja+oobCBXp2mzhiyZW++uPYShW2eEq1rXDXhJSCi/XjEJEh8Ix75HbGgZ/RgJ 6AJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5XKhV+MHr8awDXVQkhnmJAIOVO3SkBSAcDrv3qZeqRM=; b=fmAVdajn5hMur2YMXmjdrggsBln9PJP2fimq5WF+6NN9UqNnGLprUn2n/O8boFQh8D RiztdA6s42RMILJwqDylnw1KNz91YkAyimtpF1trFM62Zo1ecbicuJKmg15t4aefsBb5 cU4KSx9UT9LHFCXGlgbbXQlqmSozIq4EM8W50Xb7raaPMW7KLtlFo1kKdB0EozJI43XX NooYog03fbisTzldw5CN6duY9OI3xmcCvHNOl/hc7BOO+qaeES3O+9ouKiRjDVP19syx 7gExPEVklB8JnH88uhVIAEFP6ed4Q+Mg4b1Dxrb3ADKf2WAMwgGpm2y7zsYGd71d0mGZ DAqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rrkaalIe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090a838200b0023033ddad2fsi16129788pjn.73.2023.04.18.00.56.18; Tue, 18 Apr 2023 00:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rrkaalIe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231263AbjDRHw1 (ORCPT + 99 others); Tue, 18 Apr 2023 03:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjDRHwW (ORCPT ); Tue, 18 Apr 2023 03:52:22 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F362CE44; Tue, 18 Apr 2023 00:52:02 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6a42e7c5c1cso278737a34.1; Tue, 18 Apr 2023 00:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681804318; x=1684396318; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5XKhV+MHr8awDXVQkhnmJAIOVO3SkBSAcDrv3qZeqRM=; b=rrkaalIeM9kzkvkcOzG9Cmmyv7VvFDvJKRqUG7Q3CftIrvvz2WwXHtRrLix0+a8hFE yCgJjUa5UNYL+Mt7eRS1xwHDxbMEtzGO9m8qTfpwIMpeFb5ConrK88WZWNkz0GrK3ydM Pda0Rq0N3W9xkkTS/7mXn5ELspTCAQjAqgzE+rUgh8Y/VHcDy6DOneeHsHyj5xy0TURO ess8N0k7sIfnISioHvoFzKJ5y/gbEt5HXw2+dsFWzQEhvVdHWUuWM7Mp3ejzEofHKz5N s7FMD645r+DSiXJJLQN0c7GU5liY2co+Hi+L8os9E99RNCEuxWvOIuzb3nmeI/DIe7g9 YOpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681804318; x=1684396318; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5XKhV+MHr8awDXVQkhnmJAIOVO3SkBSAcDrv3qZeqRM=; b=Kj9QUtZ9T8Zb2nGV9HXg1KPFAus4Hqn4JLeMDX++DRex8CzPZoYKSSxEUj6sKDOrA+ sfkxesJojeH0XUtiKCsXunS0wU//aS60RMIb7H3Rp7E6iNVCSbHRfbL+618V1esyLSbL Z8TaXIKTKUfhaiwYH023+TrXZ9ICauaxddVAG9TTsrxB3scTogvHStMMmcDhzEAyPZEF GB3bWVMsltKE27g6hrXfkWgpLkl0edNo7eL/4uOQFmxUVDDGiTR1/IDX/KgqVUMz2G1e VGl3wu5tpv2DRKAYPe1ZJv0i1uOj8qmeZT/K4EO/XWRfmGP9S9cHn3oaYzvnyfLkbBPQ EfaA== X-Gm-Message-State: AAQBX9dbVR90Y5IdQGdnJe+cU1MDYJ6ZGPSUOb67bDNICQ6jUHQ+wFNU sdw17YcefrPcSVNr+foxZiySBHhfZdax5R6F1do= X-Received: by 2002:a05:6830:1486:b0:6a4:3385:7a6f with SMTP id s6-20020a056830148600b006a433857a6fmr412331otq.4.1681804317971; Tue, 18 Apr 2023 00:51:57 -0700 (PDT) MIME-Version: 1.0 References: <20230417092631.347976-1-rick.wertenbroek@gmail.com> In-Reply-To: From: Rick Wertenbroek Date: Tue, 18 Apr 2023 09:51:21 +0200 Message-ID: Subject: Re: [PATCH v4 00/11] PCI: rockchip: Fix RK3399 PCIe endpoint controller driver To: Damien Le Moal Cc: alberto.dassatti@heig-vd.ch, xxm@rock-chips.com, Shawn Lin , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Brian Norris , Johan Jonker , Caleb Connolly , Corentin Labbe , Judy Hsiao , Arnaud Ferraris , Hugh Cole-Baker , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 18, 2023 at 2:09=E2=80=AFAM Damien Le Moal = wrote: > > On 4/17/23 18:26, Rick Wertenbroek wrote: > > This is a series of patches that fixes the PCIe endpoint controller dri= ver > > for the Rockchip RK3399 SoC. The driver was introduced in commit > > cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controlle= r") > > The original driver had issues and would not allow for the RK3399 to > > operate in PCIe endpoint mode correctly. This patch series fixes that s= o > > that the PCIe core controller of the RK3399 SoC can now act as a PCIe > > endpoint. This is v4 of the patch series and addresses the comments rec= eived > > during the review of the v3 [1]. The changes to the v3 are minor and no= ne of > > them change the logic of the driver. > > > > Thank you in advance for reviewing this patch series and hopefully > > getting this merged. Having a functional PCIe endpoint controller > > driver for the RK3399 would allow to develop further PCIe endpoint > > functions through the Linux PCIe endpoint framework using this SoC. > > > > [1] https://lore.kernel.org/linux-pci/20230404082426.3880812-1-rick.wer= tenbroek@gmail.com/ > > > > Summary of changes to V3 : > > > > * Set the fields in the standard order in the dtsi and removed unnecess= ary > > change in associated documentation, thanks to Krzysztof for pointing = this out. > > * Added comment to explain how MSI-X capabilities advertisement was rem= oved. > > * Changed Damien Le Moal address to = his > > kernel.org address Damien Le Moal in tags. > > * [minor] Simplified code where a power of 2 was applied followed by a = ilog2 > > operation. > > * [minor] Small code changes, replaced constant variable by macro, spli= t > > remaining long lines. > > I retested this series, all good. So my Tested-by tag stands. > > Lorenzo, Krzysztof, Bjorn, > > Let's please get this series queued for 6.4 ASAP as otherwise the rockchi= p EP > controller is unusable. > > Also please note that working with Rick off-list, we found out that more = fixes > are in fact needed for the PCI address mapping (ATU programming) on top o= f this > series. But the problems detected are subtle and harder to trigger. The f= ixes > needed involve changes to the EPC core API so we are still working on the= best > way to do that. We'll work on another series on top of this one for addre= ssing > these issues. > > Thank you Damien for taking the time testing and reviewing this, it is highly appreciated. I just sent a v5 [1] addressing your comments and added the tags. Best regards, Rick [1] https://lore.kernel.org/linux-pci/20230418074700.1083505-1-rick.wertenb= roek@gmail.com/