Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1297686rwb; Fri, 13 Jan 2023 10:17:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXufzPqT1jFfkqOUmwSGPsvZEPqdFlIDN4+iyp5GNDVOqh3+4xpmy+5fkN0/YDUCnxQvuqGa X-Received: by 2002:a17:90b:2303:b0:227:838:11a5 with SMTP id mt3-20020a17090b230300b00227083811a5mr20635362pjb.31.1673633858724; Fri, 13 Jan 2023 10:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673633858; cv=none; d=google.com; s=arc-20160816; b=nEMlWy9XExYR7qHpqUXbn88ujyu7ifV1VAhMO2/ZtljGxvg4TRt5dXziH/gDbZGEim i4cPqn/IwEYJVzmxl165/3B/efk+oGzBh2hvO7PnZ7tFgeRuY5u7MboTUJcXcQivnvTl blU+dnSOXPXVz/1d0+YCPFbbIF0vwQtWDnyKNymq7b5JzjMpfx4LoHNKvlNAlfErWtSo 5wQEVae62tvw3AVw4dG7SRLV5JtGhgDIeQRKMU0RIV+AWYB5Bp4147im766e4jtNkg5V ijdDKYZJZEyobXHkh/qKmu3lbgfITJ0Va77lbP7h2Mpg880bl5Smw6x8S6eHGnNX1/nT 2klA== 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=VAgBqlCd+4ZloIlBN5Rf4PIKxhscQXtRJc0RO1A5kso=; b=XxEby0oZWRiyLC+Arqk7CqTZ4ILT6WxtWxj5ctOkFY7nm379rBudXUkOqnj0jiq1eN QKoXi4BoF0kfJEScEc0+7HVjhXutU4V+f2vPzhgsYqiPrPMFYzCCJb03yJ6M6sw/25Ud KHFlTDd2t1rC/tLgmIqpwpZTNvCojcsf9xsPH2r1pEy7UVowNyfAzO0QNIFl2NB6n1rQ LiG1GNkyKYdrMgiO0E17Pc2l7tLxz03TjhmsXkbEgORJb/4JUy7KFsw5iFeSP04BWyil qTCLmZmeEHDWTKl2aJzpN41Mt7Rekzy90p4kjynZxAadl6aZjOGXOrjpT/zLOmTcKhl2 poWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TzgKGfsC; 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 b13-20020a6541cd000000b004b5fb614f8dsi10176960pgq.845.2023.01.13.10.17.32; Fri, 13 Jan 2023 10:17:38 -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=TzgKGfsC; 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 S229846AbjAMRqi (ORCPT + 51 others); Fri, 13 Jan 2023 12:46:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjAMRpz (ORCPT ); Fri, 13 Jan 2023 12:45:55 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 545B488DE8; Fri, 13 Jan 2023 09:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673631251; x=1705167251; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=/mLCpdcyLaa16plox8m52Uh9afCDS916L+EggEDx7yA=; b=TzgKGfsCcbAbr7z2pEp4ACatwWfmjJnTRlfSzz693hkMjOc5WXYrUSAF qa264ntCglpbGn2aDHfKc+ZjODkUcbtTP81LGjc6eQ4ObfdJlTMNxatCz HMd+mUwvR+ue6HLZtVIXZjLnzUu2XH6hsUW3kW5Pm7Zy25ogYLMsQUSEt d2QvLqFv7OBsRn1fTQCfgvH0BG5qSDK4OT5RRbLyqTupHclW6mo0JaDD8 /OYYzcTYPnO9Z/36cHpKLrpJ0SzsMskkeXkr83C5qpeoW4UO8S9o6Bux1 Flzj1tpjvlUaNsedLfV+w0/12Cdw+bi/3D4vI//QSc8cGdfDkJzPZkSZL A==; X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="324108970" X-IronPort-AV: E=Sophos;i="5.97,214,1669104000"; d="scan'208";a="324108970" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 09:34:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="721599716" X-IronPort-AV: E=Sophos;i="5.97,214,1669104000"; d="scan'208";a="721599716" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 09:34:10 -0800 Message-ID: <6a5ea6ac492d354479f5d340c16588f2f4b3d7c0.camel@linux.intel.com> Subject: Re: [PATCH 3/3] thermal/drivers/intel: Use generic trip points int340x From: srinivas pandruvada To: Daniel Lezcano , "Zhang, Rui" , "rafael@kernel.org" Cc: "linux-pm@vger.kernel.org" , "daniel.lezcano@kernel.org" , "linux-kernel@vger.kernel.org" , "christophe.jaillet@wanadoo.fr" , "linux-acpi@vger.kernel.org" , "amitk@kernel.org" Date: Fri, 13 Jan 2023 09:34:09 -0800 In-Reply-To: <35b6549e-a722-4667-c471-907d91d424ce@linaro.org> References: <20230110151745.2546131-1-daniel.lezcano@linaro.org> <20230110151745.2546131-4-daniel.lezcano@linaro.org> <4f461027be209156d6d9f26870748f204ff4184b.camel@intel.com> <34f9fc91c398f85c0bedaff89adbb33897cb1f62.camel@linux.intel.com> <35b6549e-a722-4667-c471-907d91d424ce@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Fri, 2023-01-13 at 18:21 +0100, Daniel Lezcano wrote: > > Hi Srinivas, > > On 13/01/2023 16:48, srinivas pandruvada wrote: > > Hi Daniel, > > > > > > > > > > > [...] > > > > > > > -       status = acpi_evaluate_integer(d->adev->handle, > > > > > "GTSH", > > > > > NULL, > > > > > &hyst); > > > > > -       if (ACPI_FAILURE(status)) > > > > > -               *temp = 0; > > > > > -       else > > > > > -               *temp = hyst * 100; > > > > > > > > The previous code returns hyst * 100. > > > > But the new API retuurns hyst directly. > > > > > > > > -/sys/class/thermal/thermal_zone2/trip_point_4_hyst:2000 > > > > +/sys/class/the > > > > rmal/thermal_zone2/trip_point_4_hyst:20 > > > > > > > > Is this done on purpose? > > > > > > No, it is an error. The function thermal_acpi_trip_gtsh() should > > > do: > > > > > >          return deci_kelvin_to_millicelsius(hyst); > > > > > > > > > > GTSH returns here in tenths of degree Kelvin. For example 15 means > > 1.5 > > degree K. > > Yes, so the above conversion is correct, right ? Correct. Thanks, Srinivas > > > I would like to test your next series with thermald. If there is a > > problem, it will break every distro. > > Great, thanks! > >