Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 A69F532BF4B for ; Fri, 31 Jul 2026 05:48:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785476888; cv=none; b=EcH9yvNMf+oBH0R2gTUmnBtEKQYV0c5xh+ZPmBqLiJ/W5nWTsbjbp1p+XVkINQ3a/O2SSPHFoBlWTiZus/2jc0z2qBRzFIgVfKkYe/wBMMtkUuDIxN7tpiYSp3bs8HUXgchwxobB6dZ1zcmiXkhwa7MiemOFNm2GuMzvF5/AtJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785476888; c=relaxed/simple; bh=X9bI3KryGBVoO0zgYTMvyGaCEVM+CP6pWzGHPchLeoc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JHgYZmSnXwZXBqKgK5q4Nh0AnTyGKkMH3+2sZCrQfe7Sgj4t9ZjUR8MWZqlnQTMqgLNfvYN5z4LlQEp3usbocMshFnthXxiEBGLHHu39UimUiKPVmZH6D2bBtiPU0b7OPz6OoKceN2XgCrVqDSkVVcS/p87i73fT98mV3nFrR4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=R59iY9UA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Jv/bb6ei; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="R59iY9UA"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Jv/bb6ei" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66V5HNEs3235683 for ; Fri, 31 Jul 2026 05:48:07 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= JxBG5UieYyr/vXdsG/LnJem5I19aPI+KoHvdzUbIAeM=; b=R59iY9UAA6LL0jeX vPS9dAgtordx7E3wO9PVGdhIaaSRdfGOdMIS4Q391hFnNPL/CetEL4u06Co8xIJN vcImJarTdnVzs9vlj+bRZWEOd5LMqj4dqksT+SCMOWXG8IOESVjrYIo2qT7YJKgu J90yRHjTTLn6gbt8PPAjT/AT6vLaCcic3RcSFia1rR3SIMZr/Ak6w/vZmvtmhgDv fb11zOwvhzIuqbIrqDFSgTVKTwJK1JYEy9ptw0smiwr++AwRW7l8bxhy1InCC9Zw SVElY2uLLrN8CxnW4l1aCRvWZgIj1zsN0eN+tXSaMFeZInIFcGGaKS1a9XBWK6PD VpjfKQ== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4frne5036u-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 31 Jul 2026 05:48:06 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-8484b9fb055so1904173b3a.0 for ; Thu, 30 Jul 2026 22:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785476886; x=1786081686; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JxBG5UieYyr/vXdsG/LnJem5I19aPI+KoHvdzUbIAeM=; b=Jv/bb6eiu27MxcmuuOx95myZmN2CmQljZTnWNAvj1KiqT5RzJTFUzh/nG/i3zg8ibv KPEA1ESQD7BdJE0XL2v1au9xYGNWdVAGhavoO2DfB3srhu8r5uOeeGC2u7EXL49MGevu qwSmdrTeHk+eJWagZvuy/5gaa8LaaUxQ7sjvDFKL9BLtD6pXHAXCdTYumlIX8ifqEH23 KYNbQljwr4laj8gHyp/uilgbpHzycK5eX2f+5DLVJ5U20Mloc6aRziwXmsabzQDxz/+e Mg1+2pHlloa0bbGuH3U7k4IA9JizXjCdT2TB32Y56HqoXmLQOzHAGtunRqnCPEe5PqhQ St+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785476886; x=1786081686; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JxBG5UieYyr/vXdsG/LnJem5I19aPI+KoHvdzUbIAeM=; b=pFVRCEcqCktK1HnavE7jygn353vsciTUCp74H5LVQlCDKDs9Wnrok0yoVehmpXN/L4 F68pfyBU7+P2qkj2TJJRzcUBnq+RGKL6DZc96N4GdW7GTLhOZiuxW2J16+89D/Cvlijq xz+rvoVpjqt0ah2r9e+RsjwhawY2bhKls8ONWX3h0KjbybyXSVg0tNGV4N1Yel+WFQ4V zz9YE3D0ejZaRdSR1vD/o7W0+4r8/AlDRCNNV5JousXe9L/+HviqchSsJn1U20otqTgF y0+z90SOXCz72VK/bMGpTNCL14hEhw5be/p0yaUIVL2V7P+VC+QGkEPp5vy5dSsJztOg I76A== X-Gm-Message-State: AOJu0YwsmpzfBtAmUW668VzgJsIBQ33oKJvEuKPcZGjS9sLGnG8BMbVh SzkljnCBgWsKpiQPnaedRr2vMsz6vn7+SEv8Hr9VQjLxI7izL9PtizkdT3eDcg3F9T/14BDiMgD SzrEz8GUGqRpoHrdWJQ3s2yyzJ5JR07WwP/r77mq5V/uSXmKu4Ib6mLJRHyN1Oh7XZfDo X-Gm-Gg: AR+sD10wL61aPqHo9pSJYQDinqhW1g7irt3jiIxHL0frJsJVsPwzOzp017Q7I9u8J8e 2giY00muWmPSleCRT9DwKzkzk1UAfotKdJDlVV/UpRxc1pCXI1WpNXn4ojJDDhQdRRO+yYNfcwL KdzDapIFRD+hGyVJvzJ/Q29vNfojDh6ia8EzaUcq38NiskZYD2Xm6Xt82YAnpz/PVaSBbRubKBt UVsl0qwH2NwNZEYtTf1S3qoCyePxCH5bggW4NKrampDsZ4A8E7b25luQNygekubnHUm/52bPUhd Rryg9dgT/5LpCj4EMnCZVa6m6Czluj7+Vqg9ePoJkxLJQmY3a1KK9gjVgEv+ZyEMLu29q7aEaf1 B6HCqvGA4HibXjDxjh1EOvhQrLDNrQr51LrPlblNHl5t8t9pILLodzD6B9G/HdApkQt6aHjdCvi 9HqYah2YjBbiuoGg== X-Received: by 2002:a05:6a00:4b4e:b0:845:eadb:821 with SMTP id d2e1a72fcca58-84ed6bb1f27mr583238b3a.14.1785476886250; Thu, 30 Jul 2026 22:48:06 -0700 (PDT) X-Received: by 2002:a05:6a00:4b4e:b0:845:eadb:821 with SMTP id d2e1a72fcca58-84ed6bb1f27mr583219b3a.14.1785476885870; Thu, 30 Jul 2026 22:48:05 -0700 (PDT) Received: from [10.190.200.192] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84ed5782ea8sm309379b3a.1.2026.07.30.22.48.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2026 22:48:05 -0700 (PDT) Message-ID: Date: Fri, 31 Jul 2026 11:17:59 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/8] platform: arm64: qcom-hamoa-ec: Add SoC junction temperature reporting To: Konrad Dybcio , Sibi Sankar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org References: <20260728-ec_add_more_commands-v1-0-771abd65ee1a@oss.qualcomm.com> <20260728-ec_add_more_commands-v1-2-771abd65ee1a@oss.qualcomm.com> <94081897-2e6a-4c8f-bd95-1961ca843478@oss.qualcomm.com> <95133f63-c7fa-4c68-9db0-2123cf754f50@oss.qualcomm.com> <9d9eaae1-97e0-492f-954d-d683f089ef78@oss.qualcomm.com> Content-Language: en-US From: Anvesh Jain P In-Reply-To: <9d9eaae1-97e0-492f-954d-d683f089ef78@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=ftzsol4f c=1 sm=1 tr=0 ts=6a6c3716 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=4dpkOlLZqYEDTin6f6AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMxMDAzNyBTYWx0ZWRfX4F0r2zRMsQyt LrlBxTMGf3HsCdneJQzeoFHjR0fWTZj5D/5+RFUsZkEMWRAtTtxAbmxYXO+XubR6y+gWreqwHRA zTh5UQFxjeWlf+AYOfhrWMhBt0Nj7yw= X-Proofpoint-ORIG-GUID: 2NZnPMemuDih3chtxQf5G6WRpsHMWNQT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMxMDAzNyBTYWx0ZWRfX87AQNbs6ymEp yZ8CuyqGOokWapoG08kEiYRNkDJ7/vQwhzJgVNSYnpdPnQzk+lt4J9KIH06OpXZbnpY1FzYn4ey YpRkSrhl36jGCAXEO+YfbYs389M30sknfU82cfJmYOu94s4OWrJBA+Sa3icU9b7GZm+41Ky09GI /LB5j4998PJyBIVCVJFGMLsn7OpW5iosb32FVJD+mj6aUJ4fo5jLTYgAJP3El15nnoBm5y/xNNs V/EyJk5ZO+c/T+MKFYWmu2JeztNhka+t3/VaxRaP7BTsgmXGxrAbHIqkb3TPQoBifyhD7jWxDJi XlpqQQ4ix5SE3XDjzjyTBP+De1GpvpcUfHXRGbk+pUUivawc+f46P7u+SwPYdKIbnD1hAle5Zma Z+gndZ2kv/U1qokArsRFrZgkdqBMWNRbmoEq2URLKh1WTwrGUZayWeNwC2pIER9yDaP9smE3mFD HJq5QtIC7BKuZ4NOROw== X-Proofpoint-GUID: 2NZnPMemuDih3chtxQf5G6WRpsHMWNQT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-31_02,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607310037 On 7/30/2026 10:34 PM, Konrad Dybcio wrote: > On 7/29/26 3:03 PM, Anvesh Jain P wrote: >> >> >> On 7/29/2026 4:29 PM, Konrad Dybcio wrote: >>> On 7/28/26 7:44 PM, Anvesh Jain P wrote: >>>> Add the EC command definitions and handler function for reporting the >>>> SoC junction temperature (Tj) to the EC. >>>> >>>> Discover the platform's thermal sensor to zone mapping via the >>>> qcom,tsens device tree property, average the junction temperatures >>>> across the mapped zones, and periodically report the result to the EC >>>> over SMBus using a delayed work item. Serialize this and the existing >>>> EC command sequences (firmware version read, thermal capability read, >>>> SCI event control, and the SCI IRQ handler) under a new io_lock mutex, >>>> since the delayed work item now runs concurrently with those paths. >>>> >>>> Re-arm the periodic report on resume and cancel it on suspend to avoid >>>> racing with the modern standby transition. >>>> --- > > [...] > >> Agreed, will split the devm_add_action_or_reset() conversion into its >> own commit — it's an independent correctness fix (also disables SCI >> events on partial probe failure, not just on remove()), unrelated to SoC >> Tj reporting. >> >> On the -13 during suspend/resume: that looks like the SCI IRQ firing (or >> its threaded handler still running) while the I2C SE resources are down >> for suspend. Will dig into whether the IRQ needs to be quiesced/disabled >> around suspend/resume here and follow up. > > I hope I'm misjudging here, but if I'm going to talk to your agent > instead of you, this is pointless.. > > Konrad I do use tools to help format and reword replies faster, but the inputs and technical decisions here are all mine. -- Best Regards, Anvesh