Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp723581ybt; Wed, 1 Jul 2020 08:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwqXpJvlQ7KHCAcP/clP98yLFhBfRtPmVQA9aHVfwASn8M5i35H9gmOeacaXSKszXUTcgx X-Received: by 2002:a50:ec8f:: with SMTP id e15mr29063989edr.70.1593617559816; Wed, 01 Jul 2020 08:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593617559; cv=none; d=google.com; s=arc-20160816; b=Yj7/kgpRcse1iP0tApLL4SsRyxjNkS1+2SEAQ4nYcSqvs+Y0TGdfk23TUzTyWZ054J tqRxy7yFVrMHB8exlLK+tz/MScgq3MUemv1K3DhREZchJC32ZcmFkEUv15wlJ+M16UuF aqCv1wECGL5tyTdbIFk1u/swS1DrncwzEpUboAmrT2e5hPS4n0Zzb8CsB2Y3+eBsKrVV Fj1PVhZV+/zl29qCslwSmsbNZHaeN54fu+x0TN2VGHAxxgEkRUMYd3aouQ2owVRtAFVo /2Q1tvuuDryp0Q1XXe+S9FIJCtu2KeZWjz99QXdI/+O9VMlYf0UtXxac0HUJ08FAa4HB WKAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=B+zQkw38UcCg6UKTDW5zmeI0xIbgiVSiiXquFYpFSms=; b=eB3O2QUo6r8kzpvwD3GDHkM91VqYLxyVJNBMdWjQwPMvN24XmuRNX32u95Q0YRDZf4 OYE1FIi3zFwsfmDePx5PyHuQIsidD5xh48xKuXHmWGYbPOSbcXgr9wNwzb2dviJMdEeO hlAIOYA7t2oPrC+qsQNUEWeg37IlTtgm08tp9Rfn7wi7vGiEQZH53HYZSA+xeRB+Ct1G I/Naram7HBG/Ajal2rk7Gy/aEXe7KGRPM063oAaEmlRcS/DtZnP2IIoEuUBDf4KEunDH sFJUoQODOlmK2Luy1/d+MGK2kemzLssG4RJOUcuroNjMhF8yPOShv/Wi8s0qvBpBG/VA 8Hyg== ARC-Authentication-Results: i=1; mx.google.com; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ok24si4076724ejb.491.2020.07.01.08.32.16; Wed, 01 Jul 2020 08:32:39 -0700 (PDT) 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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731938AbgGAPcK (ORCPT + 99 others); Wed, 1 Jul 2020 11:32:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:19396 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731608AbgGAPcJ (ORCPT ); Wed, 1 Jul 2020 11:32:09 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 061F4vfE015501; Wed, 1 Jul 2020 11:32:06 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 320s4jy81c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jul 2020 11:32:05 -0400 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 061F54c5015837; Wed, 1 Jul 2020 11:32:04 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 320s4jy80a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jul 2020 11:32:04 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 061FKDtn001821; Wed, 1 Jul 2020 15:32:02 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 31wwr8d34m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jul 2020 15:32:02 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 061FVxEq55443522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Jul 2020 15:31:59 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5DEC311C04C; Wed, 1 Jul 2020 15:31:59 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F26BA11C052; Wed, 1 Jul 2020 15:31:58 +0000 (GMT) Received: from osiris (unknown [9.171.45.129]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 1 Jul 2020 15:31:58 +0000 (GMT) Date: Wed, 1 Jul 2020 17:31:57 +0200 From: Heiko Carstens To: Mike Rapoport Cc: David Hildenbrand , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-mm@kvack.org, Vasily Gorbik , Christian Borntraeger , Andrew Morton Subject: Re: [PATCH v2 1/2] mm/memblock: expose only miminal interface to add/walk physmem Message-ID: <20200701153157.GC5008@osiris> References: <20200701141830.18749-1-david@redhat.com> <20200701141830.18749-2-david@redhat.com> <20200701150643.GA2999146@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701150643.GA2999146@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-01_08:2020-07-01,2020-07-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 suspectscore=1 bulkscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 mlxscore=0 adultscore=0 phishscore=0 cotscore=-2147483648 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2007010108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 01, 2020 at 06:06:43PM +0300, Mike Rapoport wrote: > Hi David, > > On Wed, Jul 01, 2020 at 04:18:29PM +0200, David Hildenbrand wrote: > > "physmem" in the memblock allocator is somewhat weird: it's not actually > > used for allocation, it's simply information collected during boot, which > > describes the unmodified physical memory map at boot time, without any > > standby/hotplugged memory. It's only used on s390x and is currently the > > only reason s390x keeps using CONFIG_ARCH_KEEP_MEMBLOCK. > > > > Physmem isn't numa aware and current users don't specify any flags. Let's > > hide it from the user, exposing only for_each_physmem(), and simplify. The > > interface for physmem is now really minimalistic: > > - memblock_physmem_add() to add ranges > > - for_each_physmem() / __next_physmem_range() to walk physmem ranges > > > > Don't place it into an __init section and don't discard it without > > CONFIG_ARCH_KEEP_MEMBLOCK. As we're reusing __next_mem_range(), remove > > the __meminit notifier to avoid section mismatch warnings once > > CONFIG_ARCH_KEEP_MEMBLOCK is no longer used with > > CONFIG_HAVE_MEMBLOCK_PHYS_MAP. > > > > While fixing up the documentation, sneak in some related cleanups. We can > > stop setting CONFIG_HAVE_MEMBLOCK_PHYS_MAP for s390x next. > > As you noted in the previous version it should have been > CONFIG_ARCH_KEEP_MEMBLOCK ;-) > > > Cc: Heiko Carstens > > Cc: Vasily Gorbik > > Cc: Christian Borntraeger > > Cc: Mike Rapoport > > Cc: Andrew Morton > > Signed-off-by: David Hildenbrand > > Reviewed-by: Mike Rapoport > > > --- > > arch/s390/kernel/crash_dump.c | 6 ++-- > > include/linux/memblock.h | 28 ++++++++++++++--- > > mm/memblock.c | 57 ++++++++++++++++++----------------- > > 3 files changed, 55 insertions(+), 36 deletions(-) So I guess this should go via the s390 tree, since the second patch of this series can go only upstream if both this patch and a patch which is currently only on our features are merged before. Any objections?