Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Simon Horman <horms+renesas@verge.net.au>,
	<linux-renesas-soc@vger.kernel.org>,
	Koji Matsuoka <koji.matsuoka.xm@renesas.com>
Subject: Re: [PATCH 0/4] ARM: Renesas: R-Car3: Add product register support
Date: Fri, 27 May 2016 09:56:18 +0200	[thread overview]
Message-ID: <eccba76d-465c-ca86-bda2-1f0ededc6918@de.bosch.com> (raw)
In-Reply-To: <CANqRtoSHkH2N6_UJ_mjij9k3GaAsSBDuUxjTTLZryHzy74Sh1Q@mail.gmail.com>

Hi Magnus,

On 27.05.2016 05:13, Magnus Damm wrote:
> Hi Dirk,
>
> On Thu, May 26, 2016 at 4:48 PM, Dirk Behme <dirk.behme@de.bosch.com> wrote:
>> Hi Geert,
>>
>> On 26.05.2016 09:14, Geert Uytterhoeven wrote:
>>>
>>> Hi Dirk,
>>>
>>> On Wed, May 25, 2016 at 10:58 AM, Dirk Behme <dirk.behme@de.bosch.com>
>>> wrote:
>>>>
>>>> Instead of hard coding the product register in rcar_du_crtc.c,
>>>> read it based on the device tree.
>>>>
>>>> This patch series is based on
>>>>
>>>>
>>>> https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest
>>>> renesas-drivers-2016-05-17-v4.6
>>>> 4717ef6d59c3204e385c
>>>> Revert "ASoC: simple-card: Add pm callbacks to platform driver"
>>>>
>>>> It's boot tested on r8a7795 Salvator-X and checked that the same
>>>> product register value is read without and with this patch series.
>>>
>>>
>>> Thanks for your series!
>>>
>>> Given the use of PRR you saw is in a patch that's definitely not ready for
>>> upstream, I think adding a full-fledged PRR driver is a bit premature.
>>>
>>> So far we've always planned to handle differences in ES versions using the
>>> compatible value, cfr. "renesas,sata-r8a7790-es1".
>>> But in general we target the latest (production) version in upstream.
>>
>> Well, there are several issues ;)
>>
>> First, regarding "handle differences in ES versions using the compatible
>> value, cfr. "renesas,sata-r8a7790-es1": I can't talk about r8a7790. But for
>> r8a7795 & r8a7796 we are able to auto-detect this by the PRR. And I'd think
>> what can be auto detected, should be auto detected. And not handled via the
>> device tree.
>>
>> Second: Other SoCs families show us that we definitely need such kind of
>> cpu_is() and revision_is() logic.
>
> I don't think anyone disagrees that it makes sense to be able to
> determine ES version during runtime. The questions in my mind are how
> to do it


I've made a proposal ;) And I'm happy to discuss technically about it.


> and the urgency.


Regarding the urgency: Someone has accepted the hard coded PRODUCT 
register (and MODEMR) being in renesas-drivers, now:

https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/tree/drivers/gpu/drm/rcar-du/rcar_du_crtc.c?h=topic/gen3-latest#n177

This does really hurts us.

Therefore, I try to get this removed as soon as possible to hopefully 
get a Renesas BSP without this, the next time.

If anybody finds an other way to remove that, that would be fine, too.


> So far we have decided to use the compatible string since it is a
> common driver model abstraction already used by device drivers and
> hardware description in DT. Using DT compat string matching we can
> have logic in the drivers to handle ES differences if needed. As for
> how to enable the workaround, my opinion is that the missing piece
> consists of ES workaround code that appends ES suffix information to
> the DT compat strings automatically during boot.


Technically this sounds slightly too complicated to me. As I have to 
advocate my proposal (inspired from an other mainline SoC family) I'd 
think that my proposal is easier.


> I suppose the workaround is not yet implemented because no one has
> deemed this topic as particularly urgent. Until it becomes urgent or a
> new ES version appears the affected users can simply adjust the DT
> binding themselves. This is what happened to the "sata-r8a7790-es1"
> case above.

Best regards

Dirk

  reply	other threads:[~2016-05-27  7:56 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-25  8:58 [PATCH 0/4] ARM: Renesas: R-Car3: Add product register support Dirk Behme
2016-05-25  8:58 ` [PATCH 1/4] " Dirk Behme
2016-05-25  8:58 ` [PATCH 2/4] arm64: dts: Renesas: R-Car3: Add product register Dirk Behme
2016-05-25  8:58 ` [PATCH 3/4] ARM: Renesas: R-Car3: Add cpu and revision handlers Dirk Behme
2016-05-25  8:58 ` [PATCH 4/4] drm: rcar-du: Use product register framework Dirk Behme
2016-05-27  3:40   ` Magnus Damm
2016-05-27  8:16     ` Dirk Behme
2016-05-27  9:56       ` Magnus Damm
2016-05-27 10:18         ` Dirk Behme
2016-06-01  2:33           ` Magnus Damm
2016-05-26  7:14 ` [PATCH 0/4] ARM: Renesas: R-Car3: Add product register support Geert Uytterhoeven
2016-05-26  7:48   ` Dirk Behme
2016-05-27  3:13     ` Magnus Damm
2016-05-27  7:56       ` Dirk Behme [this message]
2016-05-27  8:39         ` Geert Uytterhoeven
2016-05-27  8:44           ` Dirk Behme
2016-05-27  9:00             ` Geert Uytterhoeven
2016-06-01  5:19         ` Magnus Damm
2016-06-01  7:19           ` Dirk Behme
2016-06-01  7:27             ` Geert Uytterhoeven
2016-06-01  7:38               ` Dirk Behme
2016-06-01  8:26                 ` Geert Uytterhoeven
2016-06-01  8:36                   ` Dirk Behme
2016-06-01  8:40                     ` Geert Uytterhoeven
2016-06-01  8:43                       ` Dirk Behme
2016-06-29  7:58           ` Dirk Behme

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=eccba76d-465c-ca86-bda2-1f0ededc6918@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=geert+renesas@glider.be \
    --cc=geert@linux-m68k.org \
    --cc=horms+renesas@verge.net.au \
    --cc=koji.matsuoka.xm@renesas.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.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