Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a92aebb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: msm_minidump: Configurable Encryption support"

parents edf462cd 91292d8e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -513,3 +513,4 @@ CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
CONFIG_IPC_LOG_MINIDUMP_BUFFERS=16
# CONFIG_QCOM_MINIDUMP_ENCRYPT is not set
+10 −0
Original line number Diff line number Diff line
@@ -645,6 +645,16 @@ config MINIDUMP_MAX_ENTRIES
	  This defines maximum number of entries to be allocated for application
	  subsytem in Minidump table.

config QCOM_MINIDUMP_ENCRYPT
	bool "QCOM Minidump Encryption Required"
	depends on QCOM_MINIDUMP
	default y
	help
	  This adds a support to decide whether the regions in minidump
	  table should be encrypted or not. By default, encryption is done
	  by the boot firmware and the decision for encryption is taken by
	  the subsystems.

config QCOM_MICRODUMP
	tristate "Qualcomm Technologies, Inc. Microdump Support"
	depends on MSM_SUBSYSTEM_RESTART
+7 −2
Original line number Diff line number Diff line
@@ -570,8 +570,13 @@ static int __init msm_minidump_init(void)
	minidump_table.revision = md_global_toc->md_revision;
	md_ss_toc = &md_global_toc->md_ss_toc[MD_SS_HLOS_ID];

	if (IS_ENABLED(CONFIG_QCOM_MINIDUMP_ENCRYPT)) {
		md_ss_toc->encryption_status = MD_SS_ENCR_NONE;
		md_ss_toc->encryption_required = MD_SS_ENCR_REQ;
	} else {
		md_ss_toc->encryption_status = MD_SS_ENCR_DONE;
		md_ss_toc->encryption_required = MD_SS_ENCR_NOTREQ;
	}

	minidump_table.md_ss_toc = md_ss_toc;
	minidump_table.md_regions = kzalloc((MAX_NUM_ENTRIES *