From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2231C4332D for ; Fri, 22 Jan 2021 10:35:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7FB7F239EF for ; Fri, 22 Jan 2021 10:35:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727745AbhAVK2J (ORCPT ); Fri, 22 Jan 2021 05:28:09 -0500 Received: from mga05.intel.com ([192.55.52.43]:37529 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbhAVKV7 (ORCPT ); Fri, 22 Jan 2021 05:21:59 -0500 IronPort-SDR: ZKhIgKbTA5XlUFrEReOTC5a0QMK+8r4JTxCNm+lD/5KIYxD6XsFRTxLcUhtgLCRBxcVMNGJHLw il5gINJNKPZg== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="264245478" X-IronPort-AV: E=Sophos;i="5.79,366,1602572400"; d="scan'208";a="264245478" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2021 02:20:14 -0800 IronPort-SDR: cy94oec0NER4g5RXDyf0t6yYcdKMnrdxi4RgSqnlKco9AI/cS/eLuts1/5i6sL5pvNA8QVLq2p T/+LGOIZeBGQ== X-IronPort-AV: E=Sophos;i="5.79,366,1602572400"; d="scan'208";a="351781528" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2021 02:20:10 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l2tZ2-008kBR-F5; Fri, 22 Jan 2021 12:21:12 +0200 Date: Fri, 22 Jan 2021 12:21:12 +0200 From: Andy Shevchenko To: "zhaowei1102@thundersoft.com" Cc: David Hildenbrand , Dan Williams , Andrew Morton , Kees Cook , Thomas Gleixner , kerneldev , Arvind Sankar , Joe Perches , gpiccoli , aquini , gustavoars , ojeda , Linux Kernel Mailing List , guohanjun , mchehab+huawei Subject: Re: Re: [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform Message-ID: References: <1610793673-64008-1-git-send-email-zhaowei1102@thundersoft.com> <202101181151049299923@thundersoft.com> <15269a61-3b16-4c07-2486-6940c559261e@redhat.com> <202101221536190259795@thundersoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202101221536190259795@thundersoft.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 03:36:19PM +0800, zhaowei1102@thundersoft.com wrote: > On 18.01.21 04:51, zhaowei1102@thundersoft.com wrote: > > > On Sat, Jan 16, 2021 at 2:43 AM Wesley Zhao > > > wrote: > > Dan's point is that you should look into using "memmap=" instead of > > "reserve=". > Oh~,sorry miss understand,i can try this, thanks!! And AFAICS you don't need to alter cmdline.c. But if you are going to, don't forget test cases (and FYI: I have few patches pending against it here [1]). [1]: https://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git/log/?h=for-next -- With Best Regards, Andy Shevchenko