Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3441067ybb; Mon, 23 Mar 2020 00:48:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsX90HlqR1QDxnY8BM2uW0zclEaj7hOMv4lfpl6TBH9+MOLnw3g/vLshKpFF5jcqSe0zG80 X-Received: by 2002:aca:ecd7:: with SMTP id k206mr16068339oih.113.1584949718299; Mon, 23 Mar 2020 00:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584949718; cv=none; d=google.com; s=arc-20160816; b=FDiDkTP7dg0zS/LHYDkT3iAh+StqwMzuoPQM0Bz/T8tRTToQiXNsByARu1t9L7JSeq Z4cm9scFewtwf3eZvTi5Zdou3bWhdYcPB1h10SuaxDwrW7LwrWmUA1waUKLS+pZUKVMx rDzZoKZ5ybaok8KECJJ+ndqEbV7FD80GIv+M7nFuV6pQ7yEGAOG0gjEhPOc7KcmCv5TF Ft4HHAB+keixiG+83PJ/NK0BJwnqTIHDU+i55BLLIno1886RpKbd03xaG9JCMuIvJXlf OHFbMOmN6y9NT4CKHqvr30bCNOEOD5cMsQvGY9Kv70XRia0dcYG9lSjYCJ5IOB4PVv6C ANqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tNemhAmkl1sC97ky4z5cEU5jjdlE0uUKewIMEJEyzJ8=; b=B255KjwcinqFZDyo3PBlakw1U7UV0Z3IKv9/uwnmxiXrrZnk3tBN7NQqSjVTP1iaeg SY9vkKkKcYi/R0eHm79p/4SH6hFp4MLseqQuH8FnZ5+qj7agKxLW2ARWCO0Qr2M/0qP/ U0pbnjHreCR4Tu2egUqAHWhz1fO4w62b9930YYQhjNCwhwg6zjA+5nim7tvmYvSUY+qm /OwPXqAsFPHQi6cT787X1jqqMiv6dJSYJ8MDpofnIqyCHCP8G3xMTMmM2eO0YLhqAHzs IHdYes47xD3ypco3xZ4G/Y47G78ipkt44mQJ6ALN4N//d/Ai8cusKdYVvha5nLjjzaAq 9BBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=hVvfdRx0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y25si8897052otj.304.2020.03.23.00.48.24; Mon, 23 Mar 2020 00:48:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=hVvfdRx0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727493AbgCWHro (ORCPT + 99 others); Mon, 23 Mar 2020 03:47:44 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44861 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbgCWHro (ORCPT ); Mon, 23 Mar 2020 03:47:44 -0400 Received: by mail-lj1-f196.google.com with SMTP id w4so13366417lji.11 for ; Mon, 23 Mar 2020 00:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tNemhAmkl1sC97ky4z5cEU5jjdlE0uUKewIMEJEyzJ8=; b=hVvfdRx0erRcY30bjN+sbyE/bqsSqTNdYvemLMYMWnpKOAQUEor8deRsklqX4tWjc3 4ys0vcqxsiYXGN2NflgKGB06jaPwHLDyXyp+2hyMcsSc8zySGFguQgQxOSv85FKEneFl 8oNO4rCLXpX7xvt67eN00p8khz+/CIWt0FTlTbaO9xDfNU4Jf4++YTPdCBe8WgD9Zvll 8UnnKMfRQ9F9Mh5BoHeRJjZN94+oDaUmVYJJaAqyBDPOXtfk6aivEh1mgf7WX4Yplozb Vnvk32/7Ar40rg6mULkdvxIbkyJLIQxAVKDG/sknbPIiBVeva7UXUunQQ9W99ZqCujzx 2w1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tNemhAmkl1sC97ky4z5cEU5jjdlE0uUKewIMEJEyzJ8=; b=TSOXewZ1yipH8tw13/IihDVrIEm4IxxjROvBOY+y+Tqdm40aJfHXqENcULw5MDHGtZ 4aTkH94CQMZROJAb3pmTvpsesYb2kwz2td+1fD/FALBDWbdv5e0ZEVL43VJCCXjOy5HE 286BJD0q34DkckTCKbQ5G1WHF2/quHoWXdRCxwBfbz+M6FDUTzJDT/UoS7eOqQ1xu9rv ZheGVgiUAEonC7Vmp2lh52U6Vt1cMLqZ7UTWoBA1evvGzmkBRgpXVzVkTCVlcUMiok/3 AsMe5AahLgUQENsOKojbaCbtkBG7LNjXKlbdV0rNNpD2VAox9L1LbY3ibV5ddAuhUrdE G3Cw== X-Gm-Message-State: ANhLgQ0XtCRpA3IUs0OKqzbPd83OF75MlNOiUN1WtgTpwim5sFwFdLk6 hvohlgIeUQKi+YJRepbvnMl8cw== X-Received: by 2002:a2e:b701:: with SMTP id j1mr13060175ljo.6.1584949661247; Mon, 23 Mar 2020 00:47:41 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id f23sm8018219lja.42.2020.03.23.00.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 00:47:40 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id BA4FF100B9B; Mon, 23 Mar 2020 10:47:40 +0300 (+03) Date: Mon, 23 Mar 2020 10:47:40 +0300 From: "Kirill A. Shutemov" To: Anshuman Khandual Cc: linux-mm@kvack.org, jhubbard@nvidia.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Dan Williams , Andrew Morton , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/memory: Drop pud_mknotpresent() Message-ID: <20200323074740.s5q3ifxvd6ahln7l@box> References: <1584925542-13034-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584925542-13034-1-git-send-email-anshuman.khandual@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 06:35:42AM +0530, Anshuman Khandual wrote: > There is an inconsistency between PMD and PUD based THP page table helpers > like the following, as pud_present() does not test for _PAGE_PSE. > > pmd_present(pmd_mknotpresent(pmd)) : True > pud_present(pud_mknotpresent(pud)) : False > > This drops pud_mknotpresent() as there are no current users. If/when needed > back later, pud_present() will also have to fixed to accommodate _PAGE_PSE. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: "H. Peter Anvin" > Cc: Dave Hansen > Cc: Kirill A. Shutemov > Cc: Dan Williams > Cc: Andrew Morton > Cc: x86@kernel.org > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Anshuman Khandual Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov