[lkml]   [2010]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2/2] pm_trace: Add sysfs attr for rechecking dev hash.

    > If the device which fails to resume is part of a loadable kernel module
    > it won't be checked at startup against the magic number stored in the
    > RTC.
    > Add a read-only sysfs attribute /sys/power/pm_trace_dev_hash which
    > contains a list of newline separated devices (usually just the one)
    > which currently match the last magic number. This allows the device
    > which is failing to resume to be found after the modules are loaded
    > again.

    > --- a/Documentation/power/s2ram.txt
    > +++ b/Documentation/power/s2ram.txt
    > @@ -49,6 +49,13 @@ machine that doesn't boot) is:
    > device (lspci and /sys/devices/pci* is your friend), and see if you can
    > fix it, disable it, or trace into its resume function.
    > + If no device matches the hash, it may be a device from a loadable kernel
    > + module that is not loaded until after the hash is checked. You can check
    > + the hash against the current devices again after more modules are loaded
    > + using sysfs:
    > +
    > + cat /sys/power/pm_trace_dev_hash
    > +

    Yep, but exact semantics of that sysfs file should probably be linked
    in the sysfs documentation...
    (cesky, pictures)

     \ /
      Last update: 2010-10-10 20:07    [W:0.023 / U:1.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site