lkml.org 
[lkml]   [2008]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] ioremap sanity check to catch mapping requests exceeding the BAR sizes
On Sat, 27 Sep 2008 07:43:55 -0700
Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> Alan Cox wrote:
> >> Any attempt to use ioremap on memory is a bug, so you should warn about
> >> that too.
> >>
> >
> > We use it to ioremap things like the BIOS...
>
> Yeah, that's fine. I mean using ioremap on system memory is a bug.

On system memory mapped by the kernel which I assume is what you mean -
the BIOS is often shadowed system memory and we have platforms where
memory pages not mapped into or managed the OS are ioremap() targets.

That however is getting pedantic - I just didn't want anyone to overdo
the sanity checks

Alan


\
 
 \ /
  Last update: 2008-09-27 18:29    [W:0.042 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site