Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4482482imw; Tue, 19 Jul 2022 07:26:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/PNEteOg5ldTdY9jIIjxj9lk3dbNjnURLxqx1w/cz1N3xH/5+QVzb10xt2ONdt0rUNPAg X-Received: by 2002:a17:90b:4c84:b0:1f1:8f7d:c9a0 with SMTP id my4-20020a17090b4c8400b001f18f7dc9a0mr19750237pjb.41.1658240781348; Tue, 19 Jul 2022 07:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658240781; cv=none; d=google.com; s=arc-20160816; b=Z8JUswKJqCeyvaWdQF/61GbFN9C/wpYUEt+JLg2SV0oDd5Rf37zMUr5Y9qbcFjz3vM vF1TnOFk8juv6HmK3tTuHPYuY/OH9wuVFgqBbgConDw9BtZHwcHRX1tBvicVAK23otjx jify4U7bfeVLXmEnGJiMVSbFAy4mv1K10v41ualGmnwRPW9gA15ra9k2tTOk2VVlvRsG Ymz2bcyzCYQqZGE9MmNG61JpxdVQL7eASim7nbsfSnwkis7PQ/glxFn/oE96uxMsfLtW M23YU28bnZCJ97iDIw/sPjLPbFNmrsiD0eQkI030HpZxhSthBeyEAP6V6KPf0Hb11NJh JVYw== 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; bh=Vsv1W4EKpcnFLvMkNV2wtOA/z58yCz9P9v41xEinb4c=; b=0Xd+fMJxEKhlu8g8J92S53xZMgUMx9OcVAI3w0QmJi1XsjIDwXPJ6QkS/khQm1SQ8/ dLjYUBl1E4xPIqKRwGHPg2kmuUcPTjQbEcTd90swDncmTUfI1iT6M21nD7XOP/r2ouSr 15syhzFxF86BeNk5T2LSCPYKPjTEuSRUrStKaeQGqHarexWkQ4oS3t31LQBIC0uRrmH5 Y7ZIArfePzKV8Xdi9k28l2M5WkJlKCL8cw1mpzAgXAzBAUooVaIYHHZyq65f3FdVCgZE TO6OM7D+HZBkT+AcSLmJHR9wti8a99FehUV1m6dS8Ka29F0Fy/p01+qXWDAV0uhQmPoG SIiw== ARC-Authentication-Results: i=1; mx.google.com; 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm18-20020a056a00339200b0052b4aceb77csi13841663pfb.343.2022.07.19.07.26.06; Tue, 19 Jul 2022 07:26:21 -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; 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239126AbiGSOMK (ORCPT + 99 others); Tue, 19 Jul 2022 10:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237963AbiGSOL4 (ORCPT ); Tue, 19 Jul 2022 10:11:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13FFC564D6 for ; Tue, 19 Jul 2022 06:33:45 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4D4C2139F; Tue, 19 Jul 2022 06:33:45 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E6573F766; Tue, 19 Jul 2022 06:33:42 -0700 (PDT) Date: Tue, 19 Jul 2022 14:33:40 +0100 From: Sudeep Holla To: Saravana Kannan Cc: Marek Szyprowski , Russell King , Philipp Zabel , Sudeep Holla , Rob Herring , Ulf Hansson , John Stultz , Linus Walleij , Nicolas Saenz Julienne , Geert Uytterhoeven , Kefeng Wang , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] amba: Remove deferred device addition Message-ID: <20220719133340.rhrxyrlg3qg6wxnh@bogus> References: <20220705083934.3974140-1-saravanak@google.com> <7482d3af-4b02-4c1d-0386-b0a4ddf529da@samsung.com> <8a04332e-e7b1-8bc3-d569-5052427bcb13@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 Mon, Jul 18, 2022 at 06:51:29PM -0700, Saravana Kannan wrote: > On Tue, Jul 12, 2022 at 11:53 PM Marek Szyprowski > wrote: [..] > Longer explanation follows: > > 5a46079a9645 ("PM: domains: Delete usage of > driver_deferred_probe_check_state()") correctly assumed fw_devlink > will block calls to __genpd_dev_pm_attach() before the power domain > has probed or we have given up waiting on suppliers at the driver core > level. So, __genpd_dev_pm_attach() returning -2 was not a problem > (well, there are other issues, but we'll pretend they don't exist for > now). > > Until this amba patch, that was true because really_probe() calls > device_links_check_suppliers() before you'll get anywhere near > __genpd_dev_pm_attach(). > Last time I started looking at this patch, I was suspecting some issue around __genpd_dev_pm_attach() but your explanation makes sense to me now and I am more or less convinced this was what happening on Juno. > But with this amba patch, we try to get power domains before we get to > really_probe() and that doesn't get the device links check. So, > amba_match() has to always return -EPROBE_DEFER on any error until we > optimize out match() calls for devices whose suppliers aren't ready > yet. I'm considering reverting 5a46079a9645 due to other issues, so I > think v4 might be okay as is. > OK, do I need to check with 5a46079a9645 reverted then ? -- Regards, Sudeep