• Carl Vanderlip's avatar
    accel/qaic: Expand DRM device lifecycle · 5f0a0ebc
    Carl Vanderlip authored
    
    
    Currently the QAIC DRM device registers itself when the MHI QAIC_CONTROL
    channel becomes available. This is when the device is able to process
    workloads. However, the DRM driver also provides the debugfs interface
    bootlog for the device. If the device fails to boot to the QSM (which
    brings up the MHI QAIC_CONTROL channel), the bootlog won't be available for
    debugging why it failed to boot.
    
    Change when the DRM device registers itself from when QAIC_CONTROL is
    available to when the card is first probed on the PCI bus. Additionally,
    make the DRM driver persist through reset/error cases so the driver
    doesn't have to be reloaded to access the card again. Send
    KOBJ_ONLINE/OFFLINE uevents so userspace can know when DRM device is
    ready to handle requests.
    Signed-off-by: default avatarCarl Vanderlip <quic_carlv@quicinc.com>
    Reviewed-by: default avatarPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
    Reviewed-by: default avatarJeffrey Hugo <quic_jhugo@quicinc.com>
    Signed-off-by: Jeffrey Hugo <quic_jhugo@qui...
    5f0a0ebc
qaic.rst 9.8 KB