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 E946E39E18F for ; Thu, 30 Jul 2026 17:04:12 +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=1785431054; cv=none; b=TbBwMnNGeWk4ARPzTxH4NUggRGIFPKuWWmLzaScWfBNYFPMOZjjWEiIbjaAJzpauvNmUkcuPr6YLFgdy3rH9XF/5IR4TjL5gshbVXWXvm9lK3AIfp0PbbofNGPca5OeDjIMoRhV0HeqY8oXis5r8U+p/XpeXdiwXWAv5XCEcO6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785431054; c=relaxed/simple; bh=w4nxZ4t9jToYcjWqK3dqjw1l+neGGSxMyre0r+Uepz4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X7Rx02rLiwSPUqoSfMlyRQ4yxOg5NO1bJTd280w/SydxflwFvgF4h3TSFRUVRGza7t0V7pung8HAhfv3zEmzujulvKP5k/+v9WtjwrDSFhAQGaheO06JUK3DFhfDsQKhk2+uBtehN5riwBUQkdezylRTxgwC0RxYs8gIAheGhoU= 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=embT7qVx; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Izm6MvuV; 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="embT7qVx"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Izm6MvuV" 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 66UGWmAB1302670 for ; Thu, 30 Jul 2026 17:04:12 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= 8B2kKIkcMVLNTNUWOdUDAECnFfDkCwpTqdo5KvTH4DE=; b=embT7qVxA+JC3jja dONZn/Nb8agNVXRh4qwaVMTGSurrtt2as4X2Brqyj4Pl1i9NLXAcEFBL1k4GRwp+ OpKpY6iI0ftKGT8TiiQwNAYM9QCX7/8uE/+rlDuh4vXDDyUNQJ/PTHqbRs1m7CiJ Cokc0kn4ZX2m9wCPGhyd462HusLWs09h7Gh7RLUQM065gEFNJvRfUn/MdXNGYrMp HgDOAI2YLUsCWlVSdOnjMaI1Gk8S3oINTfl7/4sBwjSUwb+iY1RJjZLMEviUvqzj S5Ypb791oFu9oxoGWdfng4MC0m3yq6f+AlSdXhmvyE31SZHcbZmwtNCeZl5E1I6+ 7OMSdw== Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fr8k60v9w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 30 Jul 2026 17:04:12 +0000 (GMT) Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-495e34a80a5so19862b6e.0 for ; Thu, 30 Jul 2026 10:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785431051; x=1786035851; 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=8B2kKIkcMVLNTNUWOdUDAECnFfDkCwpTqdo5KvTH4DE=; b=Izm6MvuVY6CxNndUBwVjipmQgscc8W1XQJyIuQ2szZ64SS7fBAWBgjO/UmGLdwVzk6 VTUsed5skOpfb8vAOtLqOGxWTWdeaPq1f/R1AzIDEi+/anA5b4yBp5i0f3ttODizwOkh Q7IHomfl3rdmq4w+bOkC6JQ1u8qvPsc8JqpBrPRZ45NnwVSJerliFrxIpl2qCZor3Lfi q0IlloVmksLxlLMrXKB0wA5QkObVMdLZ3NQ/GbVdL95Zad6EayTLxWP9li+UHbwC58bU y5pSLhcyZDHDyr5oNcEH6J4iLtUBviLeE67p5HdXo6MKxtGFt1vCBFtYavTVhkw4/AX/ VNew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785431051; x=1786035851; 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=8B2kKIkcMVLNTNUWOdUDAECnFfDkCwpTqdo5KvTH4DE=; b=ppNyKNJtHNeoNGAQxNbY2hmOL0OpxFOVyoQpH/szPuGtAKrXyn+hA0ib7dumsz8Kyk I0tqtt0Wrlt0t/mnyGs/hBnNmhRGt7zX3lcSkpiKI5Ka5aQzvHd534sJftnxC7sA8xru ID8NzyJZU+9uXZE6Ga/49QDWJZ58VhINulqgi7FITq9os/9QfHu1tfuSHaUHpP2Twilq FmmDhs5irQRT36YHChcx7gTnVyjojBeoJKAe6AS2ZU2xqLOGNMGZZYUd1GdrdwVxmtcf II8YV/F6RatH8XNzDorUw1rVsaFfRpBbzQ+HS+W54OwqsmaIMddyk2uQrdZMc0v5a7bJ aj+w== X-Forwarded-Encrypted: i=1; AHgh+RpdNMNNeLGNf1T5Rpg4CARZneZyG8iK+dG3o7/E1E5IMQ6KggjimwOeUUDxBih8ktEWVJeGAbMmD1hnnOA=@vger.kernel.org X-Gm-Message-State: AOJu0YyVp+Y0/BwLw1cgieacGkSQzykHd42CfUzbOehSq6qDJiXy6v/T AhyfUWT+DeOSq/oCkS20JLcJc13d2W+pdrN8hj+yEH/caf7u0f6ilj7egV/w1XivVypukBA38dK UwHB/VNgMy7hCAO+cJyG08pN75ds+IyO01FFKU81R3vQ4RMARXoROd4DcLzHy4kaoqpI= X-Gm-Gg: AR+sD10Zg4fIrUF9LwpujxChWEQ/J3pXP4xu0f9Ag6QXp5hhusC1i4Xmc1ADfEhGRhH mSGt8nX3csP4cTYwPxsT7c4LoQ2Wh/8YNhoe3DH5k99ieeMtJjFBkGYrLWo/oFOIyxvPhoxXyJw mueOFGayVTmhE9AhpbNSJngQHTq1jN8nWC74uU5Rrjxv2qq6/23830GR6PrcCn77aDUkbwRvigp 79Wi0R0oJAS/15jrh/DC689AunMyKo+4q71q2IG8cOGJK5t1juV6rkmm8FV2vNy61IxXnN224aR 0Qz19EWUSWyevr0F2IqPDpcoAXYnkFs6CmOQ4r9qbbXNrNhohmEMZL7QD46IluANW48OfsxMI4B 1FTrbZlMhOG4nlqB94T5dEVGN X-Received: by 2002:a05:6808:1797:b0:486:7a1b:5a9a with SMTP id 5614622812f47-4ad954171a3mr1176946b6e.2.1785431051304; Thu, 30 Jul 2026 10:04:11 -0700 (PDT) X-Received: by 2002:a05:6808:1797:b0:486:7a1b:5a9a with SMTP id 5614622812f47-4ad954171a3mr1176871b6e.2.1785431050733; Thu, 30 Jul 2026 10:04:10 -0700 (PDT) Received: from [192.168.120.193] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1fa85dbe43sm93327666b.27.2026.07.30.10.04.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2026 10:04:09 -0700 (PDT) Message-ID: <9d9eaae1-97e0-492f-954d-d683f089ef78@oss.qualcomm.com> Date: Thu, 30 Jul 2026 19:04:07 +0200 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: Anvesh Jain P , 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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <95133f63-c7fa-4c68-9db0-2123cf754f50@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: TvjZN3nMMTKy4iIYBScUVoNrEEP-BFQr X-Proofpoint-ORIG-GUID: TvjZN3nMMTKy4iIYBScUVoNrEEP-BFQr X-Authority-Analysis: v=2.4 cv=Wqgb99fv c=1 sm=1 tr=0 ts=6a6b840c cx=c_pps a=4ztaESFFfuz8Af0l9swBwA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=j8X-GRWtO0FzkeSpfNQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TPnrazJqx2CeVZ-ItzZ-:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzMwMDEyNyBTYWx0ZWRfXwLQoHVNc+FlR 97yiU90trvMU0yIPCJY19Ok0pU2GJ9y4XHCXmcsBqJyYeuOKBurJ17VPkT0oSK8iPkJ+YoJJqF6 Omfo4YP/zGNf02iingpld8ZtqGwCV8Kub+IUAZbYVzWSdYNY5fV/4rPYDsXoMC7NGILIRMlK1/p qMikba0rBmtgJibN/MIYtjic2MzX045zXKu3kVc5a9ahqk7J1LwqZxt7juaQ3fl1ON0J0h3IJAP +JnaCfQaQtV5bGZj++LcrO0tF+89fHw4QgGJJytYVO3CbR4sfrS67y2cyPHQR670duNSVrNba0Z gW5yKtVeAAgjjnb1swAGWgPSrqMMlSpxq6OztQcUH8ydufgfLbkgfLgpCmiLE13uLbkMwcEn4S7 IbE98MKHigCTqnaHNu2sk4aCr5ZnCch2psfkLQNHaLmh4HPOdIfsOmDAD8FYZfy2BUoAZBXFNIF OOm6MwPX3vTqBoqTHLw== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzMwMDEyNyBTYWx0ZWRfXwrQG0mUj40PC hNhh+1go7HuwG9IE3cZtdb5Hz3zSva9nIRozlNomB93bu53ejzeb5M7StXQqBOvWOI7wO2EA/X3 oyZTZ5D1mo3lbqesC+NWIz4ElnlWJJw= 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-30_05,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 impostorscore=0 adultscore=0 bulkscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607300127 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