From: Sonny Rao <sonnyrao@us.ibm.com>
To: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] Fix BSR to allow mmap of small BSR on 64k kernel
Date: Wed, 19 Nov 2008 11:04:38 -0600 [thread overview]
Message-ID: <20081119170438.GA16240@us.ibm.com> (raw)
In-Reply-To: <18723.37096.243151.673526@cargo.ozlabs.ibm.com>
On Wed, Nov 19, 2008 at 03:07:04PM +1100, Paul Mackerras wrote:
> Sonny Rao writes:
>
> > - if (io_remap_pfn_range(vma, vma->vm_start, dev->bsr_addr >> PAGE_SHIFT,
> > - size, vma->vm_page_prot))
> > + /* check for the case of a small BSR device and map one 4k page for it*/
> > + if (dev->bsr_len < PAGE_SIZE && size == PAGE_SIZE)
> > + ret = remap_4k_pfn(vma, vma->vm_start, dev->bsr_addr >> 12,
> > + vma->vm_page_prot);
>
> I think we should be checking that dev->bsr_len == 4096 here.
>
> Paul.
Well, dev->bsr_len could be 4096 or 8192
--
Sonny Rao, LTC OzLabs, BML team
next prev parent reply other threads:[~2008-11-19 17:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 0:38 [PATCH] Fix BSR to allow mmap of small BSR on 64k kernel Sonny Rao
2008-11-07 5:28 ` Paul Mackerras
2008-11-07 23:25 ` Sonny Rao
2008-11-17 7:26 ` Sonny Rao
2008-11-19 4:07 ` Paul Mackerras
2008-11-19 17:04 ` Sonny Rao [this message]
2008-11-19 22:54 ` Paul Mackerras
2008-11-20 19:20 ` Sonny Rao
2009-06-19 1:13 ` Sonny Rao
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=20081119170438.GA16240@us.ibm.com \
--to=sonnyrao@us.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).