Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2389624lqz; Tue, 2 Apr 2024 16:32:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0zmdWsuxeZN6PvnQ0WFkMfu3m4b5XVtiVX9POJaftxCBf01SToRd6IQGmGX3nqYUq4+zD6yC2AwwlpX7AlKqmP4vJlPOzc4aEui64Lw== X-Google-Smtp-Source: AGHT+IEJ6mprXNULL4HsRh8lx3eKoXFWqmZKyBq/snVYGQcAXG2qg+1Z2/GTtZOcf1GGivrUrGl4 X-Received: by 2002:a2e:96cb:0:b0:2d5:b33c:1f64 with SMTP id d11-20020a2e96cb000000b002d5b33c1f64mr8366077ljj.38.1712100767116; Tue, 02 Apr 2024 16:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712100767; cv=pass; d=google.com; s=arc-20160816; b=fPd1qygvcYH67c0B3LZ88praTtEKg6XF5AzrEVzICjRynLY2lp8WKXD9F1m1VB4ZJ2 4CN6EHcYqOiGN2yNKOeVLCqCGnNPrr64eQtXe2I1Q4WSNaxT2ODOH6pRuHapasO/mFNm 05mXQsQzdErZuT3Oq8V+txRCd1Rg2QSYHb5rTDiJ+xBMelk/ZzeGxxszbH1Dksd0PPl5 haAo9lH6LF67VPpYNs/O6zLRcBpwBdAyVdlDBtNL7RNvFRRYj7/f4z9CHyudiS7Hb5FU I6y6QblzavtisMhRGblmq/M9tORyoOfkIayV/l4UfBr7J326Zks7062wLKnf4HQRBqBj 2QLw== 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:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=eYfJr8KvAv/8O8BAWI9vNpWVyP4tpL6uvttbF+aIVu4=; fh=qtsAA+N7z6kfjaCA09D9P6Q2rwSx/vE1eJtRZo4wdzo=; b=QycyrvGoA3Q+vRsmgY/ICR6KdG02nbI4vDsXvJYXlDBbwOp1oevzYz2GRa+ujgOhD7 E4JPONAfF/YNOI+uarTp+OWjVETQHbAFhTuphGWxwkjedStxWeGwFbZqh2vUedypUPXS tI2zRvmWcXjfd9RSHPMm9sWOM1zj/sGEBMSdsDdgY+bDo5zCm3/zTP9HcqSfSTS/7ZQZ a54ojwbIGspKIhlrz9D+w/76JtNaAYOtcSMlfHtvPN57S7X0yBUj4MdG94j4VDaVt4+g 0WpoOYil/mMvyYxV9ZJo7sbOCTEa4YxB7/W/Z3C0t3X/RBkNN/Z5Qt9JU7xVqPTQApK2 3zSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@thefossguy.com header.s=protonmail header.b=jiJebc2i; 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-128832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thefossguy.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 v2-20020a056402348200b0056dc941b15dsi3412421edc.39.2024.04.02.16.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 16:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128832-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=@thefossguy.com header.s=protonmail header.b=jiJebc2i; 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-128832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128832-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D1C031F22A3B for ; Tue, 2 Apr 2024 23:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87F644F602; Tue, 2 Apr 2024 23:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thefossguy.com header.i=@thefossguy.com header.b="jiJebc2i" Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) (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 9D5E9446B6 for ; Tue, 2 Apr 2024 23:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712100757; cv=none; b=GW6hFsi05lr2w9Ihd90hh/bEOQClYBlbZ7RsEC8x3zjpK2tkEq9jCvseOO/8n4Ib65W3h3XftcEhnNmWnFFWX2Xz8iKavBW3Uh4RxUNBgzKvMkWnk4fOMkZZbwzTNAk0BD59G7qlVQpc4bjr888Ik3nZl6lNpkYbWySCt0nesPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712100757; c=relaxed/simple; bh=Miy8h+46r9L1yli6HXvFolWZmx7sqZ1TBD8yhEMAhbg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sLULCfNOhre2bTKQw1lxPmSV+z2nxpjsXtj5c//9yg3Klsao5JS49izGI6BQ+S2hDlzFoozLtYVMaY6yu5ZqHdLLH4KHcXyIrMCkwHZA1UKBfTl61QZ/8UCz4HI4bCzpAR+FjjWCffYJca21JfmMjk+UBazA7OpauoCGuLZZAX0= 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=jiJebc2i; arc=none smtp.client-ip=185.70.40.136 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=1712100746; x=1712359946; bh=eYfJr8KvAv/8O8BAWI9vNpWVyP4tpL6uvttbF+aIVu4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=jiJebc2iTvQ7DqOGLbq51xyXRi2Fq7r/KJfvy/87mOd0Q3kz5GOdh5yR0T5/6r0xt 9/eNq3T+lJk4ongASmJANrlCUliuVgdo3nKQn6TFJ4j09ZJF927p0HVx5Y/g6qsrr8 4gpXnqaAealF68SfLtAH5CFJQ99uRiwHG9RSTjqjLJ6G7m9J33/vh6W1bAC+3O7iy6 GRet7xPum1GiyuF+pHJ4HhLW5XqkJfUTZoOA3bRrY0yNn9OMw7/Q9OeKIZh/u8HmJn rhaZRUfbMjYtMApSBWSv+yAnqxU6RoPO46G1xtHwkFjtVqO9tVQyD4hp0ZQKS1J9qn /XfTWWMaA7CxQ== Date: Tue, 02 Apr 2024 23:32:19 +0000 To: Saravana Kannan , Dragan Simic From: Pratham Patel Cc: 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 Subject: Re: Fixing the devicetree of Rock 5 Model B (and possibly others) Message-ID: In-Reply-To: References: 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 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 > 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 rk= 3588 i2s) seems to be the one that fixed the root issue. I will have to test it sometime later this week. -- Pratham Patel