Skip to content

Commit bf2e2e2

Browse files
Harry Wentlandalexdeucher
authored andcommitted
drm/amd/display: Limit DCN to x86 arch
DCN bw calcs currently rely on the following gcc options: -mhard-float -msse -mpreferred-stack-boundary=4 We probably shouldn't really try building this on architectures other than x86. CC: Alex Deucher <Alexander.Deucher@amd.com> CC: Christian König <christian.koenig@amd.com> CC: Michel Dänzer <michel.daenzer@amd.com> CC: Tony Cheng <Tony.Cheng@amd.com> CC: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c147355 commit bf2e2e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/gpu/drm/amd/display/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config DRM_AMD_DC_PRE_VEGA
1919

2020
config DRM_AMD_DC_DCN1_0
2121
bool "DCN 1.0 Raven family"
22-
depends on DRM_AMD_DC
22+
depends on DRM_AMD_DC && X86
2323
help
2424
Choose this option if you want to have
2525
RV family for display engine

drivers/gpu/drm/amd/display/dc/calcs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
# It calculates Bandwidth and Watermarks values for HW programming
44
#
55

6+
ifeq ($(ARCH),x86)
67
CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4
78
CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4
89
CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4
10+
endif
911

1012
BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o
1113

0 commit comments

Comments
 (0)