Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6593984imm; Mon, 23 Jul 2018 22:48:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdi9LgkHp8xjA5PraVdEqcCS6qWqEOrAgvXwqwIGcddBJZ3D4Q0sTAM0SJbZIeKgCcnFGYT X-Received: by 2002:a62:6602:: with SMTP id a2-v6mr7912936pfc.159.1532411328276; Mon, 23 Jul 2018 22:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532411328; cv=none; d=google.com; s=arc-20160816; b=lViwdPYElx7Pej3sleW13v+Wos/A7+GsL7vEDZakQyy2BjrTLHI+QhDTDPGkxuJq3q 2RjAYb7aZxx8F7SP2BXVisJ4ZEDHMKaoDMFrlUhmPWXlZrJLqd/lCsOh67puNAIB4Qo0 Z2xhZx/BTEoTvsg/SSRihsmWEQokZyIWubSM/nW4bor9999Lm1L7GpM41ppY7gHasLCt aHSluX9zOwYe0IEFV5GZF0cAzbS+XNKUlppfK/943rGjNsa3lqMHSgVDbIYj+EEQUb7b idNO4eYUIDJHVn1goCcW40lpKZku8unEPa7ke53FknKzAQb2m3Pu52Y9LeIezOKY7etO +Siw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=L9htsCWntRgqBIX3uiLuHacnk5hDkx3KFvGAvwBPSOo=; b=SfaVssge/Gynn2LZLuph8h5VTWILmQ6MfvA/tFELa9ALryzohpmdnT7UDltgnTUId4 QuC5/1FwxtSR6jIpqulvG3iZeNBYwYbKtkZDA1lAlHp2zkmyJuM8c4ApgmnlczJsow1b c9KlpyRSgac58XEF965iTxCf5oDADWacW2VIfREAVJvNdpWKuSvlhVh3F7ckLxoqqGPb i80b3SMa5i8DGGir6tBlgMoKZgXkHHweuNVQNXMKII1fOK66547CewCJKaS9qmrD644l vODpn0pIFKhZyfKKeFC0WzfGoaoMigeuLys8HAADg/J3lV39oOhueYxsDFDlsXEdkXHR 621A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si10501790pgc.210.2018.07.23.22.48.33; Mon, 23 Jul 2018 22:48:48 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388256AbeGXGv4 (ORCPT + 99 others); Tue, 24 Jul 2018 02:51:56 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51766 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388146AbeGXGv4 (ORCPT ); Tue, 24 Jul 2018 02:51:56 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6O5iQsN039714 for ; Tue, 24 Jul 2018 01:47:12 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kdwxq0n0p-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 24 Jul 2018 01:47:12 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Jul 2018 06:47:10 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 24 Jul 2018 06:47:07 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6O5l6uj40304676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Jul 2018 05:47:06 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38961AE051; Tue, 24 Jul 2018 08:47:16 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B80E2AE04D; Tue, 24 Jul 2018 08:47:15 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.56]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 24 Jul 2018 08:47:15 +0100 (BST) Date: Tue, 24 Jul 2018 08:47:04 +0300 From: Mike Rapoport To: Richard Kuo Cc: Michal Hocko , linux-hexagon@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hexagon: switch to NO_BOOTMEM References: <1531726998-10971-1-git-send-email-rppt@linux.vnet.ibm.com> <20180723212339.GA12771@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180723212339.GA12771@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18072405-0020-0000-0000-000002AA431C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072405-0021-0000-0000-000020F6D281 Message-Id: <20180724054704.GA16933@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-24_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=872 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807240060 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 23, 2018 at 04:23:39PM -0500, Richard Kuo wrote: > > On Mon, Jul 16, 2018 at 10:43:18AM +0300, Mike Rapoport wrote: > > This patch adds registration of the system memory with memblock, eliminates > > bootmem initialization and converts early memory reservations from bootmem > > to memblock. > > > > Signed-off-by: Mike Rapoport > > Sorry for the delay, and thanks for this patch. > > I think the first memblock_reserve should use ARCH_PFN_OFFSET instead of > PHYS_OFFSET. memblock_reserve gets physical address rather than a pfn. If I read arch/hexagon/include/asm/mem-layout.h correctly, the PHYS_OFFSET *is* the physical address of the RAM and ARCH_PFN_OFFSET is the first pfn: #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT) #define ARCH_PFN_OFFSET PHYS_PFN_OFFSET Did I miss something? > If you can amend that I'd be happy to take it through my tree or it can go > through any other. > > > Thanks, > Richard Kuo > > > -- > Employee of Qualcomm Innovation Center, Inc. > Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- Sincerely yours, Mike.