mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Linh Dang <dang.linh@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][PPC32[NEWBIE] enhancement to virt_to_bus/bus_to_virt (try 2)
Date: Fri, 3 Dec 2004 07:31:14 +1100	[thread overview]
Message-ID: <16815.31634.698591.747661@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <3b2b320041202082812ee4709@mail.gmail.com>

Linh Dang writes:

> In 2.6.9 on non-APUS ppc32 platforms, virt_to_bus() will just subtract
> KERNELBASE  from the the virtual address. bus_to_virt() will perform
> the reverse operation.
> 
> This patch will make virt_to_bus():
> 
>      - perform the current operation if the virtual address is between
>        KERNELBASE and ioremap_bot.

Why do you want to do this?  The only code that should be using
virt_to_bus or bus_to_virt is the DMA API code, and it's happy with
them the way they are.

> The patch also changes virt_to_phys()/phys_to_virt() in a similar way.

What do you want to use them for?  They are only for use in low-level
memory management code.

Paul.

  reply	other threads:[~2004-12-02 20:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-02 14:49 [PATCH][PPC32] enhancement to virt_to_bus/bus_to_virt (resent with spell-checked subject line) Linh Dang
2004-12-02 16:28 ` [PATCH][PPC32[NEWBIE] enhancement to virt_to_bus/bus_to_virt (try 2) Linh Dang
2004-12-02 20:31   ` Paul Mackerras [this message]
2004-12-03 14:46     ` Linh Dang
2004-12-05 10:11       ` Eugene Surovegin
2004-12-05 19:18         ` Linh Dang
2004-12-05 20:52           ` Eugene Surovegin
2004-12-05 21:12       ` Paul Mackerras
2004-12-06  1:31         ` Linh Dang
2004-12-06  1:56         ` Linh Dang

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=16815.31634.698591.747661@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=dang.linh@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®