Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp3125381qtj; Wed, 18 Jan 2023 13:26:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6DUO6GniuempLUGByPPvNz+oxz3CsR3vOkQTsrS0jxushbBNJ/NjwL6fRYZ30gLCUAvsA X-Received: by 2002:a17:902:e548:b0:194:687c:e883 with SMTP id n8-20020a170902e54800b00194687ce883mr12323898plf.37.1674077192134; Wed, 18 Jan 2023 13:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674077192; cv=none; d=google.com; s=arc-20160816; b=lDUaB+KEoxbQ2qQWS5EYFVJxE3L2LYRyF8X/OTO4V3BSEMUWtducuCIl9EYXX5vnnk iPOBU8tn72u4gkV1mdUKs8Vm67QIP9HUomREVl+MGojpJKwrWKd8pOFiWGR1siQwg6fw QHO9Kd0sKHKpBerEorIF2h7B9dV441sU3YulzIFcQRiPVv4YQvKLkGAbOd/4cx3dyPbv ZT+S6Svq9VN5ILIRw8s344SzVymq4f3AYRtJ5NnrJG0uhwragr+GCO6ee9KmQLFp1i+y TVRMPw/lUqiw5YYsvmj+9fuTxZHH6p0NhSz+3/vbJ6ynTAg6TtWT1vC4kOW6qywcSEre mrVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=GCDWHPSfKMzG8JvTw2lJda/foKMmItOPQtz7RVsgPSI=; b=CB3USwZZKU49jGbQJlmHDzvUkuNyo7w0r66GVDIfl0MFseRkekZYdjN8fbm6xSLa7x MPEnw/woYIfZHavDuA998hWYSC/1oxzVKegNVGXWCnphoKnEsKII06IZvjLB4mAohWZL 4IAPJnqf6zHwbXsKAzJqyQvwpbWTw9a04qs7HfRf0fOaXGa9SuxC5Qr5Kk3YYdahTzx1 vXmgOGgvmHfLuW6svfZz26ksddgzevHyD9GdCHd3CIwd7daWaS8OiV7pp5tcQKHgKxRv 3LBeVz7H8iwzGxWp832fU6KCYeOI8MnVjo44P9WwMnZ0bSyH6hYy1NNDT8Up9i8oiJ25 WSkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GdcZDIyr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902edd000b0017d2c45e8ffsi35706158plk.171.2023.01.18.13.26.26; Wed, 18 Jan 2023 13:26:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GdcZDIyr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjARUxg (ORCPT + 45 others); Wed, 18 Jan 2023 15:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjARUxe (ORCPT ); Wed, 18 Jan 2023 15:53:34 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8DEA5D4; Wed, 18 Jan 2023 12:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674075212; x=1705611212; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=l4SONC/Qdtv6CckCiaxSv423aZE7tdp+t6/ZdNoJapo=; b=GdcZDIyrHIzwKmZzHuGzNLSz5h/MzRFceBhRsTs2D0uB9cigKeqrBMKq ng1jlo/Pp7VKnwaCAxefgPGUpkgk94xAQv8V3B26uVAeMTYmcLy5bn2mj jGYlJc5nSBPu9RLt2e7Z6E73mMgU2UDw4Hu9TraUWL7wAbOCRQAYJaj5q Zlp3j0AoBkFeRmPnVv/pgw8KJyDVYcms3yVDB4PpLb5c/AYQQUZn3zmP9 2kbixE/x2ng0CThwdZNDd5k9G9GzEGFmMu2Yx08N0JTjkqzRKZCOvbe9C FfKXA/XhmmLdFCEmS9VejKW0ajBSMzt3Zlp2gLCNIVNT7yNvus/++P0Fy w==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="325149644" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="325149644" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 12:53:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="637432730" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="637432730" Received: from yzeleke-mobl1.amr.corp.intel.com (HELO spandruv-desk1.amr.corp.intel.com) ([10.209.16.158]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 12:53:30 -0800 Message-ID: <8547963350fb3bdb09a4693f0eb80c7199ab6f21.camel@linux.intel.com> Subject: Re: [PATCH v5 0/3] Thermal ACPI APIs for generic trip points From: srinivas pandruvada To: Daniel Lezcano , "Zhang, Rui" , "rafael@kernel.org" Cc: "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "christophe.jaillet@wanadoo.fr" , "linux-acpi@vger.kernel.org" Date: Wed, 18 Jan 2023 12:53:31 -0800 In-Reply-To: References: <20230113180235.1604526-1-daniel.lezcano@linaro.org> <2627c37e07dce6b125d3fea3bf38a5f2407ad6a1.camel@intel.com> <5aabdd3010a02e361fbbe01f4af0e30d11f0ae6b.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-01-18 at 21:00 +0100, Daniel Lezcano wrote: > On 18/01/2023 20:16, srinivas pandruvada wrote: > > [ ... ] > > > > > But we'd better wait for the thermald test result from > > > > Srinvias. > > > > > > A quick test show that things still work with thermald and these > > > changes. > > > > But I have a question. In some devices trip point temperature is > > not > > static. When hardware changes, we get notification. For example > > INT3403_PERF_TRIP_POINT_CHANGED for INT3403 drivers. > > Currently get_trip can get the latest changed value. But if we > > preregister, we need some mechanism to update them. > > When the notification INT3403_PERF_TRIP_POINT_CHANGED happens, we > call > int340x_thermal_read_trips() which in turn updates the trip points. > Not sure how we handle concurrency here when driver can freely update trips while thermal core is using trips. Thanks, Srinivas > >