From owner-freebsd-arm@freebsd.org Mon Oct 28 11:59:35 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 212D017F0AA for ; Mon, 28 Oct 2019 11:59:35 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 471tYf27JWz3Lyq for ; Mon, 28 Oct 2019 11:59:34 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wr1-x441.google.com with SMTP id n1so2114237wra.10 for ; Mon, 28 Oct 2019 04:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:reply-to:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=3kcnkZ4VM5hNVQ1vK0V7bO4aqr7TufFXW3zOn0oBq9k=; b=LqP6qtAfUpbTzh9zeZOdKrgUEnQMk7hDLuD9Zs/VAl9jC7SeemqVmjUS1Wamiwsnx5 0EW3/yienuP4PN0qVCLSclxAo3iXWBH+EW6+V4sj8rja/8y89shNFZRBeePBdt9VP6jM 8hjJ0J1pRvbdZJ2wanWmyyq+ESpqsxZMuxYoqk2Ov4JZQ4+ozlrvKQcGak2dox91Mpmd IcICsIF7HAZQdsjru7ZZNgk7qghw4DJYFcCFAaTiPIRoHG+lp3l2BN6FriIidGhyLpu1 bw6Z9Frd7h/Vb/S2kOubphkOeRnJqfvY8xccpx0ERHhi6eXjwUwB1XR93XtB6H+mIgQT yoEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:reply-to:subject:to:cc:references :openpgp:autocrypt:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=3kcnkZ4VM5hNVQ1vK0V7bO4aqr7TufFXW3zOn0oBq9k=; b=IDMbMW+Vk80aEdXZVxK0WdTeRWw5iG4+uepS91MVmHR4/IaKwdQRT6fRWjY9sTgRZb 2bJIHNVEspGry0kLUpPz4yw8n+okJpBFXGBSvab9q2PH5rIaCU8PJF+RXfeUs6rMD2hQ HQQmm4m59Eq+MlZbZgCKL2wfwa6jsxjOXfjNNZewtsAig6y5QjCxpgtOqni438bb/zpY xZ6grOnDsKRULCt2ea2dUrxABUkU2y3xepSKVj3y+OUCUTuxIrow22CQFtFDD5r0/TVo uTmJgcJykZKCrtK0TRmaKj3GBujYUh5dDDx+KmOikuI8rfYTw/xFp80iZ4ym/nRK8uGH StYg== X-Gm-Message-State: APjAAAUgdUhBFnvYDD2ZtWYQS6mlMujA2obmZd7Aydrf1uOBuuPPPzCU RRUmFhdlA4WWYndtA6vdIIQjcBoH X-Google-Smtp-Source: APXvYqys+hrFZKqDiGUBm7Mul5jnze/HivZE5W39r9PABz064TTR6XWQa9GoIkNPd4JCPN6BjSGUxw== X-Received: by 2002:adf:e882:: with SMTP id d2mr15226436wrm.132.1572263972692; Mon, 28 Oct 2019 04:59:32 -0700 (PDT) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id r11sm8409056wrx.67.2019.10.28.04.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 04:59:32 -0700 (PDT) Sender: Michal Meloun From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: mmel@freebsd.org Subject: Re: FreeBSD 13-CURRENT download status on RK3399 SBC`s To: Emmanuel Vadot , Sleep Walker Cc: freebsd-arm@freebsd.org References: <20191028121027.8c89aef2a2809cd844ccad80@bidouilliste.com> Openpgp: preference=signencrypt Autocrypt: addr=mmel@freebsd.org; prefer-encrypt=mutual; keydata= mQENBFYuVRkBCADZiwLCCne3wG9b9k+R2Neo5zVo2bLaZRfNNY/v9kg283i0sb1Da4EdEiNT 15El5UyozhphUIbIR/zrVpxF1TvvFdoCyzx6a68bNY2d9dBrDcNDZC+XnyDdHQoobN87DWT1 mRVkmbg9LHZ/SVUOkGYuWyE+8UYeDAcUizuXwSK5zFWmeTyIoWNa68ifrWLfQe0p4x5jC/AI VURCi17p360vU4fhgwoMvEEhrRBWCr4DYHToFjIt2WdBy3GR1qoO0+Xkd6G+OoBULo+XDfgu L2WdPvh0K69F9/LgHkMmG5Il7SCe62QGpG2vaCgRV7BQhLX+kxlvM+WrdRatWRml4Y/3ABEB AAG0IE1pY2hhbCBNZWxvdW4gPG1tZWxAZnJlZWJzZC5vcmc+iQFXBBMBCgBBAhsDBQsJCAcD BRUKCQgLBRYDAgEAAh4BAheAAhkBFiEEAN1KEEuAn+Apg413aR6ya17FqqoFAlw3aO8FCQ9v FVYACgkQaR6ya17FqqrIFwf/V/NRuAutw1cZ/HRCwfp00KY+8g730KwOaAMhPYvq8tqf8krD whFRWt9s4DSVTVJUC2dRZa5g1MS77iQL/WWzBUhJj7rW4uMpcKpi7UXi060sKrnE+1ZBvanG 8YCMTHKxQgQDD0cBqsyOAfrSA+Pyya3/HyAh1vvjQZfu5vWxA1X5NX5l5KtonprJ+ybVacwO W34yfWSX+ncx089JpUknenGdI+gVoKfa6uh/8YiCZTI5poxBttrOB8NGfylTsTTTbw2pkire Vkc87qq++I9bBNtTqWOZjB/3KBUd4q1veEUa4MS63TWtAvcEcsxHiBv4AH6npPO/iPycuGGh qldT1LkBDQRWLlUZAQgAuqBGR9LbUP86pYT2Zd+HZsiOun24LxPQwK6KZuysB0so02isa7ac T6t5uBfyfmdgzfvsc6dqU8bI65e8JtD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n6eEdzR8tBhIy7sbeD Message-ID: <150c9db3-26f9-bd3b-eb16-c2801d6944f6@freebsd.org> Date: Mon, 28 Oct 2019 12:59:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191028121027.8c89aef2a2809cd844ccad80@bidouilliste.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 471tYf27JWz3Lyq X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=LqP6qtAf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of melounmichal@gmail.com designates 2a00:1450:4864:20::441 as permitted sender) smtp.mailfrom=melounmichal@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[mmel@freebsd.org]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.73), ipnet: 2a00:1450::/32(-2.80), asn: 15169(-2.05), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 11:59:35 -0000 On 28.10.2019 12:10, Emmanuel Vadot wrote: > On Mon, 28 Oct 2019 13:57:57 +0300 > Sleep Walker wrote: > >> Hi All! >> >> On Khadas-EDGE-V >> >> - mainline uboot U-Boot TPL 2019.10-rc3 >> - bootup from SD >> - eth OK >> - uart OK >> - emmc OK >> - sd OK >> - USB 2.0 OK >> - USB 3.0 OK >> - USB HID OK >> - USB DISK OK > > Good to know that everything is working on this board too. > >> >> On Rock Pi4 >> >> UEFI booting, very cool. >> >> But I can not log into the console. >> >> it seems it keeps rebooting. >> >> Here is the log: >> https://pastebin.com/JFX7Ssnz > > This is known. Let me try to describe the problem. > So the sd and panic: clknode_init_parent_idx: Invalid parent index 5 for clock sclk_sdmmc have multiple possible parent, one of them is > the usb clock that is generated by the usb controller. The problem is > that when we create the clock domain of the CRU (Clock and Reset > Unit) the usb controller isn't probed yet because it needs clock from > the CRU. When a clock domain is finished (by calling clkdom_finit) we > need all the clocks to be present so we cannot add the unknown for now > usb clock. > So to fix this issue we need a way to create a fake clock when the CRU > clock domain is created that will be later replaced by the usb > controller. There is multiple approch to this and I'm not yet sure > which one will work best. > > 1) We allow to list non-existing clock as parent and don't throw > errors anymore at clkdom_finit but at some SYSINIT. > This will work well with a big static kernel but not if the clock is > created by a kernel module. > 2) We create some fake clock domain where we can add clocks to it so > it became a somewhat valid parent (but not usable so you cannot select > it with clknode_set_parent for example) and when a clock domain is > finished we remove clock from the fake domain that are present in the > newly created one (as clock names are unique this should not cause > problem). The question is then what should we do when we still have > clock in the fake domain ? > > Maybe mmel@ have more ideas. > All above is right but is not related to this panic "panic: clknode_init_parent_idx: Invalid parent index 5 for clock sclk_sdmmc". In this case, the parent clock at index 5 for sclk_sdmmc (named "clk_sdmmc in TRM) is CLK_24M (at least in my TRM). Problem (for me) is that rockchip clock code is slightly incomplete and it uses different nomenclature (naming) that is in TRM. Unfortunately, putting right clock for this index doesn't helps much, my RockPRo64 still fails with another (not yet identified)problem. I currently working on proper (i hope) solution for this problem -> something like soft-link clock node - a pure pass-throw node, which can link clock between domains used for cross-domain clock linking. Michal