Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2977276rwi; Fri, 21 Oct 2022 10:00:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4sIs0K1bprTrZfFtzzBm6ZcUcjIL1cG9/upervPJVyncO/mCBZmLrqtYEjmNbPZraU5lwr X-Received: by 2002:a17:906:a4a:b0:782:686d:a1b6 with SMTP id x10-20020a1709060a4a00b00782686da1b6mr16188858ejf.232.1666371622952; Fri, 21 Oct 2022 10:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666371622; cv=none; d=google.com; s=arc-20160816; b=U/4hcdrVjZun1kDMc8MnYlrneSI3jgHcQaTeqE8zZbbU1EYwHh9SzO3k7XDIRyExu+ lnQxx/Qu9GdPwlwg3FWoTmhMlBmfbQP7chqjW9zwICfD7vSfihhpkmPScBI+fR5YiAJJ pZ1i5CEn9oi+HduOWT0JnlkWPjoHkc7DuwJcx2RHMuPBovmBtzAmUjJM5ACyxTNamoi5 cICWrsv1DQtaPVMWhCdM1N0LBKNj+Wrzuk0q9LG9oKNvlzzaU+ArRF4oKzz09riAs2Yo fYjUmt5kidJsvvDgu9eSiDlCDuOACs+DHV7pnaqWQlXP+GJ+cdlM1BmnN8PdV3NSmhwW UYSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:subject:message-id :date:from:in-reply-to:references:mime-version:dkim-signature; bh=XbPvSXhOFP986gsXwgJkoWhk6VMKEDH9VysMFA4exvU=; b=Pi4DeiulAhqvvi25vaxMrwUo7M4+Yat/FvgK3rV+eLOAK+Mo+cg591Usu0kguNJ/80 8ns5e9cHCVctopZl1Vzsqp8njgVDpiwb4b8Dj/zJ0SsyRRVmGhqkhURxJjfdbThOrnaW CguXFqNFXMEYWiDBc8Fw3Hf2gBuEn5s8ETL01nFmRGO9bKMzphiHf5NBKc2tz8dx4xU4 o1S65Vm17/a8FIQxOUWooVGTfOfbXl5TV4WOBfeHFNYg2T/GKTMEDD/oAUah1pMFu0EM uLsBlqCDennfCfZRrbHnVsDRKvOKoA/UUEZZtPiYsC+fxrR8oDel59uvsBy6QC5aSbpz a4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I3PLxPuc; 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 v16-20020a056402349000b0045d5efed1e0si17623780edc.366.2022.10.21.09.59.57; Fri, 21 Oct 2022 10:00:22 -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=20210112 header.b=I3PLxPuc; 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 S229727AbiJUQss (ORCPT + 99 others); Fri, 21 Oct 2022 12:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbiJUQsd (ORCPT ); Fri, 21 Oct 2022 12:48:33 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E5A4100BE6; Fri, 21 Oct 2022 09:48:28 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id c3-20020a1c3503000000b003bd21e3dd7aso5509653wma.1; Fri, 21 Oct 2022 09:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XbPvSXhOFP986gsXwgJkoWhk6VMKEDH9VysMFA4exvU=; b=I3PLxPuc2tV4wZKG9QH1dxt6KVSHYn4tUeqoMo7D1YkEwEWRqEqj30vZIfAaWSSq5C gsgA/KjAeXIVc47AAOdFcimD0GwGpL15rAMwbY5utUNOf1aTfVHri9HYZCxF5c+choLo ua/Y2AhmzXrIq1vDLskNd6C8d6MYQbw0uyBg7Ou5Pmb5lWMkn1VnzE0MkReOBJED8O0I Khwz/aGMUrJyQyFQnA/xdcs5dEIlpT47mJu1oQShXjI1ruwjrsNsOExGp3OMSbSeZrqq zzsRaGYow5CXpG1EUOUNNs9pUV7VVZ7/QQacIfexqVvw0Zm+TFtKaUFbqrsfooS3o+u9 9Tfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=XbPvSXhOFP986gsXwgJkoWhk6VMKEDH9VysMFA4exvU=; b=0HMpGtPCJuzStiQKmr6Dnj8/0mU+0twy6GoPedIy+sTbkk6Hu7lH4YxlhZ1qNmkHNJ pV0PXdSW/YyxBE4Am+QFL/K8Wjs73b5z6JI24f0/UBVlSYltNILR0vb7DuUUctKQ7wcK m4bi55uS++NE2j//NmXqRFZz7a78M+keRonVTi9NqE2ErmiUWfX3hjD/eHQroPG9jjSm ahzHUR3m5ylUE40Tn/MD/x5SL/3GGHu96BsAoy8RR+goQ/GFW9Xmf8zYbR5TR6gM2ZHq HXaCiJT/4Q9OSi+F5NGmNeAZxuQYKUURslzkIrbzOH83VwZZc0g0t37uLSeHTs42mvYB vcJA== X-Gm-Message-State: ACrzQf1K+y/DiYWUNiq/WQoKtlZzHB81IBAs87SuF15E/PYWysI2GKN1 fyS0gGzPJkMf4UA3dPiFoZnPolnM7UUIbVp6XR4= X-Received: by 2002:a05:600c:6885:b0:3bd:d782:623c with SMTP id fn5-20020a05600c688500b003bdd782623cmr13697576wmb.102.1666370906852; Fri, 21 Oct 2022 09:48:26 -0700 (PDT) MIME-Version: 1.0 References: <20221005085439.740992-1-megi@xff.cz> <20221005220812.4psu6kckej63yo2z@core> <4679102.Wku2Vz74k6@phil> <20221021153913.l5ry6v4mcnzcmj2v@core> In-Reply-To: <20221021153913.l5ry6v4mcnzcmj2v@core> From: Peter Geis Date: Fri, 21 Oct 2022 12:48:15 -0400 Message-ID: Subject: Re: [PATCH v2] arm64: dts: rockchip: rk356x: Fix PCIe register map and ranges To: =?UTF-8?Q?Ond=C5=99ej_Jirman?= , Peter Geis , Heiko Stuebner , linux-rockchip@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Michael Riesch , Nicolas Frattaroli , Sascha Hauer , Frank Wunderlich , Ezequiel Garcia , Yifeng Zhao , Johan Jonker , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Rockchip SoC support" , open list 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 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 Fri, Oct 21, 2022 at 11:39 AM Ond=C5=99ej Jirman wrote: > > On Fri, Oct 21, 2022 at 09:07:50AM -0400, Peter Geis wrote: > > Good Morning Heiko, > > > > Apologies for just getting to this, I'm still in the middle of moving > > and just got my lab set back up. > > > > I've tested this patch series and it leads to the same regression with > > NVMe drives. A loop of md5sum on two identical 4GB random files > > produces the following results: > > d11cf0caa541b72551ca22dc5bef2de0 test-rand.img > > fad97e91da8d4fd554c895cafa89809b test-rand2.img > > 2d56a7baa05c38535f4c19a2b371f90a test-rand.img > > 74e8e6f93d7c3dc3ad250e91176f5901 test-rand2.img > > 25cfcfecf4dd529e4e9fbbe2be482053 test-rand.img > > 74e8e6f93d7c3dc3ad250e91176f5901 test-rand2.img > > b9637505bf88ed725f6d03deb7065dab test-rand.img > > f7437e88d524ea92e097db51dce1c60d test-rand2.img > > > > Before this patch series: > > d11cf0caa541b72551ca22dc5bef2de0 test-rand.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand2.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand2.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand2.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand.img > > d11cf0caa541b72551ca22dc5bef2de0 test-rand2.img > > > > Though I do love where this patch is going and would like to see if it > > can be made to work, in its current form it does not. > > Thanks for the test. Can you please also test v1? Also please share lspci= -vvv > of your nvme drive, so that we can see allocated address ranges, etc. Good catch, with your patch as is, the following issue crops up: Region 0: Memory at 300000000 (64-bit, non-prefetchable) [size=3D16K] Region 2: I/O ports at 1000 [disabled] [size=3D256] However, with a simple fix, we can get this: Region 0: Memory at 300000000 (64-bit, non-prefetchable) [virtual] [size=3D= 16K] Region 2: I/O ports at 1000 [virtual] [size=3D256] and with it a working NVMe drive. Change the following range: 0x02000000 0x0 0x40000000 0x3 0x00000000 0x0 0x40000000>; to 0x02000000 0x0 0x00000000 0x3 0x00000000 0x0 0x40000000>; I still haven't tested this with other cards yet, and another patch that does similar work I've tested successfully as well with NVMe drives. I'll have to get back to you on the results of greater testing. Very Respectfully, Peter Geis > > kind regards, > o. > > > Very Respectfully, > > Peter Geis