Skip to content

Conversation

@plbossart
Copy link
Member

Previous commits reduced the verbosity of errors during boot
iterations, but there are still a couple remaining.

Signed-off-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com

@plbossart
Copy link
Member Author

This should e.g. remove spurious CI errors on ICL RVP. @ranj063 @fredoh9 FYI

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

@plbossart @ranj063 It feels we are sinking deeper with more and more code to handle the ICL boot case. I did spend some time looking at better options, but came back empty handed, so with the off-by-one fixed, seems good to go.

@plbossart plbossart requested review from kv2019i and ranj063 August 25, 2020 16:18
@plbossart
Copy link
Member Author

@kv2019i @ranj063 @lyakh updated code, I am not too happy about the code but it makes CI happier so unless you have an alternate suggestion let's go with this?

@ranj063
Copy link
Collaborator

ranj063 commented Aug 25, 2020

@kv2019i @ranj063 @lyakh updated code, I am not too happy about the code but it makes CI happier so unless you have an alternate suggestion let's go with this?

@plbossart did you forget to push? I dont see the updated code

ranj063
ranj063 previously approved these changes Aug 25, 2020
lyakh
lyakh previously approved these changes Aug 26, 2020
Copy link
Collaborator

@lyakh lyakh left a comment

Choose a reason for hiding this comment

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

the proposed change is optional

@plbossart plbossart dismissed stale reviews from lyakh and ranj063 via cbc4ccc August 26, 2020 16:00
@plbossart plbossart force-pushed the fix/boot-error-logs branch from 1048f3a to cbc4ccc Compare August 26, 2020 16:00
@plbossart plbossart requested a review from juimonen as a code owner August 26, 2020 16:00
@plbossart plbossart requested review from lyakh and ranj063 August 26, 2020 20:49
ranj063
ranj063 previously approved these changes Aug 26, 2020
Copy link
Collaborator

@ranj063 ranj063 left a comment

Choose a reason for hiding this comment

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

LGTM @plbossart. I like the new macro. I think it will be useful in the future as well

Previous commits reduced the verbosity of errors during boot
iterations, but there are still a couple remaining which generate
false positives. Errors should only be logged when after last attempt
to download firmware failed.

Duplicating logs and assigning them different levels based on the
iteration number isn't really elegant, use macro as suggested by
Guennadi.

Suggested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@ranj063
Copy link
Collaborator

ranj063 commented Aug 26, 2020

@plbossart are the checkpatch warnings about spaces before tabs legitimate?

@plbossart plbossart requested a review from ranj063 August 26, 2020 20:54
@plbossart
Copy link
Member Author

sorry @ranj063 looks like I dismissed your review by pushing a tab/space fix.

@plbossart
Copy link
Member Author

i'll merge this tonight so that we can have a clean set of CI results - well until we find new issues.

Copy link
Collaborator

@lyakh lyakh left a comment

Choose a reason for hiding this comment

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

that superfluous empty line is, well, not a deal-breaker I guess

dev_err(sdev->dev, "error: extended rom status:%s", msg);
sof_dev_dbg_or_err(sdev->dev, hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS,
"extended rom status: %s", msg);

Copy link
Collaborator

Choose a reason for hiding this comment

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

one empty line too many :-)

@plbossart plbossart merged commit a85e834 into thesofproject:topic/sof-dev Aug 27, 2020
xiulipan added a commit to xiulipan/sof-test that referenced this pull request Aug 28, 2020
With thesofproject/linux#2382
no error logs will generate in boot time. Udpate the err list
and ignore list with this update.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
@keyonjie
Copy link

keyonjie commented Aug 31, 2020

Sorry for late but with this change we even not throwing any warning message when boot failed on those first iterations?

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