All of lore.kernel.org
 help / color / mirror / Atom feed
From: mod+linuxppc-embedded@world-f.std.com
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: How does one get physical address for iorempped window?
Date: Mon, 19 Feb 2001 14:15:35 -0500	[thread overview]
Message-ID: <200102191915.OAA29416@world.std.com> (raw)


>virt_to_*/*_to_virt functions _should_ have become
>something more generic, but they are just yet another macro
>name for doing the same thing.  Now, we have gone of and
>created some pci_* mapping functions, which are not at all
>useful for highly integrated processors because their
>integrated features are not PCI devices.  Yet another set
>of functions for integrated processors?  I don't think so.
>
>I think that requiring knowledge of the object attributes
>for a VM or physical space so you can call the proper
>mapping or other management functions is just a poor
>design.  If you know this information and wish to take
>performance enhancement shortcuts, that's fine, but it
>shouldn't be required.


What if you're working on a system with multiple PCI
busses (or even multiple disparate bus types) and it's
not possible to map Host memory at the same address on
all busses?  Being able to refer to something like, say,
the appropriate pci_bus* when invoking virt_to_bus()
could make it possible to accomodate those different
mappings.  I'm certainly not a fan of pointlessly
complex code, but the one-size-fits-all implementation
of virt_to_bus() seen in my 25Jan-vintage kernel sources
(it just lops off the KERNEL_OFFSET bits and adds
pci_dram_offset) won't work in situations such as those
I just described.


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

             reply	other threads:[~2001-02-19 19:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-19 19:15 mod+linuxppc-embedded [this message]
2001-02-19 19:53 ` How does one get physical address for iorempped window? Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2001-02-19 21:12 mod+linuxppc-embedded
2001-02-15 17:58 Subodh Nijsure
2001-02-15 18:10 ` Dan Malek
2001-02-18 16:28 ` Matt Porter
2001-02-19 17:59   ` Dan Malek
2001-02-15 16:05 Subodh Nijsure
2001-02-15 17:03 ` Dan Malek

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=200102191915.OAA29416@world.std.com \
    --to=mod+linuxppc-embedded@world-f.std.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 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.