Skip to content

Commit bcf8eb9

Browse files
committed
tests: boards: intel_adsp/smoke: remove IPC for CPU test
The IPC is only needed for old hardware earlier than CAVS 2.5. They are no longer supported in the tree as their board configs have been removed. So there is no need to do IPC anymore. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent 8ec5784 commit bcf8eb9

File tree

1 file changed

+0
-20
lines changed
  • tests/boards/intel_adsp/smoke/src

1 file changed

+0
-20
lines changed

tests/boards/intel_adsp/smoke/src/cpus.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,8 @@ static void halt_and_restart(int cpu)
159159
{
160160
printk("halt/restart core %d...\n", cpu);
161161
static bool alive_flag;
162-
uint32_t all_cpus = BIT(arch_num_cpus()) - 1;
163162
int ret;
164163

165-
/* On older hardware we need to get the host to turn the core
166-
* off. Construct an ADSPCS with only this core disabled
167-
*/
168-
if (!IS_ENABLED(CONFIG_SOC_INTEL_CAVS_V25)) {
169-
intel_adsp_ipc_send_message(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_ADSPCS,
170-
(all_cpus & ~BIT(cpu)) << 16);
171-
}
172-
173164
ret = soc_adsp_halt_cpu(cpu);
174165
zassert_ok(ret, "Couldn't halt CPU");
175166

@@ -178,17 +169,6 @@ static void halt_and_restart(int cpu)
178169
k_msleep(100);
179170
zassert_false(alive_flag, "cpu didn't halt");
180171

181-
if (!IS_ENABLED(CONFIG_SOC_INTEL_CAVS_V25)) {
182-
/* Likewise need to ask the host to turn it back on,
183-
* and give it some time to spin up before we hit it.
184-
* We don't have a return message wired to be notified
185-
* of completion.
186-
*/
187-
intel_adsp_ipc_send_message(INTEL_ADSP_IPC_HOST_DEV, IPCCMD_ADSPCS,
188-
all_cpus << 16);
189-
k_msleep(50);
190-
}
191-
192172
k_smp_cpu_start(cpu, NULL, NULL);
193173

194174
/* Startup can be slow */

0 commit comments

Comments
 (0)