From patchwork Fri Jan 25 00:52:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 156517 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2619649jaa; Thu, 24 Jan 2019 16:53:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7imjgcbY1b6AWgaqkXI2zj4ZQp+3whz4cIYNlfuCp+U7fnEZA+gh2ACYjhLiQUkcHgbXIX X-Received: by 2002:a63:c848:: with SMTP id l8mr7935890pgi.78.1548377605886; Thu, 24 Jan 2019 16:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548377605; cv=none; d=google.com; s=arc-20160816; b=WSnZqdaVHRGpLvdM9/0iXpRXBb7EwUjoFd/tLQJycEHTMhWUkUiLTVvFiAfi/5kLLb 5K4LCYm++X4TXp/7wMQBXXwdHtWv0V7/kBE8w67e8xSza1UmRfo4oe/HPpwWFSLTr645 rPvhnbg+c+KvzSW7siwU2vs+OgtEUXauBlqO8h6oN/ffLXTwM0XfhV6HzBQkLEkdiWAw m3r9BPUXzBMx39bXiZJzFlFZCMnOFu01tkzVwr9Jp/lqT3sLneTaHA5w+Wzqky5gdYA3 nse3oJHRNquWKnUyMn6Q4pM2+qYcadvZkYZJ+ZogLkJWCEM9dGbpvLEA1Tl5qGdgcfcT yOeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=lImYpiAn1uJlETxYy7nHGrYS1qOku0eBJBZYPcEb9VQ=; b=Zg04Qb0hRrdDFKwY5JecLajEJtlD0MsUSJ+xQ0ItRTTVLY5rMehfp/TR/bCthOEDzw B09lYyG40O/+Cqs3MzPVIz42rUYTI5cqaCr9KFQZhlMY434bO2oENPyrVh+fEtgQeg4d O3e0l6h2oxgUcgo6LrE7XG27rXaelObej3FRi+p6a9mM0pZUyNwSrgIfh9/fCWtwvGwF ElRWjjtZgVO+3WBrJKmFwwkGIj/drh0gnNG1CqChIIjy54u2MsAXpUfdzr2t/D/s61Ps /liIuhnvH9tZ6y+tgg4c7FWgSNloNL83eFoQaoEtpMO8O22mEuhnWFGmav1DqQKbi+FE 8wyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=odbvWhwT; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si17860564pfl.45.2019.01.24.16.53.25; Thu, 24 Jan 2019 16:53:25 -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=@google.com header.s=20161025 header.b=odbvWhwT; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728162AbfAYAxY (ORCPT + 31 others); Thu, 24 Jan 2019 19:53:24 -0500 Received: from mail-vs1-f73.google.com ([209.85.217.73]:36127 "EHLO mail-vs1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbfAYAxX (ORCPT ); Thu, 24 Jan 2019 19:53:23 -0500 Received: by mail-vs1-f73.google.com with SMTP id r133so2998565vsc.3 for ; Thu, 24 Jan 2019 16:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=lImYpiAn1uJlETxYy7nHGrYS1qOku0eBJBZYPcEb9VQ=; b=odbvWhwT6481BRFmWz+HTJ5w2iyTkKq165H7DpqSBNd95LzJ58leC9HI1ts+um3zTt sGLG5AE3GNvCFdvII60PxnCfPGSHYHSWqIIups9yHdHh/9ULFPeNDVbtKl4GkMhOMDvX IFWWA7vUoilKzA+26J924P2pgfXlAVQ+zuEAEkGGfzAd6lsLUeir/3i2WyuxOUsIIiaQ AzPCMHrjHtHJXki4Y7B6JN2qTo1Qhr+HrE2rS3dLz0Sjr4IHtQkeWqWt0Lwrx+8Oobsg r7dY2PQ82m9JQv5WNJ5AK6BHsbKX+eeIkK4GXmytnBVHfssgAXA4b5J92BtycUH/ahCd Rl3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=lImYpiAn1uJlETxYy7nHGrYS1qOku0eBJBZYPcEb9VQ=; b=qjHhUQpDJK4tPPDteu6cVD8BK8hiOCPaB7mxAT8oV7MsPgm6UtgT2LFUo8E4gR+paj slkSimoSD8oagjLkGg4L0yuSnCu5fTKP4XOeDiyAK+Sax6aV0OwaB3eaERQrPa5WcYFV gfhV5NiI/e2Yw6Xm6ACRNTvCMGT9MUJKsg6EESPNn5yXXWUgLElfM2oVwCOk01k/jEyv 8sDLUXwCi+OUp10QMNLca2vV8JmPqXcyURJg86YIqV0UlhYY4wKQ4usx6Qjdq5Gv4FjF 3qMV3K5lXGKMpl9UdYKdQ5S1/zMJXlCAj2wYRgGlvhMoQ0Q+hVZtaDmwLyf4qkUbiLMB ibLQ== X-Gm-Message-State: AJcUukdh4EEiDxAW8z56yF6FrMHW3dUFezHYDJnyrrKto9UgNK21kB7I ra/U0CKo+A80/Bi1iz3CYr6tHaV0Nt1Uz4/Yz4s= X-Received: by 2002:a67:8542:: with SMTP id h63mr7284273vsd.43.1548377602513; Thu, 24 Jan 2019 16:53:22 -0800 (PST) Date: Thu, 24 Jan 2019 16:52:59 -0800 Message-Id: <20190125005304.183322-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog X-Patchwork-Bot: notify Subject: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines From: ndesaulniers@google.com To: airlied@linux.ie, daniel@ffwll.ch Cc: Nick Desaulniers , stable@vger.kernel.org, S@google.com, Shirish , Matthias Kaehlcke , James Y Knight , Nathan Chancellor , Guenter Roeck , Harry Wentland , Leo Li , Alex Deucher , "=?UTF-8?q?Christian=20K=C3=B6nig?=" , "David (ChunMing) Zhou" , Matthias Kaehlcke , "=?UTF-8?q?Michel=20D=C3=A4nzer?=" , Tony Cheng , Dmytro Laktyushkin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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(-) -- 2.20.1.321.g9e740568ce-goog 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)