soc: qcom: ipa: AP/modem communications
authorAlex Elder <elder@linaro.org>
Fri, 6 Mar 2020 04:28:28 +0000 (22:28 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2020 05:07:10 +0000 (22:07 -0700)
commit530f9216a9537b58cdc2f967b5cd78f5dafb34c4
treef5ffb4c246e3d40c3df558643df1b7ba2146a27d
parenta646d6ec90983204398ac20ee26b80ff3ea0852b
soc: qcom: ipa: AP/modem communications

This patch implements two forms of out-of-band communication between
the AP and modem.

  - QMI is a mechanism that allows clients running on the AP
    interact with services running on the modem (and vice-versa).
    The AP IPA driver uses QMI to communicate with the corresponding
    IPA driver resident on the modem, to agree on parameters used
    with the IPA hardware and to ensure both sides are ready before
    entering operational mode.

  - SMP2P is a more primitive mechanism available for the modem and
    AP to communicate with each other.  It provides a means for either
    the AP or modem to interrupt the other, and furthermore, to provide
    32 bits worth of information.  The IPA driver uses SMP2P to tell
    the modem what the state of the IPA clock was in the event of a
    crash.  This allows the modem to safely access the IPA hardware
    (or avoid doing so) when a crash occurs, for example, to access
    information within the IPA hardware.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_qmi.c [new file with mode: 0644]
drivers/net/ipa/ipa_qmi.h [new file with mode: 0644]
drivers/net/ipa/ipa_qmi_msg.c [new file with mode: 0644]
drivers/net/ipa/ipa_qmi_msg.h [new file with mode: 0644]
drivers/net/ipa/ipa_smp2p.c [new file with mode: 0644]
drivers/net/ipa/ipa_smp2p.h [new file with mode: 0644]