Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4787316imu; Tue, 29 Jan 2019 07:31:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4AYmGm6SB8F/sq8HWnNtX2/9/ZehfTJbOcUj1g7f8D+L/57B/Px+eWCgqPb40i12qwP9pF X-Received: by 2002:a63:6442:: with SMTP id y63mr23978690pgb.450.1548775874822; Tue, 29 Jan 2019 07:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548775874; cv=none; d=google.com; s=arc-20160816; b=chpVXnL7d2r/2bc00cEPHXR5kk0IQ8LiSfKX7rVnGPPj1FIjp3pzqnS+YLV31A6poN xPxyE1eSLM8caZT0rZ+nU8IHRNHAKtfcMrlF7V8ONnP8qJt6NmMEXbTrsyZ3vi6e8Olj a43lj7qshMZHMVXyv0YjxMzasshtiDm5Z2B1h2WWgEFx95RhiqF8m1MLOcKH/w+din86 V+QEaaE3faDjUMcRjOiwcLjHiGf7MPGC30COs3h2MsRpqSAEvZDTcxECMhilvOfduqNl 6BmAGo+go/vad8p9kZDQLuHFd81j/1sZuhR4syKfUQP6HJHxgdH4mMC/Pit6MYmCUm+H xcaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ApP0G7zhFbiBNT4ApKogZnRvv1+iU2xMzLHxYpKK6vM=; b=hYeIGD6gWazw4JhKFARUg+sgr7q5O6jdGXZZ7/NKWWBKKxExnt9i6eNi/8uO7z7VTz 4rebHBi5d4thLoR6egsCoudcc+ugT7/wtCyDrMlYeLji/VAiF2hL3zicxmCznYTm3kgc hZzAh0JqwVlBDfx5e0EBXvOJGe8LenVr8svlrdqC9Kq0KGZ9VR5alm4MJAct9eE8hUJJ rrIKW4D+rXYwGUX/B0613KLELj1KbcbxCp78DXH4t6Y/7LqHrmEjlfRNyqmdGkPOikp8 i3uaRd761a+EDEyXdKe3tRumb5QCIqeL3IUWzJHPf7e9w7It0dW0sfJGNGVRZ0e6nn89 yXnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EB2b13aw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si13341059plp.85.2019.01.29.07.30.58; Tue, 29 Jan 2019 07:31:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EB2b13aw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728234AbfA2Paq (ORCPT + 99 others); Tue, 29 Jan 2019 10:30:46 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:32809 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbfA2Paq (ORCPT ); Tue, 29 Jan 2019 10:30:46 -0500 Received: by mail-wm1-f67.google.com with SMTP id r24so13238510wmh.0; Tue, 29 Jan 2019 07:30:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ApP0G7zhFbiBNT4ApKogZnRvv1+iU2xMzLHxYpKK6vM=; b=EB2b13awBjwlF7iMMYVeHFEErTB3YUwNsZZ4E32chgSWCN4j+bOxbLNA1e3WEJqkvh jWVgI1fg3zmKnj4TtKybKwJoCC+5ZawqTrUsrmVLuYoos2pHYxjQlLje0d+3DIB9mmE8 LgTidnXtqo+XsjBQaWJu4Wlkjrizp8E3S665rsTWvmzLV4RD21RPJkbrZZZkPyXTO+k2 KE40nz81yBa9RvRh4WSkgj/dSm9uu7WqKuRjGjxZkQzhNPpsaTbhyB4LHWIYZm3PX7Ew YsxOzC6hvuBBwgaosRlEvWMp/N9XpXOWEVyWJFKlzf88s1iyaq5Ilzhw/qrvrq+kZ8C+ YDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ApP0G7zhFbiBNT4ApKogZnRvv1+iU2xMzLHxYpKK6vM=; b=kzV3BV0rjKGdL4iewL3THWYdOcf+E+IgKVWZGngcGcoCZlzFr74NRJba35ZbhRtOTA XQLA4huhuQdu+m3KMq00QSls5NzFE1sFz/V/9V+ge3klvCXymoeYV+EHlaFIM2P61H5e akxzZNxT1txNad1YE3rKRIXkUwp+uXPTBICVclUVNqgC6oTQExXkAE2q2XO7jMZ2ORVa aGXCZR7s9WiDGe/jhgLo3ddWdnPhPnxyjXgCcsxXkZzvrEMGbPyBwDav88YnvUwIl/5N iOzf05Io7nCdGr+kHMJ2+DA/FcW5JRboEyilMwJ0uiNEmmgyjHlKtnOmzgfeMiVuGWeM qiTg== X-Gm-Message-State: AJcUuke8zvfS65lxuyPs+63vF4ITk/Qs+X+F1VJWAxBOk9Py1yr3LtBx wauiDGT8n8hh7BfT+BMoVv8WePNDX7J0/h9qXN4= X-Received: by 2002:a1c:6243:: with SMTP id w64mr21188256wmb.153.1548775843989; Tue, 29 Jan 2019 07:30:43 -0800 (PST) MIME-Version: 1.0 References: <20190125005304.183322-1-ndesaulniers@google.com> <04bc6844-2a3b-2de8-60a7-a027149709fd@amd.com> In-Reply-To: <04bc6844-2a3b-2de8-60a7-a027149709fd@amd.com> From: Alex Deucher Date: Tue, 29 Jan 2019 10:30:31 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines To: "Wentland, Harry" Cc: "ndesaulniers@google.com" , "airlied@linux.ie" , "daniel@ffwll.ch" , "S@google.com" , "Laktyushkin, Dmytro" , "Zhou, David(ChunMing)" , "Li, Sun peng (Leo)" , "dri-devel@lists.freedesktop.org" , "Daenzer, Michel" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "S, Shirish" , Matthias Kaehlcke , Matthias Kaehlcke , "amd-gfx@lists.freedesktop.org" , James Y Knight , "Deucher, Alexander" , Nathan Chancellor , "Cheng, Tony" , "Koenig, Christian" , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 25, 2019 at 10:29 AM Wentland, Harry wrote: > > On 2019-01-24 7:52 p.m., ndesaulniers@google.com wrote: > > arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The > > AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn > > on SSE2 to support emitting double precision floating point instructions > > rather than calls to non-existent (usually available from gcc_s or > > compiler_rt) floating point helper routines. > > > > Link: https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html > > Link: https://github.com/ClangBuiltLinux/linux/issues/327 > > Cc: stable@vger.kernel.org # 4.19 > > Reported-by: S, Shirish > > Reported-by: Matthias Kaehlcke > > Suggested-by: James Y Knight > > Suggested-by: Nathan Chancellor > > Signed-off-by: Nick Desaulniers > > Tested-by: Guenter Roeck > > Reviewed-by: Harry Wentland > > and applied. > This patch causes a segfault: https://bugs.freedesktop.org/show_bug.cgi?id=109487 Any ideas? Alex > Harry > > > --- > > drivers/gpu/drm/amd/display/dc/calcs/Makefile | 2 +- > > drivers/gpu/drm/amd/display/dc/dml/Makefile | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/display/dc/calcs/Makefile b/drivers/gpu/drm/amd/display/dc/calcs/Makefile > > index 95f332ee3e7e..dc85a3c088af 100644 > > --- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile > > +++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile > > @@ -30,7 +30,7 @@ else ifneq ($(call cc-option, -mstack-alignment=16),) > > cc_stack_align := -mstack-alignment=16 > > endif > > > > -calcs_ccflags := -mhard-float -msse $(cc_stack_align) > > +calcs_ccflags := -mhard-float -msse -msse2 $(cc_stack_align) > > > > CFLAGS_dcn_calcs.o := $(calcs_ccflags) > > CFLAGS_dcn_calc_auto.o := $(calcs_ccflags) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile > > index d97ca6528f9d..33c7d7588712 100644 > > --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile > > +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile > > @@ -30,7 +30,7 @@ else ifneq ($(call cc-option, -mstack-alignment=16),) > > cc_stack_align := -mstack-alignment=16 > > endif > > > > -dml_ccflags := -mhard-float -msse $(cc_stack_align) > > +dml_ccflags := -mhard-float -msse -msse2 $(cc_stack_align) > > > > CFLAGS_display_mode_lib.o := $(dml_ccflags) > > CFLAGS_display_pipe_clocks.o := $(dml_ccflags) > > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx