msm: kgsl: Disable index reg dump during snapshot

Disabling index reg dump for these chipsets (8974, 8x26, 8x10).

CRs-Fixed: 751620
Change-Id: Ie1014bd18b49692f718279cfe7abaed874a376af
Signed-off-by: Anupam Sakargayan <asakarga@codeaurora.org>
Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
dtc: add integer overflow checks in fdt header

Protect against integer overflows caused by malformed fdt headers.

CRs-Fixed: 749977
Change-Id: I51d87038f520bc761b163d291b0138c513c69a33
Signed-off-by: Vijay Kumar Pendoti <vpendo@codeaurora.org>
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
msm: kgsl: Device mutex lock for kgsl_cancel_event

kgsl_cancel_event must be called with device->mutex
otherwise it will cause a BUG_ON in kgsl_cancel_event

CRs-fixed: 761881

Change-Id: I904f3321edaa07505077fe53d82e09f9200e3781
Signed-off-by: Anupam Sakargayan <asakarga@codeaurora.org>
Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>
power: qpnp-bms: always limit soc to [0, 100]

Currently, soc is only limited to [0, 100] when adjust_soc runs.
However, there are some cases where the main algorithm of adjust_soc is
skipped, due to charging, SOC being too high or in the flat region of
the PC/OCV curve.

This can cause issues where SOC is calculated to be over 100 or under
0, which is undesirable. Fix this by moving the bound_soc call to the
main calculate_soc function so that it is never skipped.

CRs-Fixed: 697713
Change-Id: I641f513d182c62731a4fc115f29c0e38e5ec4c14
Signed-off-by: klozz <xxx.reptar.rawrr.xxx@gmail.com>