From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07FFF3B38AE for ; Wed, 8 Jul 2026 03:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783480321; cv=none; b=V55GDJNIamm6zeCW3nli6x76JFkSTzExjHJ5j+1vPCSsSogejVp3fBtLn0fnm5A8e2R8LPkl0Y+7ZdD+/ehvhu+vAFqiAxskNZEqV4dHXA+2my+J+blL/UD+HqfULCLvWM/sWCE6DmWraWn9BSIsXPwUJCJrbSx5VwNpT2FZ6/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783480321; c=relaxed/simple; bh=7xMcC0QnMCL0+aOeAQT6KnfxDngRYLTCGBTlLLDOC+0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=InDGn6/CXUl1nvKBLiXmNpDrURuCOG8LfSMdL49IZOWBRoRRtQnJ9gN/amCAuG2B7KUXBTXoi+D0JErOOfkJVFEAMy66LzRpLonPwSEqhslI9TJ+PmlsXADFDpwTpTC51fDDdcVyNOn55k2mVmzFRQhn7H/39Ikd3eBcz7OSbYM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jthoughton.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=uFI1I2/z; arc=none smtp.client-ip=209.85.214.201 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.b="uFI1I2/z" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2cceabd70f5so4350285ad.1 for ; Tue, 07 Jul 2026 20:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783480309; x=1784085109; 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=4NDGpn45MhaTYlhQFUuH7sBQd7vZ4HzbwwdEmS2fdAw=; b=uFI1I2/zOGsGzfsPOw82Ng69qBVeUbApivsoDqGI8m6gmWhET17a/DJYhEVJyC41pm aci8cBXJ/xG/SU8HOUrlD0gAHUwBO/+kyVenHaMIUTGuxM+0m8y0CpiSP+LjLvZajD1Q 9WGQHG0jeGI5h1w2VCnfpkzftsO0v8nRB/71RhCdcG0Ys2gp8roNzn7qUylGJjZX4T3U 6wNl0tGEEQPOX/fRoS83aDff5n95ThEgHY6c7DAeb/US20V2+whUc/H6N1oh77QE/jaW SURDSV8DbiKaUQJ0NpOtiTflEFNXNRyPR02MaQ76aCk53K2nW1x2u+yd4xfZyKb7hld9 i2QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783480309; x=1784085109; 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=4NDGpn45MhaTYlhQFUuH7sBQd7vZ4HzbwwdEmS2fdAw=; b=a+VjpfUBzm5GzK9yJVBFAqqecG7zA/IniNm2AGUfawepT0syaljIRTrw1JYYIpo/ne jMH02rHQNGC6Azsg7II181un0oT6hfn8wjXRfd5XLxdfIEUu/bjLUfq9KsFqq4X11EH0 rmHzOL76c2q1Njxc9xMN+WIcje6qffKPVwsGCwlDllsJ1LRfTnDFzCZips/eS7fHZ4N2 RVw4a1mG8m4F7zFU6gs562/3EFJTfiXgLJCHj+Pn3OS23h33JXJqTqui3mntSV4Ru/sA qCgSf13Pyy5BcODGl0k0uEKAu1HYgcUdCcHWx01T7x7aVD7Wu36LT7KREDHohcI81ffQ 2n6A== X-Forwarded-Encrypted: i=1; AHgh+Rrfi13bn3OqUX70qHBpgO7QNhSR1vBRvYxJLliYgvFvCIi14Tg2j9CkpmmsgEYnfEk2JTnYYsdU+Qw6rm4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz4wjHLEXshL6qZgEYt9v4+ie8KVS2KJ8x/pnyBBPGyTy+DQwTP UWbFk969jxQrBoXI9tZKuso+RnZE7j5CfystjVMNVXjQMD7KUFrKmonsCRKUOnfjKbWI9ltS3zw AKTIZVTG5SYV8K40zCkwlZA== X-Received: from plwh17.prod.google.com ([2002:a17:902:f7d1:b0:2cc:ed0e:f302]) (user=jthoughton job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:4b48:b0:2c0:b6c7:2271 with SMTP id d9443c01a7336-2ccea2a5ecamr7510755ad.4.1783480309200; Tue, 07 Jul 2026 20:11:49 -0700 (PDT) Date: Wed, 8 Jul 2026 03:11:28 +0000 In-Reply-To: <20260708031129.3503195-1-jthoughton@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260708031129.3503195-1-jthoughton@google.com> X-Mailer: git-send-email 2.55.0.795.g602f6c329a-goog Message-ID: <20260708031129.3503195-19-jthoughton@google.com> Subject: [PATCH 18/18] arm64: Remove user-selectable HVO Kconfig From: James Houghton To: Will Deacon , Catalin Marinas , Muchun Song , Oscar Salvador Cc: Nikos Nikoleris , Linu Cherian , Mark Rutland , David Hildenbrand , Andrew Morton , 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" The Kconfig is not ideal; it is niche and difficult to understand for users. The Kconfig was added to avoid the following regression: if HVO is compiled in and all boot CPUs support it, any late CPUs that do not will not be onlined. The implementation now avoids this regression as long as HVO is not actively in use. Therefore, drop the Kconfig. Signed-off-by: James Houghton --- arch/arm64/Kconfig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index cf4bd6bd7f11..2a59155f68dc 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -259,7 +259,7 @@ config ARM64 select USER_STACKTRACE_SUPPORT select VDSO_GETRANDOM select VMAP_STACK - select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP if ARM64_WANT_OPTIMIZE_HUGETLB_VMEMMAP + select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP if ARM64_HW_AFDBM help ARM 64-bit (AArch64) Linux support. @@ -1608,17 +1608,6 @@ config ARCH_SPARSEMEM_ENABLE def_bool y select SPARSEMEM_VMEMMAP_ENABLE -config ARM64_WANT_OPTIMIZE_HUGETLB_VMEMMAP - bool "Enable support for HugeTLB Vmemmap Optimization (HVO)" - default n - depends on HUGETLB_PAGE && SPARSEMEM_VMEMMAP && ARM64_HW_AFDBM - help - Enable support for HVO. When enabled, late-onlining of CPUs that do - not support features required by HVO will not be onlined if all boot - CPUs do have such support. - - If unsure, say N - config HW_PERF_EVENTS def_bool y depends on ARM_PMU -- 2.55.0.795.g602f6c329a-goog