-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib.sh: mtrace doesn't require ldc file on IPC4_Zephyr platforms #1056
Conversation
We use mtrace on IPC4 Zephyr platforms and it doesn't require ldc file. So add an exception for IPC4 Zephyr platforms before the ldc checking. Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would also disable mtrace. How did you test this?
What problems does this solve? Just a warning maybe? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would also disable mtrace
Sorry I got confused because I get confused every time I look at this really bad area of the code. To help me (and everyone else) get less confused next time please add this:
# Should _background_ log collection be disabled?
# This test should be called background_logger_disabled()
# Once-off log collection at the end of the test is not affected.
logger_disabled()
{
...
I still don't see why this patch is needed; what problem does it solve and in which configuration?
If you find the message confusing the please change it to '.ldc dictionary file not found, background SOF logs collection disabled'
In the future we will have complete, background logs collection with Zephyr too.
Why would it also disable mtrace? I checked it on CAVS 2.5 IPC4 platforms, mtrace works well without ldc file and CI tests passed without side-effects.
sof-logger only work on IPC3 platforms and corresponding ldc files are also required. But on IPC4 platforms, we use mtrace which doesn't require the ldc file. So if ldc file is missing on IPC4 platforms, then sof log collection will be disabled during the test.
So this PR will skip checking the ldc file on IPC4 platforms to make sure mtrace works properly. |
Moreover, if no ldc file, check-sof-logger.sh will also fail on IPC4 platforms, it has a hard dependency. Please correct me, but I think ldc file has nothing to do with IPC4 zephyr firmware. |
Just remove that bit entirely. I wanted this "feature" (see #811) but no one else requested it so I bet no one else is using it. Everyone is probably using SOF_LOGGING=none. Or rather: everyone is using mtrace because no one works on stable-v2.2. So just remove that bit. We need the logging logic in sof-test to become simpler, not more complicated. |
OK but:
In other words: if you're missing the useless .ldc file right now, you have a deployment bug that you should also look into. I'm OK with removing that code because we will stop building .ldc in the future but right now this PR is trying to hide a bug in your deployment code. Not good. |
I think we have 3 scenarios now.
So the right approach is to simplify our logic and only consider these 3 scenarios. I will try to simplify the sof-test logic for logging and move the .ldc dependency in check_sof-logger.sh. |
You dropped non-Intel IPC3 Zephyr on the main branch.
Deployment MUST always deploy complete packages. Deployment must never mess with individual files. Deployment must know nothing about individual files.
Great.
No, the logging test should not have a different logic. The logging test should only inspect the SAME logs as the other tests, it should just keep searching for different things but in the SAME log files.
Does this solve your current problem? Whatever it is. |
I just want to get ride of ldc file on IPC4 platforms. I entirely agree that we must deploy complete packages. But it cannot solve all problems. So my idea is:
|
I have submitted a PR #1065 based on my above comment. It's not perfect, but please review it first. |
superseded by newer #1065, close? |
We use mtrace on IPC4 Zephyr platforms and it doesn't require ldc file. So add an exception for IPC4 Zephyr platforms before the ldc checking.