public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: linux-pm@vger.kernel.org,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Khiem Nguyen <khiem.nguyen.xt@renesas.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>,
	linux-renesas-soc@vger.kernel.org,
	Zhang Rui <rui.zhang@intel.com>,
	Eduardo Valentin <edubezval@gmail.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCHv6 0/4] thermal: add driver for R-Car Gen3
Date: Thu, 5 Jan 2017 00:41:42 +0100	[thread overview]
Message-ID: <20170104234142.j4tyhhxbfjk4dz5j@ninjato> (raw)
In-Reply-To: <20161222103823.8300-1-niklas.soderlund+renesas@ragnatech.se>

On Thu, Dec 22, 2016 at 11:38:19AM +0100, Niklas Söderlund wrote:
> Hi all,
> 
> The series adds thermal support to Renesas R-Car Gen3 SoCs. It's tested
> on Salvator-X H3 and M3-W SoC.
> 
> Wolfram asked me to have a look at the comments for v4 and to try and
> rework the temperature formulas to work with only ints and if it worked
> out resend the series. I have reworked code in 2/4 but kept Wolfram as
> the author and added my SoB, hope this is OK.
> 
> Reworking the formulas involved moving from s64 to int as the data type
> used to store coefficients used in binary scaled fixed point
> calculations. By examining the largest values which could be produced in
> these calculations a shift of 7 is the maximum scaling which is
> possible and still fit inside an int, previously with s64 the decimal scaling
> was 1000.
> 
> Changing the decimal scaling also reduces the accuracy of the
> calculations. In my tests this was hardly noticeable as the granularity
> of the reported temperature to user-space is 0.5C, comparing the value
> reported in the s64 vs int implementation only differ very slightly when
> it rounded the value to the next 0.5C level.
> 
> However the formulas used to calculate the coefficients are not
> documented and none obvious (at lest not to me) so given different
> initial values to calculate the coefficients the error might become
> larger. Therefore I would like to ask Morimoto-san and/or Khiem to
> provide or proxy testing of this less accurate formula and feedback if
> it's OK, let me know if there is anything I can do to help out.

Tested on H3 and M3-W. The temperatures I get when plugging the fan
on/off are very very similar to previous versions of this driver. Thus:

Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


  parent reply	other threads:[~2017-01-04 23:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-22 10:38 [PATCHv6 0/4] thermal: add driver for R-Car Gen3 Niklas Söderlund
2016-12-22 10:38 ` [PATCHv6 1/4] thermal: rcar_gen3_thermal: Document the " Niklas Söderlund
2016-12-22 10:38 ` [PATCHv6 2/4] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver Niklas Söderlund
2016-12-22 10:38 ` [PATCHv6 3/4] arm64: dts: r8a7795: Add R-Car Gen3 thermal support Niklas Söderlund
2016-12-22 10:38 ` [PATCHv6 4/4] arm64: dts: r8a7796: " Niklas Söderlund
2016-12-23 11:02 ` [PATCHv6 0/4] thermal: add driver for R-Car Gen3 Wolfram Sang
2017-01-04 23:41 ` Wolfram Sang [this message]
2017-01-19 12:19 ` Wolfram Sang
2017-01-20  4:31 ` Eduardo Valentin
2017-01-20  7:13   ` Niklas Söderlund
2017-01-20 11:20   ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170104234142.j4tyhhxbfjk4dz5j@ninjato \
    --to=wsa@the-dreams.de \
    --cc=edubezval@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=khiem.nguyen.xt@renesas.com \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=rui.zhang@intel.com \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox