Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented May 19, 2023

+ move some rimage-related code around to prepare for the switch to west build (1st part of successfully tested draft TEST PR #7595)

No functional change.

One of the last parts for this v2.6 requirement:

@marc-hb marc-hb marked this pull request as ready for review May 22, 2023 15:49
@marc-hb marc-hb added this to the v2.6 milestone May 22, 2023
@marc-hb
Copy link
Collaborator Author

marc-hb commented May 22, 2023

Only one test in https://sof-ci.01.org/sofpr/PR7661/build8213/devicetest/index.html?model=MTLP_RVP_SDW&testcase=check-runtime-pm-status failed like this. This failure looks new but it can't be caused by this PR, it's unrelated:

2023-05-20 00:01:33 UTC [REMOTE_COMMAND] sof-tplgreader.py /usr/lib/firmware/intel/sof-ace-tplg/sof-mtl-rt711-4ch.tplg -f 'type:any & ~pcm:HDMI' -b ' pcm:HDA Digital' -s 0 -e
2023-05-20 00:01:33 UTC [REMOTE_INFO] ===== Iteration 1 of 3 for DMIC =====
2023-05-20 00:01:33 UTC [REMOTE_COMMAND] arecord -D hw:0,10 -r 48000 -c 4 -f S32_LE /dev/null -q
2023-05-20 00:01:36 UTC [REMOTE_INFO] runtime status: active
2023-05-20 00:01:36 UTC [REMOTE_COMMAND] kill process: kill -9 30098
2023-05-20 00:01:36 UTC [REMOTE_INFO] arecord killed
2023-05-20 00:01:36 UTC [REMOTE_INFO] wait dsp power status to become suspended
2023-05-20 00:01:48 UTC [REMOTE_ERROR] dsp is not suspended after 10s, end test
2023-05-20 00:01:48 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2023-05-20 00:01:48 UTC [REMOTE_ERROR]  die()  @  /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2023-05-20 00:01:48 UTC [REMOTE_ERROR]  func_check_dsp_status()  @  /home/ubuntu/sof-test/test-case/check-runtime-pm-status.sh:46
2023-05-20 00:01:48 UTC [REMOTE_ERROR]  main()  @  /home/ubuntu/sof-test/test-case/check-runtime-pm-status.sh:112
2023-05-20 00:01:48 UTC [REMOTE_INFO] pkill -TERM -f mtrace-reader.py
2023-05-20 00:01:48 UTC [REMOTE_INFO] ktime=481 sof-test PID=29904: ending
2023-05-20 00:01:48 UTC [REMOTE_INFO] Test Result: FAIL!

https://sof-ci.01.org/sofpr/PR7661/build8214/devicetest and everything else are all green.

marc-hb added 7 commits May 24, 2023 04:19
For rimage parameters, parse new, static versions.json file instead of
generated sof_versions.h file. This will make possible to configure
rimage before west build.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
In some cases it was difficult to separate the command's output from the
extra environment it ran in.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Zero functional change, pure clean-up.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This makes no difference now because it has no side-effect yet but it
will make a difference once it starts using `west config`.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
We used to use `-- -c rimage/config/platf.toml` for the IPC4 overlay and
the older `--tool-data rimage/config/` for the rest. This was confusing,
inconsistent and used to print this warning:

```
WARNING: --tool-data /var/home/mherber2/SOF/sof/rimage/config ignored,
         overridden by: -- -c ...
```

`--tool-data` was always a bad idea. It looks generic but it's not; it
allows changing only a config directory that is always in the same
location.

Copy what `west sign` does with `--tool-data`, drop it and use `-- -c`
always.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Unlike rimage_configuration(), rimage_options() will be kept free of
side-effect.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Zero functional change. This will allow excluding some options.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb force-pushed the rimage-refactor branch from 8e1e6af to c907f4a Compare May 24, 2023 04:21
Copy link
Contributor

@aborisovich aborisovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I won't be blocking this because there are dependencies to Zephyr as @marc-hb described in the feature request. Python code looks ok. We just need to find the time to improve this solution.

@kv2019i kv2019i merged commit 2ac64cf into thesofproject:main May 24, 2023
@marc-hb marc-hb deleted the rimage-refactor branch July 12, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants