Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp28969imi; Thu, 21 Jul 2022 15:14:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uU9FJjA8hf8lPWQ+CFjB6AJ5ZlfvdhdkJFwOmiq8EINmY9BOWt6D21K3L5C+NL3azJOgVo X-Received: by 2002:a05:6402:5384:b0:431:6d84:b451 with SMTP id ew4-20020a056402538400b004316d84b451mr560650edb.46.1658441644436; Thu, 21 Jul 2022 15:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658441644; cv=none; d=google.com; s=arc-20160816; b=ejWlIJNxMyKs9lwhn9iDm6pYsHRDdAi1/uUBk1A2pIrnxG6ecic4y+MBzs0abigzMQ sC0pLcnkZU2ZP43cxdgOL9lZ5Ca6xFSFM7pF16b8ZaZz3LC29w6IvE1To6DEI02kb2Nd Vz1+cwuqIwKBw9IDurTXU0J55QhqM2qvb3LiTp0Oc/Vo/HFL1n7rckcrkM/OEpD51E0s 3Q0di/R2limEsDLZyhlHXcOhQ4+GwCHG0jxsCVU0jkDsK78/yjUSiHWg+zqaJAg1ztNa LHieuAuBwn5UuP2hHlUT9qnBhIak19zlre/PokJHDW/5CB/CtsIEc3GOs5auVlXwOTs6 IBzQ== 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=QemyCLkI6dzlXbVvolGX70AxPDsM5uHjNFau1pouZoU=; b=CDagr8UwXePGBAyO6+BP+9mzAimiPIu/JT0h6usSbeC6xtlIczj2hjl/vIT/NYhRAa AurFNLo2GZTDNnRh7Cj3VkB4T+DPMqSYCDVlV8w6pSlb7Au0d9J4kYqw+CgVD3459RIO oLu+Pg2Z64zVhZalDGpGyd367l0bH41B4K9T40ebw7Rc29eKUq++tGWu8dHXCfopfYkM jGYbNEnBMDMnpYdbXlRAu7ZHCp4Q5uAcs/TZzNNNV/Sw/bMiY5Tnsxr6pmpK3tKvhuPl AJtMJTl2muhOeLx4qYLRv3NURFyxH4nuOJzRNC8W317/cHNDfg+c1e3x/UdQiygA6gkX MQAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=EggV9eOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020a17090632d500b007269615d162si3743283ejk.236.2022.07.21.15.13.17; Thu, 21 Jul 2022 15:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=EggV9eOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234047AbiGUV7L (ORCPT + 99 others); Thu, 21 Jul 2022 17:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234003AbiGUV7F (ORCPT ); Thu, 21 Jul 2022 17:59:05 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAB5293C3B for ; Thu, 21 Jul 2022 14:59:04 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id e69so5114930ybh.2 for ; Thu, 21 Jul 2022 14:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QemyCLkI6dzlXbVvolGX70AxPDsM5uHjNFau1pouZoU=; b=EggV9eOe293C069t33s2imjH0DFks8SbaFyvA4mrzBn40aO4Zh1s/Y+o+PH03J0aum uKjahaNfKINcw/0Xsn87yqdaKC/X2YTOrTJTl0azsijsmNnir7bDIcgwI6B6774UoJXS eH3tBYgyM3zKs/Atfx6PPNT+ta/DnjRBC/UtVrIgetSvCy8qov1FzSwTFj1QIfAaC4ma NZd079sWBU28mv3DylqYcX0X4A8XJ4qk0PPuipu6fzXwjvdGUyYSMVC+IhllGKUPtNPu CqvnApM9NZAym5hGtTEHmwH3bFVsDbzxyiDLWMBZLt6ZfjNxb1lQibCkTcymqNvzkFew 3jxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QemyCLkI6dzlXbVvolGX70AxPDsM5uHjNFau1pouZoU=; b=YvPLqHWsk0sFLMCnLs+iV5LPMmhl3lHBWF94k4dm4Vx0OZu8yQbUBv+gmfeC4zH/Mj a5IJxfgcPr8WkoFjEDdlgiGqIcgIZViCIvEp+UPLBSKIRQYTkGtRAdKrX1pnKUgGvOUa ce0bnTLBMK8tc/56AqqzdgzkoUoWMFrg/zRLENu9ImNheAo76tY125yLpePEZELVr+Xg P6stu0XvgJkiZlEGi51ypL84xUlIylPFTZJiPeME4J4vpiqnqKIBYzaZNDLamsCIuiHR CVpJ/MmDIbwc9b8htEdqrAeokXpbtyLOS5cq+Ihnn1/TKmmcu4AA//B1ImeisHiVmUzs SUVQ== X-Gm-Message-State: AJIora8F76NYIO0WJkTAvgJKdyKNEj+lneqV7n72X59cNZjnt8943XrV WRAeWBSxDCybFh3RklBEU+7ok2PD/Na8SRBQW6eIvw== X-Received: by 2002:a25:a86:0:b0:670:ef0:3159 with SMTP id 128-20020a250a86000000b006700ef03159mr500307ybk.563.1658440743770; Thu, 21 Jul 2022 14:59:03 -0700 (PDT) MIME-Version: 1.0 References: <20220719182010.637337-1-saravanak@google.com> <20220720131221.azqfidkry3cwiarw@bogus> In-Reply-To: From: Saravana Kannan Date: Thu, 21 Jul 2022 14:58:27 -0700 Message-ID: Subject: Re: [PATCH v5] amba: Remove deferred device addition To: "Russell King (Oracle)" Cc: Sudeep Holla , Philipp Zabel , Rob Herring , Ulf Hansson , Linus Walleij , Geert Uytterhoeven , Marek Szyprowski , Kefeng Wang , Greg Kroah-Hartman , kernel-team@android.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 21, 2022 at 1:50 AM Russell King (Oracle) wrote: > > On Wed, Jul 20, 2022 at 02:12:21PM +0100, Sudeep Holla wrote: > > On Tue, Jul 19, 2022 at 11:20:10AM -0700, Saravana Kannan wrote: > > > The uevents generated for an amba device need PID and CID information > > > that's available only when the amba device is powered on, clocked and > > > out of reset. So, if those resources aren't available, the information > > > can't be read to generate the uevents. To workaround this requirement, > > > if the resources weren't available, the device addition was deferred and > > > retried periodically. > > > > > > However, this deferred addition retry isn't based on resources becoming > > > available. Instead, it's retried every 5 seconds and causes arbitrary > > > probe delays for amba devices and their consumers. > > > > > > Also, maintaining a separate deferred-probe like mechanism is > > > maintenance headache. > > > > > > With this commit, instead of deferring the device addition, we simply > > > defer the generation of uevents for the device and probing of the device > > > (because drivers needs PID and CID to match) until the PID and CID > > > information can be read. This allows us to delete all the amba specific > > > deferring code and also avoid the arbitrary probing delays. > > > > > > Cc: Rob Herring > > > Cc: Ulf Hansson > > > Cc: Saravana Kannan > > > Cc: Linus Walleij > > > Cc: Sudeep Holla > > > > Tested-by: Sudeep Holla > > > > on Juno with linux-next(which had the reported issue [1]) + this patch(which > > fixes the issue) > > Ok, but this patch needs to end up in the patch system for me to apply > it. Can someone please add "KernelVersion: 5.19-rc7" or whatever version Where am I supposed to add that? Just somewhere in the email body? The patch you are replying to was based on your linu-arm/for-next the day I sent it. Do you still need me to rebase it on Linus's tree? > the patch was generated against (just the tagged version is sufficient) > somewhere in the email, and send it to patches@armlinu.org.uk. I'll send out the same patch as is to that email. Wait, is there a typo in the domain name? Did you leave out the x by accident or is it really armlinu? I'm also getting a DNS failure for either one of those domains. I'll wait to hear from you before I send another email. -Saravana > > Thanks. > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!