[Deepin Kernel SIG] x86/cpu: Clarify the error message when BIOS does not support SGX #423
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[ Upstream commit 7678a53a1688e3d03337ca884b284c6e7b060ec5 ]
When SGX is not supported by the BIOS, the kernel log contains the error 'SGX disabled by BIOS', which can be confusing since there might not be an SGX-related option in the BIOS settings.
For the kernel it's difficult to distinguish between the BIOS not supporting SGX and the BIOS supporting SGX but having it disabled.
Therefore, update the error message to 'SGX disabled or unsupported by BIOS' to make it easier for those reading kernel logs to understand what's happening.
Reported-by: Bo Wu wubo@uniontech.com
Co-developed-by: Zelong Xiang xiangzelong@uniontech.com
Signed-off-by: Zelong Xiang xiangzelong@uniontech.com
Signed-off-by: WangYuli wangyuli@uniontech.com
Signed-off-by: Thomas Gleixner tglx@linutronix.de
Acked-by: Kai Huang kai.huang@intel.com
Link: https://lore.kernel.org/all/F8D977CB368423F3+20240825104653.1294624-1-wangyuli@uniontech.com Closes: linuxdeepin/developer-center#10032 [ Backport from v6.12-rc1 ]