Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1025311iob; Fri, 13 May 2022 20:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx73JRhqmgKxTY27JHPUnab4jkBAbTaPavIpPhWFqXiV9KsIc6EM10HMsHV0+iG8qgK7xgz X-Received: by 2002:a7b:c017:0:b0:394:5631:62bc with SMTP id c23-20020a7bc017000000b00394563162bcmr17812027wmb.190.1652497596020; Fri, 13 May 2022 20:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652497596; cv=none; d=google.com; s=arc-20160816; b=FHo4JMumqNmjfLzGfGwD8Ed63klQMFlfCp6viFVyasyLxHLxxD9rW7ar9p9zm/8wKt zSIL05Vab2QTsRBKtIM0vokdLe1bv220zjjv8QqbVhLy2853E0DZ0DgwErJNuTa++EuH wcP/8ZuJpeAW769554qei0yS//6GseyUdccmNSXfsS9+K/CpgWi8JhMEJ9bULIpMn3+Q EFr5vUKuyt6teKU5IzOrSTrInQ5mXeyCi5MuYWMY/24J40hkDE7QKxTgDWyeO3gn12q1 sokGBCXrApZ0yhyw9AMLwnb5fU3kLiBG1pOpTexqkb9Brg3EUMzarNYSd7uq454JVZ/+ T0lg== 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=6mcqHVCTOADxT4nWVQOUHhwOqrmkthTN0rJ4nqx8rlI=; b=NgAGn2nIK1BDFlfk0J+1AlZ9S0TSBGGHwierINewp8P5MPQgR1sIjtLWLQjjsyQ9Hh uQk/Cm5s+hh0UsOzgSuA9LmGoZTZhOU1VKMAs/ZBM5cQkdcmHOjaROiXpZg3p0la8UtH KliEckT7u6eUzoFBnJb5cbxqd8bkDM9xCVaqWtRZWWRAipAx/bVS4GSXSmsJxT0Cv/T9 U1y3ty9ik17iYya8EFaL3GILIJJ+y0eJIyqL/EaAuNTet5t5slMhtnUcJDVMjJX0opJY NtI+tD4QSCZGqN8LRXaS1kUsYJcH4n1HNHY88vsCO7En3fCA6u3NK6qWHXqvEgROg6zP tQMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fKCnjktw; 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 n8-20020a5d5888000000b00203e90194besi3459210wrf.578.2022.05.13.20.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:06:36 -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=fKCnjktw; 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 6CD173B6ADC; Fri, 13 May 2022 16:48:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357841AbiELTZR (ORCPT + 99 others); Thu, 12 May 2022 15:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352586AbiELTZQ (ORCPT ); Thu, 12 May 2022 15:25:16 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01FE2764F0 for ; Thu, 12 May 2022 12:25:14 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id c24so1347484lfv.11 for ; Thu, 12 May 2022 12:25:14 -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=6mcqHVCTOADxT4nWVQOUHhwOqrmkthTN0rJ4nqx8rlI=; b=fKCnjktwaZsXbw/hdsBSxLZqoXSDDmhQvbTlTr5AYZ8Oy9oDUyxGAllTgPTTqFT04O m3sldOJGdC7gWeyAiRqa6IJQGSutRiFPDgOfJHVXCK9s083fVPgxQPUY77Arc5Iw8i2M bzjk6gJ2wHqyIN4IC25rZeTcE6tYu32CyQFwUYh9yoERE+bORr/w4KbFaYi4udwHmUr1 OV+KCPvty4O2N28zK2+oGjyyDLNkBRxkRphYt3yx6lcqqjQciRkriZ38J7/aLAmLkaWX TP3pdlbT3G+gvU7KLn0XzLasIlbneDcjX60j2vXak3HjF2T4saXxRHcBR7/nrnjawfyJ qNnQ== 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=6mcqHVCTOADxT4nWVQOUHhwOqrmkthTN0rJ4nqx8rlI=; b=2rKO1+Mujy2HDkCkNg2pBCk6wKLwMhaBBSdJWSxYwj0glS5FXLXzTzNJHi5lXOTfnw lExvg0lJRxqZvrtQCEwCVw2GxeUzLeecUTa7yUHAJhY/a+gqR/U3tg9Wv6QjA6lo3Cw8 havDznzh29ah0yOZ+YrGmDoa/Qc164qppAoTlk/EZsFXnIyutysbZ6oWaSiyywzv0A+R 6V804RAkFJsni5zKnSiKEnP+zSTBnAQGY99ktCvLtV2QHv0Ibkea3rbcjIyOfKjBUK2i Rex0z4N41Ih/DykQoE2IWGjNQ50og7d8UhshFXlGqi/IGHJqkeryfdADqsH89s2IcB+T vudQ== X-Gm-Message-State: AOAM532LToCxlFLA6hmgQIrxCkiZh4XkI870cruKpVEjvZgcnhzNUZLV Fat6C/qSOkJaq3RyXnf/P5Tb9y7X+ImhEunHGJ/XaQ== X-Received: by 2002:a05:6512:1291:b0:473:b522:ef58 with SMTP id u17-20020a056512129100b00473b522ef58mr908856lfs.190.1652383512824; Thu, 12 May 2022 12:25:12 -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 12:25:01 -0700 Message-ID: Subject: Re: [PATCH 3/8] s390/entry: shorten OUTSIDE macro To: Heiko Carstens , Nathan Chancellor Cc: Vasily Gorbik , Alexander Gordeev , Jonas Paulsson , Ulrich Weigand , Masahiro Yamada , Alexander Egorenkov , Sven Schnelle , Andreas Krebbel , 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 12:15 PM Heiko Carstens wrote: > > On Thu, May 12, 2022 at 11:00:31AM -0700, Nick Desaulniers wrote: > > 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. > > If it is only for the machine generations the following links might help: > > https://www.ibm.com/support/pages/ibm-mainframe-life-cycle-history > (see linked pdf for list of machine names) > > https://en.wikipedia.org/wiki/IBM_Z > > There might be better sources, but that's all I could find right now. Interesting! Thanks for the links. I'm guessing in our CI that we should probably pursue testing some of the newer revisions. Wasn't defconfig updated from z10 to z12 not too long ago? So probably CONFIG_MARCH_Z13 CONFIG_MARCH_Z14 CONFIG_MARCH_Z15 CONFIG_MARCH_Z16 All look like they're still "supported" (and I'm guessing CONFIG_MARCH_Z10 and CONFIG_MARCH_Z196 are not too much burden to continue to maintain kernel support for), with a higher emphasis perhaps on z15+z16? -- Thanks, ~Nick Desaulniers