Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F779C7EE2D for ; Sat, 25 Feb 2023 23:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjBYX4V (ORCPT ); Sat, 25 Feb 2023 18:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjBYX4T (ORCPT ); Sat, 25 Feb 2023 18:56:19 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C172812F3F for ; Sat, 25 Feb 2023 15:56:18 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id p20so2036340plw.13 for ; Sat, 25 Feb 2023 15:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tDKprFvgNc5twSfIIDLl4/nq5YN7YTD1AuisIZ9iJYo=; b=fTEVxRdSyC8ILa4ISRU4IH47tyaCnGNd/N7Kg0MK5nDsNnN6AJwNv1trv3blJmN/PV DN9m7qanxvVRKip2jH/AntyrxqTCWoWIKLNIS931v/5yG4n7iDEezxswxUMdaVqRJuJF 57Dp0tRW0oJg9kZTcf/BHXeEaO2MQASYCgZKiTsfezO9VzK/0hWyWmFaKAKQzVh+WUaN q0P648WqkNmjuQg4DbQocktE0+GcSz0CLRCXJzuqo60Kov1rF8e3mi8hioWNbyiwBZUL TAt+we/vThgN0ZnzWZSoMzLxyjs74rPGb9h3N6m4agvY0WB4oEJVkj3ga/WZtLDIhNWp eq+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=tDKprFvgNc5twSfIIDLl4/nq5YN7YTD1AuisIZ9iJYo=; b=dRWSzRdxr+ekQmsY4PhIw6h+ueRbYdSjqPikPIAGuWhe+BNIPnAxcKZCor21WVWMlY BLp5TfUV5OoaFj9FKY1h3YWiXSYjOlEB0oXgC41rv2SCYncPa94KQLgUdY20mzV6bP6d +KE2cpFvXqcT7w/gsJGQt9NCol9LPkMLLoNLFPnrjg2xcfn2eM/ZEttoNyBX1p5HNg6M FpQj6TBbZbH2mFXvc7S30VN3E4AT2v55VrKGnANS4mcAUBCGH3orKUGKhdY6++u73AsU JAU6DnLcCZqgD60HNM7nleRcUY3voLibXfbwCxoWxRoSKQXMM/oKmQYcmJjuk9/pBjS8 yXmg== X-Gm-Message-State: AO0yUKUPvX4lNHGAvycEIrAEm/iV5JKrcPB3X6eke+XvKjNvlu5ZKukI 7mIAlcQPU8MU8M4WVsBfeq3MFSm8HMBnrhhfgtfWrA== X-Google-Smtp-Source: AK7set/oZ6Qfje9fztilgFUqPO/dtjuFinittroi95mUhKzFm0Vn3y1pWAMBfrIhxpq1zSVnJVUNQWtcSz4SWziHH98= X-Received: by 2002:a17:90a:d258:b0:234:1887:b46d with SMTP id o24-20020a17090ad25800b002341887b46dmr3077608pjw.8.1677369377750; Sat, 25 Feb 2023 15:56:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Saravana Kannan Date: Sat, 25 Feb 2023 15:55:39 -0800 Message-ID: Subject: Re: Regression in probing some AMBA devices possibly devlink related To: Linus Walleij Cc: Linux ARM , linux-kernel , Ulf Hansson , Android Kernel Team Content-Type: multipart/mixed; boundary="000000000000ebfbab05f58efdcb" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000ebfbab05f58efdcb Content-Type: text/plain; charset="UTF-8" On Sat, Feb 25, 2023 at 6:29 AM Linus Walleij wrote: > > Hi Saravana, > > I have a boot regression for Ux500 on mainline, but bisecting mainline > isn't quite working for misc reasons :/ > > I'm not sure about this regression, but it smells like devlink-related. > > Ux500 have a bunch of normal and some AMBA devices. After > boot this happens and we hang waiting for rootfs (which is on eMMC): Hmmm... my recent changes were definitely tested on systems with AMBA devices and it worked. > [ 31.849586] amba 80126000.mmc: deferred probe pending > [ 31.854801] amba 80118000.mmc: deferred probe pending > [ 31.859895] amba 80005000.mmc: deferred probe pending > [ 31.870297] amba 80120000.uart: deferred probe pending > [ 31.875472] amba 80121000.uart: deferred probe pending > [ 31.880689] amba 80004000.i2c: deferred probe pending > [ 31.885799] amba 80128000.i2c: deferred probe pending > [ 31.890932] amba 80110000.i2c: deferred probe pending > [ 51.688361] vmem_3v3: disabling What does /debug/devices_deferred say about these? That should tell us exactly what's blocking it. Also if you convert all the pr_debug and dev_dbg in drivers/base/core.c that should give us enough of an idea of what's happening. Can you do that too and send it as an attachment (I logs are hard to read when they get word wrapped)? > The last regulator (vmem_3v3) is something the eMMC that didn't > probe was supposed to use. > > All the failing drivers are AMBA PrimeCell devices: > drivers/mmc/host/mmci.c > drivers/tty/serial/amba-pl011.c > drivers/i2c/busses/i2c-nomadik.c > > This makes me suspect something was done for ordinary (platform) > devices that didn't happen for AMBA devices? > > This is the main portion of the device tree containing these > devices and their resources: > arch/arm/boot/dts/ste-dbx5x0.dtsi I'll take a closer look on Monday. Btw, I always prefer the dts file because there's always some property that adds a dependency and that might be the clue to whatever is broken. But I'll take a look at this. It's unlikely the patch attached might fix it, but can you give it a shot? -Saravana --000000000000ebfbab05f58efdcb Content-Type: text/x-patch; charset="US-ASCII"; name="0001-add-class-support-to-device-links.patch" Content-Disposition: attachment; filename="0001-add-class-support-to-device-links.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lekmdy6k0 RnJvbSA1Y2M3NGRiNjgxNTVj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