Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6180649iog; Thu, 23 Jun 2022 13:03:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1urRXNTqK2zxIs+KhNQUOYJ80wmZ6WcF2Q9TlEMoOWZMkvC/eb3s0ar+V5CQKkgzlTxkNS0 X-Received: by 2002:a17:90a:12c9:b0:1ec:8b01:cec2 with SMTP id b9-20020a17090a12c900b001ec8b01cec2mr5890689pjg.42.1656014610995; Thu, 23 Jun 2022 13:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656014610; cv=none; d=google.com; s=arc-20160816; b=N68Cnf1F7Fzt/Xff4l8pW+yFGYtMXABEJD1z2Url7Y8amP1uoOeA+FlJpFBJ3cabqk 6FW/lrsraPgXc4mL2umvJXH+4AsBXgMZiqJcoendCpcaVVZSoCrWxX9BPg8HdKPXzRS+ ZPda7SKvvGP3xX08cYJ55RE02UsjaPMUMOmBs4jMLNRTm7nnFuRGb3CYLDlc/LuITaqx wL2b9Xm1Yxp9hn8deWZ7haECrXKaJ5DoQASulGvCYH8/NtHZirdOLE/PtmANoYy8mkCr FeI2xyWI52nIoVQPrmDvEUee8e6t+e7vOi+UZ6uhgBW8dYCL2nPFCdlLzbMv6qwApOUI lixA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=yPR8n8gQ6dVLtX830iKeJU5ojINLZInrepZE/uEszNU=; b=btQTxf4lg4EKEk5fxQC+FJ95rwQ7DSRzgYp2FO6lHDVOHFQWQ7sLczLgsiXKqrJeKP csGvy4TpoeNKyFCkJZQZM1rDbsplDYzCAXBC6mpZrxSPbmEd/4uKp6lzrL2eKkYV73t3 nSyfrkiXhivlxFpDD8AyB9aI7ZJVlJx0TWiSW7VPoP+H8Pqh4PSN+qoSmJ5+kMgEf+Yj +1V2oz7aX+zB+rKlqfOudAwuqkD+UT9OZOIgqqnd920zbZUmdBDDBSO5CnX0zsdLlXrb EiPHFqLIb4x5VW/TKy6iVP6oaAdyjCVPu0DqRXQuJqWr9gUxGOKRpGh/lhHteiKnoOEt x6CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2022060401 header.b=er7qtRym; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a056a0015d200b0050d8195100bsi234123pfu.7.2022.06.23.13.03.19; Thu, 23 Jun 2022 13:03:30 -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=@zytor.com header.s=2022060401 header.b=er7qtRym; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbiFWTvS (ORCPT + 99 others); Thu, 23 Jun 2022 15:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiFWTvQ (ORCPT ); Thu, 23 Jun 2022 15:51:16 -0400 X-Greylist: delayed 3597 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 23 Jun 2022 12:51:15 PDT Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533CB1E7; Thu, 23 Jun 2022 12:51:15 -0700 (PDT) Received: from [127.0.0.1] ([73.223.250.219]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.15.2) with ESMTPSA id 25NIMqIa1294203 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 23 Jun 2022 11:22:52 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 25NIMqIa1294203 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022060401; t=1656008574; bh=yPR8n8gQ6dVLtX830iKeJU5ojINLZInrepZE/uEszNU=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=er7qtRymZfIxZTCmBzdiQOaT9sgecnfHHau1qec/d4ZsNGp1S4IbzlkDm4wm2DzyD RcffhT2oLnHYmNbDQJKdr+8JDECqsW7mBl6QPIfENIGnsD4Cip/YkKWVWfgsXN59BN BZ2VQuXZnu2MwPrxSMpYXRfKaLRQDNuF6iVfLyq/tB8SSt4bdIezjsoh+oO8rhmieU dDvX+Gup28nAvZFrgFOsOzlsKUB6nbTnltY1xlPbI2f6FK73oHFFAzph6QJWYDFLYk Adg4LCSNbEuBI4uEGEBQGmjStLROs6fCVh7A3LiyZVhbpHfanTbzG7ANa2iSENnC6d FJX9mkpSn6gig== Date: Thu, 23 Jun 2022 11:22:52 -0700 From: "H. Peter Anvin" To: Dave Hansen , lizhe.67@bytedance.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org CC: lizefan.x@bytedance.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BRFC=5D_memmap=3A_introduce_cmdline_param?= =?US-ASCII?Q?eter_=22memmap=3Dnn=5BKMG=5D=24=22_without_start_addr?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20220623062402.12392-1-lizhe.67@bytedance.com> Message-ID: <0EA9CBD4-D083-4546-BFAC-9C3A97420E5B@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 June 23, 2022 7:06:36 AM PDT, Dave Hansen wr= ote: >On 6/22/22 23:24, lizhe=2E67@bytedance=2Ecom wrote: >> In our scenario, we need reserve or alloc large continous memory like >> 256M in machine which have different memory specification at just >> boot phase for a user land process=2E > >Just marking the memory reserved doesn't do any good by itself=2E There >must be some *other* kernel code to find this reserved area and make it >available to userspace=2E > >It seems kinda silly to add this to the kernel without also adding the >other half of the solution=2E Plus, we don't really even know what this >is for=2E Are there other, better solutions? I certainly can't offer an= y >because this changelog did not provide a full picture of the problem >this solves=2E Don't we already have a large contiguous physical memory allocator for thi= s reason (misdesigned hardware?)