Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1043825iob; Fri, 13 May 2022 20:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrMgb7wCliiq9oe5YOzJ31g2+kVpttH8/clTLkA9wa40Kz3XJrqsGuAJhNvUGHYO0J/M8u X-Received: by 2002:a7b:c0c3:0:b0:394:70a2:89d1 with SMTP id s3-20020a7bc0c3000000b0039470a289d1mr17666811wmh.12.1652500277774; Fri, 13 May 2022 20:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500277; cv=none; d=google.com; s=arc-20160816; b=0iwn5/fKmtXnKEi1i4EN2J1jVqjuAonsEo3viJlmQOPwSAM53I4cXCgZ2g/iuOMw20 bklhLbrgfZX9MxvyClitzUlsh3D8Uw3GD/j67HGjiy5xvv8kLwPJgL4wfrWHzMWS1jqW P/UAfFoPchqUzotqxvIbM6JA1pg7gq4CVlzNZPmrr03VD6ZegXJsGsogz25jKAtV3Ug1 pVk73zDHBXvw/blOXkxMP/frtLwLq9h2Uuq/aaSQvBnws+HTwKYy+foz2kQQOILZQgTy rcu3ydWycBamvbaWHklOy1lPsbsM0HgXy/0CNp0mYlpq9+ecxWcxprIJhpMUe6myHjHE Xivw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PIUIK3/vvssf4wL4R4yeMIIg3nsvqklAR/DEjJ1CAm4=; b=KlTQpkispftlWXobmmHHh6JNX46q9ZK/qk2dqMGF9Me/MbK/IIah6Yt+6v/7zIv09f /O547DmYBO6XxLvZc6cdWVXQyOqdfq0Hm3TY+FoBUnvzPw+waFFO5vQ76dsjqypHvPcM cNezfN9mhtpobQ0anml33PU/YWNoWI1QNutl7Pf2LtNm65w/jUiMulKi3QyWVKePxZDG Z+swkDAP+oNJKPeE/moMnLjCNlmEqj3CT2TEfB5lvwEuptCAvnQtwuO52y+oHzya3yzU B1b+wo79eSamO7UdccJuqGs5NSAy1OBLftd6/mxOuHvZhGcmAYEAUBYOKcTDfztYFhUP /OlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ccasTpHZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q6-20020adfbb86000000b0020ad71c101csi3570119wrg.388.2022.05.13.20.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:51:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ccasTpHZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA85447B563; Fri, 13 May 2022 17:24:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357215AbiELSAr (ORCPT + 99 others); Thu, 12 May 2022 14:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357212AbiELSAq (ORCPT ); Thu, 12 May 2022 14:00:46 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B94C74 for ; Thu, 12 May 2022 11:00:44 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id i10so10407949lfg.13 for ; Thu, 12 May 2022 11:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PIUIK3/vvssf4wL4R4yeMIIg3nsvqklAR/DEjJ1CAm4=; b=ccasTpHZqLRg0Dkgl8Ihu4LaomzXbUhwYSh1fwRbe5hvyv4gVY5MRM6btJfuT2HkgD Yfi29F8Xw/4nJhGRIxPC7ziiFvTkipDqhk8NfYiUg6jk+ewv+1gk0EonjuGtuVANyW8h vP6to6PHdIMhqQ/8akSnGCCvG0Bf1mX88xHMGhC6oqXD1/bi/NFoYXkXLRRtEHoxoYEm sxgVee4bXilSSl6hpnr1z3ahGsqGv/qGqmqpW3c/48bJj8sBZ+AwMgVVIMQ1h+8lBiXT msJz6LS8qOAWudNX7tX3gdjeEzGOZPg/LmNbdtS0fpr9orjDAUfFWBeKzwHfTEFNFx8l DLpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PIUIK3/vvssf4wL4R4yeMIIg3nsvqklAR/DEjJ1CAm4=; b=7yu6DBXOByLqXDJWzsFcrafBsRiz65TEy4UGMlqWD3Pg7JLmANNeWEmHom6KozVzS0 lsI5VY/3QJ2TDzMEcNZnEFpBKVlHA3nEuhTQ2sQFOZTE5DekiHcOAm735/FqGTzfHmdF YHr6t8KIPDsxusbbN/kFT89ysNPPgRfJS8PWkLNybyjASlwZ3urtedZnK4yFh/4ibcua TvQmdVL8yyDD49LSSamlCOwMfwMsoFKvS69YkiVpao1OyE9R8VHLW4qPaKW8SLjHiTKv e5CKU8ZR1KyQxGo+96+RI5S4p4kejghf2F3S8vKeL0UKIWd1jWwcSlHU2YIwG7+S3NeU D+cg== X-Gm-Message-State: AOAM53297fOgRVPj7G2/YJM8f7EBfkabLBmjWCzOZbMF1Rr91gWF1ykI bd1zr2WkusxkqGGLeIk19xe7psIQu2t1/99vbAnx8Q== X-Received: by 2002:ac2:5e86:0:b0:473:d044:60f5 with SMTP id b6-20020ac25e86000000b00473d04460f5mr667320lfq.87.1652378443079; Thu, 12 May 2022 11:00:43 -0700 (PDT) MIME-Version: 1.0 References: <20220511120532.2228616-1-hca@linux.ibm.com> <20220511120532.2228616-4-hca@linux.ibm.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 12 May 2022 11:00:31 -0700 Message-ID: Subject: Re: [PATCH 3/8] s390/entry: shorten OUTSIDE macro To: Heiko Carstens Cc: Vasily Gorbik , Alexander Gordeev , Jonas Paulsson , Ulrich Weigand , Masahiro Yamada , Alexander Egorenkov , Sven Schnelle , Andreas Krebbel , Nathan Chancellor , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 10:22 AM Heiko Carstens wrote: > > On Wed, May 11, 2022 at 02:05:27PM +0200, Heiko Carstens wrote: > > Since the minimum architecture level has been raised to z10 a shorter > > instruction sequence can be used to implement the OUTSIDE macro. This > > also reduces the number of used registers within that macro to one. > > > > Signed-off-by: Heiko Carstens > > --- > > arch/s390/kernel/entry.S | 8 +++----- > > 1 file changed, 3 insertions(+), 5 deletions(-) > > > > diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S > > index a6b45eaa3450..e1664b45090f 100644 > > --- a/arch/s390/kernel/entry.S > > +++ b/arch/s390/kernel/entry.S > > @@ -169,11 +169,9 @@ _LPP_OFFSET = __LC_LPP > > * @outside_label: jump here if @reg is outside of [@start..@end) > > */ > > .macro OUTSIDE reg,start,end,outside_label > > - lgr %r14,\reg > > - larl %r13,\start > > - slgr %r14,%r13 > > - lghi %r13,\end - \start > > - clgr %r14,%r13 > > + larl %r14,\start > > + slgrk %r14,\reg,%r14 > > + clgfi %r14,\end - \start > > Clever me.. slgrk was added with z196, and not z10. > So dropping this patch. How do the version numbers work for SystemZ? Is there a list/reference you could link me to? If it's too deep a rabbit hole, then nevermind, but I would like to learn a little more about the architecture. -- Thanks, ~Nick Desaulniers