Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2588880pxb; Mon, 11 Jan 2021 13:51:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuuCEi9REjLO9gg72/XA9an01CVfGJCQCtGSVFggceGQqT8r7mkcw9hfBf5exz6JIrIYMU X-Received: by 2002:a17:906:ca47:: with SMTP id jx7mr1021762ejb.237.1610401892129; Mon, 11 Jan 2021 13:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610401892; cv=none; d=google.com; s=arc-20160816; b=zxzc+QIt7kXFePIy6/s/zSW2JgfOvmfiWGtAgxD+mLkHPAk6KfVPLbTc7AAgHCuDZE XAIFH98Nv9YjL42kJpZXeI6rj/g6kB0xBeQyyz/MV6oYQogtA8wtm7F2wvNeMxFPsGGD nDogR32NuxOA7TOmNx/WjeNVTCuSCjHWdmv+ethTucG1PJHJJ+jOJ0dKJMepFBQhKicc HqlACQMOZ7S2vlrUReInJKMpBCtbPR4cwQyMg9K/7tEPO2c/Ie25PrHNp6GFbiX6Ry6S m+q4uqIsAn9t/6lVBlEfv2OvCWgXst00HhKJFC3AqoMinqDqTuAcG5TsTJbZ4Ytpc0ir G+tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SS1JDoBxWO0P2GKLy8M+dKtC5ZVoKBwYfwO8muPlSTA=; b=zgMqxcAt0ategEo5oC0A2mjMr2J+Uv3Sjx5G0QiswNtnDfWu/d/O8x7Ot4eXy2uxNF KORuLBE6f973WMho22di0gQBDbpAKPWgQh/yYjTzZXuPHsS1oZ5EU4wv+/u3vTQAZe5C 9o7tiN21TJhiXy3x9xAl4WfrULhmlzpdMtsJlUUODdERQqrUxu4w532SQNtqFYfNb3QN 0tq2Eugzwtr7XpfgSa0IoeORHMDa/uLdOqBeJqXJ2r2b/7x2EeU0Cw42gzEm+ve+5x3N BvZvNPVepC4I5vOfWKJc/ZGIbQT53+K/uw+WuWtbCSb6M6u/dem3XpiDRqlV4FMWg+kQ PNgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OdbgjKmR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zm13si237309ejb.351.2021.01.11.13.51.07; Mon, 11 Jan 2021 13:51:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OdbgjKmR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731463AbhAKVse (ORCPT + 99 others); Mon, 11 Jan 2021 16:48:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbhAKVsc (ORCPT ); Mon, 11 Jan 2021 16:48:32 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75594C061786 for ; Mon, 11 Jan 2021 13:47:52 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id f6so186461ybq.13 for ; Mon, 11 Jan 2021 13:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SS1JDoBxWO0P2GKLy8M+dKtC5ZVoKBwYfwO8muPlSTA=; b=OdbgjKmRzS1uGe2MBtr0tQZ6emWPzWL5mdaIMWszj+osI/cQBCUskuT5Btkcc14HKZ KyzuqXiokX08xxMvAMWR3yI+gMTFuS1AohJh8TOYckl5rj6ZndagiJ+bA1RWxIV5qrS7 T1nyMjXfwidx9iv7l2fuW9Xc6kNXvn++UtHCv40ntcgo/atRqRVHgFEhuOTyqh9+yf7z 1/f6mEgCD1tzM8+/ntsD1pwC+s3850WL2fpBzrxW4tRzmhLcNEkslPjNCyT9X0rpOUqg K8tABOjZSdTXpOL1MfZ2FBe2xFzT3qyK0UlmkfEvSjNMWRZuwPO9AHJISYp3ac0pTX6E F3XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SS1JDoBxWO0P2GKLy8M+dKtC5ZVoKBwYfwO8muPlSTA=; b=LW9gCJkqveuuFVti2P9ddqis8ISsjhQlXRXkVdu3tORwhGh36FxDY6jrP1f2EsHFrb i3V2J1pV1Qzk1Xd5QoM8s/L4BqoAKy3JeK/+sYxKXP92hgm0CniCd1qbQyEdf7WucrgM 78HSsjqPdwxnd/KYewXRLF09ziQIBVTA3a0lTZDQpo5STxJ+uP6WzxYn7T/jw+MO4nA+ 5aEU3d3vJZmm5WKAgwxPmzHi592z+EZyMqDu3lbUozAgRrijqEhz5xWQmhRWRoq1vO7d lanbGw6dLQtpoXgErlKkaQ9lW/QDNwldobLk54MEm/I3Fjd6q5BNpqST6D0eVIZiL6+8 p5vQ== X-Gm-Message-State: AOAM532uBNyLO5B0qbGA4a7X3m+xOqPlVW6KjuCa9W1fcl8QvQhIBrIk vR6NOJ6thnXgbAoSKWu+n4wlcukXc1PJ4cGSKQU06w== X-Received: by 2002:a25:7491:: with SMTP id p139mr2461185ybc.346.1610401671552; Mon, 11 Jan 2021 13:47:51 -0800 (PST) MIME-Version: 1.0 References: <20201218031703.3053753-1-saravanak@google.com> <20201218031703.3053753-6-saravanak@google.com> <5484316b-0f27-6c36-9259-5c765bb6b96c@samsung.com> <2556a69b-5da5-bf80-e051-df2d02fbc40f@samsung.com> In-Reply-To: <2556a69b-5da5-bf80-e051-df2d02fbc40f@samsung.com> From: Saravana Kannan Date: Mon, 11 Jan 2021 13:47:16 -0800 Message-ID: Subject: Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default To: Marek Szyprowski Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Android Kernel Team , LKML , Jisheng Zhang , Kevin Hilman , John Stultz , Nicolas Saenz Julienne , Marc Zyngier , Linux Samsung SOC , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 6:18 AM Marek Szyprowski wrote: > > On 11.01.2021 12:12, Marek Szyprowski wrote: > > On 18.12.2020 04:17, Saravana Kannan wrote: > >> Cyclic dependencies in some firmware was one of the last remaining > >> reasons fw_devlink=on couldn't be set by default. Now that cyclic > >> dependencies don't block probing, set fw_devlink=on by default. > >> > >> Setting fw_devlink=on by default brings a bunch of benefits (currently, > >> only for systems with device tree firmware): > >> * Significantly cuts down deferred probes. > >> * Device probe is effectively attempted in graph order. > >> * Makes it much easier to load drivers as modules without having to > >> worry about functional dependencies between modules (depmod is still > >> needed for symbol dependencies). > >> > >> If this patch prevents some devices from probing, it's very likely due > >> to the system having one or more device drivers that "probe"/set up a > >> device (DT node with compatible property) without creating a struct > >> device for it. If we hit such cases, the device drivers need to be > >> fixed so that they populate struct devices and probe them like normal > >> device drivers so that the driver core is aware of the devices and their > >> status. See [1] for an example of such a case. > >> > >> [1] - > >> https://lore.kernel.org/lkml/CAGETcx9PiX==mLxB9PO8Myyk6u2vhPVwTMsA5NkD-ywH5xhusw@mail.gmail.com/ > >> Signed-off-by: Saravana Kannan > > > > This patch landed recently in linux next-20210111 as commit > > e590474768f1 ("driver core: Set fw_devlink=on by default"). Sadly it > > breaks Exynos IOMMU operation, what causes lots of devices being > > deferred and not probed at all. I've briefly checked and noticed that > > exynos_sysmmu_probe() is never called after this patch. This is really > > strange for me, as the SYSMMU controllers on Exynos platform are > > regular platform devices registered by the OF code. The driver code is > > here: drivers/iommu/exynos-iommu.c, example dts: > > arch/arm/boot/dts/exynos3250.dtsi (compatible = "samsung,exynos-sysmmu"). > > Okay, I found the source of this problem. It is caused by Exynos power > domain driver, which is not platform driver yet. I will post a patch, > which converts it to the platform driver. Thanks Marek! Hopefully the debug logs I added were sufficient to figure out the reason. -Saravana