summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom
diff options
context:
space:
mode:
authorSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>2017-02-14 15:28:51 -0800
committerSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>2017-02-15 18:03:02 -0800
commit8cb928e04e3974f45e4b3d9d9b792d09d0bb97ad (patch)
tree7bc555caa130b30151a45b6430b1db9b49dd1ce0 /drivers/soc/qcom
parent3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff)
soc: qcom: ramdump: Remove page alignment during ramdump collection
Due to page alignment, memory size is exceeding and SMMU fault is observed while collecting ramdumps for ADSP subsystem. Change-Id: Ibadedcbac4eb83382d913e893722967e86775ea0 Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r--drivers/soc/qcom/ramdump.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/soc/qcom/ramdump.c b/drivers/soc/qcom/ramdump.c
index 08499c549b47..c712ed392b0b 100644
--- a/drivers/soc/qcom/ramdump.c
+++ b/drivers/soc/qcom/ramdump.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -326,13 +326,7 @@ static int _do_ramdump(void *handle, struct ramdump_segment *segments,
if (rd_dev->complete_ramdump) {
for (i = 0; i < nsegments-1; i++)
segments[i].size =
- PAGE_ALIGN(segments[i+1].address - segments[i].address);
-
- segments[nsegments-1].size =
- PAGE_ALIGN(segments[nsegments-1].size);
- } else {
- for (i = 0; i < nsegments; i++)
- segments[i].size = PAGE_ALIGN(segments[i].size);
+ segments[i + 1].address - segments[i].address;
}
rd_dev->segments = segments;