Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5264008yba; Wed, 10 Apr 2019 15:21:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeuin+0KJz0+lh37BxgBZuRvNunjp/nVdmU3mGk5C58dirP0qibeHxW2BxYsM7TPTtjcLt X-Received: by 2002:a63:170d:: with SMTP id x13mr43892784pgl.169.1554934894234; Wed, 10 Apr 2019 15:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554934894; cv=none; d=google.com; s=arc-20160816; b=Km161cCT+xTfGmkw5PcgC3t2JllkUq4y2MtuMSEq+GkIFfrB9QPdAq7j8yA6+1KYy+ dbXnSeDHiLjV/bulBtMio5cbhneayfAY8HwkGVvVZU9hIZv7GgY/YSVqJFN+Qo5WW9PT 9r0iQs7VNSzXFplvPyUww2cTcfFL4raZYFwpQ1iwtTu5a/55EYeD4lWKLcgVWFZqqkCo oOlm07ZUMiB5L5G+Lpb0ua1oXuJoBSJ+aU93eu7Cuv0pQCZHCjuWZHlXskwBjfQQsbCl sTMVn35ZfM1diOLnc9MZk9MFgU/A9TSpdaURYcD1ubAXB/iWFIh6dh9NHcpSh845YnWb aP/A== 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=k9AQM9Er5xIu0dK7JBT6Ay6B+U4MsPIr+qvFzik28d0=; b=FNvd6BZCBKrpxm+/9gQXKikwwvMQko6ApePFwFKyrYCRAZ0A/pQb0wgp0mEoRE9xnx rqBUr1OFBs9qSAgB6nJmF8+gc1qIDBXKpHLclI6uBRjldpCHK+9upcKudj5vMIJle3af caSLJeJAhOjlixxPxprX9meIOdvANeqZR7MEC09u0luKfI/bUARbeCnZ+6Ad69PsNckx af+AoZdqrgqPlx+9JbKNnIv5VanF30Qqgzs7VM5D5DhdxweTIvCIpMPmWKbvDjAK5N9H z0BfcXL+EVUi+9FgJYg6Z2El0W/d+MWseqh6uY3tAlx/RY6TPP/oJmx/t1sIvma45oqY L/kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o7VVgHvZ; 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 y204si28383714pfb.184.2019.04.10.15.21.16; Wed, 10 Apr 2019 15:21:34 -0700 (PDT) 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=o7VVgHvZ; 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 S1726600AbfDJWUW (ORCPT + 99 others); Wed, 10 Apr 2019 18:20:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40083 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726073AbfDJWUV (ORCPT ); Wed, 10 Apr 2019 18:20:21 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so2240801plr.7 for ; Wed, 10 Apr 2019 15:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k9AQM9Er5xIu0dK7JBT6Ay6B+U4MsPIr+qvFzik28d0=; b=o7VVgHvZlzx3LhZneghQwUlAr86T5syvkidjdozrG8mIhw1d6H0IBWsXmnxBmsDiaq hn+0ftVUFmac2e+cDp2p2ySvZcZVMDtPq1JMckFQ17UiVg7i1aY4XkbcuWSAF6mxK0q9 9NSHSx9gWSQPTN8CQ0sCJ6vVmhwY6yP0EgdbqqF+NyH2WGdn/DdB4J0CctA7tVjSIRh7 fIgLq7nQn3M17rvS4rqehsHlpxAhSUX6INEPxt/fOgSf5VG86z6ISrRwfDsc/9OX5868 xzo6kQERUie/X3A3yxVSdxooK0IvqjgN7Et5ZbD+3tYdmKuowiYWWOGWkrll2Z9yg/8B eekA== 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=k9AQM9Er5xIu0dK7JBT6Ay6B+U4MsPIr+qvFzik28d0=; b=KvC1eRGREtsBINloBVEx568gpD+bE8NhDffR3Sbm2rqG6W7l8pLFyWOvc+D5s0Vma3 qW/kiTsE6D2W5gCCDhkGEvhnmIWkKPKB24+/E5EFgZqiM9nYWI+c1BFhDkWthU/truEO K2wxdYIVNUajsiFR6w1Gh9trZeYbWXPun8bVrwmK4W47dQqxgjU8Jb8TK0eyqhNMh3BZ qD6cSzAN7838CFUYh71Rt9uuTXyeq7PyTJYYtb3NuidbscNpLy8bg5ebAmiM3eFXn0nc yyV/lejCx9T0epU/5Pl7tObOPXfUqeJyly8fiX7YrFNl59Mleyd5ve6edmam92bT/aSc IS7Q== X-Gm-Message-State: APjAAAX0yuMEKwPtuFlk2PiEi20wXRDh1bgQgjpJLTxfn5BaP8wAmFjB 96iQE4NdHGaAcWrRutVVpM42PPG4Py9uM0y3CZNC0Q== X-Received: by 2002:a17:902:31a4:: with SMTP id x33mr46827317plb.24.1554934820450; Wed, 10 Apr 2019 15:20:20 -0700 (PDT) MIME-Version: 1.0 References: <20190410201300.3528984-1-arnd@arndb.de> In-Reply-To: <20190410201300.3528984-1-arnd@arndb.de> From: Nick Desaulniers Date: Wed, 10 Apr 2019 15:20:09 -0700 Message-ID: Subject: Re: [PATCH 1/2] s390: only build for new CPUs with clang To: Arnd Bergmann Cc: Martin Schwidefsky , Heiko Carstens , Vasily Gorbik , clang-built-linux@googlegroups.com, Nathan Chancellor , linux-s390 , Masahiro Yamada , Philipp Rudo , Tony Krowiak , LKML 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 Wed, Apr 10, 2019 at 1:13 PM Arnd Bergmann wrote: > > llvm does does not understand -march=z9-109 and older target Please file bugs for these in LLVM's issue tracker. It might be possible to enable these additional architecture variants if they're similar to existing ones and simply unrecognized. IIRC, we had this issue with armv7 variants. > specifiers, so disable the respective Kconfig settings and > the logic to make the boot code work on old systems when > building with clang. > > Signed-off-by: Arnd Bergmann > --- > arch/s390/Kconfig | 6 ++++++ > arch/s390/boot/Makefile | 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig > index 8cd860cba4d1..1a2eec61196d 100644 > --- a/arch/s390/Kconfig > +++ b/arch/s390/Kconfig > @@ -240,6 +240,7 @@ choice > > config MARCH_Z900 > bool "IBM zSeries model z800 and z900" > + depends on !CC_IS_CLANG > select HAVE_MARCH_Z900_FEATURES > help > Select this to enable optimizations for model z800/z900 (2064 and > @@ -248,6 +249,7 @@ config MARCH_Z900 > > config MARCH_Z990 > bool "IBM zSeries model z890 and z990" > + depends on !CC_IS_CLANG > select HAVE_MARCH_Z990_FEATURES > help > Select this to enable optimizations for model z890/z990 (2084 and > @@ -256,6 +258,7 @@ config MARCH_Z990 > > config MARCH_Z9_109 > bool "IBM System z9" > + depends on !CC_IS_CLANG > select HAVE_MARCH_Z9_109_FEATURES > help > Select this to enable optimizations for IBM System z9 (2094 and > @@ -347,12 +350,15 @@ config TUNE_DEFAULT > > config TUNE_Z900 > bool "IBM zSeries model z800 and z900" > + depends on !CC_IS_CLANG > > config TUNE_Z990 > bool "IBM zSeries model z890 and z990" > + depends on !CC_IS_CLANG > > config TUNE_Z9_109 > bool "IBM System z9" > + depends on !CC_IS_CLANG > > config TUNE_Z10 > bool "IBM System z10" > diff --git a/arch/s390/boot/Makefile b/arch/s390/boot/Makefile > index c844eaf24ed7..953a74d04990 100644 > --- a/arch/s390/boot/Makefile > +++ b/arch/s390/boot/Makefile > @@ -11,6 +11,7 @@ KASAN_SANITIZE := n > KBUILD_AFLAGS := $(KBUILD_AFLAGS_DECOMPRESSOR) > KBUILD_CFLAGS := $(KBUILD_CFLAGS_DECOMPRESSOR) > > +ifndef CONFIG_CC_IS_CLANG > # > # Use -march=z900 for als.c to be able to print an error > # message if the kernel is started on a machine which is too old > @@ -25,6 +26,7 @@ CFLAGS_als.o += -march=z900 > CFLAGS_REMOVE_sclp_early_core.o += $(CC_FLAGS_MARCH) > CFLAGS_sclp_early_core.o += -march=z900 > endif > +endif > > CFLAGS_sclp_early_core.o += -I$(srctree)/drivers/s390/char > > -- > 2.20.0 > -- Thanks, ~Nick Desaulniers