Commit Graph

5 Commits

Author SHA1 Message Date
Zhen Kong c0f422d707 firmware: qcom: tz_log: Change fixed TZ log driver parameters
Debug buffer size and cpu count parameters of TZ log driver are fixed
and these values are changing from target to target. This patch adds
changes to get the cpu count from TZ and reads the DT parameter to get
the TZ debug buffer size.

Change-Id: I0e7605b8816f188058ea3087a75b3b375684206d
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2014-11-04 16:31:28 -08:00
Mitchel Humpherys 35d87707d3 firmware: qcom: tz_log: add error checking for ion_map_kernel
ion_map_kernel can return an ERR_PTR but we're currently assuming that
it always returns a valid pointer. Fix this by checking for IS_ERR
before dereferencing the pointer.

Change-Id: I2f606c042ad8c8ff6bc8db6501eed0a0924290fb
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2014-09-25 12:43:07 -07:00
Zhen Kong e7d75b5cb7 firmware: qcom: tz_log: Add support for the new scm_call2 API
The scm library has added support for a new secure world
interface that is more aligned to the ARMv8 SMC calling
convention. Use the new API while maintaining backward
compatibility.

Change-Id: I1fcf96b3a4ca55a7cd8c928d0f526250be5085bb
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2014-08-25 12:25:47 -07:00
Mitchel Humpherys 61b82c2113 ion: msm: remove superfluous function argument
msm_ion_client_create doesn't actually do anything with its heap_mask
parameter. Remove it. Also remove the extra argument from an audio
function that wraps msm_ion_client_create.

The following semantic patch was used to generate this patch:

    @@
    expression E1, E2;
    @@

    msm_ion_client_create(
    -       E1,
            E2)

    @@
    expression E1, E2;
    @@

    msm_audio_ion_client_create(
    -       E1,
            E2)

Change-Id: I403a125a1715b29a3db1f27c993abe0bc6d3fb11
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2014-05-27 15:28:48 -07:00
Zhen Kong 36629628e9 tz-log: add 64bit support for tz-log driver
change tz-log driver to support 64bit kernel and move it to
drivers/firmware/qcom folder.

Change-Id: Ifa3e907bd647a63c51146ef8a9d9e8dfcec0a9e6
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2014-03-30 22:32:12 -07:00