Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1456269rwi; Thu, 3 Nov 2022 05:38:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Z7ONdGIYxGwlHaypXlICUuCF03WtJW3VxWLzpw4PSL/3mfo/R0EXc39W8+uhwjWAKjwhK X-Received: by 2002:a05:6a00:13a6:b0:56d:426b:4e98 with SMTP id t38-20020a056a0013a600b0056d426b4e98mr24773432pfg.54.1667479083116; Thu, 03 Nov 2022 05:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667479083; cv=none; d=google.com; s=arc-20160816; b=MFE7d0x6uidPW/d4CCPaV0Z7jSCC2fTppjk85DHcTp7cW4KqTxAUz4VNapgBJmumkW 4h4/ZR9Ovm7ULRoAbhHK799VIGjgZItfLoPtYzqKjos+RQRYKT4Br/hSYU8x+WU8Aazu OnI1DAYObWGDWG98cdp4Ie5JLugLh5q4104VEVjqr6XdKyVufzDHLelWi9Q++XdVdI0K UF29ZyA1QrWPE6lZRgDIN5JfujLrQIJ/+/iwd9mRUg/7ybBazIDCdiQdkog3+MZotBH9 uJFA8bSVjJ2/Lqmh5ZBOI4e/DM3gvdLxk3+GENXFOp2yFk6fm12s8lrzSlCK4BJOe0z6 AUhQ== 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=AIXdvaEHEgWB+bshX0jcj32Uw63FnM2wUXpREdYEh1k=; b=yCU2nPCOJt/YbALRDzYztk3HlndntI7RNou54SR3jHKTwmxKC/e2EaWhOeCHloabZt lPDLaGNi6fC2gdBNL5QqD6ZtLED2Wxu5fUmB97vZv3/aB+SPf3M6cmTL+cSpTPkjh4k3 2ILWIKeBlj4TPazKpQ0DU93LnM/yi/SUJrqsHB98TmiVRh3I/jWEkCmShqbU1U1SyFtz 0AWwl1jFof2116cm4BWxGwOsemx2wPJE2YPPBpu3PCsrUMR1oZb+pC2oAnD+cdOVVy7p oJQjubSiRAkLrrcypd7gQZ7isek5RCfKw1mFH4q/1LAYdJJrBLjouaIKw+4Tnp6jpMMT I3JQ== 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 d20-20020a634f14000000b004276c7b2253si928112pgb.584.2022.11.03.05.37.43; Thu, 03 Nov 2022 05:38:03 -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 S231450AbiKCMGe (ORCPT + 97 others); Thu, 3 Nov 2022 08:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiKCMG2 (ORCPT ); Thu, 3 Nov 2022 08:06:28 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA3A312A88 for ; Thu, 3 Nov 2022 05:06:27 -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 9C06D1FB; Thu, 3 Nov 2022 05:06:33 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 974343F703; Thu, 3 Nov 2022 05:06:25 -0700 (PDT) Date: Thu, 3 Nov 2022 12:06:15 +0000 From: Cristian Marussi To: Sudeep Holla Cc: Florian Fainelli , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.quinlan@broadcom.com, Jonathan.Cameron@huawei.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, wleavitt@marvell.com, peter.hilber@opensynergy.com, nicola.mazzucato@arm.com, tarek.el-sherbiny@arm.com, quic_kshivnan@quicinc.com Subject: Re: [PATCH v4 0/11] Introduce a unified API for SCMI Server testing Message-ID: References: <20221019204626.3813043-1-cristian.marussi@arm.com> <20221103112147.rq2v7dwte577kmb4@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221103112147.rq2v7dwte577kmb4@bogus> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Thu, Nov 03, 2022 at 11:21:47AM +0000, Sudeep Holla wrote: > On Fri, Oct 28, 2022 at 07:38:25PM -0700, Florian Fainelli wrote: > > Hi Christian, > > > > On 10/19/2022 1:46 PM, Cristian Marussi wrote: > > [snip] > > > > > In V2 the runtime enable/disable switching capability has been removed > > > (for now) since still not deemed to be stable/reliable enough: as a > > > consequence when SCMI Raw support is compiled in, the regular SCMI stack > > > drivers are now inhibited permanently for that Kernel. > > > > For our platforms (ARCH_BRCMSTB) we would need to have the ability to start > > with the regular SCMI stack to satisfy if nothing else, all clock consumers > > otherwise it makes it fairly challenging for us to boot to a prompt as we > > purposely turn off all unnecessary peripherals to conserve power. We could > > introduce a "full on" mode to remove the clock provider dependency, but I > > suspect others on "real" silicon may suffer from the same short comings. > > > > Fair enough. But if we are doing SCMI firmware testing or conformance via > the $subject proposed way, can these drivers survive if the userspace do > a random or a torture test changing the clock configurations ? Not sure > how to deal with that as the intention here is to do the testing from the > user-space and anything can happen. How do we avoid bring the entire system > down while doing this testing. Can we unbind all the drivers using scmi on > your platform ? I guess no. Let me know. > > > Once user-space is reached, I suppose we could find a way to unbind from all > > SCMI consumers, and/or ensure that runtime PM is disabled, cpufreq is in a > > governor that won't do any active frequency switching etc. > > > > What do you think? > > Yes, Cristian always wanted to support that but I am the one trying to > convince him not to unless there is a strong requirement for it. You seem > to suggest that you have such a requirement, but that just opens loads of > questions and how to we deal with that. Few of them are as stated above, I > need to recall all the conversations I had with Cristian around that and why > handling it may be bit complex. :D ... I really even more like the idea of enabling on demand full coexistence so that I completely delegate to the users to manually deal with possible interferences at runtime and drop any liabilities if someone shoots himself in the foot :P ... jokes apart I'll post today a V5 with a few fixes and and an optional coexistence mode so that Florian can experiment and see how much is feasible to operate in this way by manually unbinding/re-configuring SCMI behaviour at runtime before starting tests and not kill the system on something like ARCH_BRCMSTB platforms. Thanks, Cristian