• L
    pseries: define coldplugged devices as "configured" · 785652dc
    Laurent Vivier 提交于
    When a device is hotplugged, attach() sets "configured" to
    false, waiting an action from the OS to configure it and then
    to call ibm,configure-connector. On ibm,configure-connector,
    the hypervisor sets "configured" to true.
    
    In case of coldplugged device, attach() sets "configured" to
    false, but firmware and OS never call the ibm,configure-connector
    in this case, so it remains set to false.
    
    It could be harmless, but when we unplug a device, hypervisor
    waits the device becomes configured because for it, a not configured
    device is a device being configured, so it waits the end of configuration
    to unplug it... and it never happens, so it is never unplugged.
    
    This patch set by default coldplugged device to "configured=true",
    hotplugged device to "configured=false".
    Signed-off-by: NLaurent Vivier <lvivier@redhat.com>
    Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    785652dc
spapr_drc.c 24.7 KB