Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1544224pxb; Sun, 17 Jan 2021 12:56:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4vOjT7DPBTLBhcF437dsRubBHm2nsUkDPIa7WoX4KrnEwe+zJHD2H34iFp3sPNLPkxBnX X-Received: by 2002:a17:906:e84:: with SMTP id p4mr15879061ejf.141.1610917007544; Sun, 17 Jan 2021 12:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610917007; cv=none; d=google.com; s=arc-20160816; b=CJtRbdh3+8z+8Pqjak83slsAkZKmikzz1QOzMixro3wZV5J1lr6/cLhRvJr2T3W/Xa XGm1tBKnlzOcb3px8MzPjLwLa+KGao31ABGgvcdLQ7LFmeips29RUqob8Itv09ht/1JB q348AJ30srhCkjZMSW60oH3w0XVFemQtRjzyuK7qZd6jhELL3aFGa0PdM798CytF37WY 4lp7n8/tFxhziQbrW3bcb+pu0izQzpovCAuloY1chQZBSQaCAq33LSDPxpc4W3PCfaae eo6y+GC6ixkuFVeg7k3ZLSy44j+XLySlnRcFBzBQ7rOkhumVTsZrfJ2r46M43EKRT499 Om3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A4xcfgcrrBIcBhORUZhduWLLV8ym+o2ltWoOSy1l0dM=; b=rny9U0WGuZ2OvsIJGx8k6ldt88joCyMyoZ/xMn6Gzbun6p3jfyAMifbhfv2DWDyl+d 9owDxdTObechN56O5t7c3TOI/fUBllDY/onXy54boD/v/6GS7gRPsoCeYIJ4r7AfRxoY FTFg9/XfzzPLG0jRTlO0BPfh+Eh6Z3fAYtaEg2zY06/sEw6V5JWMhWcY6FOI4fgx5OLs NRwTQ38ptxBN9vFvNKK6ZcE3EjrMOWkkElOx51l0ihjlxUL5WA3gDMS/vguo0QNyplcn EIpLOCwou3pDW/lrwnmdKAFnZHge7mbJh8oeu4TTxm+1uzpFIagw8RrbRQ3Jtb0tlVTI vziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="zW0/5bPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia3si4171921ejc.39.2021.01.17.12.56.24; Sun, 17 Jan 2021 12:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b="zW0/5bPb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729982AbhAQTGL (ORCPT + 99 others); Sun, 17 Jan 2021 14:06:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729614AbhAQTDj (ORCPT ); Sun, 17 Jan 2021 14:03:39 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB86EC061575 for ; Sun, 17 Jan 2021 11:02:39 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id c6so8057813ede.0 for ; Sun, 17 Jan 2021 11:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A4xcfgcrrBIcBhORUZhduWLLV8ym+o2ltWoOSy1l0dM=; b=zW0/5bPbpe3kbL88yMdiAr6BVrkLHCzmrzz/SgdumM4LVqGUc9NGZ/i4nBtRhOxc5C cM6JmHAvBUzytMaWyZeeGBeJ4Ct2eFgXESIuFflFWVWdzl+obQKJOLQYuLQfY8i1YBdT 0puSD7aEFN4gzJNlAYTkDMOqeUxCw0Ngl2xA3UKCSwk5wr15NrqC0DFY4RT+XbTNhTp2 gHtDQWeWTBCxg9SywtcVTde/gd2El4JSPKj60SNJklQZy/UwtdlggH0CUhMh0oTwMrCT YUKt/c+uXUSJvfzapMxwUCoUnP9jpvKsJHTdDwrn4Qc/Z7an9ZeKrLWKlBsLg7d1jCdR DRBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A4xcfgcrrBIcBhORUZhduWLLV8ym+o2ltWoOSy1l0dM=; b=pD+PWjsQ4z4fYc0YLEOjBI4O0YyEcm8VfZ3Ht66sztN2bUjnCaRSgUQIvJ0X6oR52C 2JYwxHidLNUlVwRtzGsOp3leHJJdXbi3HAbnvCJ51awhYVO1pTL7fLGkvS57am27uaFm BYHg2DFnKSHNbCy31nt5lGIFkLK8GahZPNtotLFpisP6F8NDlR2A8IxPKHTt4tAZvn9v fOYwIWpwdR58rxyj/ngYhkfhlPvva7wbPKcHNYdcq2PLSmXc6gLimHMSjBhx0zOdXrA7 Svq8SPGnBCQVQER/nTAJQB4y2hPFNEH7u1tdXl89e84RQTQd+qg3oOI1ArElOhT2NyYf B2rg== X-Gm-Message-State: AOAM531CeJnnwOV8xYPBYhdaxoRu7s+Gc6JxvJRt5YVS6pC+4zxaFj9V brYU5SqxmmMuiJ7/0sIy6pqwAUmaUR+aJjaVjKVpHw== X-Received: by 2002:a05:6402:1102:: with SMTP id u2mr17013263edv.18.1610910158542; Sun, 17 Jan 2021 11:02:38 -0800 (PST) MIME-Version: 1.0 References: <1610793673-64008-1-git-send-email-zhaowei1102@thundersoft.com> In-Reply-To: <1610793673-64008-1-git-send-email-zhaowei1102@thundersoft.com> From: Dan Williams Date: Sun, 17 Jan 2021 11:02:28 -0800 Message-ID: Subject: Re: [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform To: Wesley Zhao Cc: Andrew Morton , Andy Shevchenko , Kees Cook , Thomas Gleixner , kerneldev@karsmulder.nl, Arvind Sankar , Joe Perches , gpiccoli@canonical.com, aquini@redhat.com, gustavoars@kernel.org, ojeda@kernel.org, ndesaulniers@gooogle.com, Linux Kernel Mailing List , David Hildenbrand , guohanjun@huawei.com, mchehab+huawei@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 16, 2021 at 2:43 AM Wesley Zhao wrote: > > I was trying to reserve some memory to save logs incase that Android panic or hang and then > I can read the logs from QNX side from the memory reserved before on the Qualcomm 8155 hypervisor platform, > and I find the "reserve=" parameter only support 32bit,so I made some change and send these patches. See Documentation/admin-guide/kernel-parameters.txt memmap=nn[KMG]$ss[KMG] [KNL,ACPI] Mark specific memory as reserved. Region of memory to be reserved is from ss to ss+nn. Example: Exclude memory from 0x18690000-0x1869ffff memmap=64K$0x18690000 or memmap=0x10000$0x18690000 Some bootloaders may need an escape character before '$', like Grub2, otherwise '$' and the following number will be eaten.