cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
From: Niklas <niklas.soderlund@ragnatech.se>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Pavel Machek <pavel@denx.de>,
	"cip-dev@lists.cip-project.org" <cip-dev@lists.cip-project.org>,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Chris Paterson <Chris.Paterson2@renesas.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [cip-dev] [PATCH 4.19.y-cip 02/10] thermal: rcar_gen3_thermal: Remove temperature bound
Date: Wed, 26 Aug 2020 10:45:38 +0200	[thread overview]
Message-ID: <20200826084538.GL594558@oden.dyn.berto.se> (raw)
In-Reply-To: <TYBPR01MB5309A40EDFAF9156799B296886540@TYBPR01MB5309.jpnprd01.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

Hi Biju,

On 2020-08-26 07:40:46 +0000, Biju Das wrote:
> Hi Pavel,
> 
> Thanks for the feedback.
> 
> > Subject: Re: [PATCH 4.19.y-cip 02/10] thermal: rcar_gen3_thermal: Remove
> > temperature bound
> >
> > On Tue 2020-08-25 14:21:48, Biju Das wrote:
> > > From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> > >
> > > commit 0f510a2457cbbba18a98492bab1bf540be57ebd1 upstream.
> > >
> > > The hardware manual states that the operation of the sensor is not
> > > guaranteed with temperatures above 125°C, not that the readings are
> > > invalid. Remove the bound check and try to deliver temperature
> > > readings even if we are outside the guaranteed operation range.
> >
> > I'm tempted to ask "how was this tested?" :-).
> >
> > Sometimes sensors have glitches producing very high values in normal
> > temperatures, and it such case clamping can be useful, but I'll assume your
> > sensor works ok.
> 
> Niklas,  Can you please clarify?

IIRC I was asked to remove the clamp as the hardware team had tested the 
sensors in a wider range and it was judged better to report a reading 
even if it was not guaranteed then to clamp it. I have not been able 
myself to test this change myself and rely on the report from the 
hardware team.

> 
> Cheers,
> Biju
> 
> 
> 
> >
> > > +++ b/drivers/thermal/rcar_gen3_thermal.c
> > > @@ -182,9 +182,7 @@ static int rcar_gen3_thermal_get_temp(void
> > *devdata, int *temp)
> > >  tsc->coef.a2);
> > >  mcelsius = FIXPT_TO_MCELSIUS(val);
> > >
> > > -/* Make sure we are inside specifications */
> > > -if ((mcelsius < MCELSIUS(-40)) || (mcelsius > MCELSIUS(125)))
> > > -return -EIO;
> > > +/* Guaranteed operating range is -40C to 125C. */
> > >
> > >  /* Round value to device granularity setting */
> > >  *temp = rcar_gen3_thermal_round(mcelsius);
> >
> > --
> > DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> 
> 
> Renesas Electronics Europe GmbH, Geschaeftsfuehrer/President: Carsten Jauch, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany, Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647

-- 
Regards,
Niklas Söderlund

[-- Attachment #2: Type: text/plain, Size: 419 bytes --]

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#5259): https://lists.cip-project.org/g/cip-dev/message/5259
Mute This Topic: https://lists.cip-project.org/mt/76406706/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy  [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-

  reply	other threads:[~2020-08-26 11:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-25 13:21 [cip-dev] [PATCH 4.19.y-cip 00/10] Add OPP/Thermal/Timer/CAN[FD] support Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 01/10] arm64: dts: renesas: r8a774e1: Add operating points Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 02/10] thermal: rcar_gen3_thermal: Remove temperature bound Biju Das
2020-08-26  7:21   ` Pavel Machek
2020-08-26  7:40     ` Biju Das
2020-08-26  8:45       ` Niklas [this message]
2020-08-26  9:16         ` Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 03/10] thermal: rcar_gen3_thermal: Generate interrupt when temperature changes Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 04/10] thermal/drivers/rcar_gen3: Fix undefined temperature if negative Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 05/10] thermal: rcar_gen3_thermal: Add r8a774e1 support Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 06/10] arm64: dts: renesas: r8a774e1: Add RZ/G2H thermal support Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 07/10] arm64: dts: renesas: r8a774e1: Add CMT device nodes Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 08/10] arm64: dts: renesas: r8a774e1: Add TMU " Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 09/10] can: rcar_can: Remove unused platform data support Biju Das
2020-08-25 13:21 ` [cip-dev] [PATCH 4.19.y-cip 10/10] arm64: dts: renesas: r8a774e1: Add CAN[FD] support Biju Das
2020-08-26  6:42 ` [cip-dev] [PATCH 4.19.y-cip 00/10] Add OPP/Thermal/Timer/CAN[FD] support Nobuhiro Iwamatsu
2020-08-26  7:24 ` Pavel Machek
2020-08-28 18:15 ` Pavel Machek

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=20200826084538.GL594558@oden.dyn.berto.se \
    --to=niklas.soderlund@ragnatech.se \
    --cc=Chris.Paterson2@renesas.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=pavel@denx.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.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;
as well as URLs for NNTP newsgroup(s).