Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp815955imw; Wed, 13 Jul 2022 08:27:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdpiZMDp173aHt/4tPMhAtPHnZj/eemPvit6tSaBPjvUOUV1b5AR5hD0L0hmXSq8ohlXlD X-Received: by 2002:a17:902:ce86:b0:16c:8a4e:746a with SMTP id f6-20020a170902ce8600b0016c8a4e746amr1881988plg.168.1657726034759; Wed, 13 Jul 2022 08:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657726034; cv=none; d=google.com; s=arc-20160816; b=SZmpaxexUZjPek+vUIglzKLdjnRLhtO8wHoQEDL4ekftKNEztnaLzHRG2mJ+JUfzeN 4cWbxD1WP1lZZYAERqXM1QRYaTD7uCoSSc2Hk0cAhmrEnrg7AhSvxIFvwcm6ZYOv4hCx A+w+WKzTBsgKx00R8UijKNM1SBm9tnygtwgwFNeuR9PAb+klWbuSVHLD/iKb1Ze7tujK PqD9gc/6NouA2M9QJ4X/yhEX/DlCqijW0U8r810upgKFhEf97mnzdqg+cOagcFr6QhqX xezVp1R4aQgCXLhHHAizsEGpr0CLfFaP98sU9gxCZJuN/zxuzgbvmx3IWVuP/9hPNAG4 Xl9A== 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=zW9kbQ5VkhOIevo+JJjGepCNWrH42Mmw2d8dJNNQ4gw=; b=yLBDVtG9QpCvBANnUfmWPk793W+DHhk/LEdDaar9mi5cvTz0dx6Dcbuta5Vsp6m3y2 G+hQyibVtyit3pE9LW0d+4LpZ/188YoR8NRmKT8QqTdTlWwLtMWoE7ZaitKYQMAakOZY wbmAXUYklaHccfh0IkUOsBXTLNovjKidm+TYJkZbKLxzLZRXEr0vrxNlAlZWiNjeOa0Z 76ESlhJmMlkF2DB5Hrv92+FUrVFFESJ6cxOYN/ToJnEwqxdK9sSHP7XtNU2SnmjPK+Qd M92ts8FGqnpQRIB2GFx8ApFZUxkT2CSKKsKa40aCnuP8+xhuvn3hf4rtpYDUsRkda/b2 C3Aw== 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 c21-20020a631c55000000b0040df75e9e43si12715777pgm.408.2022.07.13.08.27.02; Wed, 13 Jul 2022 08:27:14 -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 S236663AbiGMO65 (ORCPT + 99 others); Wed, 13 Jul 2022 10:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236681AbiGMO6e (ORCPT ); Wed, 13 Jul 2022 10:58:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D1A8DA2 for ; Wed, 13 Jul 2022 07:58:33 -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 210C71424; Wed, 13 Jul 2022 07:58:33 -0700 (PDT) Received: from bogus (unknown [10.57.7.85]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C4E683F73D; Wed, 13 Jul 2022 07:58:29 -0700 (PDT) Date: Wed, 13 Jul 2022 15:58:27 +0100 From: Sudeep Holla To: Saravana Kannan Cc: Marek Szyprowski , Russell King , Philipp Zabel , Rob Herring , Ulf Hansson , Sudeep Holla , 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: <20220713145827.yxeoqj6vmkzhrrpv@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,T_SCC_BODY_TEXT_LINE 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 Tue, Jul 12, 2022 at 12:38:33PM -0700, Saravana Kannan wrote: > Sudeep, > > This makes me think the issue you are seeing is related to your > hardware drivers. Can you look into those please? I'm leaning towards > merging this amba clean up and adding delays (say 1ms) to your > clock/power domain drivers to avoid the crash you are seeing. And then > you can figure out the actual delays needed and update it. I haven't got a chance to debug the issue on Juno much further. One thing about the platform is that we can't turn off the debug power domain that most of the coresight devices share. One thing I also observed with -next+this patch is that with a little log it can access the registers while adding first few devices and then crash which doesn't align with platform behaviour as we can't turn off the domain though we attached and turn on in amba_read_periphid and then turn off and detach the power domain. Ideally if first device amba_read_periphid was successful, it must be the case for all, but I see different behaviour. I need to check again to confirm if it is issue with platform power domain driver. It is based on SCMI so there is some role played by the f/w as well. -- Regards, Sudeep