defconfig: arm64: msm: Enable MSM_DEBUG_LAR_UNLOCK for QCS405

Enable MSM_DEBUG_LAR_UNLOCK for QCS405. This allows unlocking
Core Debug lock to allow capture of upper 32 bits of program
counter at the time of system dump.

Change-Id: Idb1e8550f63763960d9ac0fdde41a09fbed4e513
Signed-off-by: Archit Saxena <archsaxe@codeaurora.org>
tirimbino
Archit Saxena 7 years ago
parent dfb894c59e
commit 9606f986ad
  1. 1
      arch/arm64/configs/vendor/qcs405_defconfig
  2. 9
      drivers/soc/qcom/Kconfig
  3. 9
      drivers/soc/qcom/memory_dump_v2.c

@ -412,6 +412,7 @@ CONFIG_MSM_SPM=y
CONFIG_MSM_L2_SPM=y
CONFIG_QCOM_SCM=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_MSM_DEBUG_LAR_UNLOCK=y
CONFIG_QCOM_WATCHDOG_V2=y
CONFIG_QCOM_FORCE_WDOG_BITE_ON_PANIC=y
CONFIG_QCOM_WDOG_IPI_ENABLE=y

@ -226,6 +226,15 @@ config QCOM_MEMORY_DUMP_V2
of deadlocks or cpu hangs these dump regions are captured to
give a snapshot of the system at the time of the crash.
config MSM_DEBUG_LAR_UNLOCK
bool "MSM Debug LAR Unlock Support"
depends on QCOM_MEMORY_DUMP_V2
help
This allows unlocking Core Debug lock to allow capture
of upper 32 bits of program counter at the time of
system crash. This is useful in getting correct crash
location.
config QCOM_WATCHDOG_V2
bool "Qualcomm Watchdog Support"
depends on ARCH_QCOM

@ -1,4 +1,4 @@
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2018, 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
@ -212,14 +212,9 @@ early_initcall(init_memory_dump);
static int __init init_debug_lar_unlock(void)
{
int ret;
uint32_t argument = 0;
struct scm_desc desc = {0};
if (!is_scm_armv8())
ret = scm_call(SCM_SVC_TZ, SCM_CMD_DEBUG_LAR_UNLOCK, &argument,
sizeof(argument), NULL, 0);
else
ret = scm_call2(SCM_SIP_FNID(SCM_SVC_TZ,
ret = scm_call2(SCM_SIP_FNID(SCM_SVC_TZ,
SCM_CMD_DEBUG_LAR_UNLOCK), &desc);
if (ret)
pr_err("Core Debug Lock unlock failed, ret: %d\n", ret);

Loading…
Cancel
Save