[lkml]   [2008]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Replacement for page fault notifiers?
    On Thu, 2008-01-10 at 06:58 +1100, Benjamin Herrenschmidt wrote:
    > On Wed, 2008-01-09 at 18:21 +0000, Christoph Hellwig wrote:
    > > On Wed, Jan 09, 2008 at 01:18:44PM -0500, Pavel Roskin wrote:
    > > > notification without patching the kernel. But if no such solution is
    > > > found, I would also support reverting the patch that removed fault
    > > > notifiers on i386.
    > >
    > > With your fixation on not patching the kernel you sound like a windows
    > > developer.

    I just assumed (wrongly, as it seems) that the API change didn't remove
    any useful functionality.

    Also, I don't want to ask users with unusual hardware to patch their
    kernels to take the trace.

    > > There is no problem with patching the kernel, but the best
    > > patching of that kernel is that which happens upstream so please folks
    > > start submitting an mmiotrace variant for kernel inclusion.

    The problem is that mmiotrace only makes sense in combination with
    non-free drivers, and I'm not sure it would be welcome in the kernel
    even if you say so.

    The hooks for page faults could be useful for something (debugging, some
    non-traditional swap implementations), but I don't want to invent
    reasons why somebody else might need them.

    > > Then again I don't quite get why you absolutely want to track pagefaults
    > > anyway. Just hooking into ioremap and read*/write* and iomap +
    > > ioread*/iowrite* would be much easier and also a lot faster. It would
    > > also allow adding a nice sysfs attribute to enable this per-device.
    > Because binary drivers don't use ioread/iowrite/readX/writeX (or if they
    > do, they've long been inlined in the blob). The only solution is to map
    > things as non-accessible and trap the page faults.

    Exactly. In MadWifi, they are inlined on i386 and x86_64, and I cannot
    ask every user with an unsupported card to get a Mac.

    > It's a sane thing to do, Christoph, I don't think it's a unreasonable
    > request to put the hooks back in.


    Pavel Roskin

     \ /
      Last update: 2008-01-09 21:27    [W:0.020 / U:4.596 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site