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

Commit d7858044 authored by Nixy Hsu's avatar Nixy Hsu Committed by sean-sy.su
Browse files

[ALPS08824370] aov apu: add more debug msg for SCP IPI



[Description]
1. add more debug msg for SCP IPI
2. fix typo in a returned value checking

[Test]
build pass, aov apu unit test pass

MTK-Commit-Id: 3f92226961d9d33a4f76f7fa28a11dfcd52eff81

CR-Id: ALPS08824370
Feature: np_micro
Change-Id: I2844addab9b053c09ca065b92380b35c7928c745
Signed-off-by: default avatarNixy Hsu <nixy.hsu@mediatek.com>
parent 634611b0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ static int npu_response_arrived(struct npu_scp_ipi_param *param)
		return -ENODEV;
	}

	pr_debug("%s get response\n", __func__);
	atomic_set(&ctx->response_arrived, 1);
	complete(&ctx->comp);

@@ -438,6 +439,8 @@ int npu_scp_ipi_send(struct npu_scp_ipi_param *send_msg, struct npu_scp_ipi_para

	atomic_set(&ctx->response_arrived, 0);

	dev_dbg(ctx->dev, "%s send scp ipi, cmd %d, act %d\n", __func__, send_msg->cmd,
		send_msg->act);
	do {
		ret = mtk_ipi_send(&scp_ipidev, IPI_OUT_NPU_SCP, IPI_SEND_WAIT,
				   send_msg, 4, 0);
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ enum npu_scp_test_status {
};

#define SCP_IPI_TIMEOUT_MS (10)
#define TESTCASE_TIMEOUT_MS (10000)
#define TESTCASE_TIMEOUT_MS (100)

#define NPU_SCP_RET_OK			(0)
#define NPU_SCP_RET_TEST_START_ERR	(-1)
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ static int aov_recovery_scp_notifier_call(struct notifier_block *this,
	if (event == SCP_EVENT_STOP) {
		pr_info("%s receive scp stop event\n", __func__);
		ret = aov_recovery_cb();
		if (!ret)
		if (ret)
			pr_info("%s Failt to aov_recovery_cb, ret %d\n", __func__, ret);
	} else if (event == SCP_EVENT_READY)
		pr_info("%s receive scp ready event\n", __func__);