Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp110700imn; Wed, 27 Jul 2022 00:51:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sa5mHJ4jGw9bbGzxHNIstgawrpeLvKq+MbpnaJTyiwnNBjF9vPhpjPtjv29Hu6yDwuIuaL X-Received: by 2002:a05:6402:187:b0:43c:b095:4ab3 with SMTP id r7-20020a056402018700b0043cb0954ab3mr2199127edv.5.1658908293694; Wed, 27 Jul 2022 00:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658908293; cv=none; d=google.com; s=arc-20160816; b=Gt5SpRbRzgtqrkJF9JcKnvO8Iu7Yt7hjH+/5FCIh/PQf52jdUZhQ1RqYVPO6rpFO39 C3Y1vmTQJjhiV7GvC/7qqPSYFbc31z//j6bWJ6UErGFgV6/BOvKSL3tn7Ar5EW0LQwfS SdNi1wSBj6xCHYA3aCtXfqGJE+9fPn6GrbhsF1LL6Iao8BQnGOYMXBv3flkQKmXEjUlH aXmmwtUXEF+cT0dwqXLe3x4z9O3XwHpmTH3Vx6NsiELJh+Ni2oP7tYvmreQkcJjHWIRI BurKbq8EFjvIuI8HfVZPTMjU57TMiSE8wW3x5801YZ4ymD90WlLHE0J5g5V7aygqZ1vZ fVMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rUmBVVMI7WQ3yxoKxmXNWe29uOj/5WUSl2ozA/mIajY=; b=P/BA/rSlcxhhERJ6h/CgUeECXhBvCBvGThAFxezXuKxusTCVjWV70I5D5eEFPmzsfz B5IxS3dsqFFX95RbxinNc+ykz8NrNQM6wX4oCvlsFsry/Vfwd4Tlue88+kSoetOT5kB+ d6cl9b9t6cF6VxOJ2y0+D+FxXDQezRIe6YddWn9oXx2LOsKfEkWjRvH321lDBAGSVIyV AttCtJ88XxgknJsep+KRqKwb+xyTuHPlzYF21dm7scmVEpqQu8SCajYu3XP5KYzqDAXz SN0WBtSWByocpz7s7H5UfpN6QUr+rBfP7GoHizfJJsUPuJIPTKqrLmcJPFZg0i/X4WPQ Lr1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VYmIfram; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp20-20020a170906c15400b0070d8de4e431si19871025ejc.206.2022.07.27.00.51.08; Wed, 27 Jul 2022 00:51:33 -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=@linuxfoundation.org header.s=korg header.b=VYmIfram; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbiG0Hns (ORCPT + 99 others); Wed, 27 Jul 2022 03:43:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbiG0Hnj (ORCPT ); Wed, 27 Jul 2022 03:43:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1045D3719A for ; Wed, 27 Jul 2022 00:43:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 98937B81EB9 for ; Wed, 27 Jul 2022 07:43:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC5A3C433C1; Wed, 27 Jul 2022 07:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658907815; bh=0IZtoatpXCh/iT1PMIYHTOqCiq0Jo3hX13tZ90/Ib8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VYmIframm6vtblHv2amc5pNgIDeiDXQlFUvZUQFihJqvbRv0VIqEq1bcPqSGZN0UI H7jF1//MLsuHEVL6gJHgZK//lucIKqfI/0FmMJrE/BfHVLyTHFg4KdOxfOrcf+GBqS P5ndcKtv2vcK06tRTQoB+DgaYxwbZoNUr/gEgoZo= Date: Wed, 27 Jul 2022 09:43:32 +0200 From: Greg Kroah-Hartman To: Saravana Kannan Cc: "Russell King (Oracle)" , Sudeep Holla , Philipp Zabel , Rob Herring , Ulf Hansson , Linus Walleij , Geert Uytterhoeven , Marek Szyprowski , Kefeng Wang , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] amba: Remove deferred device addition Message-ID: References: <20220719182010.637337-1-saravanak@google.com> <20220720131221.azqfidkry3cwiarw@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 02:58:27PM -0700, Saravana Kannan wrote: > 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. Odd, I don't see the requirement for the arm patch-bot for the amba bus code anywhere in the documentation, am I missing it? Anyway, I can take this now if no one objects, through my driver-core tree so that it can get into 5.20-rc1. thanks, greg k-h