mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anil kumar <anils_r@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: page_address issue
Date: Fri, 13 Oct 2006 10:32:06 -0700 (PDT)	[thread overview]
Message-ID: <20061013173207.2608.qmail@web32409.mail.mud.yahoo.com> (raw)

Hi,

How can I confirm if the address returned from
page_address is correct?
The system is EM64T. My hardware supports only 32bit
DMA.
The kernel is 2.6.16 based (SLES10).
The following is the snippet of the code:
if(cmd->use_sg){

unsigned char *pBuf;
sg = (struct scatterlist *)cmd->request_buffer;

pBuf = (unsigned char
*)page_address(sg->page)+sg->offset

}

The number of DMA buffers returned from dma_map_sg is
one. 
I don't think it involves any page boundary issues as
the length of the buffer and offset are well within
the page.
The command is Inquiry. 
I checked the page is a NOT a HighMemPage

The system is 64bit, but the hardware dma capability
is only 32bit. Has this got something to do?
I also checked swiotlb is enabled.

Any help is greatly appreciated.

with regards,
  Anil


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

                 reply	other threads:[~2006-10-13 17:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20061013173207.2608.qmail@web32409.mail.mud.yahoo.com \
    --to=anils_r@yahoo.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®