]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Allow building DC with clang on LoongArch
authorHuacai Chen <chenhuacai@loongson.cn>
Fri, 15 Nov 2024 15:02:25 +0000 (23:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 15:03:06 +0000 (10:03 -0500)
commit4217ef9ab763dbf8af2b0ecd3f74c0caa135668c
treedfea38d35eaee3179aa97d0e869ba4916165d093
parent2bc96c95070571c6c824e0d4c7783bee25a37876
drm/amd/display: Allow building DC with clang on LoongArch

Clang on LoongArch (18+) appears to be unaffected by the bug causing
excessive stack usage in calculate_bandwidth(). But when building DC_FP
support the stack frame size can be as large as 2816 bytes, which causes
the FRAME_WARN build warnings. So on LoongArch we allow building DC with
clang, but disable DC_FP by default.

The help message is also updated.

Tested-by: Rui Wang <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/Kconfig