msm: cachedump: Add device tree support

Add device tree bindings for the MSM cache dumping driver,
with optional support for reporting the dump areas using
the memory dump reservation table.

Change-Id: Ia89dedd326c1c01d1c7137d7444bf32cdc0096bb
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: cachedump: Add cache maintenance for calls into TZ

The scm_call API is no longer providing implicit cache maintenance for
shared buffers. Add cache flushing for buffers heading towards TZ and
cache invalidation for buffers coming from TZ.

Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: use dma_alloc_coherent for L1/L2 cache dump buffers

Currently buffers for L1 and L2 cache dump are allocated using
allocate_contiguous_ebi_nomap() api. On devices with more than
2GB of memory, debug image crashes since these buffers end up
being allocated above 2GB address space which the debug image
currently does not support.Hence, use the dma api so as to
have these buffers be allocated below 2GB address space.

Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>