• Saravana Kannan's avatar
    driver core: Add fw_devlink.sync_state command line param · ffbe08a8
    Saravana Kannan authored
    When all devices that could probe have finished probing (based on
    deferred_probe_timeout configuration or late_initcall() when
    !CONFIG_MODULES), this parameter controls what to do with devices that
    haven't yet received their sync_state() calls.
    
    fw_devlink.sync_state=strict is the default and the driver core will
    continue waiting on all consumers of a device to probe successfully
    before sync_state() is called for the device. This is the default
    behavior since calling sync_state() on a device when all its consumers
    haven't probed could make some systems unusable/unstable. When this
    option is selected, we also print the list of devices that haven't had
    sync_state() called on them by the time all devices the could probe have
    finished probing.
    
    fw_devlink.sync_state=timeout will cause the driver core to give up
    waiting on consumers and call sync_state() on any devices that haven't
    yet received their sync_state() calls. This option is provided for
    systems that won't become unusable/unstable as they might be able to
    save power (depends on state of hardware before kernel starts) if all
    devices get their sync_state().
    Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
    Link: https://lore.kernel.org/r/20230304005355.746421-2-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ffbe08a8
dd.c 35 KB