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

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

Merge "msm: ipa: Enable register dump/collection for Kona"

parents 1ed7b1f5 fe6a3cab
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -92,6 +92,16 @@ memory allocation over a PCIe bridge
				over pcie bus or not.
- qcom,ipa-wdi2_over_gsi: Boolean context flag to indicate WDI2 offload over GSI
				supported or not.
- qcom,register-collection-on-crash: Boolean that controls IPA/GSI register
				collection upon system crash (i.e. SSR).
- qcom,testbus-collection-on-crash: Boolean that controls testbus register
				collection upon system crash.
- qcom,non-tn-collection-on-crash: Boolean to control a certain subset of IPA/GSI
				register collection relative to an SSR.  Accessing
				these registers can cause stalling, hence this
				control.
- qcom,entire-ipa-block-size: Complete size of the ipa block in which all
				registers, collected upon crash, reside.

Optional properties:
-qcom,ipa-pipe-mem: Specifies the base physical address and the
+5 −0
Original line number Diff line number Diff line
@@ -2206,6 +2206,11 @@
		qcom,throughput-threshold = <600 2500 5000>;
		qcom,scaling-exceptions = <>;

		qcom,entire-ipa-block-size = <0x100000>;
		qcom,register-collection-on-crash;
		qcom,testbus-collection-on-crash;
		qcom,non-tn-collection-on-crash;

		ipa_smmu_ap: ipa_smmu_ap {
			compatible = "qcom,ipa-smmu-ap-cb";
			iommus = <&apps_smmu 0x5C0 0x0>;
+1 −0
Original line number Diff line number Diff line
@@ -465,6 +465,7 @@ CONFIG_RNDIS_IPA=y
CONFIG_MSM_11AD=m
CONFIG_USB_BAM=y
CONFIG_QCOM_GENI_SE=y
CONFIG_IPA3_REGDUMP=y
CONFIG_QCOM_MDSS_PLL=y
CONFIG_QCOM_MDSS_DP_PLL=y
CONFIG_QCOM_CLK_RPMH=y
+1 −0
Original line number Diff line number Diff line
@@ -479,6 +479,7 @@ CONFIG_RNDIS_IPA=y
CONFIG_MSM_11AD=m
CONFIG_USB_BAM=y
CONFIG_QCOM_GENI_SE=y
CONFIG_IPA3_REGDUMP=y
CONFIG_QCOM_MDSS_PLL=y
CONFIG_QCOM_MDSS_DP_PLL=y
CONFIG_QCOM_CLK_RPMH=y
+38 −0
Original line number Diff line number Diff line
@@ -182,4 +182,42 @@ config QCOM_GENI_SE
	  module is used to configure and read the configuration from the
	  Serial Engines.

config IPA3_REGDUMP
	bool "Dump or collect IPA/GSI register values on Linux crash"
	depends on IPA3
	help
	  This option is to be used when the saving of IPA register state is
	  desired upon a fatal system exception. When an exception occurs,
	  an IPA register collection algorithm will be run in the context of
	  the exception handler.  A predefined set of registers will be read
	  and their values will be placed into a static hierarchical data
	  structure that can be perused post crash.

choice
	prompt "Platform whose registers are to be dumped/collected"
	depends on IPA3_REGDUMP
	help
	  The choices within represent the possible platforms this build is
	  intended for. The choices are mutually exclusive.  By selecting
	  one, you effect the inclusion path used, such that the relevant
	  register definitions will be found.  Each platform has unique
	  register definitions.

config IPA3_REGDUMP_IPA_4_5
	bool "The 4.5 IPA"
	depends on IPA3_REGDUMP
	depends on ARCH_KONA
	help
	  Set this to enable the 4.5 IPA's registers to be dumped/collected.

endchoice

config IPA3_REGDUMP_NUM_EXTRA_ENDP_REGS
	int "The number of extra endp registers for remaining pipes"
	depends on IPA3_REGDUMP
	default 0
	help
	  If the platform has extra endpoint registers for remaining
	  pipes, please express how many here.

endmenu
Loading