Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2416539lqz; Tue, 2 Apr 2024 17:46:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKZnMYzpUVg2L3aAbf9bjpM5kYPWKxTn5+iHjMGatRx5wR31P+H3qWVHc+aZ5ZVoMrju1b/fWO2dkGA/NG8BjZxBtQSFJ0CvwUNNUQkQ== X-Google-Smtp-Source: AGHT+IEQN2rKF2mQdKgYNJXXsMmRcAIvR02oAPq6HIuY9TJOl8CKtxMcmkTWZsh/90bl4xx7y5Gz X-Received: by 2002:a05:6512:526:b0:515:d5c6:16ec with SMTP id o6-20020a056512052600b00515d5c616ecmr7605009lfc.10.1712105211880; Tue, 02 Apr 2024 17:46:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712105211; cv=pass; d=google.com; s=arc-20160816; b=SE7NbhFf+aUVzvfM9FUQHE/ADRa3gxKJbSi1l3yasVkcY4XlFE5ExB9x6xm1eOB4Gj koImdh/9lNOpjTWXPG10KYZMQaQRCGxI7G0aR25FgYWwXWon7A3l8hf9VCEOrfKn7dav KINVrEsZsh0eex9MDijBgqk/X6nArx6YGP8bs1HknLE7WjtGZER+vgRrSb+0yg/LAfij EcGf4QbyIPGOt9QqMqVmDDqmSTBQEoIbNOPQSkoCgM5yPgeqWEScEshMLLXuukd8HhDx llV+609SowSUWTun22lND3cpPXL+aCR34mkTHP5mIXc8kwJQmhvEkyaxfF1sUTEeZPT3 oMPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=8NNuHBBz5fNhwg1IXVySVK08J4FfQhYlFpyyXMgPlIw=; fh=+22yeTVwfk4zM3X5Wzh6RNp0r94HvtU1CbyNYI5dEDw=; b=dhcYQFHRQpK+SywPkR91orPBjpDWEFlJG5+t8yqkI5UQgmm7AnDjuXfgwMb1MAgLgR UsqwjXy/Z/aXKhvZsIDOGv+Ch/em+ZpVdzWSc+b6vlwybhJMAg0462NAIf6HXmZ5rmVw HcJQf+dqdEe7XJsHKfDawInIfZXPJMEg/HnfHAN9hkCqaXHpkS3bipqceOhGlbIymMi+ aPpMwTd+WDRtDR/W3a0M2RRW+p7WZwQB3C2Cq6On+OHBbE+peYKoy7+fNeSRhi33G0Sx kzgMPKXEfPhngzw0eBaPpbxFlSxiWPkSIL2Z3FihVmXSEfd7BVmbiS8Rx76FHfaSKiL6 irZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=zKNG2Hjx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-128897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a05640235c700b0056c14789b6esi6119009edc.331.2024.04.02.17.46.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 17:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=zKNG2Hjx; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-128897-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 576471F231EC for ; Wed, 3 Apr 2024 00:46:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AFB7DDDA; Wed, 3 Apr 2024 00:46:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="zKNG2Hjx" Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABF934C8B for ; Wed, 3 Apr 2024 00:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712105203; cv=none; b=EUC4h1fYFOckrbJtsWUVjTKeJgQ9CVPQlkMSZ0/6+e0YPHL3VcuiZP47X8+XXh0GT8b+NzWrLeDj3I0pgPGLTVF7XXWFLfYJg/zPkLSFYYjvMhZdkIyT/Q1AQgkYmeytBsRAKi8JSSAUYc9EU/GPyb4uVNs9y1WNabF+SAlUJOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712105203; c=relaxed/simple; bh=rR9GSoBlk6XW/KN2ZDpu6bfywTMCuRCcbSOhEFxaPIM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=I0uzgPvL0hLdlP0ZiTNp2Ksvq+4GT0RpRRZMdev7KvT1D7qwvQpqx/L4RoutoD7gFJzKheo16qHPOlE5mh1ARt6bJDmVec/ncP45X45X9H4du/CaG7epn2qqN/rxAe9mpink1q8y3wqntSusD+jUhjMiaocoV5DraSSeK52DPXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=zKNG2Hjx; arc=none smtp.client-ip=209.85.160.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-431347c6c99so137091cf.0 for ; Tue, 02 Apr 2024 17:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712105200; x=1712710000; darn=vger.kernel.org; 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=8NNuHBBz5fNhwg1IXVySVK08J4FfQhYlFpyyXMgPlIw=; b=zKNG2HjxsQEsTacTnAqQIWafPjckV8tLef0ukMYqASSqhnbbTgqzKiEsbLjNUajYCB DEAX9TLGNOW0IgvyAS880NawVgZVcf5yFHs9xJPdaO49QERGuuI16L4Aq9egxqgl7Ysg k1KJmhYj3aCXV9XFjAqcQ20boXyxhJmUNcQSiqwcQ5j1MgrSkkrUUwf1wJasgsbGyFKU EYC8xLRZVN/AZZMqXbTq9M9j9csPRneibTs3IAlqfSJkFkv8UAAsFKf6y27Q3A9QeFxx 0Q9kmm1mBZLT0YQl/gI2MMXVc97pbi3XISKElZZMQg1MBxhtlK8Vt97Hii2KI08aq6Ir 04Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712105200; x=1712710000; 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=8NNuHBBz5fNhwg1IXVySVK08J4FfQhYlFpyyXMgPlIw=; b=YTBspgTc18Lp6S3j2jLmcFggYKi/VZq26A1WPm36EXbGCooyLmc+FEqcCDhPgUWOK9 4JlYYOhs0rQSTVsT37X/ndXZVFO+Vdw9wWeWHHC0T7tyyY1T+E0x0wZ6jghCk3QeDlx1 3oACacqE9TD51SQnDOkiNAh7cTo325PPu+3kP4DzNSjzI9xVx1k0WSrYSi4D2aaoQ9Me B32It7+xLfaaZ1Jxm0LXIk0+tVv3l9Oe7AQgQQRZ0zi+ymECU42JfTwG0D8ElE52riFx v8kpHdOKJ/hWpJEpj9p/GhhRjyCaqAHx5FhyYPrktOL7MoDb+UN7alBjsnXp6wsROWiK WnGA== X-Forwarded-Encrypted: i=1; AJvYcCWsWiO7lMqZxWLp/Fp3MR+WaxflkxD+Eag2FkYLOvd0ZNzUCNWZDkR8hr5y1ChpobEYaLBFt5PHuC9KgALITvveR9O3ymK7lNoEHjhS X-Gm-Message-State: AOJu0Yw/3CEXiqRCqq1lNVXdbTYe69Kht6BdfY9XK/O3XjDx23Ri+dUJ M5sVfzRIm1VJwyT9N1OmqysNHgOzu7SgFIf7FOsNGJRtSL1EGFwGMEgraWUH75HQAa3DC/xcn5o Apiy22m7OL9Kx8S/SYdnYXqGZy2A0GmRYLm2kZXrUOLFpwgh6r7P7 X-Received: by 2002:a05:622a:407:b0:431:68e6:314c with SMTP id n7-20020a05622a040700b0043168e6314cmr57594qtx.29.1712105200256; Tue, 02 Apr 2024 17:46:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Saravana Kannan Date: Tue, 2 Apr 2024 17:46:04 -0700 Message-ID: Subject: Re: Fixing the devicetree of Rock 5 Model B (and possibly others) To: Pratham Patel Cc: Dragan Simic , sebastian.reichel@collabora.com, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 2, 2024 at 4:32=E2=80=AFPM Pratham Patel wrote: > > On Tue Apr 2, 2024 at 4:54 AM IST, Saravana Kannan wrote: > > On Sat, Mar 23, 2024 at 10:10=E2=80=AFAM Dragan Simic wrote: > > > > > > Hello Pratham, > > > > > > On 2024-03-23 18:02, Pratham Patel wrote: > > > > I looked at the patch and tried several things, neither resulted in > > > > anything that would point me to the core issue. Then I tried this: > > > > > > Could you, please, clarify a bit what's the actual issue you're > > > experiencing on your Rock 5B? > > > > Pratham, can you reply to this please? I don't really understand what > > your issue is for me to be able to help. > > Hi, > > I apologize for not replying. Somehow, I did not notice the reply from > Dragan. :( > > Since this patch was applied, an issue in the Rock 5B's DT has been > unearthed which now results in the kernel being unable to boot properly. > > Following is the relevant call trace from the UART capture: > > [ 21.595068] Call trace: > [ 21.595288] smp_call_function_many_cond+0x174/0x5f8 > [ 21.595728] on_each_cpu_cond_mask+0x2c/0x40 > [ 21.596109] cpuidle_register_driver+0x294/0x318 > [ 21.596524] cpuidle_register+0x24/0x100 > [ 21.596875] psci_cpuidle_probe+0x2e4/0x490 > [ 21.597247] platform_probe+0x70/0xd0 > [ 21.597575] really_probe+0x18c/0x3d8 > [ 21.597905] __driver_probe_device+0x84/0x180 > [ 21.598294] driver_probe_device+0x44/0x120 > [ 21.598669] __device_attach_driver+0xc4/0x168 > [ 21.599063] bus_for_each_drv+0x8c/0xf0 > [ 21.599408] __device_attach+0xa4/0x1c0 > [ 21.599748] device_initial_probe+0x1c/0x30 > [ 21.600118] bus_probe_device+0xb4/0xc0 > [ 21.600462] device_add+0x68c/0x888 > [ 21.600775] platform_device_add+0x19c/0x270 > [ 21.601154] platform_device_register_full+0xdc/0x178 > [ 21.601602] psci_idle_init+0xa0/0xc8 > [ 21.601934] do_one_initcall+0x60/0x290 > [ 21.602275] kernel_init_freeable+0x20c/0x3e0 > [ 21.602664] kernel_init+0x2c/0x1f8 > [ 21.602979] ret_from_fork+0x10/0x20 This doesn't make a lot of sense. "remote-endpoint" shouldn't be related to anything to do with psci cpuidle. I'm guessing something else is failing much earlier in boot that's indirectly causing this somehow? Can you please take a look at what's failing earlier and let us know? Or see what driver probe is failing up to this point but used to work in the good case. Also, where is the dts file that corresponds to this board in upstream? Is = it arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts > > > Also, can you give the output of /devices_deferred for the > > 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 following > 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. -Saravana