Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp454532imi; Thu, 21 Jul 2022 04:37:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRinu7TvOs8xAomQKhVuFu5oH8XDOBkZs/hh97S9MeuQPcPOeD9SIPyxNCGYtjH54IzT7C X-Received: by 2002:a17:90b:388b:b0:1f0:47d8:67fb with SMTP id mu11-20020a17090b388b00b001f047d867fbmr10862876pjb.34.1658403468833; Thu, 21 Jul 2022 04:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658403468; cv=none; d=google.com; s=arc-20160816; b=Oay3xVlbhvZstO+pjo0kmH/+h6apn7Swr0EMVAAdGHvNs7APfruajOKG0IYsYXOwzY GaY7Rtywo9nLB3U1H+GkoZF67y6AN2PyNTITRLSOEp8lMM21TQRUlzdYXTr4GnLK/0XO kPZagB4Ry7Z30i6pAAZtYe4gZygdxZEVwyPP9vXPoAwGuRXrtQoI+20N3zOH43TsxScI /4W8LgIvzulPl+SJf87XGmkEvM5spYIRVqpho0aFHQleIhPVFnH6HjwI9iNkOWNc+lhu Ci3+j/W0KdVJ8iWkEvAew0yL1spZmnuc9nkMCVaKvG9krFBscSqchSf75YXAuqrqnblr Xdjw== 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=CLWKgEnWmG2KvexxdqdcExXAcEIvw/FcsVlDQsYXX2E=; b=aRVQqqQ99RKeqvorG7LBROAYsCb558EsYPIDRkt/DHBX9jg3I0qeSCmp1J8FfdEaeG lEpDIK/9BIZpQ7pT1ddlS/jrl/wjsOkIINve6K+8bx5hD5eAEW5Bl8fH2begIQgUXE2+ /t416KgSvEXTiCzwsD8Lh+YOvTCFIO43I80Zgy/YQsJm2dlzSTXp3Sv37qAVs4GaRidw R/emFc/OZ3bjbsLsM6aovCCpZDtyDwnO15H6vLYJj9L8LYVVomAohiIfQmydk/y72fvG jdfZUp/CGsJCGOFRz41CHHu11BD/QPwe0GzzNj+i/jPaC1p8G+f0lnG1DwDmzt/l/efM oWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZLO9qZO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a63eb46000000b0040dd6d54504si1747596pgk.511.2022.07.21.04.37.34; Thu, 21 Jul 2022 04:37:48 -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=@kernel.org header.s=k20201202 header.b=IZLO9qZO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233158AbiGULae (ORCPT + 99 others); Thu, 21 Jul 2022 07:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiGULad (ORCPT ); Thu, 21 Jul 2022 07:30:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7AFC2CE24 for ; Thu, 21 Jul 2022 04:30:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 52F1361AAC for ; Thu, 21 Jul 2022 11:30:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EB09C3411E; Thu, 21 Jul 2022 11:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658403031; bh=gIU05DjFlkodFloAR0LapBs8EY/oYW4Iwpe7LC1pqac=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IZLO9qZOzZQ2f8axx0+Wh0wpg9T8anGP6Mym+njmlF2fBkHNS8f8V/rdQtsxtzcRa MtPqMFL8z22wwfxOCdjj+dwwSuhhg8ogObkzHbhS5RoOhe7pMUYdh2yOMYJWY1ZQZI aOGuA4IRA6O8SDAAnSqxGOSHgeNtQia9A9CcqKjmGvZ1LFoFrRSXyINTjicUiAAzS1 Kaw1Bb43dB05oOsNcbiRlZuIsWLzdKXBNP6sJ6ywyjUXW5Y7fsdmEZQ+3F2kU8PcAf OE9YoWviYYqcnhK4mbiWHf6wguhvr+/A20/zoiiDbhg0Le0G6RK3UgSvxHGCDIbs3Q lm74OjMMtUeBw== Date: Thu, 21 Jul 2022 12:30:18 +0100 From: Lee Jones To: "Russell King (Oracle)" Cc: Sudeep Holla , Saravana Kannan , Philipp Zabel , Rob Herring , Ulf Hansson , Linus Walleij , Nicolas Saenz Julienne , Geert Uytterhoeven , Marek Szyprowski , Kefeng Wang , Greg Kroah-Hartman , 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.8 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, 21 Jul 2022, 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 > the patch was generated against (just the tagged version is sufficient) > somewhere in the email, and send it to patches@armlinu.org.uk. If this is a part of the submission process for the subsystems/files you maintain, do you think it would be worth while adding this address to MAINTAINERS to make it easier for future contributors?