Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp407355imm; Tue, 24 Jul 2018 22:30:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeET9COda6ZlNRpiDDbAdRtc1BSCBb/P6jVBjJYTttoLQrv/wfyty/BfhbPYy1hyyvNI3vE X-Received: by 2002:a17:902:8f94:: with SMTP id z20-v6mr19468733plo.337.1532496626544; Tue, 24 Jul 2018 22:30:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532496626; cv=none; d=google.com; s=arc-20160816; b=Bt3hJBRaG4D8aynQgr154DGKgdYB18Zkz1dx7wa4OZPfyG1jy0TaVY1CIOI9FfRioO irKHCMTtf3fl33j5Q/pjaxbUHCxbre2aD5YIFnWwvznt3hIwr+k5IX0ujeZoHS/TWXTJ rB3tJK5eIhWjPfnyEgb+B/yN5pBTrlvtthHZ1hzY/dT2ZdpoBNNd9iAcVHIuAQ7Fag8N aFxPfW7a9b7Balh8j0mXZbEeei2UbtiIIMNyPYvA9M5yI/VJx5rrmDVPtWR8Cg6eBFEe jQdx9QmKZGyBXcOdSngYi+oBQw/uhBFQ9sexpa4czqjStFuC8BMRRWcaFz4uMBBJ05h7 Dr6Q== 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=fvNavk4Uw9NRGKDwtAqu88EDfetSKFOO/Ya4RTp/XI4=; b=IDYyPUMOKtmJS2wbTUjl5zEU0jJ5GsU4QPNT9tyZDwM2G4tBNt5XTrls9/6g4I1cE3 l09uoGebLGOfUjYDuo38rpEqfFY9wSAuYUfKxpfAGTgIRJWEbCbkbL+O0xrqIxatmy93 PU9ZMo3+zsEUW2qsqxZo9zKxXFhzXNz1RySfmPHMGB6so9ssVS5XZoGG7AmbJuKgK4vw cQYw0CDJUZMp3HBWIUZcsr3MRN/kXJ9nKik7H3L8lyhQ2dIhxD4jwOaCCugkCn/CsB9s 2V9oeM8kvANPzdl1oUMN21HeXiypbPNMTKgT1a9CprQ5w7YfXc3ZXU8zuOLMgqbTD06s I+CA== 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 l6-v6si13575285pfb.69.2018.07.24.22.30.11; Tue, 24 Jul 2018 22:30:26 -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 S1728385AbeGYGiQ (ORCPT + 99 others); Wed, 25 Jul 2018 02:38:16 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41100 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727564AbeGYGiQ (ORCPT ); Wed, 25 Jul 2018 02:38:16 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6P5Nd37075258 for ; Wed, 25 Jul 2018 01:28:16 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kejvq0a3y-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 25 Jul 2018 01:28:15 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Jul 2018 06:28:14 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 25 Jul 2018 06:28:12 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6P5SB0h42008800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 25 Jul 2018 05:28:12 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F9B8A4055; Wed, 25 Jul 2018 08:28:26 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AEC1BA4057; Wed, 25 Jul 2018 08:28:25 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.110]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 25 Jul 2018 08:28:25 +0100 (BST) Date: Wed, 25 Jul 2018 08:28:09 +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> <20180724054704.GA16933@rapoport-lnx> <20180725021255.GF12771@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180725021255.GF12771@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18072505-0008-0000-0000-000002575A2D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072505-0009-0000-0000-000021BDD131 Message-Id: <20180725052809.GA25188@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-25_01:,, 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=917 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807250060 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 09:12:55PM -0500, Richard Kuo wrote: > On Tue, Jul 24, 2018 at 08:47:04AM +0300, Mike Rapoport wrote: > > 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? > > Sorry, I should have been more clear. In the size calculation, it's > subtracting the unshifted PHYS_OFFSET from the start page number, which > I'm pretty sure is wrong. Yeah, you're right. I've missed that one. > 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.