linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Pantelis Antoniou <panto@intracom.gr>
Cc: LinuxPPC <linuxppc-embedded@lists.linuxppc.org>,
	Paul Mackerras <paulus@samba.org>,
	Tom Rini <trini@kernel.crashing.org>
Subject: Re: [2.5] Hang on 8xx in head_8xx.S
Date: Fri, 14 Feb 2003 15:31:05 -0500	[thread overview]
Message-ID: <3E4D5209.30802@embeddededge.com> (raw)
In-Reply-To: 3E4CF810.8040803@intracom.gr


Pantelis Antoniou wrote:

> 1. I think it is time to look into the
> artificial (IMO) division between 8xx_io/8260_io.
>
> The CPM is basically the same, but there are two kind
> of drivers for every peripheral that is common.

The CPM isn't the same, especially when you look at some
of the details.  There are reserved areas for special
functions that are very different between the two, along
with CPM memory configuration options (cache coherency
options and local memory) on the 8260.

If we can't make all of the drivers common, I'd prefer
not to make any of them common.  From a far away distance,
yes, everything looks similar, but I believe the details
are going to make for confusing #defines/#ifdefs that you
want to remove in some of the other drivers.

Another issue I have is that when I'm working on an 8260
driver, I don't want to worry about the impact on 8xx processors.
If someone is working on a common driver, I also want them to
ensure they have tested it on the other platform, and I don't
think there are very many people able (because they don't
have the hardware) or willing to do that.  Unfortunately,
I have both, and I don't want to be responsible for that
additional work prior to checking in the changes.


> 2. The profusion of platform specific #defines in the
> drivers. Typically something like the configuration of
> the port I/O for the ethernet/uart whatever.

That's always a trade off.  Some people like all of the
configuration stuff together so they can easily see
differences or be aware of configurations they can leverage
when doing new ports/designs.  I'm not a big fan of changing
something for the sake of personal preference.  If there is
some development or feature advantage, that's great, but
just because you like it one way and someone else likes it
another without any functional improvement isn't a reason
for change.  Since one of the goals of 2.5 is to have spilt
out these details, it's reasonable to try that.  I find it
interesting that other architectures are currently trying
to go the other way, more use of common code and fewer
platform specific directories........

> How about having a platform specific source file
> that will export functions for the platform specific
> part of the configuration?

That's a reasonable thing to do, unless you end up with
less than 10 lines of code in a file.  Please, don't put
such code in an include file, though.

> How about taking a look at the patches I have sent
> you earlier about the dpalloc/hostalloc problem?

I got 'em.  There may be other things that are issues
that may appear.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2003-02-14 20:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 13:27 [2.5] Hang on 8xx in head_8xx.S Pantelis Antoniou
2003-02-13 16:50 ` Dan Malek
2003-02-14  7:33   ` Pantelis Antoniou
2003-02-14 13:38     ` Dan Malek
2003-02-14 14:07       ` Pantelis Antoniou
2003-02-14 20:31         ` Dan Malek [this message]
2003-02-14 21:30           ` Pantelis Antoniou
2003-02-16 17:12             ` Dan Malek
2003-02-16 19:38               ` Allen Curtis

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=3E4D5209.30802@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=panto@intracom.gr \
    --cc=paulus@samba.org \
    --cc=trini@kernel.crashing.org \
    /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).