Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp260982lqh; Thu, 28 Mar 2024 00:42:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmlzpHNjmUUivDqVmBSAUV+Jc6BA3qCF6NtR9oc4bfLiY/rsXpv0Mjy8GnLpbajwQTS3kSrn1kJ7EYTB3EmLKUQ01cuJlo+93Mswk1Aw== X-Google-Smtp-Source: AGHT+IHfBvPZWNX4mFzHkjOBHef7Zaq8NLmgcubdg78PGga4A6ed/5UZJPZ/KCg9GpyhKRT/Aefx X-Received: by 2002:a17:90a:4586:b0:29f:ed63:9009 with SMTP id v6-20020a17090a458600b0029fed639009mr1916921pjg.10.1711611744400; Thu, 28 Mar 2024 00:42:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711611744; cv=pass; d=google.com; s=arc-20160816; b=c83xYpZMqPwuIEXyssJrj7x8oHViZqFtAAsHC6C+JTM5h0eNUcPbexcm57hqW3AfdB bvHv8o7DuuhhwCCL0GC8/kGt7kaCHz7GzAZGTd6/REI7pO613jLYxo6HIWYYCDBmkAvI KRnx6rbzpXSYDKpHJXQed/nIXDujMM/6A6DcxT1+PZJjxQenG6QjktkbzJkBUTNqpESE kmm9AzkdtlRKdihaP5nbxtOKUJxpmQzYJIdPqxcR7wKsYb69o1unOqTNFISjpaIVlC4v OnKLWGtVhzx6rhvMWb1r/ygph1AmrqwlQWF4IWLxzR01t1IVG3V3kOl0oauLnLcRqkT5 Pdwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=j5/0TgvZ9oj4MRbW5a+JRH6ZrJo2P0+/KiPu6FyC9iA=; fh=S1FWNMyHQafB8jSVFMYxufENq6nTcLKph3ifanCJdss=; b=tAMRo87TVF//wgArJCODcpoiopGZfW0ZzaxyMlkQ23/b815ikeQQqc4/74TNBzbji2 7J6cIXOlungK1MULCArOVPSw/G6O/S2GXzBkmYEbEV6OawHAWJKXoftbRpoO9d5dXWlT iK1uKyJvEGzN1SmiEPPC/pqR7VAa2U25FjdnOA8KoGpx75gHG/d3j35j74DMMQRr6vGz Vg9V7f6X9InA2UL/wpzSZXAPf9eL3L6P/8Gqa4Bn/MfRMkEQY1DGx5KG0iaraB5ovDcx fIvCRCANdEZuuWJaqg0YobXR2wgalVDjsB58FP0Gs9HWoKmgpQ62msNr8IZ0b8DieqXn 6Zag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PFABM+hT; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-122517-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ie7-20020a17090b400700b0029ac04ec792si3092533pjb.138.2024.03.28.00.42.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:42:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122517-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PFABM+hT; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-122517-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F0BC8297AE2 for ; Thu, 28 Mar 2024 07:42:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2F4B53E11; Thu, 28 Mar 2024 07:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="PFABM+hT" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7438539FC6; Thu, 28 Mar 2024 07:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711611729; cv=none; b=gq+CIyHQouuIti9SyumavGeKCk7nJCn4XjKN+a7MKLMaWB8+t4FU22RUBEjwQ04I7BSlXp8dmOnYG5EK5JEhPdVOZNGVaaZ4bTI3vkm/dswX+XKfM4GvU8r36oZDsOM+mgtkbruZmo7k9XWZLFtd4CmfAM0KGlBdvJfZtbEly3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711611729; c=relaxed/simple; bh=tlBx7oOqUrm6s7zx5qxSN4ESXP0GXtbpOII01LQ6YoU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=uvMkYkyLnJptT+i1mu0kwS1rxkSoj+Pg4i/ZhtQPj4BTADBfhv6rrcV6OYaXxerDgWTb0B4916MNfCulaMXqMJ+oCwaPSZdgs1vK/ed7wjw4oQpGTaOF5GwoPZQCuPvppEafoegDGhwLF/6uxtzN12MBRoBIdpYgEl+/MyK9Nfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=PFABM+hT; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42S3U83w010787; Thu, 28 Mar 2024 07:41:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=j5/0Tgv Z9oj4MRbW5a+JRH6ZrJo2P0+/KiPu6FyC9iA=; b=PFABM+hT5Q9ndqJJZaUHFdv U3htXfXbzxPCdKfwnWUBTfQg9Sxtzx59sXcjQWCNVp16nNanUDPj+4OU3hf9yoFQ uTa8GDjZ/ZiyXwOWqzw2D0BQRTK2IuIKlFtRRvAKwxwqGKf3VinJ/QITEwVyG31u +Jl5euwjKLOeBNef3T8LkegKWTIsr9dMA9fyAf4JnHcpOMcN24GANxULFx4IQMlH VeTc+u9OoXlktEiBK3yhu6pwAi2E8D9Y6IYippziRQgFbzJYh+w1m2unzEa5iTOx eiIcFfUVTyzdE2Rms3c/EaRa+INWKfMyY5hkU7VwbUkYltVBSECLHNN+fi0G3YA= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4u20jeby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 07:41:52 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42S7foO7027051 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 07:41:50 GMT Received: from hu-sibis-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 28 Mar 2024 00:41:46 -0700 From: Sibi Sankar To: , , , , , , , CC: , , , , , Sibi Sankar Subject: [PATCH V4 0/2] firmware: arm_scmi: Register and handle limits change notification Date: Thu, 28 Mar 2024 13:11:29 +0530 Message-ID: <20240328074131.2839871-1-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: MfLWL6HP5CzjxEvD9iCv1dDq1Ldn5LZG X-Proofpoint-GUID: MfLWL6HP5CzjxEvD9iCv1dDq1Ldn5LZG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-28_06,2024-03-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=799 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403280048 This series registers for scmi limits change notifications to determine the throttled frequency and apply HW pressure. V4: * Use EXPORT_SYMBOL_GPL instead. [Trilok] * Use a interim variable to show the khz calc. [Lukasz] * Use driver_data to pass on the handle and scmi_dev instead of using global variables. Dropped Lukasz's Rb due to adding these minor changes. V3: * Sanitize range_max received from the notifier. [Pierre] * Drop patches 1/2 from v2. [Cristian] * Update commit message in patch 2. V2: * Rename opp_xlate -> freq_xlate [Viresh] * Export cpufreq_update_pressure and use it directly [Lukasz] Depends on: HW pressure v6: https://patchwork.kernel.org/project/linux-arm-msm/cover/20240326091616.3696851-1-vincent.guittot@linaro.org/ Sibi Sankar (2): cpufreq: Export cpufreq_update_pressure cpufreq: scmi: Register for limit change notifications drivers/cpufreq/cpufreq.c | 3 ++- drivers/cpufreq/scmi-cpufreq.c | 44 ++++++++++++++++++++++++++++++++++ include/linux/cpufreq.h | 2 ++ 3 files changed, 48 insertions(+), 1 deletion(-) -- 2.34.1