From mboxrd@z Thu Jan 1 00:00:00 1970 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 A68EA261B8A 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66V5jaJx3014182 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-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4frnuc008y-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-f200.google.com with SMTP id d2e1a72fcca58-84e4ef9a74aso1416157b3a.1 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=k+Hr6jm7l+VSJPMylgSqcsqNXzFxLe4oxCilMT6s9OgMbGtbnyacAMGkKi0Kx0rc5Y cm86jqKFiEle1rV9pAmfoaFK9jl/rejdJFBPNcpqFiHJRU7r0w4YRgozgJG6HbQ0QjBT HlNtZFIHNcKtL3PrS7LQ0rr960T2yolBW5stgytIJScG2rN68/aDjSEjjTgTm+tLdJBo RfjClCGf8YK1AXvu613729aL0zyJY0P/+XG1iL+i6/FLaiM797AcXqRqgtns0fJzxfX6 tNf0MT0aeCx8xbTP1QtDkhyr4D9qQhct3be+db5wVMkB/udBX6Kk6OQEcV9ZWUeythDe vwwQ== X-Forwarded-Encrypted: i=1; AHgh+RqDifWH4bvdGpSK9U637a431gpAMxnF+/qwOj0lWecXVD9IMWhF8XD4DhGOMlQF67h9B+F51XToXc71DwQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yze+zVtNcvhyRhHQdI3EYf1JVLb7VcoYnlSdcrJhS5EF7+u952v GLPQZwmws1IUKSLls4EDTuK908bHqudcbJlypBEfl3ezRVjlMaT8vEAR6xPC8B6sr4FcyltmpLv C70b42rMfaxZAgB6LrJAYzM9nVlXFr1u7gj9o9MlEa7CrvoN4cAHIOKJm3Sm5kFLJobs= X-Gm-Gg: AR+sD10H6ymrPtdX+ifrjAfcW/lsrA3UcAs4zi0tzI8IxPnJDpaejltj/s6ZgMIHhW3 qoO9WaxG7sWhlUq4in32SCPWCyE8hj+TgVh5cpSz1s8lSCquWDO3NQpFqm0rkJxlfCFhvkKLf52 t+07OzEU2/gEmcLhw0aYB3/VDOJLNpwkXARIdJvo8HWt49381R06S8PnlbWulY6xwZnSBG0SSwh MvqaqMs8g+ktRqWijmR4syuB0HAfdNULklaTJX1JpliuBp05TvHQknWYXJGJwC9xt9Bl9qSpCEA zCRf3GhRPwDSuzBP50FdQc7pZDb2xTXn5Kk/jk1JuOAk/dEzVX7nxvy4V2lEaBcNl2ZkroOA2Hx 8F7d3aghSqhm2YxJFigYJujfyt3oHjOLAPo7bmHF5Lw9w0FikV7fEjs/9vWr2OkIjQO71zcfudg v2iEeTD/jcVRmNQg== X-Received: by 2002:a05:6a00:4b4e:b0:845:eadb:821 with SMTP id d2e1a72fcca58-84ed6bb1f27mr583235b3a.14.1785476886244; 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-kernel@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-Proofpoint-GUID: lIUGBZfr4TZy9984a_hULOz09iDCVsBz X-Proofpoint-ORIG-GUID: lIUGBZfr4TZy9984a_hULOz09iDCVsBz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMxMDAzNiBTYWx0ZWRfX7/i5kgZAratH repKbNcT+krs365IqmBqoQUUmC2Z3GOvcZr8BCj+lkYFEidvLVb7Rfsa2v5QhOJmtcRySJ+XBNO oqeu+AnhleiznJ2ZiFMbvVICQOCFRPp4UnFzzUIe8YIeGfmuyGl/GyIa8hw/bWkqKkcPNU6HrSp XnpPpff2Z5oKGE45zuBX0SQ1X4f0ID71RSWA4jMFFaRssRdryQPFCJsQ4cI93chkTGXu/J6cpPI K22JBGQvv34hO60N6qBD9wNgp1Mt6IwW2npyubvjBCe8+cbwpcr9Br7KayZbZ2r6DE0iE4KcwsY Pm4P5WVSLbaE2gs7KotkOE7ZJ8bZpD1+8ldxt6hSyzJYJPHGwmJC1nj3ezrmlAQo8zGAdi8pw77 bxAeZFT/lm5+ApjiHlBMkxLy7ZerrCjglij8Y4dVcqq0zstPanEPNf/rJd9gWqL90M4KJbL9j9x TBXR5uftfcThogXfCGg== X-Authority-Analysis: v=2.4 cv=T5W8ifKQ c=1 sm=1 tr=0 ts=6a6c3716 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=4dpkOlLZqYEDTin6f6AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMxMDAzNiBTYWx0ZWRfXwBezDsUCJsn5 AVZrq5r0ptV2k+L8KuhcDxiopU1IZTS5d7tOnQGd/H0MK1u8Pz4clWpooYloOr9mQeL2/LJn48s nvbZwOdAM6I6rJzllOJKzF9TC8UvCAk= 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 lowpriorityscore=0 impostorscore=0 spamscore=0 adultscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 bulkscore=0 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607310036 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