linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Kumar Gala <kumar.gala@motorola.com>
Cc: Eugene Surovegin <ebs@ebshome.net>,
	linuxppc-embedded@lists.linuxppc.org,
	Stephen Williams <612dlag102@sneakemail.com>
Subject: Re: [RFC] "indirect" DCR access (40x, BookE)
Date: Fri, 12 Mar 2004 13:01:44 -0500	[thread overview]
Message-ID: <4051FB08.7030903@embeddededge.com> (raw)
In-Reply-To: 1921A482-7431-11D8-AFB6-000393DBC2E8@motorola.com


Kumar Gala wrote:

> Look in u-boot.  They have some user commands that allow
> reading/writing dcr's.

> Also, it begs the question of should this be extended to SPRs,

This discussion continues to point out that DCR implementations
are poor for programming.  Back in the days of 16-bit address
spaces, using DCRs or alternate I/O spaces was reasonable.  Decades
ago Motorola, among others, proved larger address spaces and
memory mapped I/O was a preferable programming method.  I hope
chip designers are listening........we like memory mapped I/O,
and with greater than 32-bit addressing on many processors, there is
plenty of memory to map :-)

The SPRs are for different purposes.  These are logical extensions
to specific processor functions.  They are used in specific places
in the software, I've never experienced a need (except in the case of
the 403 that can't decide which spr to use for the timebase) that I
needed to have some code use different SPRs based on some input.
I don't see a need to provide a general access SPR function.

Of course, I thought of yet another method :-)  We could emulate
memory mapped I/O with DCRs.  We would reserve some VM space, access
to this would be trapped, and the offset would represent the DCR number.
Decode the GPR number from the load or store, and run the DCR move.



	-- Dan


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

  parent reply	other threads:[~2004-03-12 18:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-12  1:48 [RFC] "indirect" DCR access (40x, BookE) Eugene Surovegin
2004-03-12  2:46 ` Dan Malek
2004-03-12  3:05   ` Eugene Surovegin
2004-03-12  4:44     ` Stephen Williams
2004-03-12  4:54       ` Eugene Surovegin
2004-03-12 14:25         ` Kumar Gala
2004-03-12 14:53           ` Chuck Meade
2004-03-12 16:20           ` Eugene Surovegin
2004-03-12 18:01           ` Dan Malek [this message]
2004-03-19  4:00           ` Benjamin Herrenschmidt
2004-03-23  2:47             ` Eugene Surovegin
2004-04-01  5:36               ` Kumar Gala

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=4051FB08.7030903@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=612dlag102@sneakemail.com \
    --cc=ebs@ebshome.net \
    --cc=kumar.gala@motorola.com \
    --cc=linuxppc-embedded@lists.linuxppc.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).