From patchwork Thu Apr 25 21:59:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yosry Ahmed X-Patchwork-Id: 13643960 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 808BEC4345F for ; Thu, 25 Apr 2024 21:59:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F32C46B008C; Thu, 25 Apr 2024 17:59:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBBAC6B0092; Thu, 25 Apr 2024 17:59:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D36686B0098; Thu, 25 Apr 2024 17:59:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B23B46B008C for ; Thu, 25 Apr 2024 17:59:56 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 64652141284 for ; Thu, 25 Apr 2024 21:59:56 +0000 (UTC) X-FDA: 82049422392.06.BA679EA Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf21.hostedemail.com (Postfix) with ESMTP id B29A81C0019 for ; Thu, 25 Apr 2024 21:59:54 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=G5nbdKvx; spf=pass (imf21.hostedemail.com: domain of 3WdIqZgoKCOAaQUTaCJOGFIQQING.EQONKPWZ-OOMXCEM.QTI@flex--yosryahmed.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3WdIqZgoKCOAaQUTaCJOGFIQQING.EQONKPWZ-OOMXCEM.QTI@flex--yosryahmed.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714082394; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=l7hgyv8FDM1wHsZylAaox/6RJL9rO8NR1hm+CUZNluQ=; b=HHt7wsVJrTXqIG7Kmzbc3LC+ybKpzhKA+FAURLoVW+8/23sWr/pweWTxg4+OuAx9W30iA8 uw/jxpyqozRP5udvchclQmQLQwhkOYwj245LYsXlCj4wAUgNWo4RmKkd1QWeUaPS2Rb30a ft85u2dq0GVPqaltC9X2zyRluYYQrug= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=G5nbdKvx; spf=pass (imf21.hostedemail.com: domain of 3WdIqZgoKCOAaQUTaCJOGFIQQING.EQONKPWZ-OOMXCEM.QTI@flex--yosryahmed.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3WdIqZgoKCOAaQUTaCJOGFIQQING.EQONKPWZ-OOMXCEM.QTI@flex--yosryahmed.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714082394; a=rsa-sha256; cv=none; b=7hf3HV9Qn/iY3kQHcqABJ9dUvszp01GtELN7PLtd7F2GgJ+bfRc/OE5YGyjO37VmdrwMjZ joVvWlLETaBxt9H76eGSfd3t4yi7EXj08nMEx2Dsxb75shg9YB6/C6/ZxRtqrAntbm9HO3 /DWZDKy2QEYN4KA3cDvl9FaaO5h97rU= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de5520c25f0so2945098276.0 for ; Thu, 25 Apr 2024 14:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714082394; x=1714687194; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=l7hgyv8FDM1wHsZylAaox/6RJL9rO8NR1hm+CUZNluQ=; b=G5nbdKvxSvlYj9SauBa1qARhOGt3kOIaUOFaI6NxByusnVRLd7nWu7zVy2yRECCPQB XyxuM7DCli4Ymm7JI9U+7KJB87xUFydGYaWdEqD2N92QT9rX/G/pw1oIJwDkWl4uewtQ uaTt0eXzt+W1RMyG7iee3TdmkW1rvZn7bwvimKJSFF9mhY8eZ8nf71m64n4fUs7/NU9D DX5YglW+rEo6XEb8ZvvzBkN02PSfFBMAzk8DxTOHBaoImqVZTKfPOjwjT7f7BGSH/gK9 izfzhDKTVqX0jb/dWScP/vAluZiYpAHoOljpMWZS5pCqJnBKePic5CrnukbTYzRGWuIl Vp6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714082394; x=1714687194; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=l7hgyv8FDM1wHsZylAaox/6RJL9rO8NR1hm+CUZNluQ=; b=QCRuuftAodZxEi5KtQQ60H72cc1vTJ43GOZE88WD+BxMOuQ87fGQlCKtAhtzCnY0/5 aXnS9h9vC4cvhJ4v3oZsWh2XY1QOCN8Lq/4CReZkttOT9w+2Nb/As0g9MTAHBdINKkR5 FjGe8EwNNeeHlcHalj3IgI4SIsnw0R2BF/hqxFI+skKvHQgnK1IX+oRSW3eux+KJHOI5 AfjMY9eK2Z7pEnVWwha+4qKjvhU6+7u1eXCphG1TNV0YQqdJMqDNDiVJacBekCO6Qksu reVEbIAgXROjh0XkACYx+nIM3g6nYr2rgOgvU4132ie+M2qzWa/UA2+200kbTMbmDUTH fGHg== X-Forwarded-Encrypted: i=1; AJvYcCXCgtQmLMxSu0bKWiOlEHaihHm1rS6fs6ycZLugH41d+ERqG4P+Flz6/74Z/Dx6zwockUeMzcfVNlQLmr/07eV4kiw= X-Gm-Message-State: AOJu0YwgzRM2gCV09+RdUTZ3xG0BoCkOwyS6Qe4NRbAGxPA7bkCLqFbe gD7eeFM38Vx2q7GPn5ZSBDTASpf1EMaoEtjZFQnVQotm1XIIXDDFo8z7bAEZYTSYolffiHWyta9 2O3BeXymgkFHPGUE9ng== X-Google-Smtp-Source: AGHT+IFRO3Uz01eedNagD4MaFbj1TCHrH2OYWaLnefGokv8XltZrBBnf3FkfF5XHqG41ekpe3LfbjjoxDN9hT4L2 X-Received: from yosry.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:29b4]) (user=yosryahmed job=sendgmr) by 2002:a05:6902:154b:b0:de4:7a4b:903 with SMTP id r11-20020a056902154b00b00de47a4b0903mr112080ybu.3.1714082393698; Thu, 25 Apr 2024 14:59:53 -0700 (PDT) Date: Thu, 25 Apr 2024 21:59:51 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Message-ID: <20240425215951.2310105-1-yosryahmed@google.com> Subject: [PATCH] x86/mm: remove unused CR3_HW_ASID_BITS From: Yosry Ahmed To: x86@kernel.org, Thomas Gleixner , Ingo Molnar Cc: Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , "Kirill A. Shutemov" , Rick Edgecombe , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yosry Ahmed X-Rspamd-Queue-Id: B29A81C0019 X-Stat-Signature: kx66akn1sr9su1unbhmwyx19mok6eipu X-Rspam-User: X-Rspamd-Server: rspam07 X-HE-Tag: 1714082394-322755 X-HE-Meta: U2FsdGVkX1+OGWQzXoROScacj68btDe3yTtgduyhLrRRymOhgwoLgNDvWYeinS3kFuDwiyxpsWsONZzO/jHM7Hd3w6axZM7c5IBIY1UEJGWOu4G6cPlCyXRwVieEpMlTeBW3w3ny4rzifkdzAW6YNBEuLfryN/N3XxAq8fN0IHZLk5xY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GLX5M2VE0j0ZpUKlRxnn2omvFR1JDxiFc5ej6uldBYKKBcCaNdWhLLkq9QhnOXLpKbl4JSe+173WIay0SJbETVLI/LhFwsznhC10tfWpknQY14xG8Akl0bXW1xIDf2TWxjgo5lWecR5swm4b34GhwnP6HCcdJvW4MUErE1OJZmP65xOJYxOzfKnb7k1CYsRGQ+xPRplAxguBuhMfZL1CZSYFpaB2bFjPIEeZYvdpv3LyzifyTlUrvlumwQVHjHYdFV+McxWJENI1A53k1NBUvq1C6821qS5Mpalo2H6gdrrvLqi44+gQ3k1AkrvZv26sSr/tdCXmhAytTjPUwm0xVMj6iQNOP6c1ndyyidjumGsW9suy60rhi1yQnyRhNzuqSv/974hLDHpuAUlDWFK8TCbk+EZMkdU3d5vQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Commit 6fd166aae78c ("x86/mm: Use/Fix PCID to optimize user/kernel switches") removed the last usage of CR3_HW_ASID_BITS and opted to use X86_CR3_PCID_BITS instead. Remove CR3_HW_ASID_BITS. Signed-off-by: Yosry Ahmed Acked-by: Kirill A. Shutemov --- arch/x86/mm/tlb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 44ac64f3a047c..a2ba5bb201705 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -85,9 +85,6 @@ * */ -/* There are 12 bits of space for ASIDS in CR3 */ -#define CR3_HW_ASID_BITS 12 - /* * When enabled, MITIGATION_PAGE_TABLE_ISOLATION consumes a single bit for * user/kernel switches