Skip to content
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

Braswell MR2: Internal UART can't be disabled #15

Closed
PatrickRudolph opened this issue Mar 6, 2019 · 11 comments
Closed

Braswell MR2: Internal UART can't be disabled #15

PatrickRudolph opened this issue Mar 6, 2019 · 11 comments

Comments

@PatrickRudolph
Copy link

Internal UART can't be disabled using UPDs PcdEnableHsuart0/PcdEnableHsuart1.
See https://review.coreboot.org/#/c/coreboot/+/28464/ for reference.

@PatrickRudolph
Copy link
Author

Adding @swang57 @nate-desimone-intel

@PatrickRudolph
Copy link
Author

It's been a month without a reply. Any update on this issue ?

@nate-desimone
Copy link
Contributor

Hi @PatrickRudolph, we just posted the latest and greatest version, can you give this one a try and see if it helps?

@siro20
Copy link

siro20 commented Apr 20, 2019

@nate-desimone Where is it? It's not on the master branch.

@nate-desimone
Copy link
Contributor

Hi @siro20, yes it is:

https://github.com/IntelFsp/FSP/tree/master/BraswellFspBinPkg/FspBin

Version 1.1.8.0 was posted last Friday, we matched the 1.1.8.0 commit date with the date that the binary was originally compiled.

@PatrickRudolph
Copy link
Author

Bug is still valid as reported in https://review.coreboot.org/c/coreboot/+/28464

@PatrickRudolph
Copy link
Author

It's been a few month. Any update on this issue?

@nate-desimone
Copy link
Contributor

Hi All,

It looks like this issue was found during development of the firmware for the "Facebook FBG-1701" system. Would it be possible for someone from Facebook whom has a support contract with Intel to file an IPS ticket?

I think the added justification of a customer with a support contract asking for this fix will increase visibility on this issue. Otherwise Intel management is unlikely to allocate engineering time for new firmware development on a 5 year old SoC, especially since you have a workaround.

@dhendrix
Copy link

It seems we'll get a Technical Advisory, but a new FSP will not be released to fix this. Perhaps the fix will come in a future FSP release, but for now https://review.coreboot.org/c/coreboot/+/28464 will need to be used as a workaround.

@swong23
Copy link
Contributor

swong23 commented Nov 26, 2019

This shouldn't be an FSP issue:
The reason why ACPI mode is always enabled is not due to FSP firmware bug. It is a combination of coreboot ACPI override code and serial console delay.

The FSP is correctly populating PcdEnableHsuart0 and PcdEnableHsuart1.

The serial console delays its output on first boot that it only displays debug logs during DXE. By that time coreboot has already overridden HSUART1 and HSUART2 in ACPI mode. That is why the logs always report ACPI mode is enabled.

--> To workaround it for coreboot, kindly apply the patch as illustrated as follow:
BRASWELL_CB_MR2_001_16-NOV-2015_HSUART_1_2_DISABLE_FIX_patch

This patch will target only to coreboot and this can be the permanent fix.

It has been tested with BCT to check whether or not if the changes will take effect.
The patch works every time when changing PcdEnableHsuart0 and PcdEnableHsuart1, it is reflected in the logs. In Yocto, it's verified that HSUART1 is active when enabled.

@swong23 swong23 closed this as completed Nov 26, 2019
@dhendrix
Copy link

Thanks @swong23! I added a comment at https://review.coreboot.org/c/coreboot/+/28464/ to let others know that you have found the root cause.

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

No branches or pull requests

5 participants