Acked-by: Jordan Lazare <jordan.laz...@amd.com>

-----Original Message-----
From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf Of Harry 
Wentland
Sent: Friday, May 19, 2017 10:01 AM
To: amd-gfx@lists.freedesktop.org
Cc: Wentland, Harry <harry.wentl...@amd.com>; Daenzer, Michel 
<michel.daen...@amd.com>; Laktyushkin, Dmytro <dmytro.laktyush...@amd.com>; 
Deucher, Alexander <alexander.deuc...@amd.com>; Cheng, Tony 
<tony.ch...@amd.com>; Koenig, Christian <christian.koe...@amd.com>
Subject: [PATCH] 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 allow building this on architectures other than x86.

CC: Alex Deucher <alexander.deuc...@amd.com>
CC: Christian König <christian.koe...@amd.com>
CC: Michel Dänzer <michel.daen...@amd.com>
CC: Tony Cheng <tony.ch...@amd.com>
CC: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>
Signed-off-by: Harry Wentland <harry.wentl...@amd.com>
---

Tested this change by running make menuconfig and make modules with ARCH=arm.

Harry

 drivers/gpu/drm/amd/display/Kconfig           | 2 +-
 drivers/gpu/drm/amd/display/dc/calcs/Makefile | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/Kconfig 
b/drivers/gpu/drm/amd/display/Kconfig
index 2b8d77cebe03..62ea9f600374 100644
--- a/drivers/gpu/drm/amd/display/Kconfig
+++ b/drivers/gpu/drm/amd/display/Kconfig
@@ -11,7 +11,7 @@ config DRM_AMD_DC
 
 config DRM_AMD_DC_DCN1_0
         bool "DCN 1.0 Raven family"
-        depends on DRM_AMD_DC
+        depends on DRM_AMD_DC && X86
         help
             Choose this option if you want to have
             RV family for display engine diff --git 
a/drivers/gpu/drm/amd/display/dc/calcs/Makefile 
b/drivers/gpu/drm/amd/display/dc/calcs/Makefile
index a095472bf4b5..2e4ce0918c02 100644
--- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile
@@ -3,9 +3,11 @@
 # It calculates Bandwidth and Watermarks values for HW programming  #
 
+ifeq ($(ARCH),x86)
 CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4  
CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4  
CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4
+endif
 
 BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o
 
--
2.11.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to