Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1961258ybb; Thu, 2 Apr 2020 10:27:40 -0700 (PDT) X-Google-Smtp-Source: APiQypJpTv5oK3YmZogitCJBee0sIPntsn8573mwXxo1t1xp8AJyl0oqlXOgG+GF5xeCi/PCPJLw X-Received: by 2002:a05:6830:1190:: with SMTP id u16mr3424012otq.83.1585848459993; Thu, 02 Apr 2020 10:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585848459; cv=none; d=google.com; s=arc-20160816; b=F/I8IhpUmwPEbE4ukXuJFKVJm+v7d3fHdzhjYat35tALTszNk+pkCMRAnbsBjyctb2 ffYseC+6AUYJLEMVSPoerJQzQxW0HwQ0K+GtQW0Q1m/7Qz3XXcPqdXzVQukpVDtpt9qi 0ScvlqarTmBzMC3CckCzK77XKncEtZLGWnKkWxxzfiqpejx4cLR6XJlyeEweZjTuC2Z/ 5H1iN2Qp4NwtFNIAmMHfaxu7oQQbo8ZqL3KCgpZUUrjmMs+Ih47LO5swdVQ6CK25YP5/ AMCRBynlNIgZLotv+GvpMeFgTmYMAU65q7KNtr9NJzv8v06VIQCCcGpSETN1AoJdU6La xA2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LmdhmlzF1awyNvgI8DSIF40xEnxKcPlPBIva59dgFRc=; b=bjaJrhUR2z1cRfr53VbnOC8YptrhrPuV3EDrz2Z0ILmCaZvrcn+aeFQYUAsWCSJkFG vOLBcuD4xcXOmB59WrZUyi3FG4VA2OC1w55f8CsJgSVMaLXtttjAbtpnbZS48Mc0G1DE hUtqBa0vt47VV7d/2IEL4VcqIk/Tncp/yBnCId0Pycd2N4Hfp/VF2mOsuq+M03HWsRcv acNlnVz+lFnoF9Vu2A7fmcIaHyDykiRpeddiwO8qWs8eCSO3I4WnNGBV60WGUYgDSf5C +9xcosfIvRxQwV22Xhu8mDm6eeIOpZ06yIfzkBzOIm5lc/zP9Xod7p18xEAVCTY0K72j xlgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gB9z3S6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si3088708otk.306.2020.04.02.10.27.25; Thu, 02 Apr 2020 10:27:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gB9z3S6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389738AbgDBRZS (ORCPT + 99 others); Thu, 2 Apr 2020 13:25:18 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33938 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388815AbgDBRZR (ORCPT ); Thu, 2 Apr 2020 13:25:17 -0400 Received: by mail-ot1-f65.google.com with SMTP id m2so4310287otr.1 for ; Thu, 02 Apr 2020 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LmdhmlzF1awyNvgI8DSIF40xEnxKcPlPBIva59dgFRc=; b=gB9z3S6U8yPzVvzHJqOYA+/pgRoORRtIeBPmqtTNy2Im5pkDobU/hyg0SWw5n/CkZg bdv3Epc67zhDaNsJKk94F59sFCCjo5nXJAYHDmPcaVcwA1t3zA/1cjSJKsoukTyEYh4H yOhfAxRYkhXROdlOCqT9QDi5hSi7zFg2CAkq0zaJoCHtBBw4YWBvkqR/o8QsKrBiicAB YpAQUZwukGF+Mx98hiEqJ1LrqZBuc2Ueqd/LSjU3spfVKTkcq4WBCz+Nd7gqLSI6LK0e ZJYRn6opAIP+nz8LUqCdjI4D0m1lF1gObX+zf/VRrH+mj94gU6qFRYtoarRtVsisA8aP 5UHg== 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=LmdhmlzF1awyNvgI8DSIF40xEnxKcPlPBIva59dgFRc=; b=SaFIKeCEZnnyYgFIaSvgVRMqojF9n20o19fxemy8VlQRkT47ZKhv7L7L6hSUh7N4nr cZ8NpDW430a4RyhnBkoHE4LsKSQkno0r+YZFGo00wYGItawZ951gaWqJYUKM1yLZWP5z Tlw53AelYmXTc9dNrvJd/ze/HlOKPxsas0d7cEB9KnOOFUS1oHqUme+fPTtqFiKlGVSX r7eP7/8UseRSr8PF5+ixZFStnGalBz6KoVgj4+e5BFd0TDBSMpAKmb87e7AxTrxCYN1x t9JCwtwgruH2qp+nAV6yRZWtSObRKgT1WseVXMHLUwJ4SSkkinUphHQ6CnIM4BA2Rcrg tGaQ== X-Gm-Message-State: AGi0PuYxnjPVp+qXgbXd733mSkQVrLtoI5WGNeR+kgt7YeEMODHkTiXI uVUKDp8+z75tJDCL6C8gZsAI50dQ7szF0/XT+J20v2jmZ4E= X-Received: by 2002:a9d:344:: with SMTP id 62mr3486852otv.102.1585848316842; Thu, 02 Apr 2020 10:25:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Stultz Date: Thu, 2 Apr 2020 10:25:05 -0700 Message-ID: Subject: Re: How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y? To: Yoshihiro Shimoda Cc: "gregkh@linuxfoundation.org" , "rafael@kernel.org" , "iommu@lists.linux-foundation.org" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 2, 2020 at 3:17 AM Yoshihiro Shimoda wrote: > > I found an issue after applied the following patches: > --- > 64c775f driver core: Rename deferred_probe_timeout and make it global > 0e9f8d0 driver core: Remove driver_deferred_probe_check_state_continue() > bec6c0e pinctrl: Remove use of driver_deferred_probe_check_state_continue() > e2cec7d driver core: Set deferred_probe_timeout to a longer default if CONFIG_MODULES is set > c8c43ce driver core: Fix driver_deferred_probe_check_state() logic > --- > > Before these patches, on my environment [1], some device drivers > which has iommus property output the following message when probing: > > [ 3.222205] ravb e6800000.ethernet: ignoring dependency for device, assuming no driver > [ 3.257174] ravb e6800000.ethernet eth0: Base address at 0xe6800000, 2e:09:0a:02:eb:2d, IRQ 117. > > So, since ravb driver is probed within 4 seconds, we can use NFS rootfs correctly. > > However, after these patches are applied, since the patches are always waiting for 30 seconds > for of_iommu_configure() when IOMMU hardware is disabled, drivers/base/dd.c output WARN. > Also, since ravb cannot be probed for 30 seconds, we cannot use NFS rootfs anymore. > JFYI, I copied the kernel log to the end of this email. Hey, Terribly sorry for the trouble. So as Robin mentioned I have a patch to remove the WARN messages, but I'm a bit more concerned about why after the 30 second delay, the ethernet driver loads: [ 36.218666] ravb e6800000.ethernet eth0: Base address at 0xe6800000, 2e:09:0a:02:eb:2d, IRQ 117. but NFS fails. Is it just that the 30 second delay is too long and NFS gives up? Does booting with deferred_probe_timeout=0 work? thanks -john