linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Eugene Surovegin <ebs@ebshome.net>
To: Parav Pandit <paravpandit@yahoo.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: page locking in PowerPC cores
Date: Tue, 18 Jul 2006 16:35:54 -0700	[thread overview]
Message-ID: <20060718233554.GA27549@gate.ebshome.net> (raw)
In-Reply-To: <20060718110350.28445.qmail@web36614.mail.mud.yahoo.com>

On Tue, Jul 18, 2006 at 04:03:50AM -0700, Parav Pandit wrote:
> Hi,
>    
>   We allocate memory for DMA operation on PCI device using pci_alloc_constistent().
>    
>   I want to know how this function is boil down to the actual instruction which locks the page in the RAM so that it cannot be paged out and dma can do its work.

This is trivial - you can start with looking at the implementation.

>    
>   Can anybody tell me which instructions do we use to set this page entry in TLB and page table?
>   What bit gets set in the PTE for this?

Why do you need this page in TLB?

In general you don't have to worry about _any_ memory you allocated in 
the kernel to be paged out.

-- 
Eugene

  reply	other threads:[~2006-07-18 23:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 11:03 page locking in PowerPC cores Parav Pandit
2006-07-18 23:35 ` Eugene Surovegin [this message]
2006-07-19  4:45   ` Parav Pandit
2006-07-20 18:50     ` Benjamin Herrenschmidt

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=20060718233554.GA27549@gate.ebshome.net \
    --to=ebs@ebshome.net \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=paravpandit@yahoo.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;
as well as URLs for NNTP newsgroup(s).