[PATCH] Fix BSR to allow mmap of small BSR on 64k kernel
Paul Mackerras
paulus at samba.org
Fri Nov 7 16:28:29 EST 2008
Sonny Rao writes:
> Fix the BSR driver to allow small BSR devices, which are limited to a
> single 4k space, on a 64k page kernel. Previously the driver would
> reject the mmap since the size was smaller than PAGESIZE (or because
> the size was greater than the size of the device). Now, we check for
> this case use remap_4k_pfn(). Also, take out code to set vm_flags,
> as the remap_pfn functions will do this for us.
Thanks.
Do we know that the BSR size will always be 4k if it's not a multiple
of 64k? Is it possible that we could get 8k, 16k or 32k or BSRs?
If it is possible, what does the user need to be able to do? Do they
just want to map 4k, or might then want to map the whole thing?
Paul.
More information about the Linuxppc-dev
mailing list