Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1728535ybb; Thu, 2 Apr 2020 06:20:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLDztVUpJmyTemUXmRC2dJBnmyKT8n2yiziq+4KIyiu4AkZ6bGASbaJ+WunMcTilrzary8U X-Received: by 2002:a4a:41ce:: with SMTP id x197mr2706608ooa.77.1585833649279; Thu, 02 Apr 2020 06:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585833649; cv=none; d=google.com; s=arc-20160816; b=BP1er5kQdnptVoWO7FYG+XW60+mkJF9MjGzQVUwuBHEf0n9f5CN7azqyhAp3gvTM23 YU4q9XAY050OAtc1p1pEYHJ6C1ogrnUAwgucsenPTFvIgkcJnMuIH9Yb7y2sdzgbznLk Hj2CTdHOHrqQtzzDzdhmSdKbmevPpsBBcfFwqRyAKV9/dP74GSxvmaC5zxjdK5XtXvG2 t/hNBY7ZuvJE+1tQ13UnLLF5H1TaGkHUMja5d/AYwp/Dpx6bMYSx1K9i7pVvW94eYgwZ W7K/HKww9Ztx5ybzqR3Vk6FC/pz4y29ca/pLgfdFC0RrXZMJJttXv3LKQDbhE4Ot6oGp fw/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=e8OH9QMlCPLkVjK10o8mZSZmZ4d3WvI/YT4Yg/6msKY=; b=sSewbJ9b7CxzDW9wKrHff8HBpWyIyr6GxIjSolJmsF9ug2mrAL6h5kzeyIdEY4nBrO +sVd4klkIonBp8rnEzdKvyhln0OvRxLWK6ysFX8fUFwi5taeKb8BLSP8F7k+Gu8AgjLx k7DureSJ10zSbe3IGoNKzRjjft5bHl3H8KkuU4f20WZbxiGIiTVU/BPdyCW3DXW1DSQq +lKAjdha7RCaRFIAKnxwGOuAi8Cu0z7+rrl2VIppavMphq8EU7zTk/+MBEKtOrAB5z3j nkW41xahxeKiEyF3dSqpgiq3P08dD+RROQxYq8umKW8s6mCxd4+cDPQVWDmV6Fx0ugae A8Ng== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o203si2289478oig.1.2020.04.02.06.20.35; Thu, 02 Apr 2020 06:20:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388548AbgDBNUK (ORCPT + 99 others); Thu, 2 Apr 2020 09:20:10 -0400 Received: from foss.arm.com ([217.140.110.172]:42702 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729166AbgDBNUK (ORCPT ); Thu, 2 Apr 2020 09:20:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E3B2630E; Thu, 2 Apr 2020 06:20:09 -0700 (PDT) Received: from [10.57.59.199] (unknown [10.57.59.199]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B33B83F52E; Thu, 2 Apr 2020 06:20:08 -0700 (PDT) Subject: Re: How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y? To: Yoshihiro Shimoda , "john.stultz@linaro.org" Cc: "gregkh@linuxfoundation.org" , "iommu@lists.linux-foundation.org" , LKML , "rafael@kernel.org" References: From: Robin Murphy Message-ID: Date: Thu, 2 Apr 2020 14:20:03 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-04-02 11:16 am, Yoshihiro Shimoda wrote: > Hi John, > > 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. > > I guess the patches will be merged into v5.7-rc1 because the patches are contained from > next-20200316, I'd like to fix the issue in v5.7-rcN cycle somehow. This already came up in a different context, and there's a proposal from John here: https://lore.kernel.org/lkml/20200330202715.86609-1-john.stultz@linaro.org/ Robin.