mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: Toshi Kani <toshi.kani@hp.com>
Cc: "linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Dutt\, Sudeep" <sudeep.dutt@intel.com>, "Rao\,
	Nikhil" <nikhil.rao@intel.com>, "Williams\,
	Dan J" <dan.j.williams@intel.com>
Subject: Re: Regression in v4.2-rc1: vmalloc_to_page with ioremap
Date: Wed, 22 Jul 2015 00:13:15 -0700	[thread overview]
Message-ID: <tnm1tfv4gzmus.fsf@mic-login.pdx.intel.com> (raw)
In-Reply-To: <1437511150.3214.230.camel@hp.com> (Toshi Kani's message of "Tue, 21 Jul 2015 14:39:10 -0600")

On Tue, Jul 21 2015 at 01:39:10 PM, Toshi Kani <toshi.kani@hp.com> wrote:
>
> You can do the following instead.  If you have the physical address already
> (i.e. the address you passed to ioremap), you can skip slow_virt_to_phys().
>  pfn_to_page() is a hack for the time being so that you can use the same
> DMA mapping APIs.
>
>   phys = slow_virt_to_phys(vaddr);
>   page = pfn_to_page(phys >> PAGE_SHIFT);
>
> Dan is working on the change to introduce __pfn_t.  With this change, you
> can pass a pfn, instead of a fake page pointer, to APIs.  You may want to
> check if your APIs are covered in this change.
> https://lkml.org/lkml/2015/6/5/802

Thanks, we can do this for now till Dan's changes come online. Also, we
already have the physical address. We will submit a patch with this
change.

Ashutosh

  parent reply	other threads:[~2015-07-22  7:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-18 18:04 Dixit, Ashutosh
2015-07-20 15:54 ` Toshi Kani
2015-07-20 15:59   ` Toshi Kani
2015-07-20 18:33     ` Ashutosh Dixit
2015-07-20 19:21       ` Toshi Kani
2015-07-21 15:17         ` Ashutosh Dixit
2015-07-21 20:39           ` Toshi Kani
2015-07-21 20:43             ` Toshi Kani
2015-07-22  7:13             ` Ashutosh Dixit [this message]
2015-07-22 14:54               ` Toshi Kani

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=tnm1tfv4gzmus.fsf@mic-login.pdx.intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikhil.rao@intel.com \
    --cc=sudeep.dutt@intel.com \
    --cc=toshi.kani@hp.com \
    /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®