Skip to content

sm8750: fastrpc_test fails: hap_example function FAILED with adsp DT nodes ported from downstream #267

@laklimov

Description

@laklimov

Hi,

after sending adsp fastrpc v3 patches for sm8750 I found time to actually fix and run fastrpc_test.

Unfortunately, one test fails there. The adsp device tree nodes were ported from downstream files without much changes.
The results of running the test case are the same for cdsp which was merged initially.

root@linaro-developer:~/github/fastrpc/test# fastrpc_test -d 0 -U 0 -t linux -a v68
Test PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output
[PASS] libmultithreading.so


Allocate 4000 bytes from ION heap
Creating sequence of numbers from 0 to 999
Compute sum on domain 0

Call calculator_sum on the DSP
Sum = 499500

Call calculator_max on the DSP
Max value = 999
[PASS] libcalculator.so


Demonstrating FARF run-time logging

hap_example function PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output

Demonstrating HAP_mem.h APIs
Error Code 0x4e : returned from hap_example_mem_dmahandle(handle, fd, offset, buffer_length)

hap_example function FAILED
Please look at the mini-dm logs or the adb logcat logs for DSP output
Error occurred with selector MEM (id: 1): 78

Demonstrating HAP_perf.h APIs

hap_example function PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output
[FAIL] libhap_example.so (error code: 0x4e)


========================================
Test Summary:
  Total tests run:    3
  Passed:             2
  Failed:             1
  Skipped:            0
========================================

RESULT: 1 test(s) FAILED

The same results are for v75. Apart from that adsprpcd works with dynamic loading of dsp libraries with audio_pd.

The details are here:
https://lore.kernel.org/linux-arm-msm/DEWCVSWNA1MN.10IT82HICKO8K@linaro.org/

The patchset v3 itself: https://lore.kernel.org/linux-arm-msm/20251209-sm8750-fastrpc-adsp-v3-0-ccfff49a8af9@linaro.org/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions