From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796137702; b=CeoGYQo1Gx40xlzDkFBVSNGn1FB/wNHyEUL6NmPlH50zqyvCdcG8rfeMopbR/E45qOYC 3zzf1stu0gyQ3LHtCDil8WPEAvQW2zwrXh3Y68gGOFp/MWUACsByDPC39Eh1bZznKnWxl KBtwThSOVe/T18ErqymA+1c6hNFzq8pv6bdNAQEdM6CKk4xUUvW2UHkDM3s1AT0qGK8G4 odaoBFatvXWH6F+/3o92HhtSRM4iSJQ8maBS9OVIDjXUooo5IB5cCA5Sa0nlzxMhMaS29 doFkWyL0SxtyOFD5vP7onu3gbmgvyWYO+9aYjOb+JSdYN3e3PFodGHGlTGmIVXJbnYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796137702; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=1QsmTJfcTTtgBySgvPYVll2vR+VXT019fVmwZe13OLI=; b=A9bVtq38TV4nZ8u0OU6oLM3PTrpJBFlreoHMXEwcMx2nPQjFb19KPuQClayuL0NqrAfN X3Fm48SA74XmxEZi4Fhx+GshJgBGDFbw+DIHcexyTFhayGadUF8olV998MYvLYdEkLZlL KdmWKcX2CrQIIGLajqz8UazzqdtbN44aVlLiytbs3HpkCAFkWWJUZauV05x+rIGPNn2Y1 NtJ24IxBpW/hPdiXJiTgfajToCLsWBDX1+DACxRbKgyqMU3uQRZondBm2TVBeLpQy9MKG lBaHSykIreUuJ44GvKdGUnUmnZYKAJzqF6XH7aKiPNTcpLh4LsuNHd7II6+g4F10wvw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--jthoughton.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=DNvC3z9p; arc=none smtp.remote-ip=209.85.216.70 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A66F60A380E for ; Tue, 1 Dec 2026 15:08:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A66F60A380E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jthoughton.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=DNvC3z9p Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3b40e7f4fa2so15076049a91.2 for ; Tue, 01 Dec 2026 07:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796137701; x=1796742501; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1QsmTJfcTTtgBySgvPYVll2vR+VXT019fVmwZe13OLI=; b=DNvC3z9pEXZwfUw1pGyNWSZkLbGUYCVR8ZmuK1dCK1kQoNKkMu5MrswEqeW5Xby/dN hy/Re+guF/Xt+ZJITu5e5YjUq90X9BS9F4mirJGyZ+tyum/+vsGLHJn4DXWnlAzGz9RU C8NT6wbkjYSFo049bQRyjS5zKQhWKyxZZlLQ4xM2p4pNVkly3T9sZ6zFwSwh6kWTAwpQ 0p/NDcbV3xnHkAgB8dsmimZ2vx8/yidH7vWes+yRPxxXQG2ctMbAu13tXCd4UamiAw7s Rc9j8uzmAmVPoHyE8s7LCH5tMCqq5PC4aGS4PdQ+BDcu1C+okf/cK2x1h/jppXE/lY2p qL7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796137701; x=1796742501; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1QsmTJfcTTtgBySgvPYVll2vR+VXT019fVmwZe13OLI=; b=Fmjil+FMmJ5NjWCvLv2vW9RH0IyOMB6J6+tVpnhRp547hTrD07+nmpdfT9OWk8HXzm Oty+iPndxBUw16FcoWazbPCsp6cMiJvImpUOfcFYRvEFqtfwepjTqmf6VrIYdUront9X j+TSZH4QtMbJ4eU9H101+h0nBlJdP3xiFry9I0gnikvvPpCeovGb8OQTRDTCWBuK1yY2 BWbOHDN6hoSMmV3FInVBVTQ+1yIHdDaOcb74aB1H0Gi8G4s4srA4TQSdpK2wY0q9SrcV PS+4PIskysf+T7P9kvWMRSyZbB01QtMqolqsJrH5XJZPBUEWUAgLyAKrP59fVGRbBC0D 8bwg== X-Forwarded-Encrypted: i=1; AL+hErFI5VMZmF0aFQOEiUnB757hUdn0UqUSIB9QPzh8frPDst4jqVi1E7EEal/3j9Oaz6BxxWmlWHn0ST0+QoA=@vger.kernel.org X-Gm-Message-State: APuU4Z8xvr1DKMUIopxKvHFmRWv/7ua1lWl3tnx6Bu1fvuwMrSOgX0+L ZPn/o2o16NZE86IWCv7NAL6n4VoVp6qlOFjYohBj/xcg7Lfzjf5l+zvFUeyn1a4iMN75DybZK+t P9JDmSKSgv01fPX+Q5QjhZg== X-Received: from pjbem21.prod.google.com ([2002:a17:90b:155:b0:3b4:e95:dc6]) (user=jthoughton job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:4acc:b0:3ad:ce34:f63c with SMTP id 98e67ed59e1d1-3b41c9e4b1amr39311585a91.30.1796137701163; Tue, 01 Dec 2026 07:08:21 -0800 (PST) Date: Tue, 1 Dec 2026 15:07:58 +0000 In-Reply-To: <20261201150801.2239894-1-jthoughton@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261201150801.2239894-1-jthoughton@google.com> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261201150801.2239894-17-jthoughton@google.com> Subject: [RFC PATCH v4 16/18] arm64: Drop BBML3 requirement for HVO From: James Houghton To: Will Deacon , Catalin Marinas , Muchun Song , Oscar Salvador , Andrew Morton Cc: Kefeng Wang , Nikos Nikoleris , Linu Cherian , Mark Rutland , David Hildenbrand , Ryan Roberts , Nanyong Sun , Yu Zhao , Frank van der Linden , David Rientjes , James Houghton , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" With PMD updates being done with the Access Flag trick, BBML3 is no longer needed. Dropping this requirement vastly widens the pool of systems this optimization is valid for. Signed-off-by: James Houghton --- arch/arm64/kernel/cpufeature.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 5259c620c0ac..73b5f0130b38 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2076,12 +2076,10 @@ static bool has_bbm_through_af(const struct arm64_cpu_capabilities *caps, int sc } /* - * We need BBML3 to support Block -> Table transitions without taking - * faults, and we need HW AF support to support changing the OA without - * taking faults. Both are properties of the local CPU (BBML3 support - * may only be known from its MIDR), so this is checked on every CPU. + * We need HW AF support to support changing the vmemmap mapping level + * and OA without taking faults. This is checked on every CPU. */ - return cpu_supports_bbml3() && has_cpuid_feature(caps, scope); + return has_cpuid_feature(caps, scope); } static void cpu_enable_pan(const struct arm64_cpu_capabilities *__unused) -- 2.56.1.839.g22a8290db9-goog