Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1416123lqd; Thu, 25 Apr 2024 15:14:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJVxadu/HqDZmTfAKjuC74EuY9aiJtCHjA9HTsTrfbkL82VPXR3TuUwY7ro94joD5zEsNSzPR9Bz7p1H+RpAbxY8oH6c6D+OFinEPZTA== X-Google-Smtp-Source: AGHT+IHK59nc3Ly9LJp2oKqTJMjlah7kZqWOBlX6+mwG/oU/LGFtddsgAWngWdlOcdpOU+6TIk8t X-Received: by 2002:a05:6a00:720e:b0:6f0:c828:65c1 with SMTP id lk14-20020a056a00720e00b006f0c82865c1mr927163pfb.2.1714083244184; Thu, 25 Apr 2024 15:14:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714083244; cv=pass; d=google.com; s=arc-20160816; b=HGWk4Buh+Y7E+pPtt7TqVRSfLJ67OFxBOI9F9u0+0FSGl/n+I+zSS6xL2Mbpx+5Zgf fYzl+xfzXEJQ4JgmoMMh+rfTn6ULhdTlF7kihlyDYUcPtCIFBKgq/UK1BjjVUPuDhU7q k1wMwHc9iOWYZewa08/zd8u8WXlYFVlLIsj01h4Kf7ktlm/UcqVs3AONDomleD2sqh9F dgVsbBYkIY5HCJKHNw7W2AwYNecZAESW4ec94atqZQRF5TukmWVUuNn4QQXdnQoHfKGp 67lhmVqZEUrvZbZ9QdZNsTiiUHZ808TX/4AISB9dZlqnTyNfvpUPPnYHjS8OOmo3E5gj y50A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=l7hgyv8FDM1wHsZylAaox/6RJL9rO8NR1hm+CUZNluQ=; fh=RsP7aLELX3e0aTNcPVAR07FbvodRHHCql4YfPvB9wLw=; b=ObxGvxGXiVhStY0hTtqNdb1fJxNFv1YxNqTMQsq0pRGlmJJMNmp7rEF9PhtBC00c58 NmNfBT4lqKw0mhIP07oiQWbU2DvpUy1neA1at0dFhTMswzBs/cOhi0XcnPyOL/nyC9qi mjz7tsJs1hsctzxPhpdAM6laGKmX+5Y0Uz9K+LheFcnpFCHhU/sXPOQFRK/gH2BDYldS ye41pgYCW7JtBul5wNX6BFRWR+Oy7usZiFnhT2FIjpLQ/OWmldZVFgygVZPotEbbCw3d QWYO5gm9e0quBKXwKOVOInONyl+R5mO5uglTkwwI/yE9rV22C2bA6XhyGy9HbGnGHAHa L5Zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RpPGXvQL; arc=pass (i=1 spf=pass spfdomain=flex--yosryahmed.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-159291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j1-20020a62b601000000b006eaa8f9b018si2213483pff.241.2024.04.25.15.14.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RpPGXvQL; arc=pass (i=1 spf=pass spfdomain=flex--yosryahmed.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-159291-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7792A286D4D for ; Thu, 25 Apr 2024 22:09:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDBBD168B06; Thu, 25 Apr 2024 21:59:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RpPGXvQL" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 BC94015623A for ; Thu, 25 Apr 2024 21:59:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714082396; cv=none; b=iPU7aTjIXdOHxQ/1MiWgGDKc4HPED9LTgp+FpB2OOA5IAvniitV9H39+fVrMpUfBLQXkThukXArMvc/G/WDz30m/2XjW2mflwbXL2GGlP9lZlhgbDCG7JWYXcIFP/8kDpsOrCkPPqNlAhGmPwes7JBOtgduJcbeFmvg42jNCqOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714082396; c=relaxed/simple; bh=NNgi4h1D/vIB8B9WWNK8rKrvsAEbOXnhHyZ/SEcHCmI=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=LMrCoxNQRXNBCFlOjRW2ysWXRz16ug8uwFPVXdTgqCqbTEj8mwuelUAzmpht3IcvWAjrWjnCCI3xTNwf27WTbgiClA+Kx0Jym6nsa5Q5HMobrytMW/0GPg9b22nfFd96tdq0MnPDDAFmb7DWH/3RuTNeN+P2xVhThV6LZEACP2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--yosryahmed.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=RpPGXvQL; arc=none smtp.client-ip=209.85.219.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--yosryahmed.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-ddaf165a8d9so2689542276.1 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=vger.kernel.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=RpPGXvQLN5T72+EZ89vA5DmogVgx+oXqVHRhOhPbTq5v2RshNEkJwQoaKR9Gwayf4M szDAs2juRpSrI0wuMLUje923oRPRLU8cvhFmiG+wUBbj5NQV3Z1Yvb7pBLBCPQcGIBxA wSFC96C+nr0oY0pTpswnEmVLql+ZzsBrwfakdJWAjTjGiHp8//TB4gU0ZZySz2t8sjl+ tXK+rPVFu42yTSrrYzr3TnHfWJjnWAjF8QaIQolshNYuuHRMYSwB/9FuXNVtUVj01A+D I/p7el/OPi4x1No3XNP7M7YCDj5mUTlExpuqJeeTUh9l/ZwLfSs68aycDvcw8bVjq16x 0K/g== 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=bt3tv5zTV7yw/ig0koN9NqLAImmg7Bpr8z1H5oOImA0BGVApWCDEgYliQVKXvKw3UR 0CuYU3S/oqsY/NVKrDIGXu/v7l3uwmYGIe/fax+MOwCu8hePtLBOokOKelu6PHhC1Wwy RsiHGKsp45AfDEO+d+neBXcMqIwbIGVuQ186Ztjh/Nd930uwePL2N0xGSW8mmjnvlsgM 3antBxFsVzX6bVB75mYxLYf4oF0SCo+diTvxDPxKZU71JUg57t4XoDxHb8qENBQyh9kW Ov8tYDKhT82YNVjQt+Zj/HIM5nfczKJlCM7KmcrcqM0rJ8XhZpvvE+7DCvoMrHtsWWCE 6D6A== X-Forwarded-Encrypted: i=1; AJvYcCWcbdCUH04M7dOstSdMPjdzrf/B6yS/OOIgqcoHf3IXf6CuVov1xgxhsn/Wu6mv8xMRRSmbvU8BmjhX9/5l/F6tQD+2AB0JPvqA4bQg X-Gm-Message-State: AOJu0Yz9mrUn6kqVv4UAIE6tUqXaHgGzCelgj8Xt/BVQqtd6mQQ6IaOn mGarMJMTFm2ehzOu4WUpyB8UZh9V747sQglgSYXgIFU3bE+/Qd5Lsl5ABJKFtAPtTU9js7N2ZPe kNTSYs0jhjW+kuyEaBg== 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Content-Type: text/plain; charset="UTF-8" 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 --- 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 -- 2.44.0.769.g3c40516874-goog