From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795564792; b=kcd00kBE1WUd2WJJ7yYaULO3BdmFnkg9B/BIIWr9QlKFYiJ2cdVjwKlUX/4RhvzzYJkk XHZJQesqJ+g+L07HCZufqcbfR2L8EF4xbEXpGbphETenCdKsekE1P4B1KX/xm76sXxG1d Dpt00wLEnQCCpOpvXoh8SmA08z2ei1AKzph4+6sCrKtB+oFDppcYRSvfkbPrN6DCgsZN0 iRvUHP0mBgDIgEo3Bw6ZSmrsiuukE9KsUw0ZCZwMmxnvRbHJJf1llOxqpcCSAHzDHxZqC O9w82/NrwvY9JB69WYsiElkTNREq21sEEh8T3cxnGzllDcBgXCxVszv1QPvTeTMOZmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795564792; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=JbGMGU3Ni5klOILvUXiLZ0e6e10FjAtQOC+P8hG45Jo=; b=Y6xgm8vwJxTwIiUCGAj1Ui96f5tkf9XgFsU/ycRvQEoisS27XpMdF88syVncrdAx7JBx llfo2bR8JU9KmSQDsu9OQxvo3+MpXTyGasbhEWoeoILYYhfYyOPfNIsLdU5p4iztgy+p1 GpNWqxe1jhl4CS4IWVfyU2yRk0j1jSwFkQDdOOclnaHZ7NjiCczOilPD2GuLjLliIlCQ6 8qyv5Smojgxv+mdS/hIQUbrEPEyYGSmsn30rGLtery5Knib9Vm7lFy2GMUPJbymUIb2L1 Y8+oJIRcKsJZfgjoUtbp2x10jzHiPrsJ6Ag0EaWooAnBmtNK4ZhpS8NlYtdazZISYhQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=fvTDaTI0; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=L1wzSz+m; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BB8A606A323 for ; Tue, 24 Nov 2026 23:59:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1BB8A606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=fvTDaTI0; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=L1wzSz+m Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOMbGo7031333 for ; Tue, 24 Nov 2026 23:59:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JbGMGU3Ni5klOILvUXiLZ0e6e10FjAtQOC+P8hG45Jo=; b=fvTDaTI04iPBE2tG fT2dwxkTu1GMDapg5uyWy8BRGAZHsY0cNlcPM44To5jMPkYrRdBpEUqcu8bSIsEf 9rLlSv3gScNWirlesMvhM9T4LRVJWij4ad5BTLcH0NO6WLRtHiL+uANnJV+dan3n 5KjKUEEJZ+C3Im2ixhvi4jaRaZ0HJhtFTkESP1MM0erMHPhycuqBKlutRxM+xr1n AJ4Lj/ZbsFygB5XZ05EXlGtJhWQLZgBSKa8qrDtDYLwk1HeJfY1pWHa71i0j9XOU DEm8/9PzJBLysnAyalWivhojUx54wvDnIJ1yF7OrctOXRkA6geGXAPpufSFWBeFk bbh7qA== Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5ad7ttq9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 23:59:50 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-386a65fca25so3957731eec.0 for ; Tue, 24 Nov 2026 15:59:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795564790; x=1796169590; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=JbGMGU3Ni5klOILvUXiLZ0e6e10FjAtQOC+P8hG45Jo=; b=L1wzSz+mxj7v/PUNvzFmam5Moij5EPD27ScRLRSDcdHM8ymQpWRy71KTiuj++t7brb 7Ffnc7/Wu17vmvJ3f28s34D9sTRSgAZLJr0x5UmDUjCbiM1sVL005FaVxci5gG1jz6WU fkE32DyvLNyLWgtP/SmcXrNnr8S0vCgwGgl0hUUQNCMoa0xVlmEjMbGCDbP6PXKO6GXo yzbU5jXEazksORzdnbFK4sbxTW3hmCL2Toa0Uz2OygSbFDYj2/c938lavtf6UledxQhV YRF6NAn0Sx+C3FZ5+XF03qmGwd7AIYXzDZd0sSOZKK9WPg1Iyz4X8s5iua6iwbdTEp08 uZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795564790; x=1796169590; h=content-transfer-encoding:content-type:mime-version:organization :references:in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JbGMGU3Ni5klOILvUXiLZ0e6e10FjAtQOC+P8hG45Jo=; b=zQh/vd5uGV2V6kXSLvUCg4BxPiAS/4QEs/3Vuj270QX0EIfyWduL5v71kJrbOFDNOa 5gsHX/uPK9lHKlZ/QKeERje5GpstMKUY7C6IZKP8jR5MvC+tw84HERynM/yiugXjx7SW 7qwSu/3fFhnsXiLcsHxSt62dKxHKl8O4WlTiCaHEuCVPSZIhKYvN+jixvafyKfEaRpos NodKuOv+eBxtTRcK8UWpqwKbp5hxwQxePiLTPB8vLpXYEpFa1fLO3U5epg/wfC0m7H5d kk26EIwRZ8XE2ZH5G7fphSEimxEPKfnSwoAF1cY5DpkgzglB1B3NcYTIwIYIMHr98jip hB/A== X-Forwarded-Encrypted: i=1; AL+hErHkLbgdwXDykR1tTgXbwhkIo0mTLNmNhEtX9SVPo6kfumlCZp93NoxmlizgyekNRTai+xOWOliCr3g=@vger.kernel.org X-Gm-Message-State: APuU4Z/8auX9Q6Kh8C11D5fA0n9y3p4+CDwgPVqdXbGe7jtPR4eyxQB/ p45YX86jndGDq8gyf+yw83EezOI6rUbLF1mO9p4qY/tpME5HOqBc+N1JA9ESyC/i+85z80tyYL2 4zqJ3u6sU2dkiAv07gr4nfzWvFMklgQ4RQ1/yRH/Tb1aW8pNaIW200g9xBuEzHRg= X-Gm-Gg: AZFdTZdkXFsd83EVU1ggkv4As0c9vT6+N7va84QOEz+ZDg78oahFutOb9JdPnkmICXe at3Orjhol4wnozbxdMpwWA6Uy8c75nSpKewqw9XuQoSxb3eu1Vnc3pTXqcBqs4JZ8+q1GwsbbVP r1iFdmP2Xn6Q1Umiaq7r69B6Ory8WJQPK3otOjBQTgcI5jwjAn1eJLpxVHRi0CLkqSkE5ylfB4z XUHo0Q8jCXeeV/+QqOXy9WtiuCqY/7rwA6TnM70TIT76QGWHhbqfOdkCA2QA4tERqlaJBjbyS+n w6c89j1n4cbOWhT1ZDrW/bz6VAonflltMscY8poGliUmbbh6C6XekecqSvMIXVDu2nwWuKLDQzF FOR/vnKa9zqz6/7/f4ziqOsFl7XWwZR048vTtqFqWEc+USSrZCDGAXttp0L4DDcAf2HEJ1SfB5W W5peAr651zrJenDC5IOl/u4vMcpzU= X-Received: by 2002:a05:7301:2108:b0:386:b99:8ff9 with SMTP id 5a478bee46e88-3860b999354mr14495400eec.40.1795564789583; Tue, 24 Nov 2026 15:59:49 -0800 (PST) X-Received: by 2002:a05:7301:2108:b0:386:b99:8ff9 with SMTP id 5a478bee46e88-3860b999354mr14495349eec.40.1795564788926; Tue, 24 Nov 2026 15:59:48 -0800 (PST) Received: from localhost (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386b9bdafb5sm15214484eec.9.2026.11.24.15.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 15:59:48 -0800 (PST) Date: Tue, 24 Nov 2026 15:59:40 -0800 From: Jonathan Cameron To: Cristian Marussi Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org, linux-doc@vger.kernel.org, sudeep.holla@kernel.org, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, etienne.carriere@st.com, peng.fan@oss.nxp.com, michal.simek@amd.com, d-gole@ti.com, elif.topuz@arm.com, lukasz.luba@arm.com, philip.radford@arm.com, david@kernel.org, souvik.chakravarty@arm.com, leitao@kernel.org, kas@kernel.org, puranjay@kernel.org, usama.arif@linux.dev, kernel-team@meta.com Subject: Re: [PATCH v17 11/34] firmware: arm_scmi: Add Telemetry basic attributes enumeration Message-ID: <20261124155940.0000336d@oss.qualcomm.com> In-Reply-To: <20261124194841.1147072-12-cristian.marussi@arm.com> References: <20261124194841.1147072-1-cristian.marussi@arm.com> <20261124194841.1147072-12-cristian.marussi@arm.com> Organization: Qualcomm X-Mailer: Claws Mail 4.4.0 (GTK 3.24.51; x86_64-w64-mingw32) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA5NCBTYWx0ZWRfXy+BaqriZwFfb tPiV96FUFzr1rBUFLBQ26kR1EkAV8Ee9LOxl5C3YWFstdeFwVLlGgVeTw3lMHv50Wjrxf7WFZNi 1YBJ2CdatUyTo9WPZBSoNqYLN3gOaKY= X-Authority-Analysis: v=2.4 cv=cI51IVeN c=1 sm=1 tr=0 ts=6b0624f6 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=7CQSdrXTAAAA:8 a=AXIch-7a5tO8ZeyO9HQA:9 a=CjuIK1q_8ugA:10 a=bBxd6f-gb0O0v-kibOvt:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA5NCBTYWx0ZWRfX21Gq3JB4+qr1 myS0Wgs4sAaUlgxOCEW6ks8HmpKvPxX+ubVBie1JygB7uYBDJrhM/GW6vb15xJe9C/o88UsLJ0l kIkCPS56gplz4sxSq/ivxQ4oSmLo4TPmXIFfLvTgIeI699tny80kiziDk9Ogo4910mc3T3PmISR fOzaqr2XzhnAmW4EcaQBWxSSPQKqmgz8jB2IkvqC5ZL8VNHczJbgT8zKMcSG/4xIjSHop3US5E7 ydkNe/OlGpqDIpCZX38C7vg3JbruFuFrlZpy6tYs4+8C4qHSa9Kup4NkY5M/GY9hgoGReDKWVW+ RHW7qTnvoXpdL3bV3C+ze0L6sJE8wIhK6IHYtyS3ZeKj1SWQRTZQTq2jxBE5yNAXkZXMOG18OUf QJEtG9ejBHTiauYpnbgLiZm8DUlIfJvsL79iKZjQAdGT62Z+uZ1rPSb89eF0V9KYGN9MmMqps7L /WUdhuenu5jz7694a7g== X-Proofpoint-ORIG-GUID: _eDyccZowtAWG5fdyaV_ADqmTSCxddVV X-Proofpoint-GUID: _eDyccZowtAWG5fdyaV_ADqmTSCxddVV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_06,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 suspectscore=0 clxscore=1015 impostorscore=0 spamscore=0 adultscore=0 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240094 On Tue, 24 Nov 2026 19:48:17 +0000 Cristian Marussi wrote: > Add SCMIv4.0 Telemetry basic support for minimal initialization and > protocol attributes enumeration: expose telemetry instance descriptor > via a simple information retrieval protocol operation. > > Signed-off-by: Cristian Marussi > --- > v15 --> v16 > - ignore groups Partly... Need to do a lot more ignoring to make this true and consistent. There are a few things in here, but key is we need the whole framework to be as unaware of groups as possible. At least up to the userspace interface layer where we may need to ensure extensibility. Jonathan > diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h > index 3f7cc35eb861..f076ce5601cf 100644 > --- a/include/linux/scmi_protocol.h > +++ b/include/linux/scmi_protocol.h > @@ -2,17 +2,19 @@ > /* > * SCMI Message Protocol driver header > * > - * Copyright (C) 2018-2021 ARM Ltd. > + * Copyright (C) 2018-2026 ARM Ltd. > */ > > #ifndef _LINUX_SCMI_PROTOCOL_H > #define _LINUX_SCMI_PROTOCOL_H > > #include > +#include > #include > #include > #include > #include > +#include > > #define SCMI_MAX_STR_SIZE 64 > #define SCMI_SHORT_NAME_MAX_SIZE 16 > @@ -828,6 +830,35 @@ struct scmi_pinctrl_proto_ops { > int (*pin_free)(const struct scmi_protocol_handle *ph, u32 pin); > }; > > +struct scmi_telemetry_base_info { > + unsigned int version; > + uuid_t primary_revision; > + unsigned int num_des; > + unsigned int num_groups; My gut instinct would be to introduce this only in set 2 that adds groups controls. The best form of no groups is no reference to them at all except in userspace ABI where you stub them out for now. > + unsigned int num_intervals; > + unsigned int num_shmtis; Ideally grow this as you add support for things. num_intervals and num_shmtis aren't used yet. > +}; > + > +struct scmi_telemetry_info { > + bool single_read_support; > + bool continuous_update_support; > + bool per_group_config_support; Logically without group support we don't care. I'm less bothered though on whether you rip out a simple support bit but if we are going for clean separation this would go as well. > + bool reset_support; > + bool fc_support; > + struct scmi_telemetry_base_info base; > +}; > + > +/** > + * struct scmi_telemetry_proto_ops - represents the various operations provided > + * by SCMI Telemetry Protocol > + * > + * @info_get: get the general Telemetry information. > + */ > +struct scmi_telemetry_proto_ops { > + const struct scmi_telemetry_info *(*info_get) > + (const struct scmi_protocol_handle *ph); > +}; > + > /** > * struct scmi_notify_ops - represents notifications' operations provided by > * SCMI core