]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/cpu: Clarify the error message when BIOS does not support SGX
authorWangYuli <wangyuli@uniontech.com>
Sun, 25 Aug 2024 10:46:53 +0000 (18:46 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Aug 2024 12:41:19 +0000 (14:41 +0200)
commit7678a53a1688e3d03337ca884b284c6e7b060ec5
tree515e36920b587e31d1f29bc16d3cb95699ec3b58
parentea49cdb26e7cffc261ceb1db26707e6d337fa104
x86/cpu: Clarify the error message when BIOS does not support SGX

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: https://github.com/linuxdeepin/developer-center/issues/10032
arch/x86/kernel/cpu/feat_ctl.c