msm: ipa: Data path stall fixes and throughput optimizations

Without this commit, IPA data path can stall under high throughput
scenarios. The race condition that leads to loss of BAM interrupt
when switching from polling to interrupt mode is fixed.  Also, the
logic to replenish the recieve pool is made robust in the face of
low memory conditions. Lastly, various optimizations to make the SW
transmit and receive data path more efficient.

Change-Id: I705e646f544be8aeff127ecd727ffb7bd75ce924
Signed-off-by: Ravi Gummadidala <rgummadi@codeaurora.org>
5 files changed