Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp970734iob; Fri, 13 May 2022 18:07:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTqHKpTBzPZWP1D/z7ZUZIBWFq0Ib+IfFj4XWu8nhNpgVnpbY8FyP5uSThzTa33Ec1hmy1 X-Received: by 2002:a05:600c:21d9:b0:394:2398:3bff with SMTP id x25-20020a05600c21d900b0039423983bffmr6971370wmj.101.1652490431473; Fri, 13 May 2022 18:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652490431; cv=none; d=google.com; s=arc-20160816; b=fkT98vd//McIG5EDa2NrjgWfgn1UcJaaueElBS9i07+ZrJ4m9eqpnRVMlRYs7pQ5zj plhYibRux66LBmUNf59HG4keLWO5VGkJK1VBSumPM3cc3qn/OXSby5FJWcIZ/BOQEGEd BGhcA/b5fdWy71PCu/slafz+edHVr9/NGj6CgjGAoiAWmcmKPu8gaVsiKGqnZlRunSso Faj4cIGzuzeqgTvFrWl5rGOPmch2R/ZOIsjGCBXcaFwSEatg7rPUXtUdTvUUBZUWiKOz edVTW2v5xa5/Z4tuptx6g+jPVM1PWl1C43EaVDEVMD4/S6GZYsezc2rY21Rq4daRoFrQ h/4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hjQ2zczjn43fUgsgTOmBpil49nTWFdgO+uiYWK2pBzo=; b=xF+5HkvXrLpnFg28Kv7ZjwZUhSeuWvFGd2XAJDKTCuqSvShhQGiKgcCnznvpnLlv5x oI73rQ4q+fg5PjSo97dZwxe7HaV6DS8Plota0iV1anuxfZv1cbw/7bcLgPvmPlmQTHvs omgxvem0heR2s4GVVnCHoV+W5L4O/kH82FETk8UF0o01rEX6Hi0iEQcRTH4HJ57vmoHU Z51Xi9L1NXqgwpMTl5aA34bGvS53t6nx3vuaHdbH47+ibn0/z6YWxilafAiwOkBvZtw+ 3CnsCxUZVBgHg3Aam8KeUMSjth74zhDHHpgiukIICgEE5kD0E2zU/pEMhEJYTfYaSIzp imnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PQ6kXVe3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x22-20020a1c7c16000000b003928fe74725si3506700wmc.113.2022.05.13.18.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:07:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PQ6kXVe3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5123E380AB6; Fri, 13 May 2022 16:39:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347888AbiEKUwV (ORCPT + 99 others); Wed, 11 May 2022 16:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240502AbiEKUwU (ORCPT ); Wed, 11 May 2022 16:52:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C50E4D624; Wed, 11 May 2022 13:52:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DBB24B82617; Wed, 11 May 2022 20:52:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C670FC340EE; Wed, 11 May 2022 20:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652302335; bh=hcTWqS1/6JNEKbDUnWjOFRHI/i50sXfXkf41lVpBiUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PQ6kXVe3mk9WbijP8yialUY26FPJdZZek0VQ97glkAophocZ78ag+Z+cbqXRkCud3 t/IJkpTKXPiSeyKFX6zDv2NQPeqP5hp5TlJt6NsPEFZgJ6clX5DndoZpGYXZJK7zWr NLwvowhEoNMsnvxZOX9T928N41cLWyh6R86/yPz960nVtV9B8YP3Vz8Is8KjgTwRZ4 wyF9uru+cjyo3ByvguTNiMIYU/v0RUoSulCuLeiqlDdi+tXuTejPwiaVmNw8kRvy2E dF1fiENoX8j5IwmuKnM441MnHbxU+3+IezmHa5GzPLjCkzEQDAWZ5WMfvX7AJ41VSw 9LZUpfiR6dSbA== Date: Wed, 11 May 2022 13:52:13 -0700 From: Nathan Chancellor To: Heiko Carstens Cc: Vasily Gorbik , Alexander Gordeev , Jonas Paulsson , Ulrich Weigand , Masahiro Yamada , Alexander Egorenkov , Sven Schnelle , Andreas Krebbel , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 0/8] s390: allow to build with llvm's integrated assembler Message-ID: References: <20220511120532.2228616-1-hca@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511120532.2228616-1-hca@linux.ibm.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, On Wed, May 11, 2022 at 02:05:24PM +0200, Heiko Carstens wrote: > A couple of patches which in result make it finally possible to build the > kernel for s390 with llvm's integrated assembler. Several configs build > without errors or warnings, and the kernel also works as expected. > > Note that patch 6 ("s390/boot: workaround llvm IAS bug") reveals a > miscompile. This looks like a bug in the instruction definitions of the mvc > and clc instructions(?). I'd like to ask people to look into this, since > this silently generated broken code. I think it should be pretty simple to file a bug report for this since it occurs in a standalone assembly file? I agree with Nick that there should be a bug report filed and linked to in patch 6 so that we don't lose track of it. > This patch series is based on linux-next, which contains two additional > required s390 specific patches to make llvm's IAS work. > > Thanks, > Heiko > > Heiko Carstens (8): > s390/alternatives: provide identical sized orginal/alternative sequences > s390/alternatives: remove padding generation code > s390/entry: shorten OUTSIDE macro > s390/entry: workaround llvm's IAS limitations > s390/purgatory: workaround llvm's IAS limitations > s390/boot: workaround llvm IAS bug > s390/boot: do not emit debug info for assembly with llvm's IAS > scripts/min-tool-version.sh: raise minimum clang version to 14.0.0 for s390 > > arch/s390/Makefile | 2 + > arch/s390/boot/head.S | 34 +++++---- > arch/s390/include/asm/alternative-asm.h | 76 +++----------------- > arch/s390/include/asm/alternative.h | 93 ++++++------------------- > arch/s390/include/asm/spinlock.h | 2 +- > arch/s390/kernel/alternative.c | 61 +--------------- > arch/s390/kernel/entry.S | 39 +++++++---- > arch/s390/lib/spinlock.c | 4 +- > arch/s390/purgatory/head.S | 29 ++++++-- > scripts/min-tool-version.sh | 3 +- > 10 files changed, 104 insertions(+), 239 deletions(-) I applied this series to the latest s390 for-next branch (c4fb15578802) and built a few in-tree and distribution configurations with clang-14 and clang-15 then boot tested them in QEMU with a simple buildroot userspace. I did not see any new warnings or errors. This is awesome, I am excited to get this wired up in our CI! In case it is worthwhile: Tested-by: Nathan Chancellor Cheers, Nathan