• B
    ipr: Reboot speed improvements · 4fdd7c7a
    Brian King 提交于
    Currently when performing a reboot with an ipr adapter,
    the adapter gets shutdown completely, flushing all write
    cache, as well as performing a full hardware reset of the card
    during the shutdown phase of the old kernel. This ensures
    the adapter is in a fully quiesced state across the reboot.
    
    There are scenarios, however, such as when performing
    kexec, where this full adapter shutdown is not required
    and not desired, since it can make the reboot process take
    noticeably longer.
    
    This patch adds a module parameter to allow for skipping the
    full shutdown during reboot. Rather than performing a full
    adapter shutdown and reset, we simply cancel any outstanding
    error buffers, place the adapter into a state where it has no
    memory of any DMA addresses from the old kernel, then disable
    the device. This significantly speeds up kexec boot, particularly
    in configurations with multiple ipr adapters.
    Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
    Reviewed-by: NWen Xiong <wenxiong@linux.vnet.ibm.com>
    Reviewed-by: NDaniel Kreling <kreling@linux.vnet.ibm.com>
    Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
    4fdd7c7a
ipr.c 289.5 KB