Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1442438img; Tue, 26 Feb 2019 22:33:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ0e4fFoQz1IsymetmqPbJxaLkBM2HidD74OflYTIlA61T14FmDdVNrXplqAWLfjDg5PRim X-Received: by 2002:a17:902:6942:: with SMTP id k2mr541320plt.136.1551249208693; Tue, 26 Feb 2019 22:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551249208; cv=none; d=google.com; s=arc-20160816; b=Y4vhpueYj3A3XPj8U08chJp/eT5hiNcpdnTBHym63geEangmEiahiVkG44ROo6d9WA LwqDp2QtIsmY7J0OtZe38fYEbOs3cY+2sLNkk52CID1jEQ8lfctrIdwgMhtzByQFTrMd QNDgOhdvPAyynjBUsOiRpOEJ9xt7nEMU7gHMB4Y/TjBp4TlTZev+2Qt/SisobHHoHsAl RwBn35TU+eehZWz22FoDnxFAJZGHvFutYg+yzGs3Pb5TBrrFq7qwqN6dKBOqNrpUh0iM e22u/mfCND9XrdreNDXXJL1M8+LedHrG020kJRuMIXgMzSRWeFB8OSM7jb4URZlCYX+S 99Tg== 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; bh=7dn8zbHFW5QAjHFODfhu3v79Eg8RYRKsvfi7eTWyukM=; b=GJjxw/++6nicUZ69Ew3HuhE265m3wvC+L8W8XKWajkG7u+hNw9geo/738RZwX52VMW 0sYJ7WimtYrX/zcYtxxQSy/1IvKkSG4Avu5ANQRhRB03zdzp6VrGFCrVtD0pdhVlq2Lb r8DZ+E5LBf3d/Y9FeWZYwLNmB2lb3zO8Uv4HkDqowlPy0RtMTeDpbgprBhs50/HZnjMQ bh5ADWQtf11pJ8wcwdKYyEfcyg4ayJRw7E4f9pgG9oD+vChhip73VICnmt6OnUJkX6Cn bKHDFoqLZJDgnkpFuNqeg7ZQ4oPwgvpu7o3NmI4/7V7qOaTBlQ+Rm963i993frOODKcF mRZw== 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 cm8si15156491plb.47.2019.02.26.22.33.13; Tue, 26 Feb 2019 22:33:28 -0800 (PST) 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 S1729916AbfB0Gcx (ORCPT + 99 others); Wed, 27 Feb 2019 01:32:53 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35124 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729771AbfB0Gcx (ORCPT ); Wed, 27 Feb 2019 01:32:53 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1R6TLfV038437 for ; Wed, 27 Feb 2019 01:32:52 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qwk2gxb3y-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Feb 2019 01:32:52 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Feb 2019 06:32:49 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) 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) Wed, 27 Feb 2019 06:32:46 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1R6WjkG28836056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Feb 2019 06:32:45 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 73BE7A405E; Wed, 27 Feb 2019 06:32:45 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2566A4059; Wed, 27 Feb 2019 06:32:44 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.84]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 27 Feb 2019 06:32:44 +0000 (GMT) Date: Wed, 27 Feb 2019 08:32:43 +0200 From: Mike Rapoport To: Thomas Bogendoerfer Cc: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH] MIPS: fix memory setup for platforms with PHY_OFFSET != 0 References: <20190226140632.13343-1-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226140632.13343-1-tbogendoerfer@suse.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 19022706-0020-0000-0000-0000031BBF04 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022706-0021-0000-0000-0000216D28F0 Message-Id: <20190227063242.GA16901@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-27_05:,, 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902270043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Feb 26, 2019 at 03:06:32PM +0100, Thomas Bogendoerfer wrote: > For platforms, which use a PHY_OFFSET != 0, symbol _end also Nit: PHYS_OFFSET, the same typo in subject > contains that offset. So when calling memblock_reserve() for > reserving kernel and initrd the size argument needs to be > adjusted. The changelog mentions initrd, but the patch changes only the kernel reservation. Can you please update the changelog to match the code? > Fixes: bcec54bf3118 ("mips: switch to NO_BOOTMEM") > Signed-off-by: Thomas Bogendoerfer With the amends above Acked-by: Mike Rapoport > --- > arch/mips/kernel/setup.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > index 8c6c48ed786a..d2e5a5ad0e6f 100644 > --- a/arch/mips/kernel/setup.c > +++ b/arch/mips/kernel/setup.c > @@ -384,7 +384,8 @@ static void __init bootmem_init(void) > init_initrd(); > reserved_end = (unsigned long) PFN_UP(__pa_symbol(&_end)); > > - memblock_reserve(PHYS_OFFSET, reserved_end << PAGE_SHIFT); > + memblock_reserve(PHYS_OFFSET, > + (reserved_end << PAGE_SHIFT) - PHYS_OFFSET); > > /* > * max_low_pfn is not a number of pages. The number of pages > -- > 2.13.7 > -- Sincerely yours, Mike.