mirror-linux/drivers/gpu/drm/amd/display/dc/dml
Nick Desaulniers e8a170ff9a drm/amdgpu: enable -msse2 for GCC 7.1+ users
A final attempt at enabling sse2 for GCC users.

Orininally attempted in:
commit 1011745073 ("drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines")

Reverted due to "reported instability" in:
commit 193392ed9f ("Revert "drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines"")

Re-added just for Clang in:
commit 0f0727d971 ("drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines")

The original report didn't have enough information to know if the GPF
was due to misalignment, but I suspect that it was. (The missing
information was the disassembly of the function at the bottom of the
trace, to see if the instruction pointer pointed to an instruction with
16B alignment memory operand requirements.  The stack trace does show
the stack was only 8B but not 16B aligned though, which makes this a
strong possibility).

Now that the stack misalignment issue has been fixed for users of GCC
7.1+, reattempt adding -msse2. This matches Clang.

It will likely never be safe to enable this for pre-GCC 7.1 AND use a
16B aligned stack in these translation units.

This is only a functional change for GCC 7.1+ users, and should be boot
tested.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=109487
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-10-30 11:56:20 -04:00
..
dcn20 drm/amd/display: add 50us buffer as WA for pstate switch in active 2019-10-30 11:56:15 -04:00
dcn21 drm/amdgpu: display_mode_vba_21: remove uint typedef 2019-10-02 12:58:33 -05:00
Makefile drm/amdgpu: enable -msse2 for GCC 7.1+ users 2019-10-30 11:56:20 -04:00
dc_features.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
display_mode_enums.h drm/amd/display: Update DML parameters 2019-08-15 10:55:17 -05:00
display_mode_lib.c drm/amd/display: Add DCN2.1 changes to DML 2019-08-29 15:52:34 -05:00
display_mode_lib.h drm/amd/display: Add Renoir DML 2019-08-29 15:52:33 -05:00
display_mode_structs.h drm/amd/display: Update DML parameters 2019-08-15 10:55:17 -05:00
display_mode_vba.c drm/amd/display: set Hratio and VRatio in dml 2019-08-23 11:37:39 -05:00
display_mode_vba.h drm/amd/display: Fix type of ODMCombineType field 2019-08-15 10:56:01 -05:00
display_rq_dlg_helpers.c drm/amd/display: clean up dml_init_instance 2019-03-19 15:36:49 -05:00
display_rq_dlg_helpers.h drm/amd/display: Restructuring and cleaning up DML 2017-10-21 16:45:24 -04:00
dml1_display_rq_dlg_calc.c drm/amd/display: Fix boolean expression in get_surf_rq_param 2019-01-14 15:04:50 -05:00
dml1_display_rq_dlg_calc.h drm/amd/display: dc: Remove unused display_mode_vba.c 2018-02-19 14:18:32 -05:00
dml_common_defs.c amdgpu/dc: inline dml_round_to_multiple 2017-10-21 16:53:03 -04:00
dml_common_defs.h drm/amd/display: Move DTRACE and dml_print defines 2018-03-14 15:08:45 -05:00
dml_inline_defs.h drm/amd/display: add some math functions for dcn_calc_math 2019-06-11 12:49:21 -05:00
dml_logger.h drm/amd/display: Use MACROS instead of dm_logger 2018-03-14 15:08:45 -05:00