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

Commit 235a85a9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Fix BAM register dump logic for ipav3"

parents cd040798 2be998ee
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -3727,7 +3727,8 @@ int ipa3_straddle_boundary(u32 start, u32 end, u32 boundary)
}

/**
 * ipa3_bam_reg_dump() - Dump selected BAM registers for IPA and DMA-BAM
 * ipa3_bam_reg_dump() - Dump selected BAM registers for IPA.
 * The API is right now used only to dump IPA registers towards USB.
 *
 * Function is rate limited to avoid flooding kernel log buffer
 */
@@ -3738,8 +3739,11 @@ void ipa3_bam_reg_dump(void)
	if (__ratelimit(&_rs)) {
		ipa3_inc_client_enable_clks();
		pr_err("IPA BAM START\n");
		sps_get_bam_debug_info(ipa3_ctx->bam_handle, 5, 511950, 0, 0);
		sps_get_bam_debug_info(ipa3_ctx->bam_handle, 93, 0, 0, 0);
		sps_get_bam_debug_info(ipa3_ctx->bam_handle, 93,
			(SPS_BAM_PIPE(ipa3_get_ep_mapping(IPA_CLIENT_USB_CONS))
			|
			SPS_BAM_PIPE(ipa3_get_ep_mapping(IPA_CLIENT_USB_PROD))),
			0, 2);
		ipa3_dec_client_disable_clks();
	}
}