Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3709719ybk; Tue, 19 May 2020 11:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6uO29I07w6bzZrPrXhi8wJYIz9mdyAH9xoe6zO/L85sPplwInGxToASGdgtIg6JIt2zKG X-Received: by 2002:a17:907:20ee:: with SMTP id rh14mr468890ejb.158.1589911518022; Tue, 19 May 2020 11:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589911518; cv=none; d=google.com; s=arc-20160816; b=HCPA8/Cc75vu1wdLouqSHrRo3F7lzwzTxRlq88BdZfPp9eIWAJ9LRoWPvXcLftY0iW v/4EFE5MUwi9NpmlciOiPNfU4TOUaPnWV+vUeBgoENXR2O2j3qK64xaFErddoSCyK+7P qCyfTI1XXCtv0W/nm4v517BjsRfwU6oxckqqMC9Wj2tMcpggdZaUmtjPTPLewv2hjNBA QqUbtAISWYnesQe5lCEUwJGkQZVfxDjFghaOb2DDmWMrEC8XNL6JYx4kDClcyuDNkSkY gd5Lnnn2lu7dWOcWTDb/CI15jf+Iyfmf+WZWgXkYuzEp3CxwRDY1BywNvFnHreLhvn2d vHqA== 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=mEF6JImDlZtl9dd5DwbZ+u4aD5H341Tlf4Pwdu0TU+o=; b=XT9/QRenaYrJELyuIPMbXi5rk9bc1zGL7weLQHlEYkPO2TvNSQdx/p6HGLrYiwl6QT /ggcf17niMfjoV3IxE5tQqxFHTf7GJrxSTeH6c+B4UTvbkxBRuKHYpxS3ADxSHkrGocj /VC8cdCDuUAxR6Zs32yVhCdeOMB/giLA1z5KShJrr5nmTZ6b4Q9vfIGj3ZPniWArlyiU ZPEGDjTwLcEOYuPtLiTTby+CwPQ3TnSn7Eyt+/VQWo/d9cIQ+ZJ4qDJkR5YVx9b3OCao 9D/n5yLHGMTBYkhKl8R1IFcOkdyvecGWAHo5Qvqz9VTKwRfh95NoPTVdvT0YsDbtkKLz gEQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O1wfisRu; 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 h14si368778ejs.479.2020.05.19.11.04.54; Tue, 19 May 2020 11:05:18 -0700 (PDT) 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=O1wfisRu; 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 S1729467AbgESSD1 (ORCPT + 99 others); Tue, 19 May 2020 14:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729445AbgESSD0 (ORCPT ); Tue, 19 May 2020 14:03:26 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2F9C08C5C3 for ; Tue, 19 May 2020 11:03:26 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id b18so276048oti.1 for ; Tue, 19 May 2020 11:03:26 -0700 (PDT) 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=mEF6JImDlZtl9dd5DwbZ+u4aD5H341Tlf4Pwdu0TU+o=; b=O1wfisRulz9CoxDrv6qokmb34hMkANCg3EhTpEf3NEqJsA+ZmZJ07dbKmng/EfVA5D nPT8mgLwfSarEywarGM6h7tCVITUVt6DRqsNgjllMir5/afeMJnLOgnY337B3AXwz9SM Oqgm9lj4hVV5LnGx8wH/rUDprVWwc1s/cDChVMODcwiEvaLfzQGEhhbY16/Cg4wgngUm ndYmyZYcCHsrOp+OB43ftulrbAR7pz1+EE7oaLNr5bVmm01rJ3rxaiza1wagWBVUHjIa ivZDSdmBIw007YKAB/RKld1rA8gbmnVxP+OVzwaWng1zxA7ML9r4l0C7sDpccbFUdTfv iImg== 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=mEF6JImDlZtl9dd5DwbZ+u4aD5H341Tlf4Pwdu0TU+o=; b=WMi/LeBbdw8K8geEfYUgLCbIPPHghY3O99nSPCg5fasQHjOGWkl4iOv7oxp763Jm6R tCst40gMlubQJL9oa3snb2aQLBo3gWefuNG7lFotCr0FbZtGGgZiPxGZr4LrX8/wFr6P 9N95/I3yQwf9hA4zy5rO1iBTliSXrcHUVYJoU6rYiBuk9+ZUTL2hilZrIT1Yi0sP4n4G g4CAjG2hfEv2UioaTLeg3yRFG2dpJo8NbqgT5srEQWRC8xhFml5p0AM+kd/YPd/JHys7 teB6IeXE3OAr2XOtKr7tMTaaNmEjv6C/BQtBGmUxrS7atorMw216w0iDe7lFfCsbnwQz aRFg== X-Gm-Message-State: AOAM532VX63WQ0Jb4aiRFTSnC5Buw1X860/O6BFbzR9PewF4BFzJKyw2 KkxmVVuUjtSI2ylKRMQ2f7rW+jzM9y6MJAxTmJNMZA== X-Received: by 2002:a05:6830:1e45:: with SMTP id e5mr214825otj.236.1589911405140; Tue, 19 May 2020 11:03:25 -0700 (PDT) MIME-Version: 1.0 References: <20200515053500.215929-1-saravanak@google.com> <20200515053500.215929-5-saravanak@google.com> <18332705-dd61-9a0e-d931-ae610c8fb600@samsung.com> <8dd9ecc2-0c61-49b7-d485-b169eb721712@samsung.com> In-Reply-To: <8dd9ecc2-0c61-49b7-d485-b169eb721712@samsung.com> From: Saravana Kannan Date: Tue, 19 May 2020 11:02:49 -0700 Message-ID: Subject: Re: [PATCH v1 4/4] of: platform: Batch fwnode parsing when adding all top level devices To: Marek Szyprowski Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Len Brown , Android Kernel Team , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , ACPI Devel Maling List , Ji Luo , Linux Samsung SOC 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 Tue, May 19, 2020 at 3:32 AM Marek Szyprowski wrote: > > Hi > > On 19.05.2020 09:11, Marek Szyprowski wrote: > > On 19.05.2020 08:48, Saravana Kannan wrote: > >> On Mon, May 18, 2020 at 11:25 PM Marek Szyprowski > >> wrote: > >>> On 15.05.2020 07:35, Saravana Kannan wrote: > >>>> The fw_devlink_pause() and fw_devlink_resume() APIs allow batching the > >>>> parsing of the device tree nodes when a lot of devices are added. This > >>>> will significantly cut down parsing time (as much a 1 second on some > >>>> systems). So, use them when adding devices for all the top level > >>>> device > >>>> tree nodes in a system. > >>>> > >>>> Signed-off-by: Saravana Kannan > >>> This patch recently landed in linux-next 20200518. Sadly, it causes > >>> regression on Samsung Exynos5433-based TM2e board: > >>> > >>> ... > >>> > >>> Both issues, the lack of DMA for SPI device and Synchronous abort in > >>> I2S > >>> probe are new after applying this patch. I'm trying to investigate > >>> which > >>> resources are missing and why. The latter issue means typically that > >>> the > >>> registers for the given device has been accessed without enabling the > >>> needed clocks or power domains. > >> Did you try this copy-pasta fix that I sent later? > >> https://lore.kernel.org/lkml/20200517173453.157703-1-saravanak@google.com/ > >> > >> > >> Not every system would need it (my test setup didn't), but it helps > >> some cases. > >> > >> If that fix doesn't help, then some tips for debugging the failing > >> drivers. > >> What this pause/resume patch effectively (not explicitly) does is: > >> 1. Doesn't immediately probe the devices as they are added in > >> of_platform_default_populate_init() > >> 2. Adds them in order to the deferred probe list. > >> 3. Then kicks off deferred probe on them in the order they were added. > >> > >> These drivers are just not handling -EPROBE_DEFER correctly or > >> assuming probe order and that's causing these issues. > >> > >> So, we can either fix that or you can try adding some code to flush > >> the deferred probe workqueue at the end of fw_devlink_resume(). > >> > >> Let me know how it goes. > > > > So far it looks that your patch revealed a hidden issue in exynos5433 > > clocks configuration, because adding clk_ignore_unused parameter to > > kernel command line fixes the boot. I'm still investigating it, so > > probable you can ignore my regression report. I will let you know asap > > I finish checking it. > > > Okay, I confirm that the issue is in the Exynos I2S driver and > Exynos5433 clock provider. I've posted a quick workaround. I'm sorry for > the noise, your patch is fine. Thanks for debugging and finding the real issue. I tried finding your patches, but couldn't. Can you point me to a lore.kernel.org link? I'm just curious to see what the issue was. I'm guessing you didn't need to pick up this one? https://lore.kernel.org/lkml/20200517173453.157703-1-saravanak@google.com/ -Saravana