Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1264662rwr; Wed, 3 May 2023 12:29:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FhGJqOBbkx1q9hWSgChtWHPkF1iK/n2H9dcS9MOoyg/5eLdvX7mr5qplMlL6EnMLsMBbP X-Received: by 2002:a05:6a21:6706:b0:ec:6039:f76f with SMTP id wh6-20020a056a21670600b000ec6039f76fmr25193477pzb.11.1683142176787; Wed, 03 May 2023 12:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683142176; cv=none; d=google.com; s=arc-20160816; b=E6nxV4hd+ph4yAVerJ9vFAzCZgPTK1WIYsuFFK919GDcd27ZD/I3rP6RcmZ5vV7KvD G5LfZWVRlfDD6UdnOdXvJqtTEkp7pf0EVdGkJLrpNHY4oFNvMMSCsr4vBH7WckN1wqvz Y/b1mwVsJ5FkKE/0F5d7dEJuKsUBjgdkbqQn+VIXA02MBZ+ZipE5PJGh+N1Ld9/4zuzX mr0oMyeHvXyrMmeGYIdXgXUwsexweUvKIpsG9xuSsl7nLAcBTZWOPWvwTA7cNiVMgsgp w2Zu2/mYf44I9YjAoPs/mJDmptReFOvaujyvOleUNw3RtPhMlD4pIgA+PrXt0clyr1xl OXtA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0YYQc/fnT1nOd7uUw0b6TC/AbODgNNfUdncisBUND+I=; b=Y6F51jv8E8tf5v+YwiuJAdTtS2h883xCzXf4nt8KFMMSVNV7Etl7NRoog/ta/5eHih qexZkirAUfUookse+Acf0UkoDys5F9C40wDPF7QWmIt/fbyDPJaH6CvZ+Zj9Qz58xaP9 /8BGg/gwejc0R2Jg7RKHKa2E3Gi2/ySm+XPx3rjKqqMe+rA4UPiGPvX9l85BXOUBwu0U /9Ln2ch1RDdS5d1vNBRguRuOlIqfm402eq7zp/26K5XYl0ncBpywaycpOUWOzLLsxEnn 20jQ3AUvktqExn1X2qIUTYcKhuFaO+QHKnWKAHOAjnVLHQoXa5uzbNnh79MXpSKEEGpU RwHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=fUfcica9; 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 n19-20020a635c53000000b0051b59786e6csi1891623pgm.300.2023.05.03.12.29.24; Wed, 03 May 2023 12:29:36 -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=desiato.20200630 header.b=fUfcica9; 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 S230060AbjECTCM (ORCPT + 99 others); Wed, 3 May 2023 15:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjECTCJ (ORCPT ); Wed, 3 May 2023 15:02:09 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D2D7D8B for ; Wed, 3 May 2023 12:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=0YYQc/fnT1nOd7uUw0b6TC/AbODgNNfUdncisBUND+I=; b=fUfcica9Ew9kItgGFKcp587Hq/ RiMrXeA3W9LDTufGeUHqKWAJfL0hBD+Pz7cfjDqUnHLcVn2YM9LFiP3nXsoKE/X6MqieqEacFjhVD lDyU/yJvJdLzLfZUmMKkUreffDu/a8YtqB29dEtN8zVVrAydNTTxq5xzx+q8nmfzCjSsUqJsoeOfZ uRKaa37sWp9s3u7EuRIECiUneG27Uy1DMCIcaKUXsZGNwM/2rjOJAlbleJGxANqdhl+RF5ajBLKFm vmomxrDj3IDDRx7S5cf7kLcZ51tClwkUdMq7XarLw4iq8t7C4DfyNrkDRUuRlGYcL7WIfMjMPUSD8 VyfVK6Qw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1puHjZ-000BoW-2T; Wed, 03 May 2023 19:01:50 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CC4EA3003CF; Wed, 3 May 2023 21:01:47 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A705024AE4AB5; Wed, 3 May 2023 21:01:47 +0200 (CEST) Date: Wed, 3 May 2023 21:01:47 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Dave Hansen , "Kirill A. Shutemov" , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org, kirill.shutemov@linux.intel.com Subject: Re: [GIT PULL] x86/mm for 6.4 Message-ID: <20230503190147.GA1719388@hirez.programming.kicks-ass.net> References: <20230429003822.n3mglslg666j3npp@box.shutemov.name> <641a9348-a052-6bb5-e6c7-64acb6405328@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,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 Wed, May 03, 2023 at 10:54:38AM -0700, Linus Torvalds wrote: > On Wed, May 3, 2023 at 9:38 AM Linus Torvalds > wrote: > > > > So I'm going to just remove the 'sign' games entirely. They are > > completely broken in 'untagged_addr_remote()', they _used_ to be > > completely broken in 'untagged_addr()', and it looks like it's all > > unnecessary. > > Ok, I've pushed out my changes to the 'x86-uaccess-cleanup' branch. > > I think it's all good, but it would be really nice to hear it's been > tested on a setup that actually has LAM (simulator? or maybe there is > actual hw inside Intel) > > And any other commentary is appreciated, Looks sane from a first reading. But I'll try and have another look tomorrow. Also per how 2s complement is constructed 0 has to be in the positive space for it to be 'half'. Also, typically 0 is included in N and the traditional 'positive integers' set is then written as N \ {0}, but that's somewhat modern and a lot of variation exists -- although typically books tend to specify where they stand on that issue. I suppose that's a very long winded way of saying, that yes, ofcourse 0 is a positive number :-)