Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1350790rwi; Thu, 3 Nov 2022 04:24:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5S71zQdd8YstxmVdhr53UiSvE6V48vtzNX8vX+cQ3FnjGNWhKmjqbxS0EQk+2PFfWHW+zI X-Received: by 2002:a63:18f:0:b0:43c:24d2:c0f7 with SMTP id 137-20020a63018f000000b0043c24d2c0f7mr25783959pgb.470.1667474676499; Thu, 03 Nov 2022 04:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667474676; cv=none; d=google.com; s=arc-20160816; b=B0Zn8xJvIcycbeBcifXtu8wWioEN6+z6X5gxzLkg1HtR7am9iX4ELfg6iI1xSfSw7X TY7LkI3UbrtOV7S/72CHBd38IeLjFBYOhXAy3BtVjoLRHtj1kW2ssub+6zWKPZ7+SUf6 rCwRYz2eWYEp6NyHpNRon4ka7kjVQFsCYknr64PqPtZGh4G5gDgUR/Smb7A9MA1FVSSk MCo4mYvrNG1fUco3YJ4pHm/HEB6UHVuH2pROhlQRdWT7p/y+9h7c8UqpnsbmqV7bjJbE 7Go7DkhsJGffdx5BsxDCXHYaiSo4AXAVnNSzUGKPqG/L5c6fFPrM8XWVcp/sQLUwtZku /sEw== 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=MLiwW4m5kVj4Cy+WA0+elk9ggvpnNv7DK6fAboeWf44=; b=V9lZn6GAWU9sic7+jC+vGfIkAOBmFFsFdZNTCu+htJvQpxZkS1cbhIFPrpFnOKgVhR 67YCAKCMfm9HIRa6vN6oP8PaHD3sD+EfZxc4hRytrigWtlGn6rGd8BT31bqExBq+MqbC QZtit6ExNr0uMWpESxDG7zBhPBzK0aonmCE7pffPOH/blYoTVVk+bcIJKPnIwdgA2X0w zcVgrrrVTnbto9y6/c71UVNNGlDNfaN0e2BbcOjT9FMt0CP+WZ1eVV9b970J9LBkglOM VNwkdxMu5JUmBO0SuBtr2xMjvyNaBGwyvxvX8Xu3UDuWuF9zifs06sTWCHzQQjnzh5ns k0dg== 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 e18-20020a170903241200b0016d7639681dsi414348plo.493.2022.11.03.04.24.24; Thu, 03 Nov 2022 04:24:36 -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 S230526AbiKCKYw (ORCPT + 97 others); Thu, 3 Nov 2022 06:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiKCKYu (ORCPT ); Thu, 3 Nov 2022 06:24:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCC14BCB3; Thu, 3 Nov 2022 03:24:48 -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 59E771FB; Thu, 3 Nov 2022 03:24:54 -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 66E773F5A1; Thu, 3 Nov 2022 03:24:46 -0700 (PDT) Date: Thu, 3 Nov 2022 10:24:44 +0000 From: Sudeep Holla To: Sibi Sankar Cc: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, cristian.marussi@arm.com, agross@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, quic_avajid@quicinc.com, Souvik.Chakravarty@arm.com, Sudeep Holla Subject: Re: [RFC 2/2] firmware: arm_scmi: Add SCMI QTI Memlat vendor protocol Message-ID: <20221103102444.c5ngcxupohwdzntf@bogus> References: <1667451512-9655-1-git-send-email-quic_sibis@quicinc.com> <1667451512-9655-3-git-send-email-quic_sibis@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1667451512-9655-3-git-send-email-quic_sibis@quicinc.com> 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 10:28:32AM +0530, Sibi Sankar wrote: > Add support for the SCMI QTI memlat (memory latency) vendor protocol. > The QTI memlat vendor protocol takes in several tuneables including the > IPM ratio (Instructions Per Miss), bus bandwidth requirements and PMU > maps to enable frequency scaling of various buses (L3/LLCC/DDR) performed > by the memory latency governor running on the CPUSS Control Processor. > > Signed-off-by: Sibi Sankar > --- > drivers/firmware/arm_scmi/Kconfig | 10 + > drivers/firmware/arm_scmi/Makefile | 1 + > drivers/firmware/arm_scmi/qcom_memlat_vendor.c | 269 +++++++++++++++++++++++++ > include/linux/scmi_protocol.h | 36 ++++ > 4 files changed, 316 insertions(+) > create mode 100644 drivers/firmware/arm_scmi/qcom_memlat_vendor.c > > diff --git a/drivers/firmware/arm_scmi/Kconfig b/drivers/firmware/arm_scmi/Kconfig > index a14f65444b35..814a3fc37dc1 100644 > --- a/drivers/firmware/arm_scmi/Kconfig > +++ b/drivers/firmware/arm_scmi/Kconfig > @@ -136,6 +136,16 @@ config ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE > > endif #ARM_SCMI_PROTOCOL > > +config QTI_SCMI_MEMLAT_PROTOCOL > + tristate "Qualcomm Technologies, Inc. SCMI MEMLAT vendor Protocol" > + depends on ARM_SCMI_PROTOCOL && QCOM_CPUCP_MBOX If you have set the transport correctly, there should be no need for any such dependency. > + help > + The SCMI QTI memlat vendor protocol adds support for the frequency > + scaling of buses (L3/LLCC/DDR) by the QTI HW memlat governor running > + on the CPUSS Control Processor (CPUCP). > + > + Say Y here if you want to build this driver. > + I don't think it is scalable to have a config option for each vendor+protocol Kconfig. IMO just one config for all qcom vendor protocol please. -- Regards, Sudeep