-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Arm virt psci on armmonitorlib #5933
Arm virt psci on armmonitorlib #5933
Conversation
9f423b9
to
be18c2c
Compare
be18c2c
to
a34e797
Compare
This looks reasonable to me, but is it possible to have a single ArmResetSystemLib, since this new version just depends on a feature PCD to determine whether to make SMC or HVC calls, we could do away with the SMC only version? |
Yes, we could remove ArmSmcPsciResetSystemLib after this change, but we'd have to update the users in edk2-platforms first. |
a08ce8a
to
c4d9fce
Compare
Sounds good. I can queue that up after this change, I think it is worthwhile to only have one lib to maintain. |
@makubacki @mdkinney This PR Please advise how to determine why these checks failed from the CI web UI. |
bdad961
to
46d2cc1
Compare
I'm not 100% sure why the attachment is not in the test results, it might be related to audit mode being enabled for uncrustify in ArmPkg. Which means the test was skipped and therefore it may not be shown. I see it in test results UI for other packages that do not have Uncrustify in audit mode. Audit mode also means Uncrustify didn't contribute to the CI failure, it was EccCheck from the ECC errors. To find it in this case, in the published artifacts, if you download the
The build log (from the zip file) will also list the files that need formatting:
Running Uncrustify on those files will make the changes needed. |
No, this is not the case. Both EccCheck and Uncrustify failed, but not on a file in ArmPkg so the AuditMode has not bearing on this.
Thanks, this is useful. But could we please fix the CI so the attachments are accessible again? If needed, I can create a dummy PR against ArmVirtPkg (which has AuditMode disabled for Uncrustify) to illustrate the issue. |
Can you please clarify? Are you saying you don't think AuditMode impacted the test results being shown in the UI? I will look at that in more detail, I just can't do so today. EccCheck failed with two errors in ArmPkg:
Uncrustify was skipped for two files in ArmPkg:
The total run had 1 failure (the one from ECC, which was a failure and not a skip):
|
Yes, because the example I am referring to was about a file in ArmVirtPkg not ArmPkg. If you look at the conversation log, you will notice that after the comment about the missing attachment I rebased the branch but also updated it.
Sure, no rush as far as I am concerned. I figured out in the mean time what the issue was with those particular files. But it would be nice to have that functionality restored. I created a test PR here: |
The below looks like a separate anomaly:
The file has this
and the same PR was tested multiple times, and this is the first time this bit is flagged as an error. The patch in question is identical, but I did rebase it in the mean time. Any clue what is going on here? I created another test PR #5958 which has the patch in question in isolation. The tests are still running but I wonder if EccCheck will produce the same error, as the patch is identical to the one in this series. |
PR can not be merged due to conflict. Please rebase and resubmit |
46d2cc1
to
3c433e6
Compare
dceab98
to
a2cab48
Compare
171bd28
to
fdfcce9
Compare
Switch to the new, generic ArmPsciResetSystemLib implementation that obtains the conduit using ArmMonitorLib, of which a version already exists that determines the conduit by looking up the PSCI DT node. This permits the removal of the ArmVirtPkg specific implementation of ResetSystemLib, which essentially does the exact same thing, but in a single library. Signed-off-by: Ard Biesheuvel <[email protected]>
The TPM2 related PEIMs depend on ResetSystemLib too, and so in order to be able to switch to the generic ArmPkg implementation which relies on ArmMonitorLib, the latter library class requires a PEIM-compatible implementation too. Signed-off-by: Ard Biesheuvel <[email protected]>
Retire the special ResetSystemLib implementation for the PEI phase on virtual platforms, which has been superseded by the generic version combined with a PEI-compatible implementation of ArmMonitorLib. Signed-off-by: Ard Biesheuvel <[email protected]>
fdfcce9
to
7776ffd
Compare
Related to #5922
The first patch was taken from #5922 but should not be merged as part of this PR.