Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2804551iob; Mon, 16 May 2022 06:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu8dtkrZfgAzdcQEXMAZVqPf0lgXDU6KtB+f6A1lBjKC3lG5UR7TlWhpiu+PoRNqlSZke+ X-Received: by 2002:a17:906:730a:b0:6fd:ebc2:cfc with SMTP id di10-20020a170906730a00b006fdebc20cfcmr15703753ejc.751.1652708442312; Mon, 16 May 2022 06:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652708442; cv=none; d=google.com; s=arc-20160816; b=Rk/CCG4KP2aDau8soLdJU+pXbePnFrsPAMLs/o7r81HHzSQecI3F9Rvae8m5ECoWO4 pSk1Pk+8aZSjmKhk+LKix2mbkh1MqftkHRcy0CgamY84yGjwsbI8ntxG5J+Pcejkojht 8EvktAoQUP6Hegz2ii18fgNbL5tkSkOxWUhGstXTyDmhEGKd48ORO5j+qwI0PWSXcppj FYrCI7XhPQZHTE6LMXQ2HxQPU3lzwSAz8R7K65aZ8OhriIrifPJWOVmjL5wnCjNVtBFl BYYHzggw5V2Cqi9xEqP9bEvsftijVAKg4Ph6z0o03rwzCo/O7edML1Pn2TeKZlv53UAn BAcA== 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=8fVya5SouKGDBotaRmB4/dF1qRiUasv0dXnWqkQaliQ=; b=Or0Ou5kBSDw7uYls/o3lOPB0r6IQU3VKXdIBzgtBzzlu3Ms4P52DXGXfZLkbX8BjdM PdNza9bkNp6l7M1HlW5H+1NGvBaRWkRKGfk72uwS+Zb/6j/ttfaQZrpezAv78TZJ4+4f OT6JejeubuvQig0nFRCWgTjijak26z+63PxDZXhgEJUHK8QL8FLAgltkqsLyHiozC4sJ ecbohKQdimQ88Jv5u0WDel0j3e0aT9mrsWI0sei6ybF0en+JwBTeZGzbx5uRYDyitD4c N3aQngwhICix1AEjc6agnnwj1ANEbB/IHzg/UAGLGa0eaQ2HTL9is67MdMn6/sbscrlR V6+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kkqN6jXE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz14-20020a0564021d4e00b00423f052f4b3si11654175edb.201.2022.05.16.06.40.16; Mon, 16 May 2022 06:40:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=kkqN6jXE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240572AbiEPJIG (ORCPT + 99 others); Mon, 16 May 2022 05:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238342AbiEPJH5 (ORCPT ); Mon, 16 May 2022 05:07:57 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4364E13CDD; Mon, 16 May 2022 02:07:56 -0700 (PDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24G7kGkK027609; Mon, 16 May 2022 09:07:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=8fVya5SouKGDBotaRmB4/dF1qRiUasv0dXnWqkQaliQ=; b=kkqN6jXEE0slsnjugc96mUDPeWc3jmDpUu1AE4kgzVZm1CEcO1X57HLTQYPA/pTGNQ32 IDGw8PSfmROQeHmOrlEIibigU1w+H7VMV5nGF/OXPJ2vJDIjxVayO7ZSquB7k9Njv2Ct LTPnADtuQ6yFCUYR8KwfbibuUx1Q0VB9KKNjD0aTIBhptQa9fxJVkmKPds/cPDFDQ9ty qNtFW9u38UbsvZiRGkBEnkqJBqJCG5zCjLqlSa5FPboUX3zSgy8ruw1LtSOXNA92vn4t Wt3dQHm2Rf7NGdoX1Wbh5UQkj+RD8rTv9WMeCfe9IC2e3636/zTITChvkWVAI2XdLiT2 RQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g3jgtsg7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 09:07:53 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24G8i0bG017939; Mon, 16 May 2022 09:07:52 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g3jgtsg6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 09:07:52 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24G95f9b013045; Mon, 16 May 2022 09:07:49 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06fra.de.ibm.com with ESMTP id 3g23pj1trr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 May 2022 09:07:49 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24G97iGT26935610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 May 2022 09:07:44 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4BFC4C040; Mon, 16 May 2022 09:07:44 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48E954C04E; Mon, 16 May 2022 09:07:44 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 16 May 2022 09:07:44 +0000 (GMT) Date: Mon, 16 May 2022 11:07:43 +0200 From: Alexander Gordeev To: Heiko Carstens Cc: Nathan Chancellor , Vasily Gorbik , 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 4/8] s390/entry: workaround llvm's IAS limitations Message-ID: References: <20220511120532.2228616-1-hca@linux.ibm.com> <20220511120532.2228616-5-hca@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: MudZRC9NlkG1-HT2VIRnghBoTKpnAbix X-Proofpoint-ORIG-GUID: pKNbuxM8qjndItLrPEl2nnX3wFIhDla9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-16_03,2022-05-13_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 clxscore=1011 lowpriorityscore=0 priorityscore=1501 adultscore=0 mlxlogscore=791 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205160052 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, May 12, 2022 at 07:24:25PM +0200, Heiko Carstens wrote: > From fe4fb0b014378d84ae517deaea338577b2ea6ae0 Mon Sep 17 00:00:00 2001 > From: Heiko Carstens > Date: Sat, 7 May 2022 15:00:40 +0200 > Subject: [PATCH 3/7] s390/entry: workaround llvm's IAS limitations > > llvm's integrated assembler cannot handle immediate values which are > calculated with two local labels: > > :3:13: error: invalid operand for instruction > clgfi %r14,.Lsie_done - .Lsie_gmap > > Workaround this by adding clang specific code which reads the specific > value from memory. Since this code is within the hot paths of the kernel > and adds an additional memory reference, keep the original code, and add > ifdef'ed code. > > Signed-off-by: Heiko Carstens > --- > arch/s390/kernel/entry.S | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S > index a6b45eaa3450..f2f30bfba1e9 100644 > --- a/arch/s390/kernel/entry.S > +++ b/arch/s390/kernel/entry.S > @@ -172,9 +172,19 @@ _LPP_OFFSET = __LC_LPP > lgr %r14,\reg > larl %r13,\start > slgr %r14,%r13 > - lghi %r13,\end - \start > - clgr %r14,%r13 > +#ifdef CONFIG_AS_IS_LLVM > + clgfrl %r14,.Lrange_size\@ > +#else > + clgfi %r14,\end - \start > +#endif > jhe \outside_label > +#ifdef CONFIG_CC_IS_CLANG > + .section .rodata, "a" > + .align 4 > +.Lrange_size\@: > + .long \end - \start Isn't the machine check handler refers to this memory before checking unrecoverable storage errors (with CHKSTG macro) as result of this change? > + .previous > +#endif > .endm > > .macro SIEEXIT > -- > 2.32.0