Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2248828rdb; Wed, 21 Feb 2024 01:27:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVtfLPn6ABsWSoBRUnyzEM5UhGyEo+n3jAV+Yxv9pliSdWcCOewMsi1b2f0kR3fMDpnLbmxfiUPMg/AN3Mo9bIda4OLKnhsaJFm/X8pHw== X-Google-Smtp-Source: AGHT+IEqQ5S9mFkWgf72na+AE4wLmroE/uEvVXolsoHCiqE9WbsYlD+8ROOmfuhxveP63x0/cmn9 X-Received: by 2002:a05:6402:5414:b0:564:2d0c:b46c with SMTP id ev20-20020a056402541400b005642d0cb46cmr10891348edb.0.1708507663160; Wed, 21 Feb 2024 01:27:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708507663; cv=pass; d=google.com; s=arc-20160816; b=ZYIpAt/4VX0PqR7k4ngEEn1vkgBfqz+nJmVdl8VCOs1DJiAE3Au/uvsoy9i0jLwwRT Q3ttXVpCswuUHSggCB+JlXJYAoodRpYDm/GZyJG7KNuMhow5HgIO0W1uGBTtcJddjIH4 yL9ob7ONFmk4PiL8/hfiA1m3D6luiw0VbhNo+qQeMunUTppm9VKe4isirN1nNKr4DZG8 AJ8NWic5lKi71L+bineWDP7umVNBf5KqnaPSNXu7dFyHN2mczV0A9GpQRCZZkKKQHn9Q UQxZvB9BCby9CIWOjW5uktZ3m4JoezkoDor7rHDAcjyDlVYHhCCQKPQ3poRCgF95dcsw TTig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=JqDQzqQUNVGgLXFQ47h2MyrP+vNxqZ2Sfg76FoOL2Z4=; fh=ZGjzTmKVItRNAqYBocU9bQK9522h5kPA7I2TbKdNrso=; b=k/W7xf4DUtGpkGBEsBJMgH8rYyVOZz5GBITiw+TX8j8nWE55rq5W6PXuqBv5HcgJYS EXTQAu9jWr85OWKimxQlfvvlUm3nGYusKiK8fQL1JiSjbO/3Zp+GIG/JRudg6DgwBAxi WSB25Q4UYTTf68slHKf7KRIs4c3wwpznT/+5KJroFMGcD8MfjCcJP27EOEu66MInY+tl l0hNM54ZKyjMahpf7OC/QtkD4xw2oAgvY8A7duhe5wD7cnMBa6tC0OKT3MbIYnwKB57U 3TcHSVAikq0IwkkkePwuyOMpK8hlDsk73oEA3lN3KYrVkszxrBY0cyPftdwjt/leADEi QF+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Y6SAPo/o"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t16-20020aa7d710000000b00563c62d868csi4026429edq.61.2024.02.21.01.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:27:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Y6SAPo/o"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-74397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8BB671F23771 for ; Wed, 21 Feb 2024 09:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75EBB3D3B3; Wed, 21 Feb 2024 09:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y6SAPo/o" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38B0E3D38D for ; Wed, 21 Feb 2024 09:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507651; cv=none; b=bGfa+pXvIxM7rrws38QjbxuVal5LDRJ5NzuUZQ7tCtknfWmBYkfBISUw768B9X17mRLHodmYr5Rgh2luPDKbJoHAf92RE76+2A9PS10GkeSFbKxmzTb3AU0PGLyv91uXkLPb7OhL4CGnPhtqAP/thVSaS1w8CafjSvbq7KoaPnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507651; c=relaxed/simple; bh=5QP0MuDrmxNzRblbI3qrO9Ljkt4BlG3Q0Bb0TpHHhGQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ux+mrkhbkULk/KhnA6kIfuERNEciypUvVUe7cyB96EGqN+RsDZOEj9CM41ZTuxqgVFbmUP9NbbFbhjHVp7SptKy2bHiC7hPYfCh0g4XLRz/hIAjnwxYSNmw7TVApP4RKGO/twK3jWEPpljJQ+zC1ca+XkT34vpkM/NbTpxBosmI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Y6SAPo/o; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708507636; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=JqDQzqQUNVGgLXFQ47h2MyrP+vNxqZ2Sfg76FoOL2Z4=; b=Y6SAPo/own6Y9bMWQqiGU4Gj2QqVahyM30URvU9hT6XBnsWh29MwZDWGcBeJJ66IEOQp9O oEva/PvNNe1iHgCDppDKeqEPLYDYQbd27bIFJ70P6AxJ+Z3uAMQO5iEmmiTAA2+fA1DYuz Y7JeIWGAydRBNj7Ph4d4HFXj0fwLRfA= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-294-UW1KqNBdOsaUUyfEDu-VaA-1; Wed, 21 Feb 2024 04:27:14 -0500 X-MC-Unique: UW1KqNBdOsaUUyfEDu-VaA-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-410d0660929so31518335e9.0 for ; Wed, 21 Feb 2024 01:27:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708507633; x=1709112433; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JqDQzqQUNVGgLXFQ47h2MyrP+vNxqZ2Sfg76FoOL2Z4=; b=namVvgQ8qeAxnFkdH8t8riO7vFr1Nn4tJ9zzCT3jANkpb2kMIVZvGT42fSiOH/KUOJ 9lCOK+BHKwz0GuvvWs37Jaanbgu1/81oMfxrZ2A/kXbpdhzoLJD2Ecti7D0mf/LvI9ru GWzEs/t/UgnRJh9RLTzkX5mBCeOVXyfRHs3q/fQhHDg9IL5L8Vc7T89/GMeBefOYlYOm hZqXUzkm0h5QSify2+RungmYWDw06+VqlZayIOjMHcK3lpFUjI6hb0Yv28bIVMYv5Q44 GYEcQB5V4uvAq9SP/0MosjMzcP6N5LKbRX0f+7DIOKZygsEZod5mHXXGsuD4gTTh4A78 EJsA== X-Forwarded-Encrypted: i=1; AJvYcCXiAbzhY/u4VpnhdwPCo3ihJ+nnShKcdFOOfco12vjdlmSW6QpBOxv6QzGHrbupcbpKQhiBR4pQA7yth2Mb0jqLo+wjsF4UrEMK3dNb X-Gm-Message-State: AOJu0Yzu8s8QI9O6YfM2uHpbBbHU49HbKyfMVC6tZ5h97LySDzTMpajb devaORNt4/yfdTDB+7wtIlxqtWwohpNf5CYqlx3tPFhKZoQvH8aoxR1OwnNKcWGxaealCGs0mqd MyzcS4VrePY8QDm7yXUxqKh5Yk3Z9slloZ6oGN7+l6F9MPQmWhsoaH/bpOaPnYA== X-Received: by 2002:a05:600c:19c7:b0:412:5296:9737 with SMTP id u7-20020a05600c19c700b0041252969737mr13136567wmq.12.1708507631913; Wed, 21 Feb 2024 01:27:11 -0800 (PST) X-Received: by 2002:a05:600c:19c7:b0:412:5296:9737 with SMTP id u7-20020a05600c19c700b0041252969737mr13136504wmq.12.1708507631270; Wed, 21 Feb 2024 01:27:11 -0800 (PST) Received: from [10.32.64.237] (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id jj2-20020a05600c6a0200b004126732390asm1837805wmb.37.2024.02.21.01.27.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 01:27:10 -0800 (PST) Message-ID: Date: Wed, 21 Feb 2024 10:27:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] mm: pgalloc: support address-conditional pmd allocation Content-Language: en-US To: Christophe Leroy , Maxwell Bland , "linux-arm-kernel@lists.infradead.org" Cc: "gregkh@linuxfoundation.org" , "agordeev@linux.ibm.com" , "akpm@linux-foundation.org" , "andreyknvl@gmail.com" , "andrii@kernel.org" , "aneesh.kumar@kernel.org" , "aou@eecs.berkeley.edu" , "ardb@kernel.org" , "arnd@arndb.de" , "ast@kernel.org" , "borntraeger@linux.ibm.com" , "bpf@vger.kernel.org" , "brauner@kernel.org" , "catalin.marinas@arm.com" , "cl@linux.com" , "daniel@iogearbox.net" , "dave.hansen@linux.intel.com" , "dennis@kernel.org" , "dvyukov@google.com" , "glider@google.com" , "gor@linux.ibm.com" , "guoren@kernel.org" , "haoluo@google.com" , "hca@linux.ibm.com" , "hch@infradead.org" , "john.fastabend@gmail.com" , "jolsa@kernel.org" , "kasan-dev@googlegroups.com" , "kpsingh@kernel.org" , "linux-arch@vger.kernel.org" , "linux@armlinux.org.uk" , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "lstoakes@gmail.com" , "mark.rutland@arm.com" , "martin.lau@linux.dev" , "meted@linux.ibm.com" , "michael.christie@oracle.com" , "mjguzik@gmail.com" , "mpe@ellerman.id.au" , "mst@redhat.com" , "muchun.song@linux.dev" , "naveen.n.rao@linux.ibm.com" , "npiggin@gmail.com" , "palmer@dabbelt.com" , "paul.walmsley@sifive.com" , "quic_nprakash@quicinc.com" , "quic_pkondeti@quicinc.com" , "rick.p.edgecombe@intel.com" , "ryabinin.a.a@gmail.com" , "ryan.roberts@arm.com" , "samitolvanen@google.com" , "sdf@google.com" , "song@kernel.org" , "surenb@google.com" , "svens@linux.ibm.com" , "tj@kernel.org" , "urezki@gmail.com" , "vincenzo.frascino@arm.com" , "will@kernel.org" , "wuqiang.matt@bytedance.com" , "yonghong.song@linux.dev" , "zlim.lnx@gmail.com" , "awheeler@motorola.com" References: <20240220203256.31153-1-mbland@motorola.com> <20240220203256.31153-3-mbland@motorola.com> <838a05f0-568d-481d-b826-d2bb61908ace@csgroup.eu> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7V2Yb+SYhmhpDrti9Fq1EsmhiHSkxJcGREoMK/63r9WL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+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <838a05f0-568d-481d-b826-d2bb61908ace@csgroup.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 21.02.24 08:13, Christophe Leroy wrote: > > > Le 20/02/2024 à 21:32, Maxwell Bland a écrit : >> [Vous ne recevez pas souvent de courriers de mbland@motorola.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] >> >> While other descriptors (e.g. pud) allow allocations conditional on >> which virtual address is allocated, pmd descriptor allocations do not. >> However, adding support for this is straightforward and is beneficial to >> future kernel development targeting the PMD memory granularity. >> >> As many architectures already implement pmd_populate_kernel in an >> address-generic manner, it is necessary to roll out support >> incrementally. For this purpose a preprocessor flag, > > Is it really worth it ? It is only 48 call sites that need to be > updated. It would avoid that processor flag and avoid introducing that > pmd_populate_kernel_at() in kernel core. +1, let's avoid that if possible. -- Cheers, David / dhildenb