Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2394858rwi; Fri, 21 Oct 2022 03:27:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qeQXNilZl5A+TCbpCbBwrgg7AmrrnGV8y7feqMnqeixRmznT7isWT3vXtORoblLjT3cdV X-Received: by 2002:a17:90a:ca96:b0:20b:6ff:1b2 with SMTP id y22-20020a17090aca9600b0020b06ff01b2mr21457420pjt.228.1666348035390; Fri, 21 Oct 2022 03:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666348035; cv=none; d=google.com; s=arc-20160816; b=Sb5WilxNiukJ0BBGv0rIGAuvhAEjosYQdbtnxbDOSvdbWNwgOqyem3gvQ26OznRSOE zjc0DCRL6A+4SuyKBzwjgFLDqUvLIxjNwehO+/dbr80b689VG6wsUeWoGp4Zr3vTSZVA 2CLjLTmKWCkmYuyQy6fHG61mTi0unNOe3qaaO91Vd1JXXDdF+0uLQ6FvZz0Vj56/MOp/ u7vm5JbLUrAEdWQTNtN83h0Z/zwKvG+pnjdJP4zpEDmkbewGWcXgQpKgdDsWmqC5sj2W dd++EzqrHU4dKcFfcVRcWdJaVaq0PE8tLvtDVVGtc+CKQdaFo4WKpECXJNjYA7bvuI3b 0REw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ooz5VtSjs4RZMmj3qfhcsaEMXb528lP3FjIYWM1xcMc=; b=AjvT7namyVHomC/6YZHHSIWs0HxxZktHO86Qp3wOQQFzkDCQ7wv/de+VuhzKPyfRF1 EK5SWcJGir6qtgbu5TDvneXo172bDlY3gCajuXTI4/e2Kli/9PIRzdDzW60Xy2v/lj7P Rcwruw5y+jFRk5WctdNkoP4aB0DmKTvimG0XoFFW7DWEt9MA51jttTQLhnxiFuj8R2B4 OlP7JKcWzBS680N5cCq0jPUj3ua0ZtuKsBX45IEKuNjpLlEWK8MDkfvRCHWk1VrJMK7a uc1SXQ/BoHedd5QAi9w+bNIyu1x/cltaKx/CESIGlVyJTulBtlpRY77+Ig/2Av7WnSun blUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=u2LjmYm+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902f78800b0015f4370afbdsi6469654pln.516.2022.10.21.03.27.02; Fri, 21 Oct 2022 03:27:15 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=u2LjmYm+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbiJUKOJ (ORCPT + 99 others); Fri, 21 Oct 2022 06:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbiJUKNm (ORCPT ); Fri, 21 Oct 2022 06:13:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726F77AB08; Fri, 21 Oct 2022 03:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ooz5VtSjs4RZMmj3qfhcsaEMXb528lP3FjIYWM1xcMc=; b=u2LjmYm+CRL3dWou+qpwpdagKS 7NsqLW5RzyDxZQyFIWn5lZcJ+RhPvoFMW8jTUvgSIL18F1n4WxqbWWvp2tsflWlAx/H0Ush/f1qAq PjSG89JWlJvjit26gWit1CwruYOYJHeuihgxguw47Kt6gYxizytite+2CcXk6A47D5pkj9Cd5jtHm CpZjFVFzxsnvFd70EfvcRF4DjSYuE5p07TXfLy9KGVlqJ9rS7Jgzl6Ffhet9t6VH67MfrJcUgSRym c0X2/lxVehA3xDRMaC+cV1Z/fYO7X5u5pXq4EQ1eqNK0fqHrYsMvEM9J2zNXYFicFCLcIRZhoLNe+ EoJOch+A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1olp11-00D3h4-2X; Fri, 21 Oct 2022 10:12:35 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A5EDF300155; Fri, 21 Oct 2022 12:12:27 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8DB9E209A1C9E; Fri, 21 Oct 2022 12:12:27 +0200 (CEST) Date: Fri, 21 Oct 2022 12:12:27 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: the arch/x86 maintainers , Yu Zhao , Andrew Morton , Andi Kleen , Aneesh Kumar , Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Matthew Wilcox , Mel Gorman , Michael Larabel , Michal Hocko , Mike Rapoport , Tejun Heo , Vlastimil Babka , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, page-reclaim@google.com, Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , Holger =?iso-8859-1?Q?Hoffst=E4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain Subject: Re: [PATCH v14 08/14] mm: multi-gen LRU: support page table walks Message-ID: References: <20220815071332.627393-1-yuzhao@google.com> <20220815071332.627393-9-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED 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 Thu, Oct 20, 2022 at 07:10:46PM -0700, Linus Torvalds wrote: > Maybe we should just bite the bullet, and say that we only support > x86-32 with 'cmpxchg8b' (ie Pentium and later). > > Get rid of all the "emulate 64-bit atomics with cli/sti, knowing that > nobody has SMP on those CPU's anyway", and implement a generic x86-32 > xchg() setup using that try_cmpxchg64 loop. > > I think most (all?) distros already enable X86_PAE anyway, which makes > that X86_CMPXCHG64 be part of the base requirement. > > Not that I'm convinced most distros even do 32-bit development anyway > these days. > > (Of course, if we require X86_CMPXCHG64, we'll also hit some of the > odd clone CPU's that actually *do* support the instruction, but do not > report it in cpuid due to an odd old Windows NT bug. IOW, things like > the Cyrix and Transmeta CPU's did support the instruction, but had the > CX8 bit clear because otherwise NT wouldn't boot. We may or may not > get those cases right, but I doubt anybody really has any of those old > CPUs). > > We got rid of i386 support back in 2012. Maybe it's time to get rid of > i486 support in 2022? > > That way we could finally get rid of CONFIG_MATH_EMULATION too. Would love that; but as pointed out, there's still a few stragglers out there. OTOH, they *could* use one of the LTS kernels.