Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3162250rdh; Thu, 28 Sep 2023 04:45:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQLT5iXAcfVeQ2A92Tz2DLXBWsNk5PHYALQLkdjUfcoihHGuhPf0ZDGtMtnRPS4LifIG7L X-Received: by 2002:a17:90a:ac15:b0:268:29cf:3231 with SMTP id o21-20020a17090aac1500b0026829cf3231mr886789pjq.3.1695901547034; Thu, 28 Sep 2023 04:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695901547; cv=none; d=google.com; s=arc-20160816; b=UNTmt6xIMigAKKBWCx0YIRvHSlnyR0RT5c0Pq9n0LGKdMDdfBh37vkPEYExqti776T zkyh/yYycaseh4vo7lrhaXgKIxKfsDY7VZSi6weFamPuTUliU1do4IBOnobl1PArrTuH PxHyx13uzUVfeINjouRxuC1CtWuyWh3AChH4h5DPqCWKVYt8NDGdJSKBgbDzoYM1YAsN kBGKbMDswwONqyzHorpZrHERijo6ukNLMtrBmOWFzFZB3C3+gxQTT6XgihJLVQKjEuyt 78vesZPzN6lHTZzH+OAEG/LHifcLONy39k4kdgh82mgVAwwHBf0+RaBcyOF902lr/r52 dH6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Anogelpb6h+UmmPhFBLKjKjv5aWf5PDgUgDUDdH3vlA=; fh=XENNrrodVer2MnsjeS6LWUgQ7xVUDDNWZmMfEsUgLa8=; b=LtjTFQ6dTrRdXI9yo+gyONnEyrCDW3sd2NXBfDtBn1OHSwAaJzP6Y7leRaGAM4nLE/ 7sQbyI12ZFgeylf/qodBIqDVj1r75FhsEcHcJ54DV5nug7hSboD3Clb7MQBLuqlkH+cb t0dlDIcdOz1O/dVB/Y9DX+GTWWmaFNa43ePAUEmVXttsxTWQ3b2SvOGQnxiPbet4cjro 1Kow/XAboKIS4cUEyFddrwSggv92i3HPsw7xTm/OrcNDgE8n3Z895LZRqrPqnlhDks1v q955dc2dDtp02Z8vFArhTOld027GocILLwAFgNNsXisd3cjpsfexegmFk8qqKyYCy84t y36Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LTadL7zd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a8-20020a17090abe0800b00276c28cdd4fsi12829922pjs.31.2023.09.28.04.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LTadL7zd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3D0C3807C5EC; Thu, 28 Sep 2023 02:41:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231946AbjI1Jkf (ORCPT + 99 others); Thu, 28 Sep 2023 05:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231784AbjI1JkV (ORCPT ); Thu, 28 Sep 2023 05:40:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB077195 for ; Thu, 28 Sep 2023 02:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695893971; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Anogelpb6h+UmmPhFBLKjKjv5aWf5PDgUgDUDdH3vlA=; b=LTadL7zdrkOKBX+JcURT1JdONf8J1Ah61l4LGSs594v8lGUKkrQMnsUKyf9j5d2MTNEtm9 t/Ew8smZbTIEP8UcBWg3nDx1irxSnw4Yxafuc6UdxYAXYFUt3KKRGyZWt3FfgXbsfoq0FB sq3cM/4AoRP9kqGRv/duLCfW8N4Wdeg= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-300-ETn_sjBmMTi6GwvHoox4MQ-1; Thu, 28 Sep 2023 05:39:30 -0400 X-MC-Unique: ETn_sjBmMTi6GwvHoox4MQ-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-417e128a7d4so176160321cf.3 for ; Thu, 28 Sep 2023 02:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695893969; x=1696498769; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Anogelpb6h+UmmPhFBLKjKjv5aWf5PDgUgDUDdH3vlA=; b=HYSjUb12+4x6oePbaet1ICrZ0mQz9yHUyHUKe8Pb154yILA1P0g4hspVLS/tPAGWM3 IFna4pzBB7w9AklWbkrRxFt8OZRcgvMm07h9chfMaSf7WPAmLFdUaZby+RmAEYvwDnEq xVqdUBhuXGCyFywSOwtc1D7Qbr+0X8nnasOBPEef3BI5WgJA3jhPzdxdt/PX5GP5oFmK LAjCxNElIvKUi+xzN4C5JI7NAqQoAd7BegVDYoNrlOd/4+qCqUz2mFxsRemBkFHtKLLv a+mQmO24z0iqDFOs8mJc/bVr6mOfHVD+SQtVWKdU2sUit4di74P+1YHyQLQwAtAyEi9Z PbXg== X-Gm-Message-State: AOJu0Yw1tzmi/q7+XJnZv/K6aDj/6YG/V7yNX3AE9h8w21sacXoatJlM pGBZWjiJrj/RJTFlxWionNkBM9T8ukBvRRt5qSI7W0aNoMa/kRdYabk4X6TLxl6ia4g9C6LmCmb X6zUf4eyOB7SJWGVegHOaDxfz X-Received: by 2002:a05:622a:13ce:b0:418:14ee:ac55 with SMTP id p14-20020a05622a13ce00b0041814eeac55mr764234qtk.25.1695893969653; Thu, 28 Sep 2023 02:39:29 -0700 (PDT) X-Received: by 2002:a05:622a:13ce:b0:418:14ee:ac55 with SMTP id p14-20020a05622a13ce00b0041814eeac55mr764221qtk.25.1695893969332; Thu, 28 Sep 2023 02:39:29 -0700 (PDT) Received: from ?IPV6:2a01:e0a:59e:9d80:527b:9dff:feef:3874? ([2a01:e0a:59e:9d80:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id jz3-20020a05622a81c300b0041811e71890sm3572492qtb.33.2023.09.28.02.39.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Sep 2023 02:39:28 -0700 (PDT) Message-ID: Date: Thu, 28 Sep 2023 11:39:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 1/2] arm64: Add missing _EL12 encodings Content-Language: en-US To: Miguel Luis , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev References: <20230925162057.27548-1-miguel.luis@oracle.com> <20230925162057.27548-2-miguel.luis@oracle.com> From: Eric Auger In-Reply-To: <20230925162057.27548-2-miguel.luis@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 02:41:24 -0700 (PDT) Hi Miguel, On 9/25/23 18:20, Miguel Luis wrote: > Some _EL12 encodings are missing. Add them. > > Signed-off-by: Miguel Luis > --- > arch/arm64/include/asm/sysreg.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > index 38296579a4fd..6e167bbf44ff 100644 > --- a/arch/arm64/include/asm/sysreg.h > +++ b/arch/arm64/include/asm/sysreg.h > @@ -568,18 +568,29 @@ > > /* VHE encodings for architectural EL0/1 system registers */ > #define SYS_SCTLR_EL12 sys_reg(3, 5, 1, 0, 0) > +#define SYS_CPACR_EL12 sys_reg(3, 5, 1, 0, 2) > +#define SYS_SCTLR2_EL12 sys_reg(3, 5, 1, 0, 3) > +#define SYS_ZCR_EL12 sys_reg(3, 5, 1, 2, 0) > +#define SYS_TRFCR_EL12 sys_reg(3, 5, 1, 2, 1) > +#define SYS_SMCR_EL12 sys_reg(3, 5, 1, 2, 6) > #define SYS_TTBR0_EL12 sys_reg(3, 5, 2, 0, 0) > #define SYS_TTBR1_EL12 sys_reg(3, 5, 2, 0, 1) > #define SYS_TCR_EL12 sys_reg(3, 5, 2, 0, 2) > +#define SYS_TCR2_EL12 sys_reg(3, 5, 2, 0, 3) > #define SYS_SPSR_EL12 sys_reg(3, 5, 4, 0, 0) > #define SYS_ELR_EL12 sys_reg(3, 5, 4, 0, 1) > #define SYS_AFSR0_EL12 sys_reg(3, 5, 5, 1, 0) > #define SYS_AFSR1_EL12 sys_reg(3, 5, 5, 1, 1) > #define SYS_ESR_EL12 sys_reg(3, 5, 5, 2, 0) > #define SYS_TFSR_EL12 sys_reg(3, 5, 5, 6, 0) > +#define SYS_FAR_EL12 sys_reg(3, 5, 6, 0, 0) > +#define SYS_BRBCR_EL12 sys_reg(3, 5, 9, 0, 0) isn't it sys_reg(2, 5, 9, 0, 0)? > +#define SYS_PMSCR_EL12 sys_reg(3, 5, 9, 9, 0) > #define SYS_MAIR_EL12 sys_reg(3, 5, 10, 2, 0) > #define SYS_AMAIR_EL12 sys_reg(3, 5, 10, 3, 0) > #define SYS_VBAR_EL12 sys_reg(3, 5, 12, 0, 0) > +#define SYS_CONTEXTIDR_EL12 sys_reg(3, 5, 13, 0, 1) > +#define SYS_SCXTNUM_EL12 sys_reg(3, 5, 13, 0, 7) > #define SYS_CNTKCTL_EL12 sys_reg(3, 5, 14, 1, 0) > #define SYS_CNTP_TVAL_EL02 sys_reg(3, 5, 14, 2, 0) > #define SYS_CNTP_CTL_EL02 sys_reg(3, 5, 14, 2, 1) Besides Reviewed-by: Eric Auger Eric