Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2639749imu; Thu, 24 Jan 2019 17:04:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN70hN3R0yVRI4pq/eSmVDd/02iQPTp051tG59he8/QMP6B+vsRp5F3fauEU8pjv/HF3ioiM X-Received: by 2002:a62:1c86:: with SMTP id c128mr9182748pfc.54.1548378249880; Thu, 24 Jan 2019 17:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548378249; cv=none; d=google.com; s=arc-20160816; b=x2FcQFBG9g44fkIbZIV/92Qpy8lmWkJgtaLUftpZ0oEzWN+MSiA4VH0GThRbsz+0xt 74IjMUc5BCF27Kca+AIB0Fkk8Fe4t3EaNO2WB9hsfZXXV++BCF/5W6cQUez8i05RmhEG e7e531LSiC1zp7wO4ZPLRIqZOAhopBS0MTdlSUt5hB0qxvNruJE3D/8sQBaWAyf+ZB+j 30dBe08y3dX/Jc/cqQITKNs97giAXX/vFhUtjGaTqDKka4pjaiukKREqAq/k1BMnAm/a 3Hadj1wP+i7TexsB0qxBjpT+ptMmQ/1OtAUyg/hZjZjEYQM2khmhTimB+jr1Vicbewax sK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=CKn20MR+rPx8T8NZ4z+z2YPrVyWk46gwhbT67qOgJLU=; b=MaMweucRrY7d3ehx4gwuJt+Qx53X97eqkpuM/4zfCu2/90d2lmL0wGvBSlBakzCCWv 2ERvFqhyXBvytmHxthhu6YwmJHz0YIxazCfdHfBRwvcfSL4E8BlaxTpBNMlq/MgAmsH/ AolxFCqzihH1SaZrew8eVS3sDnho6Hej9Ou5OMWXMEu+l/ofKhsGh7u69Dq6kyYVY8iP FUaSKv1E02ZCyg5yZygdvw9WlXUToltF2CsTQhr5kaYdesxREQKJXrLeUXYP2+jX7Frk eAT4nvsUyuhwLlD1QAZZeps7l5POCIBXhFD7XM+URcGU2PPnDgWZAPXiAMvt/UjW/xL7 r1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g4IPKrM3; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si20051530pga.556.2019.01.24.17.03.53; Thu, 24 Jan 2019 17:04:09 -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=@chromium.org header.s=google header.b=g4IPKrM3; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbfAYBDu (ORCPT + 99 others); Thu, 24 Jan 2019 20:03:50 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36577 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfAYBDt (ORCPT ); Thu, 24 Jan 2019 20:03:49 -0500 Received: by mail-pg1-f196.google.com with SMTP id n2so3459456pgm.3 for ; Thu, 24 Jan 2019 17:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CKn20MR+rPx8T8NZ4z+z2YPrVyWk46gwhbT67qOgJLU=; b=g4IPKrM3ErPySZax0pvWfEJHj9MqI94Kn/j55sQzLNDdKdsmpM9FleIdConOguyph2 C2rXNzDVD0L8n5qPNspuT0Nbd2V+K5oa+N4OqBCK1zeBkfxmTb6n8H+7fPU506SVIbNO wXR3OMrWlQpCWl16dp0ZShmZsJpk/HF0VjcU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CKn20MR+rPx8T8NZ4z+z2YPrVyWk46gwhbT67qOgJLU=; b=H8hJa6+iLWoQogFPZB5wt2y7qMWouEmT0FstOKIFY/HqAkexv7eSu/dtotTtsbFDk9 QNeyoVxwjS8l8cVeYTTe7dMKWMOzCULbnyijODB2avALaoCLZiazfKH/yppBFlcT0M8z EDt7FPQ5zMRpzqtOCQrjzj8R/OZN6nwnrQnjBcuOv8Kb754iJG8J7xYx6k8FOXnLH8zA bB3uzAQDVD/f+Uwhd0k5+POXsy/r5TomDaA5SiWoFCKSKqwQrAJaORYzdKlsgyKrgddN 4Uv5W8pbtzVuBX1z5JTvuHX/O7Xm+AnQccYrNWrkk6jgOizTKPjO3mnAsDXU/jrC+Dy5 VomQ== X-Gm-Message-State: AJcUukeJxDfKTN9fv4hmpzWh9zJt6+xGPZhPMyUyG4kZSVNcjzPDZk5j S97WeMIXPmMd6dg+hFSfTL1oHQ== X-Received: by 2002:a63:5252:: with SMTP id s18mr8012581pgl.326.1548378228405; Thu, 24 Jan 2019 17:03:48 -0800 (PST) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id u137sm41901719pfc.140.2019.01.24.17.03.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 17:03:47 -0800 (PST) From: Matthias Kaehlcke X-Google-Original-From: Matthias Kaehlcke Date: Thu, 24 Jan 2019 17:03:47 -0800 To: ndesaulniers@google.com Cc: airlied@linux.ie, daniel@ffwll.ch, stable@vger.kernel.org, S@google.com, Shirish , James Y Knight , Nathan Chancellor , Guenter Roeck , Harry Wentland , Leo Li , Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , "David (ChunMing) Zhou" , Michel =?utf-8?Q?D=C3=A4nzer?= , Tony Cheng , Dmytro Laktyushkin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/amd/display: add -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines Message-ID: <20190125010347.GD81583@google.com> References: <20190125005304.183322-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190125005304.183322-1-ndesaulniers@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 04:52:59PM -0800, 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 > --- > 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) Tested-by: Matthias Kaehlcke