From: Eduardo Valentin <edubezval@gmail.com>
To: Emmanuel Vadot <manu@bidouilliste.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
"open list:THERMAL" <linux-pm@vger.kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Emmanuel Vadot <manu@freebsd.org>, Chen-Yu Tsai <wens@csie.org>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@lists.infradead.org>,
Zhang Rui <rui.zhang@intel.com>,
devicetree@vger.kernel.org
Subject: Re: [PATCH 1/7] dt-bindings: Add DT bindings documentation for Allwinner Thermal Sensor Controller
Date: Fri, 24 Aug 2018 16:03:40 -0700 [thread overview]
Message-ID: <20180824230338.GA19399@localhost.localdomain> (raw)
In-Reply-To: <20180824215921.59d060b54eb3a1e7d1552bde@bidouilliste.com>
On Fri, Aug 24, 2018 at 09:59:21PM +0200, Emmanuel Vadot wrote:
>
> Hi,
>
> On Fri, 24 Aug 2018 16:58:40 +0200
> Maxime Ripard <maxime.ripard@bootlin.com> wrote:
>
> > Hi,
> >
> > On Mon, Aug 20, 2018 at 04:27:15PM +0200, Emmanuel Vadot wrote:
> > > On Mon, 20 Aug 2018 16:07:37 +0200
> > > Maxime Ripard <maxime.ripard@bootlin.com> wrote:
> > >
> > > > On Mon, Aug 20, 2018 at 07:41:22AM -0600, Rob Herring wrote:
> > > > > On Mon, Aug 20, 2018 at 5:17 AM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
> > > > > >
> > > > > > On Sat, Aug 04, 2018 at 09:03:49AM +0200, Emmanuel Vadot wrote:
> > > > > > > This patch adds documentation for Device-Tree bindings for the Allwinner
> > > > > > > Thermal Sensor Controller found on the H3, H5 and A64 SoCs
> > > > > > >
> > > > > > > Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
> > > > > >
> > > > > > I'm not going to merge a binding for a device that doesn't have any
> > > > > > driver implemented at the moment in Linux.
> > > > >
> > > > > I'll take it then. Linux is not the only DT client.
> > > >
> > > > Then don't complain if we ever have to break the ABI. We never tested
> > > > that hardware, never had any code running on it, and it *will* cause
> > > > some issues. For example, the calibration data have never been used
> > > > and how they should be represented have never been described, since no
> > > > one ever actually tried to use it.
> > > >
> > > > And sure, Linux is not the only DT client. Just like FreeBSD isn't.
> > >
> > > What kind of data would you need for me to make things better ?
> > > We have the driver in FreeBSD for almost two years now, whne I started
> > > to see how to upstream it I noticed a lot of problems and spent 4 or 5
> > > days to try on all the SoCs mentionned in the serie, the only SoC I
> > > didn't include it the A83T as for some reason I couldn't make the
> > > driver work.
> >
> > Do you have a link to that driver?
>
> https://github.com/freebsd/freebsd/blob/master/sys/arm/allwinner/aw_thermal.c
>
> > How and how much did you test it?
>
> Using a cheap IR thermometer as it's all I can afford.
> Then running multiples cpufreq-a53 process and comparing the result.
> Did the same without using the calibration data, result where closer
> when I used them.
>
> > Are you using the calibration data stored in the SID?
>
> Yes, which is why the serie contain the nvmem cell for the SID.
>
> >
> > > I just hope that you understand that we cannot wait for Linux to
> > > have a driver to have some bindings.
> >
> > Just like I'm sure you can understand that just merging the DT bits
> > without testing anything caused some troubles in the past, and I don't
> > want to discover it in a year from now.
>
> I do, I don't like wrong DT info as much as you do I think. I had
> the unfortunate event to find that the sun4i-a10-timer compatible used
> in every soc is plain wrong for !A10 and !A13, patches comming soon.
> I want those bits merged but I also want that they reflect reality,
> this is not a hard driver to do, NetBSD also have one I think, maybe
> OpenBSD do to.
I would prefer to see a series of DT bindings + driver. Can you send
your next iteration with the driver so we can review both together?
>
> > Maxime
> >
> > --
> > Maxime Ripard, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
>
>
> --
> Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
next prev parent reply other threads:[~2018-08-24 23:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 7:03 [PATCH 1/7] dt-bindings: Add DT bindings documentation for Allwinner Thermal Sensor Controller Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 2/7] ARM: dts: sun8i: h3: Add thermal sensor controller node Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 3/7] arm64: dts: allwinner: h5: " Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 4/7] arm64: dts: allwinner: a64: " Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 5/7] ARM: dts: sun8i: h3: Enable the THS on H3 boards Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 6/7] arm64: dts: allwinner: a64: Enable the THS on A64 boards Emmanuel Vadot
2018-08-04 7:03 ` [PATCH 7/7] arm64: dts: allwinner: H5: Enable the THS on H5 boards Emmanuel Vadot
2018-08-14 19:20 ` [PATCH 1/7] dt-bindings: Add DT bindings documentation for Allwinner Thermal Sensor Controller Rob Herring
2018-08-20 11:17 ` Maxime Ripard
2018-08-20 13:41 ` Rob Herring
2018-08-20 13:57 ` Emmanuel Vadot
2018-08-20 14:07 ` Maxime Ripard
2018-08-20 14:27 ` Emmanuel Vadot
2018-08-24 14:58 ` Maxime Ripard
2018-08-24 19:59 ` Emmanuel Vadot
2018-08-24 23:03 ` Eduardo Valentin [this message]
2018-08-25 15:43 ` Emmanuel Vadot
2018-08-29 12:38 ` Maxime Ripard
2018-08-29 13:31 ` Maxime Ripard
2018-08-20 18:47 ` Rob Herring
-- strict thread matches above, loose matches on Subject: below --
2018-08-25 11:07 Mark Kettenis
2018-08-25 15:42 ` Emmanuel Vadot
2018-08-25 15:49 ` Emmanuel Vadot
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=20180824230338.GA19399@localhost.localdomain \
--to=edubezval@gmail.com \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=manu@bidouilliste.com \
--cc=manu@freebsd.org \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=wens@csie.org \
--cc=will.deacon@arm.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).