crypto: msm: check potential integer overflow

According to the specification of AEAD, AEAD request crypt length is
not a fixed maximum and associated length is also same. This could
lead to potential integer overflow, thus allocating less memory. So
we need to check potential integer overflow on AEAD request length.

CRs-Fixed: 726872
Change-Id: Ie7708000bfd8c57e2fba8e02230a7ce9cdc9634c
Signed-off-by: William Clark <wclark@codeaurora.org>
Merge "crypto: msm: check potential integer overflow"
qseecom: Check if ce clock is enabled before sending cmd to TZ

Make change to check if ce clock is enabled before sending command
to TZ, then to prevent data aborting if clock is not enabled for
TZ crypto operation.

CRs-Fixed: 726840
Change-Id: I55b5b10ad80e741c39f8cf411f67e6b83887f3bb
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: William Clark <wclark@codeaurora.org>
qseecom: Enable/disable clock for client if bus scaling is not enabled

To avoid the service failure on a target where bus scaling flag is not
enabled in target device tree file by mistake, make a change to enable/
disable crypto clocks when the client calls to scale up bus bandwidth
and send command even if bus scaling feature is not enabled.

CRs-Fixed: 726840
Change-Id: Ib33a535051b68561bde5ab6a23ad0f02dc27ab13
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Revert "msm: mdss: protect command mode BW votes by tracking HW/SW states"

This reverts commit eed775ce1268b60817bba16ca8b4efcb8f78d159.

Change-Id: I7ad61f03c0d027a23aa31700ba22b2fbaa1b6511
Signed-off-by: Vinay Verma <vvinay@codeaurora.org>
Merge "Revert "msm: mdss: protect command mode BW votes by tracking HW/SW states""
Revert "msm: mdss: release mdp bandwidth voting for command mode when idle"

This reverts commit 964efc22d11732daf996dd07d7c930c523200143.

Change-Id: I9a1d42130dfbce80e2e9879b19581cbee612bb8f
Signed-off-by: Vinay Verma <vvinay@codeaurora.org>
Revert "ARM: dts: Increase the ib fudge factor to 2"

This reverts commit fee8674d032d609bd6137ab3877372d729aac5d6.

Change-Id: Ib8f61c2c544942b0c9a70e0be65e56ee1949605b
Signed-off-by: Vinay Verma <vvinay@codeaurora.org>
Revert "ARM: dts: set ab fudge factor to 1"

This reverts commit f406f3196d97aa1cf56e7459cf45a082a188665e.

Change-Id: Id9f70a31a22389600c1483635b2bb34a7da90a16
Signed-off-by: Vinay Verma <vvinay@codeaurora.org>
Revert "msm: mdss: fix issue of overlapping BW for two adjacent surfaces"

This reverts commit e333804dd4f7cb497064918a9c7a1b6394a297e1.

Change-Id: I95fc276978ede4ea2f2fc89382745005a5af7192
Signed-off-by: Vinay Verma <vvinay@codeaurora.org>
Merge "Revert "msm: mdss: release mdp bandwidth voting for command mode when idle""
Merge "Revert "ARM: dts: Increase the ib fudge factor to 2""
Merge "Revert "ARM: dts: set ab fudge factor to 1""
Merge "Revert "msm: mdss: fix issue of overlapping BW for two adjacent surfaces""
Merge "qseecom: Check if ce clock is enabled before sending cmd to TZ"
Merge "qseecom: Enable/disable clock for client if bus scaling is not enabled"
Merge 7e02ada00106e8c903ac076f61eee6354b2067e7 on remote branch

Change-Id: Idc7093772ca500c9d3f28b1d89d5200ecc83ec6f
Merge "Merge 7e02ada00106e8c903ac076f61eee6354b2067e7 on remote branch"