[lkml]   [2005]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][patch 0/2] mm: remove PageReserved
    On Tue, 9 Aug 2005, Benjamin Herrenschmidt wrote:
    > > ioremap is making a similar check to the one remap_pfn_range used
    > > to make; but I see no good reason for it at all. ioremap should be
    > > allowed to map whatever the caller asked, just as memset is allowed
    > > to set whatever the caller asked.
    > This is dodgy actually. memset can't be guaranteed to work on IOs or
    > other non-cacheable memory (including real RAM that has been mapped
    > non-cacheable, typically RAM that has been "set aside" for other uses as
    > described above, wether it's for AGP, or for some weird processor DMA
    > bounce buffers or whatever ..., that is RAM that is out of the normal
    > kernel control).

    That was my point: memset goes ahead without making funny little checks,
    and works or not, so I don't see why ioremap needs to make these funny
    little checks. If the driver doesn't know what it's doing (not impossible,
    I accept), what's the likelihood that PageReserved or not will save it?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-08-09 16:48    [W:0.021 / U:3.988 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site