Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp122412imn; Wed, 27 Jul 2022 01:19:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1szyxVyGtxcMShDtF220reF7Ja85+qCZUAnOG/7t8rt/aqjJIziGuu/zNObmrEv4cnMMbrV X-Received: by 2002:a17:906:7945:b0:72f:e584:10f2 with SMTP id l5-20020a170906794500b0072fe58410f2mr8560438ejo.534.1658909974354; Wed, 27 Jul 2022 01:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658909974; cv=none; d=google.com; s=arc-20160816; b=hurXcm6DFwo+Wsw04jZrTWws2o7oenOLFfHFQ7MbLH6EPXW/lU2dzX5YLYPmF088eP LzjROtmyRgw3uRkLwG/2wTx9i+qWFAjH9isz1KcFisz22SBs6lpCLAlLhqFEYKSlvyRD wdWhbS4q/rzuaKEV7uG2Rnb+6kEjWxW9rrsdT5O2Xpwi6MAY323ZsVOKm/1LVY7LHOqt wdFTKp03A8ydJqB+/R2fAUgkKgyU1TjUj3IT2l+21QlXIMdzxau4YlVZtoJsE3FEmT2J Pis7lNuvyy+vLfxcjpz3EkKU26PgkwqPZMOZhQpaDiQ065+Su6FI/jHsthkhj4vdKylO ncsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4FQRdaiEmjW2on5jtXkWdtqctpeHbZ2jbFFYhzy/xGE=; b=D/gQ9tsYj4aWgM5YEObJOjFZmv5sBgAoBzoaMdrbKTSBDt0dfIE7PQi1sLLu0hnWxT Ct7o53GTBhj5l/Jinwhu1vmV820cNSuH05ecAyeOb3QR3LFlipBKD5CG8BPdKkKNjGGx KKCO+3jbqXlm82EBUdCAK3sNB9a5Qe4XFBa/z1kB4JEnpFmwWaMwFbyrPkTlmFo3wG68 TOmzagBKW6rieAnuF6T15HWcFSLGkUs3n7Zzrlur7nsJgS4yNcW3MaiX0E1YNsGTarua X0kIOjKMY3q7gnu/zaTtfw5JnJdpbGqkQEjrCeGaqyqLsaHfLNeuMG+bqr5APwyNvEdG ngSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="DoQlz2/A"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs11-20020a1709073e8b00b0072f664f368asi19485684ejc.199.2022.07.27.01.19.09; Wed, 27 Jul 2022 01:19:34 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="DoQlz2/A"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiG0Hx7 (ORCPT + 99 others); Wed, 27 Jul 2022 03:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiG0Hx6 (ORCPT ); Wed, 27 Jul 2022 03:53:58 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCF7422F7 for ; Wed, 27 Jul 2022 00:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4FQRdaiEmjW2on5jtXkWdtqctpeHbZ2jbFFYhzy/xGE=; b=DoQlz2/A3iAlE2X5WpW3dTwslw sTn4Y4/XG+o0XzQudWorqjNypVPPgtJc0KRB3J/aeqIcKwV5hX7bvwKz6dBTQdDTD6v17jT2inaDP F+ZCHE2Petyxe5cyoZis3Aq50z55F5DulGE/rX7HAFgEXz0n5uYjUJjCg3zFlw9xwWAP5sxJqh6Rx RnG77UL5sBplRhYiQi9OGtLgpi07aYKUWCo6n9VYfyJGNwGFSJ4sXTtlXohIbzRfNUKvmm5xODUZc Z4U7qI7RQUohgglPFC9F2gQ5aHp/Ue2cxGEVRLwNgwyInkiuTeepHfN4dcUtPTgMjHI3VojxVip6q 4ABh3niw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33592) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oGbrR-00054a-4F; Wed, 27 Jul 2022 08:53:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oGbrL-000271-D8; Wed, 27 Jul 2022 08:53:35 +0100 Date: Wed, 27 Jul 2022 08:53:35 +0100 From: "Russell King (Oracle)" To: Greg Kroah-Hartman Cc: Saravana Kannan , 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: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Wed, Jul 27, 2022 at 09:43:32AM +0200, Greg Kroah-Hartman wrote: > 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? The requirement for the arm patch-bot is "patches that I apply", and since I'm listed as maintainer for that code... Sorry I missed the original reply highlighting the typo. Yes, it's a typo (my X key was being a bit dodgy last week) and in any case, "armlinu.org.uk" doesn't exist in the DNS, so sending to it would fail. Also, every email I've sent over the last decade or more contains a signature that gives a URL to the patch system, and the email address is mentioned in its "Help" page (although there's other stuff on the help page that needs to be updated to current practices.) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!