Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2781853lqz; Wed, 3 Apr 2024 08:27:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEUqhWPCFC4EOYqLHgN5Vz4WkulB3fxIu9MWH/38hqgFp4/V3oRbLPD1pSzJzanVG7P7tVE0y3CjVVhmgO3tk5PbFbrNXy04iP/cEKmQ== X-Google-Smtp-Source: AGHT+IHxo9lOKjlV6490klLP6TvQ/GYtPo/+dcY4tc13I56EcJy9WHMsRURlWLG1h46Orc4+a2dK X-Received: by 2002:a05:620a:110c:b0:789:f14b:19c9 with SMTP id o12-20020a05620a110c00b00789f14b19c9mr16278645qkk.70.1712158041345; Wed, 03 Apr 2024 08:27:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712158041; cv=pass; d=google.com; s=arc-20160816; b=mn1sbn7UDscCTkKDVp0SaRAWlya1Wyn4wSROeMuW51VtOGbZPO/hR+fUIlnmV9Ahz7 Ij3UzgtqRBS6AvYD6ZufCw9bLJB66f9vXhgAHa8b1JI0SIzNdxSnEg9PlzqGjUB95JDY jgeghEJyyLtzEzRcnsIh0bhGvgSmIFXdsL4P+Yqfs/yFFnybSrz6pAedtvcKXjq8jMCf CkB6uQTwBdyNNVWh4uVNub6gbSH3mojTiWozGbPJTZtuEbdm11elbOsOmOeZtweC82h3 is/hAEa6+7qlNgmLqqzpkLgr1RfTQYWNvwVACwWkMqjNq2iZHvO3V8km6MrPBlYDGB4i EKYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:message-id:subject:cc :from:to:date:dkim-signature; bh=9SQXRgCUecFeWBFD17xwAybx00ZfUI80tkTt7oEpgbI=; fh=NltWamlMQ0mTqjr7cdmyvfIkEF0klggAsvSoKdxUlis=; b=XgeI688xGfPmIXqiCEMCETMJCROAhrYp+lUAh8yoam16ZcxraNTIcbW+uJUNhDHzzz +nQ5tHlBVYTEAOg5eNuQ1fw2MoTNyVxmjDZQEOQL3OffoHNwKPxtdtB5vLellg4cId6d VyR/udFTcW4VlYL8cns6b32H0uMoaE7Y1ltUEf7ZhI0UdFPSPGlIhYpwBRGlsDYwbWqC oBCgkqb2wvDkl1AHO0CupJU0K3Vy29rCjUexEdgUKZAO5U/zKLJtctKVES918OGWqAZW DidDRG1LmXOXDJmoxm3ZVd1r77vHDNQ56M64ZJnSFGhhE6FV8zIueJVFTuDDLJxBfmmf kPMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@thefossguy.com header.s=protonmail header.b=mIu1yPYh; arc=pass (i=1 spf=pass spfdomain=thefossguy.com dkim=pass dkdomain=thefossguy.com dmarc=pass fromdomain=thefossguy.com); spf=pass (google.com: domain of linux-kernel+bounces-130088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thefossguy.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f16-20020a05620a15b000b0078a5e6b9773si14034203qkk.198.2024.04.03.08.27.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:27:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@thefossguy.com header.s=protonmail header.b=mIu1yPYh; arc=pass (i=1 spf=pass spfdomain=thefossguy.com dkim=pass dkdomain=thefossguy.com dmarc=pass fromdomain=thefossguy.com); spf=pass (google.com: domain of linux-kernel+bounces-130088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thefossguy.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 26F101C239CD for ; Wed, 3 Apr 2024 15:27:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADE15149C68; Wed, 3 Apr 2024 15:26:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thefossguy.com header.i=@thefossguy.com header.b="mIu1yPYh" Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4226F148FE8 for ; Wed, 3 Apr 2024 15:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712158017; cv=none; b=HQHw/QWoc/CDpc4qmf3PvUBp5YyPQzRu7G5wiirk2O7Uj3xMTFtWant5G0FBTjL2iEFmMEZ6WbvPEtC6Xgw/toEbdQoZnT5diGql6ufRVnjpDGG5dtyjNkAAr/m2Al0tY7TwHfvxGkbpycW1URXyIFHKQi74b4I8RL9I78YHuIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712158017; c=relaxed/simple; bh=Z7bkTgkUMCbu64k/VOOsbCpZzTWGIgZdwpQsRWq5X3A=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=G6HEYqJFQ1iSq97hW6BUld/ngKQw06aHfw5apa2qPFisYW0JZRYqSfs8YJd6T+qDcJa0A4pT0FtGbQt7Dh4HdBIDl0+H7kofExbWwsxmMBmL53w/dom3gzDUrpR7Vr+6jIDhMZfRaJHFaXtdZTXrgCoJwCjEOjwMOhCmD0ruIkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thefossguy.com; spf=pass smtp.mailfrom=thefossguy.com; dkim=pass (2048-bit key) header.d=thefossguy.com header.i=@thefossguy.com header.b=mIu1yPYh; arc=none smtp.client-ip=185.70.40.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thefossguy.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thefossguy.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thefossguy.com; s=protonmail; t=1712158011; x=1712417211; bh=9SQXRgCUecFeWBFD17xwAybx00ZfUI80tkTt7oEpgbI=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=mIu1yPYh/SOnPiPmfVQR14NLuXoTecAhyJ/uF7ffGscpgsXDkMJC3hEm7La/4034R bpc1LYk2unCxUXeq64HUDzDoBB6XEidI2YoKgij6T8unAAu4Z8Q9fLzAlnZXWT6+Ut IEho6xr3UisETLI5ymHomXVD7rS7rnaRGPLKiuuVHEvkTh+a84zX/YkGgtZhMpJXO8 UAoHc47elTv7sNf3LqD+s7eN4wHBRDtYl2xiMBDItM+Q+nGKkyayRNB6AcIX2WFq7U kw58Zu4myk6mAjyRVgjFz3gZsRbg692KNeQqfYOVr7Ta35HUAtS92kRpVh97RgmNij wpN+qWpcPXNRQ== Date: Wed, 03 Apr 2024 15:26:44 +0000 To: Sebastian Reichel From: Pratham Patel Cc: Saravana Kannan , Dragan Simic , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, stable@vger.kernel.org Subject: Re: Fixing the devicetree of Rock 5 Model B (and possibly others) Message-ID: Feedback-ID: 104309535:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed Apr 3, 2024 at 7:22 PM IST, Sebastian Reichel wrote: > Hi, > > On Wed, Apr 03, 2024 at 01:03:07AM +0000, Pratham Patel wrote: > > > > > Also, can you give the output of /devices_deferred for t= he > > > > > good vs bad case? > > > > > > > > I can't provide you with requested output from the bad case, since = the > > > > kernel never moves past this to an initramfs rescue shell, but foll= owing > > > > is the output from v6.8.1 (**with aforementioned patch reverted**). > > > > > > > > # cat /sys/kernel/debug/devices_deferred > > > > fc400000.usb platform: wait for supplier /phy@fed90000/usb3-port > > > > 1-0022 typec_fusb302: cannot register tcpm port > > > > fc000000.usb platform: wait for supplier /phy@fed80000/usb3-port > > > > > > > > It seems that v6.8.2 works _without needing to revert the patch_. I= will > > > > have to look into this sometime this week but it seems like > > > > a8037ceb8964 (arm64: dts: rockchip: drop rockchip,trcm-sync-tx-only= from rk3588 i2s) > > > > seems to be the one that fixed the root issue. I will have to test = it > > > > sometime later this week. > > > > > > Ok, once you find the patch that fixes things, let me know too. > > > > Will do! > > FWIW the v6.8.1 kernel referenced above is definitely patched, since > upstream's Rock 5B DT does neither describe fusb302, nor the USB > port it is connected to. > > We have a few Rock 5B in Kernel CI and upstream boots perfectly > fine: > > https://lava.collabora.dev/scheduler/device_type/rk3588-rock-5b Hmm, weird then. I can confirm that v6.8.1 doesn't _always_ boot. It boots some times but still fails a majority of times. There is a 2 out of 10 chance that v6.8.1 will not boot. If you keep rebooting enough times, you might get it to boot but the next boot is likely to be borked. :( That said, v6.8.2 might still have the same issue, but the probably of a failed boot might be _lesser_ than v6.8.1 (from what I saw). I will verify that behaviour sometime tomorrow or day after tomorrow. > > So it could be one of your downstream patches, which is introducing > this problem. I thought so too. So I built a vanilla kernel from the release tarball of v6.8.1, using GCC + arm64 defconfig. I also tried using LLVM just in case but noticed the same result. -- Pratham Patel