Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1187871rdb; Wed, 24 Jan 2024 07:25:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+eaLOAhH6+r6QSBoig5SWYtqoi8sVR9Mla/vq0r+aWEUgksSqEJ0KtwRysp6OSPhvdv3Y X-Received: by 2002:aa7:d959:0:b0:55a:8873:fa15 with SMTP id l25-20020aa7d959000000b0055a8873fa15mr1961974eds.35.1706109957513; Wed, 24 Jan 2024 07:25:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706109957; cv=pass; d=google.com; s=arc-20160816; b=kHFaVhIGl2nQ7b5W8uFlkYBvI811N8FHKjsT6GnmcbSRN1cOVjS9VWwCyzvKyiVGEK GTbKMNEkX0t4ePQszZzgnCvU/BYvjI/HBIG4JHLY/EspfnZh/INR6nO5czx7odyzN/ug WpqHbJnvrNenNszw2i+mczohOzOQi9Vew66oY+ELpuPHVgU27lXoljDlXaMDw2YTG+35 W1Y3ehIfm98/+SsuMhUCveircQmLU6FGZvSAl0l+voVRP7w3VCNV9xvocPGFjutCBDCy aKvYwhqKaNGlOcFmvNpHoUenGMKGCv+V3Cxah0mAgJraOf0lmWEoh3TNOOrGCeLzF23C f/WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TKqmN0ivHFHrIW/RN12lAs9vGB/kamk2FcWgpEX3Nh0=; fh=z0UE/6sWPb/yjlRtwHkuZW67SiMGtFQeYkadsSSBtYQ=; b=fpJtmi2t+/vPmwSAGZgoIQwTNu6415y5LigK57+YF9T2OB5YC4VuHX/T01+0P4uSek C6h+zHdORw5kuCVr1PpvQyiXr3O9r8QHs3eYWp1dmq/oiC9eHskFHowGh/0T2G9wSmKa nl7+0FTjmxaoCkXkjgqAguRG5aUeSP79sJqqL+5+Tktj6BJa7wGjHqEVpQ4j6jxhBZcA DIWk58GAlTPDmUSBcXjVNwFgYAoiJzIZymcrLHsYWy3oyeQnL8JYm/UJWaEQEhy3bERZ SeOYmrZ7FG4xIlSRpJwg/p9PdyDX7+PgxIEmTmaHxAd2QStGIkOJ5xreJ0zRUBYjFzYR L1ZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=apFh6zJ0; 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-37244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i11-20020a50870b000000b00558dd992c29si12237821edb.184.2024.01.24.07.25.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 07:25:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=apFh6zJ0; 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-37244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37244-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 306841F22296 for ; Wed, 24 Jan 2024 15:25:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9129A7C094; Wed, 24 Jan 2024 15:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="apFh6zJ0" 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 403E87A707; Wed, 24 Jan 2024 15:25:43 +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=1706109944; cv=none; b=ZL+safbPAdIrr0y3G/hnY3e8ImadLK9cY9ikIlhjHU4W9foCJknnZGA/KhuS+n3TDzJQR5DTKbwbHvhmlU9HH0opY2tOAwkySTUykvLKdhrT2efkW2mULNGWrraeGQBu+Rjn0wQJVQST0JHDA5uExyamlgxsqYRLQ6S88UVMeZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706109944; c=relaxed/simple; bh=OQU/+q3vIDCVis27eIKAXr6BMKI4dpGBzkf75gwybr4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Shvda5kUNil6XNK0qHDi25ATKIi0YlOjNKCVClEobZgkyAyxwqzhRLk5SB3510rPpbcVCe7KUx67/uECB9kw0eRMdYIjggTjMYhw8YUmSvqasn4GYWXAZVtqAW3jnjkzSSYMNeSyJQ/chQzbyIsb6CWOgKgD35DvRw6HuzRcbv0= 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=apFh6zJ0; arc=none smtp.client-ip=205.220.168.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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40OCYpQn005760; Wed, 24 Jan 2024 15:25:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=TKqmN0ivHFHrIW/RN12lAs9vGB/kamk2FcWgpEX3Nh0=; b=ap Fh6zJ0fSqIuVfTIhGxZc3QR1QTbqwRdl0Ob1MTI3YqExSUwSVKhvoHicL09w66sH hBoc34LLrDRjUacu4/3zvUYDcalZmbRCbe4KCpLcGiclbRJFnYVYbVsvEY0kg3VD Oggxh5z0V6raClKgP8L+De6ZKekaJNwrVy1+uJC6eh9JNcTmGL09POxtvY0/TlKk KWbYKkFDvVRN8DeRy2Ta3v85KQ7TmH3j3ZigOsJL9xuCQ1cpjTJQGtbDu1oGUrQq gwy1yntfe9yEArvMSg3qd0kV9GKN4MZ/WFfvcXFRwwCIR6ESnXcB9owe6xtgXyXS BEBRyv2IX6W3zFLlKtQg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vtmh022xq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 15:25:34 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40OFPYp4030818 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 15:25:34 GMT Received: from [10.216.38.76] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 24 Jan 2024 07:25:29 -0800 Message-ID: Date: Wed, 24 Jan 2024 20:55:26 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] thermal/drivers/tsens: Add suspend to RAM support for tsens Content-Language: en-US To: Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Bjorn Andersson" , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , , , CC: References: <20240122100726.16993-1-quic_priyjain@quicinc.com> <548e2f24-a51e-4593-9463-09506488c70e@linaro.org> From: Priyansh Jain In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: JZpFstnIg1RdHONUyY59S75ploup1Uug X-Proofpoint-ORIG-GUID: JZpFstnIg1RdHONUyY59S75ploup1Uug 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-01-24_06,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 mlxlogscore=417 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401240111 On 1/24/2024 6:04 PM, Konrad Dybcio wrote: > > > On 1/24/24 11:42, Priyansh Jain wrote: >> >> >> On 1/22/2024 8:02 PM, Konrad Dybcio wrote: >>> On 22.01.2024 11:07, Priyansh Jain wrote: >>>> Add suspend callback support for tsens which disables tsens interrupts >>>> in suspend to RAM callback. >>> >>> Would it not be preferrable to have the "critical overheat", wakeup- >>> capable interrupts be enabled, even if the system is suspended? >>> >> >> >> As part of suspend to RAM, tsens hardware will be turned off and it >> cannot generate any interrupt.Also system doesn't want to abort >> suspend to RAM due to tsens interrupts since system is already going >> into lowest >> power state. Hence disabling tsens interrupt during suspend to RAM >> callback. > > Is that a hardware limitation, or a software design choice? I'm not > sure I want my phone to have thermal notifications disabled when > it's suspended. > Konrad As part of suspend to RAM , entire SOC will be off, this mode (suspend to RAM) is not intended for Mobile product. Tsens interrupts are not disabled as part of suspend to idle(suspend mode for mobile). Regards, Priyansh