Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4962502imu; Sun, 25 Nov 2018 13:47:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6FKi0xygFiBHm80I15+eHrN/qHutmjElEDkGEaVaB7UTE7TeMgHpjkX4FFvm+XLLDRnX+ X-Received: by 2002:a63:1a4b:: with SMTP id a11mr22409797pgm.254.1543182422700; Sun, 25 Nov 2018 13:47:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543182422; cv=none; d=google.com; s=arc-20160816; b=CCYys6lsVjwLvb3oQcEHwkxOSh2TjH4uAo8ue89xCMrMzuwP1yf5bvy5Ij+TTe3ubx liKUpr/0WJKUukFuC6cDLfLXLCst847mUW9eknDh9SfI9gRcEBMdKCAIHTr8CY9LYhhz cvsA7ab/DGBqrmzauJlmMQh3ea5QVCgVpeBRghNv+CtvdNeBQiIUIbVi23swg0jpvHQx PUSkm1NbdtYbL4HrlsHJhEhIimDNBD5KjkfsDH/2TAQyWJA8Ybzh6k26DpINYKZyqv4x 4/7Y0R4/vf4goftNQIU5bgpF3Ehve7IIv8jnF1c7/IlDfj6AEsenXU4V3fzQAuq3dryu 6ICA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=tfUYTw2xtNj94uKpGZXfl1+7ZvG8At7gBUJavL4EZvc=; b=DSXA/5CnowEvfFzrWOR8BpHn1M+VIdHriw7PxNZNrwSmMYjhcH4NHSPHx7XJn5Z8A4 XoFeyc0W/bUlAAJyAP4otWrOFp8EoOHF3Tx2L+JqizozgKj+OFZsvjU16ZmpFr/LYVjb TDlDsJXZ/h4hGEzwEzmC6Xp4mEk23FP7anRYUwfbyd4CFRMGWiz0IPCNfYYUshQB/Bi9 NRkzA+t7c8be1JfSB8pyA8oaH8UDth+jvO7aSSBN/EvHs21rydOGkkj0MqkXrHGCQlCd d2oaCfJ3s/OvrbUU7kHijhytR/N1mp+AT1+Xu7t8PNVZeul3w4FfkVqHiidE9+boNcgp 1YmA== 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 x16-v6si25985378pfm.39.2018.11.25.13.46.47; Sun, 25 Nov 2018 13:47:02 -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 S1726191AbeKZIhG (ORCPT + 99 others); Mon, 26 Nov 2018 03:37:06 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33014 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeKZIhF (ORCPT ); Mon, 26 Nov 2018 03:37:05 -0500 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 wAPLiABb095847 for ; Sun, 25 Nov 2018 16:45:01 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2nymncf1u2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 25 Nov 2018 16:45:01 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 25 Nov 2018 21:44:59 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 25 Nov 2018 21:44:52 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wAPLipEn48365636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 25 Nov 2018 21:44:51 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0E20CA405C; Sun, 25 Nov 2018 21:44:51 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C9FD4A4054; Sun, 25 Nov 2018 21:44:47 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.207.68]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sun, 25 Nov 2018 21:44:47 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Sun, 25 Nov 2018 23:44:47 +0200 From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Arnd Bergmann , Benjamin Herrenschmidt , "David S. Miller" , Guan Xuetao , Greentime Hu , Jonas Bonn , Michael Ellerman , Michal Hocko , Michal Simek , Mark Salter , Paul Mackerras , Rich Felker , Russell King , Stefan Kristiansson , Stafford Horne , Vincent Chen , Yoshinori Sato , linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, Mike Rapoport Subject: [PATCH 2/5] microblaze: prefer memblock API returning virtual address Date: Sun, 25 Nov 2018 23:44:34 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543182277-8819-1-git-send-email-rppt@linux.ibm.com> References: <1543182277-8819-1-git-send-email-rppt@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18112521-4275-0000-0000-000002E681AF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18112521-4276-0000-0000-000037F3B868 Message-Id: <1543182277-8819-3-git-send-email-rppt@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-25_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=695 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811250133 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rather than use the memblock_alloc_base that returns a physical address and then convert this address to the virtual one, use appropriate memblock function that returns a virtual address. Signed-off-by: Mike Rapoport --- arch/microblaze/mm/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index b17fd8a..44f4b89 100644 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -363,8 +363,9 @@ void __init *early_get_page(void) * Mem start + kernel_tlb -> here is limit * because of mem mapping from head.S */ - return __va(memblock_alloc_base(PAGE_SIZE, PAGE_SIZE, - memory_start + kernel_tlb)); + return memblock_alloc_try_nid_raw(PAGE_SIZE, PAGE_SIZE, + MEMBLOCK_LOW_LIMIT, memory_start + kernel_tlb, + NUMA_NO_NODE); } #endif /* CONFIG_MMU */ -- 2.7.4