Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1918560imm; Thu, 21 Jun 2018 04:40:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJRKnBuM9QhQP9KBFX2TYrLL+ZBELZdfk4kmqJNR/Ja5F26Sd9t++A87cw+DiKdzmtn9Td+ X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr28022220plf.327.1529581207570; Thu, 21 Jun 2018 04:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529581207; cv=none; d=google.com; s=arc-20160816; b=NOxJnIwkYhxfHo2Vr2MIq9KvQ+SUrEn3gOHQeHe8XILg3vJxP6U64MnjVJg5Wo3yWk UsBSdnu8mrwTyU+RNcL4/Si1S0V1YltWCz6aRl53ehy0WJ4QcYU631WBDH1h6REV6No5 fQHhiJON44v3/YncYYg+dwkEyoeP5qv19wBXhXtZTwNpgEQbxzSUC3h0XvR37wx0ZGT/ K58AkVVM50Y14Dt4lp1qv7ZKX/VcF+5zYyGRmZFh8ip6KuQzhqywaHGeJIDKI9sEltQc mQ1NENpJItDPAvdCLw70xaHKvpn7896nPNubCdZsxePuSsWx9cVtn6PrkZHZlPwfKXwW hYSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zAsut7/+9c1H1NphyOEYtTFuIz41Oqj4EeOl1zXcGss=; b=XWOTAw+SfhlgbElUJAQCuJbj2j3Nz05eVBMHkQlFFYAZ7bUQpacVz4l+DIMRASJBjH YqacAtWbvVe+tTgfhuXwUw3WsHQngQGiouIAhyPUbtLB49J+xjhVhn6uWaoxkYdV5QXi a/IRfeNYOdCCXeqdQtSAuCc5gsf9o6Qvjyt0M85OsRt+0+DiboOhpV2ZNpved7vls5RC SlhjVQg9kRLBuzuoKB2Xa45Jl58zRFJByHUNWMsU8wpzZ+VdF8MeXyD1Z5yBL6WEw3qG adyGfbLVX5jA0XjCWAWZZKuXIUSul9SQvvd20f2zD44NDFaqZOIoZ35Se4ZmQffRbpgU LsNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25-v6si4272540pfh.101.2018.06.21.04.39.53; Thu, 21 Jun 2018 04:40:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933256AbeFULhy convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Jun 2018 07:37:54 -0400 Received: from gloria.sntech.de ([95.129.55.99]:50554 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933009AbeFULhw (ORCPT ); Thu, 21 Jun 2018 07:37:52 -0400 Received: from wd0142.dip.tu-dresden.de ([141.76.108.142] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fVxu8-0001xZ-HL; Thu, 21 Jun 2018 13:37:32 +0200 From: Heiko Stuebner To: Heinrich Schuchardt Cc: khilman@baylibre.com, Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Shawn Lin , Vagrant Cascadian , Enric Balletbo i Serra , Pierre-Hugues Husson , Jianqun Xu , Kever Yang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] arm64: dts: rockchip: correct voltage selector Firefly-RK3399 Date: Thu, 21 Jun 2018 13:37:26 +0200 Message-ID: <5740207.Zs2D9gmsc0@phil> In-Reply-To: <3b6e37c8-0ee2-1723-1aa8-499fcb30471c@gmx.de> References: <20180604171523.28454-1-xypron.glpk@gmx.de> <3b6e37c8-0ee2-1723-1aa8-499fcb30471c@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, 21. Juni 2018, 02:57:02 CEST schrieb Heinrich Schuchardt: > On 06/20/2018 09:57 PM, Heinrich Schuchardt wrote: > > On 06/20/2018 11:15 AM, Heiko St?bner wrote: > >> Hi Heinrich, > >> > >> Am Mittwoch, 20. Juni 2018, 07:59:34 CEST schrieb Heinrich Schuchardt: > >>> On 06/20/2018 01:21 AM, Heiko Stuebner wrote: > >>>> Am Donnerstag, 14. Juni 2018, 14:55:27 CEST schrieb Heiko Stuebner: > >>>>> Am Montag, 4. Juni 2018, 19:15:23 CEST schrieb Heinrich Schuchardt: > >>>>>> Without this patch the Firefly-RK3399 board boot process hangs after > >>>>>> these > >>>>>> > >>>>>> lines: > >>>>>> fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected! > >>>>>> fan53555-reg: supplied by vcc_sys > >>>>>> vcc1v8_s3: supplied by vcc_1v8 > >>>>>> > >>>>>> Blacklisting driver fan53555 allows booting. > >>>>>> > >>>>>> The device tree uses a value of fcs,suspend-voltage-selector different > >>>>>> to > >>>>>> any other board. > >>>>>> > >>>>>> Changing this setting to the usual value is sufficient to enable > >>>>>> booting. > >>>>>> > >>>>>> Signed-off-by: Heinrich Schuchardt > >>>>> > >>>>> applied for 4.19. > >>>> > >>>> and dropped again. > >>>> > >>>> Sadly it looks like the patch causes conflicts with at least one firefly > >>>> board in a kernelci lab. My own is currently not ready to use, so I cannot > >>>> look myself right now. > >>>> > >>>> The issue kernelci people described sounded quite a lot like the one > >>>> in your commit message, so my current theory is that the > >>>> suspend-voltage-selector must in some form corespond to the > >>>> cpu_b_sleep_h gpio setting we're currently not handling at all, which > >>>> would therefore depend on how the bootloader sets this up. > >>> > >>> please, provide a link to the log displaying the issue and the contact > >>> who can provide the exact setup. > >>> > >>> I have been testing with U-Boot as boot loader. > >> > >> failing boot can be found on > >> https://kernelci.org/boot/id/5b2a053d59b514569079a872/ > >> > >> As this board is sitting in the "lab-baylibre-seattle", I guess > >> Kevin Hilman (Cc'ed now) is the one that can say a bit more about the > >> board setup. > >> > >> > >> The more interesting question would be how to make sure we don't > >> die with possible different bootloader versions. As I don't really thing > >> "upgrade your bootloader" is an always valid option. > >> > >> > >> Heiko > >> > > > > Hi Kevin, > > > > the RK3399-Firefly was booted on lab-baylibre-seattle with > > U-Boot 2017.05-rc3-00131-gf79fd58d5f5c-dirty > > > > f79fd58d5f5c is not a commit in U-Boot master. > > The version number tells us it is 131 patches ahead of U-Boot 2017.05-rc3. > > Dirty means the source contained uncommitted changes. > > > > Unfortunately this is not a reproducible test environment. > > Could you, please, provide the build recipe to reproduce the U-Boot > > BayLibre is using? > > Would it be possible to use mainline U-Boot in kernelci for this board? > > > > Best regards > > > > Heinrich > > > > I have now built the last available release of U-Boot (v2018.05) > according to the following recipe: > > git clone https://github.com/xypron/u-boot-build.git > cd u-boot-build/ > git checkout firefly-rk3399-rkloader > # commit 251b12fb4f0eabfff2d0552d0807d8ddc44ae2aa > # tag firefly-rk3399-rkloader-v2018.05 > make > make install DESTDIR=foo > cd foo/usr/lib/u-boot/firefly-rk3399/ > # be careful to specify your SD card as device! > ./sd_fusing /dev/sdX > > # in U-Boot 2018.05 (Jun 21 2018 - 02:33:12 +0200) > load mmc 1:1 ${fdt_addr_r} 2018-06-20/rk3399-firefly.dtb > load mmc 1:1 ${kernel_addr_r} 2018-06-20/Image > booti ${kernel_addr_r} - ${fdt_addr_r} > > The error observed in kernelci when initializing the FAN53555 driver > does not occur. > > The console log is here: > https://gist.github.com/xypron/34b6485deabfc8172f978b5a99705466 For one, the kernelci board uses the uboot SPL not rkloader as 1st stage. But I also think the real culprit might be the unconfigured cpu_b_sleep_h gpio. So far I haven't seen any code that touches this pin at all, so it is probably floating and both mine as well as the kernelci board are from an early production run, so I guess it is possible that either rkloader configures this pin or some board change between ours and your board could make the pin take another state. Requiring replacement of a bootloader still isn't the best way forward, so my current idea would be to let the driver know the vsel-gpio via the devicetree and have the driver then make sure the gpio is set correctly _after_ setting the regulator voltage. Heiko