Skip to content

include/dts-functions.sh: Do not throw error when hfsts6 cannot be read #37

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

Open
wants to merge 1 commit into
base: minnowboard-config
Choose a base branch
from

Conversation

PLangowski
Copy link
Contributor

No description provided.

@PLangowski PLangowski changed the base branch from main to minnowboard-config October 18, 2024 07:33
@PLangowski PLangowski force-pushed the minnowboard-config branch 2 times, most recently from 0c22b51 to 13ab2d9 Compare October 18, 2024 08:08
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Copy link
Contributor

@miczyg1 miczyg1 left a comment

Choose a reason for hiding this comment

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

You have to return error, because you cannot determine if platform is fused. Thus you should not attempt installing
Dasharo.

The proper solution would be to return when there is less that 6 HFSTS registers. But that won't completely help either, because on Bay Trail platforms like Intel MinnowMax the fuse information has to be read from TXE/ME using a message communication.

@PLangowski
Copy link
Contributor Author

@miczyg1
If we try to install Dasharo on a fused platform it will just fail anyway, right? Is it not safe to attempt this?
If it's safe, then I think it's a better alternative to being unable to install Dasharo on an unfused platform (I'm currently experiencing this on an unfused Turbot)

@miczyg1
Copy link
Contributor

miczyg1 commented Oct 18, 2024

@miczyg1 If we try to install Dasharo on a fused platform it will just fail anyway, right?

it will not fail, that's the problem. THe whole purpose of fuse check was to prevent bricks.

Is it not safe to attempt this?

it is not safe to attempt it. In most (if not all) cases you will end up with a brick.

If it's safe, then I think it's a better alternative to being unable to install Dasharo on an unfused platform (I'm currently experiencing this on an unfused Turbot)

That's not a better alternative at all. We want to be able to deploy Dasharo on Turbot...

Copy link
Contributor

@DaniilKl DaniilKl left a comment

Choose a reason for hiding this comment

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

@PLangowski, could you please add comments to functions check_if_fused and check_if_boot_guard_enabled? You are doing some complex registers values interpretation here, but it is not clear why you are doing this (you could add comments which describe the purpose of these functions, not all dts-scripts developers are aware of Intel fuses technology) and how (you could explain why you are reading these registers and these bits, and not others).

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.

3 participants