Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5772291rwd; Mon, 5 Jun 2023 08:21:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7rD/gwiKFGYKGTPTcOKX6OMZVzTZow9zrV+CN3Mqwx0LfycA8B12OADr386ApEiwPNoMdi X-Received: by 2002:a05:6a21:118a:b0:10f:8798:9ffd with SMTP id oj10-20020a056a21118a00b0010f87989ffdmr3396134pzb.55.1685978464465; Mon, 05 Jun 2023 08:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685978464; cv=none; d=google.com; s=arc-20160816; b=SDc8qfVPmAGNwhY/0gM0Ad4do+2s4qo5o9UBs8GrMOrUso2dKIsNebBDbacvtffhjq uhiiVj3Xrya2uKsq+IlaTEmCfAEVFXzHVoy32Bn6B666d06vep277oyPtxFDUysmZFgX zT7M0cXtcsF9+gloJRAGJLK3ez+OhwgokB2Z2m6zfTzuXRilQcMb2G7KKCl9UxTDnEiF QwxVvt2ZeHqNTDkHJWebUVNQmAeFxImIOrJi5KAp/AuAAAKezWgJZHF+IFAJXDijuj0P omZhQ72IT/8508lF9mmybxnQTeSeNE4kf77Mivh+TdFKCwbPo1scXFxU+xPOjYKL59YZ X0Dw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=muSIXJbjmoMVheHQVdedVEO6/hZgJ9C6OtFKgtyTy9Q=; b=pOz9tQF36beM+P+6yvNRdE0qb0u3qAI14/b8HAo5BPzLGiHpiM4D8sGvwzLl6f+dpS ehqhHvZGOtfw722/Xsx8NhQ4RlArjmDyYYNGTaIZ7vq/TI9KEEvUuvfdX9F1zT/gAe4g mxPz/NqeDgSAOLCDYYzYKrSd56G2LbhDxe5HNWWUHRv/zxCohYxVu4VRNMfyJZshfZXQ QlrKLnKeLqlvvKPBRS/Zmcq22i7SwB5vizOZBf9eflLDSLDFy/6KEnwe1UpFMvhie60Q 8ffP20zAy3y7ISL+2W7g9jDhAm6zI0yJJMspLYBmssnMkPv5s6sxizmIzW2rYetrY5DK LtUg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a639512000000b005349286fcc0si5614117pgd.302.2023.06.05.08.20.52; Mon, 05 Jun 2023 08:21:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233033AbjFEPHV (ORCPT + 99 others); Mon, 5 Jun 2023 11:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbjFEPHT (ORCPT ); Mon, 5 Jun 2023 11:07:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A8D59C; Mon, 5 Jun 2023 08:07:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 60B7FD75; Mon, 5 Jun 2023 08:08:03 -0700 (PDT) Received: from [10.57.85.135] (unknown [10.57.85.135]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BED333F663; Mon, 5 Jun 2023 08:07:14 -0700 (PDT) Message-ID: <79f43d6b-7407-56c5-3c7d-c8fc48625e95@arm.com> Date: Mon, 5 Jun 2023 16:07:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 1/3] arm64: Add a capability for FEAT_BBM level 2 Content-Language: en-GB To: Colton Lewis , kvm@vger.kernel.org Cc: 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, Ricardo Koller References: <20230602170147.1541355-1-coltonlewis@google.com> <20230602170147.1541355-2-coltonlewis@google.com> From: Robin Murphy In-Reply-To: <20230602170147.1541355-2-coltonlewis@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 2023-06-02 18:01, Colton Lewis wrote: > From: Ricardo Koller > > Add a new capability to detect "Stage-2 Translation table > break-before-make" (FEAT_BBM) level 2. Why does this patch invent spurious "stage 2" references everywhere? The full name of FEAT_BBM is "Translation table break-before-make levels", and it is not specific to one stage of translation. Thanks, Robin. > Signed-off-by: Ricardo Koller > --- > arch/arm64/kernel/cpufeature.c | 11 +++++++++++ > arch/arm64/tools/cpucaps | 1 + > 2 files changed, 12 insertions(+) > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index c331c49a7d19c..c538060f7f66b 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -2455,6 +2455,17 @@ static const struct arm64_cpu_capabilities arm64_features[] = { > .min_field_value = 1, > .matches = has_cpuid_feature, > }, > + { > + .desc = "Stage-2 Translation table break-before-make level 2", > + .type = ARM64_CPUCAP_SYSTEM_FEATURE, > + .capability = ARM64_HAS_STAGE2_BBM2, > + .sys_reg = SYS_ID_AA64MMFR2_EL1, > + .sign = FTR_UNSIGNED, > + .field_pos = ID_AA64MMFR2_EL1_BBM_SHIFT, > + .field_width = 4, > + .min_field_value = 2, > + .matches = has_cpuid_feature, > + }, > { > .desc = "TLB range maintenance instructions", > .capability = ARM64_HAS_TLB_RANGE, > diff --git a/arch/arm64/tools/cpucaps b/arch/arm64/tools/cpucaps > index 40ba95472594d..010aca1892642 100644 > --- a/arch/arm64/tools/cpucaps > +++ b/arch/arm64/tools/cpucaps > @@ -41,6 +41,7 @@ HAS_PAN > HAS_RAS_EXTN > HAS_RNG > HAS_SB > +HAS_STAGE2_BBM2 > HAS_STAGE2_FWB > HAS_TIDCP1 > HAS_TLB_RANGE > -- > 2.41.0.rc0.172.g3f132b7071-goog > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel