All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilya Yanok <yanok@emcraft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC/PATCH] davinci: disable dcache on boards with EMAC
Date: Sun, 27 Nov 2011 23:22:37 +0400	[thread overview]
Message-ID: <4ED28DFD.7090805@emcraft.com> (raw)
In-Reply-To: <20111127184924.BD0131FFB3AB@gemini.denx.de>

Dear Wolfgang,

On 27.11.2011 22:49, Wolfgang Denk wrote:
>>> But the cahce support works fine for a lot of things - basicly
>>> everything except for the broken drivers.  Why do you want to make ALL
>>> user suffer from this, even if they don't intend to use the broken
>>> driver(s) at all?
>>
>> Please note that I've already fixed the driver itself but the patch is
>> still not accepted (because of this problem).
> 
> Because of which problem?

DaVinci building problem. After fixing the driver many DaVinci boards
failed to build because of missing cache functions.

>>>> But cache support is incomplete is the problem.  None of the flushing
>>>> operations exist.
>>>
>>> Then fix _THAT_.
>>
>> Hm. So I've fixed the broken driver but you aren't going to accept the
>> patch and say "Please go ahead and fix arm926ejs cache support also".
>> But it's not even the SoC type I'm working with...
> 
> I am aware of this. I don't think I rejected your driver patch.

Well, that wasn't you. But the series were rejected because of DaVinci
build failure. Now, with this patch rejected, the complete series is
going to be rejected again...

> I also did not say _you_ are supposed to add the necessary level of
> cache support for all SoCs that need it.

But to push my changes I have to add it, right?

Thinking once more about this... Can't we add stub implementation of
cache functions for arm926ejs? Something like this:

void flush_dcache_range(...)
{
	printf("Cache operations are not implemented, consider using 'dc off'
command or (better) implement cache support\n");
}

This will preserve status quo: we can leave D-Cache enabled on DaVinci
but user will have to disable it by hand before using network. On AM35x
network will work with caches enabled.

>> Alternatively we can just drop the driver cache-related fix, leave the
>> driver broken and work with the network with "dc off" trick on AM35x also.
>>
>> Do you think this will be better?
> 
> I think we have a number of different proposals here.  My assessment
> is:
> 
> Worst:  permanently disable data chache on all boards
> 
> slightly better:  leave the driver broken and use "dc off" before
>         running any network related commands
> 

Don't you think that adding stub implementation for cache functions on
arm926ejs and fixing the driver is better?

> best:  fix the driver and cache support and permanently enable it.

Regards, Ilya.

  reply	other threads:[~2011-11-27 19:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 21:56 [U-Boot] [RFC/PATCH] davinci: disable dcache on boards with EMAC Ilya Yanok
2011-11-11 22:10 ` Andy Fleming
2011-11-11 23:53   ` Tom Rini
2011-11-14 14:07     ` Ben Gardiner
2011-11-15  0:09       ` [U-Boot] [PATCH V2] " Ilya Yanok
2011-11-27 15:09         ` Wolfgang Denk
2011-11-27 15:09 ` [U-Boot] [RFC/PATCH] " Wolfgang Denk
2011-11-27 16:41   ` Tom Rini
2011-11-27 18:09     ` Wolfgang Denk
2011-11-27 18:18       ` Tom Rini
2011-11-27 18:43         ` Wolfgang Denk
2011-11-27 18:51           ` Tom Rini
2011-11-27 19:16             ` Wolfgang Denk
2011-11-27 18:37       ` Ilya Yanok
2011-11-27 18:49         ` Wolfgang Denk
2011-11-27 19:22           ` Ilya Yanok [this message]
2011-11-27 19:36             ` Wolfgang Denk
2011-11-28 12:56               ` Albert ARIBAUD
2011-11-28 16:45                 ` Ilya Yanok
2011-11-28 12:06     ` Christian Riesch
2011-11-28 14:53       ` Tom Rini
2011-11-28 15:43         ` Christian Riesch
2011-11-28 15:59           ` Wolfgang Denk
2011-11-29  7:56             ` Christian Riesch
2011-11-28 16:02           ` Ilya Yanok
2011-11-28 16:36             ` Wolfgang Denk
2011-11-29  7:58             ` Christian Riesch

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=4ED28DFD.7090805@emcraft.com \
    --to=yanok@emcraft.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.