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

Commit bf1da2e9 authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa4: Mhi test case fix



Add offset for even_ring_bufs. Fix a buff offset error with
1pa3_write used in MHI test case. Remove support for
aggr_open tests for IPAv4.0 and greater.

CRs-fixed: 2158591
Change-Id: Ie207dc234787013163a1eecf11c8bde8bf7bcce4
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent f38ea00b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4608,7 +4608,7 @@ static ssize_t ipa3_write(struct file *file, const char __user *buf,
	}

	if (count > 0)
		dbg_buff[count - 1] = '\0';
		dbg_buff[count] = '\0';

	/* Prevent consequent calls from trying to load the FW again. */
	if (ipa3_is_ready())
+4 −3
Original line number Diff line number Diff line
@@ -612,7 +612,8 @@ static int ipa_mhi_test_config_channel_context(
		p_events[ev_ring_idx].rp =
			(u32)event_ring_bufs[ev_ring_idx].phys_base;
		p_events[ev_ring_idx].wp =
			(u32)event_ring_bufs[ev_ring_idx].phys_base;
			(u32)event_ring_bufs[ev_ring_idx].phys_base +
			event_ring_bufs[ev_ring_idx].size - 16;
	} else {
		IPA_UT_LOG("Skip configuring event ring - already done\n");
	}
@@ -3261,11 +3262,11 @@ IPA_UT_DEFINE_SUITE_START(mhi, "MHI for GSI",
	IPA_UT_ADD_TEST(suspend_resume_with_open_aggr,
		"several suspend/resume iterations with open aggregation frame",
		ipa_mhi_test_in_loop_suspend_resume_aggr_open,
		true, IPA_HW_v3_0, IPA_HW_MAX),
		true, IPA_HW_v3_0, IPA_HW_v3_5_1),
	IPA_UT_ADD_TEST(force_suspend_resume_with_open_aggr,
		"several force suspend/resume iterations with open aggregation frame",
		ipa_mhi_test_in_loop_force_suspend_resume_aggr_open,
		true, IPA_HW_v3_0, IPA_HW_MAX),
		true, IPA_HW_v3_0, IPA_HW_v3_5_1),
	IPA_UT_ADD_TEST(suspend_resume_with_host_wakeup,
		"several suspend and host wakeup resume iterations",
		ipa_mhi_test_in_loop_suspend_host_wakeup,