From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DDD0C433E0 for ; Wed, 1 Jul 2020 14:18:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CBB1A2077D for ; Wed, 1 Jul 2020 14:18:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NN1VtqhH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBB1A2077D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 63E546B00B8; Wed, 1 Jul 2020 10:18:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5EF3E6B00B9; Wed, 1 Jul 2020 10:18:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4DDE36B00BA; Wed, 1 Jul 2020 10:18:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0252.hostedemail.com [216.40.44.252]) by kanga.kvack.org (Postfix) with ESMTP id 389FF6B00B8 for ; Wed, 1 Jul 2020 10:18:43 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id BE7C01EE6 for ; Wed, 1 Jul 2020 14:18:42 +0000 (UTC) X-FDA: 76989712884.04.maid15_4301ed026e81 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 9A9108003FAC for ; Wed, 1 Jul 2020 14:18:42 +0000 (UTC) X-HE-Tag: maid15_4301ed026e81 X-Filterd-Recvd-Size: 3804 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by imf06.hostedemail.com (Postfix) with ESMTP for ; Wed, 1 Jul 2020 14:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593613121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WXANX7e/4PKUrgXNjDH8epRg0aU4bUifT+MRphx7SbI=; b=NN1VtqhH+DRrERqGv7j39we1nD0Lhax9C9uYMyp38yTDrR6Urr1AGKOzdKmbbwOIydCCVr mQ8KEny8lH3/vpiapg4PKxHSBMpt8TbT8WzDOpbapqq3EdTb7zdQnIFKmLSmw5dv+yM9as BzX0Qb1OaNjWdlsfp2W/8M2S9G52QMs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-8ISAIio-PKymnyTfUtGACQ-1; Wed, 01 Jul 2020 10:18:37 -0400 X-MC-Unique: 8ISAIio-PKymnyTfUtGACQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 013D3805EEE; Wed, 1 Jul 2020 14:18:36 +0000 (UTC) Received: from t480s.redhat.com (ovpn-112-52.ams2.redhat.com [10.36.112.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1DDC65C1C5; Wed, 1 Jul 2020 14:18:30 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Christian Borntraeger , Heiko Carstens , Michael Holzheu , Mike Rapoport , Philipp Rudo , Vasily Gorbik Subject: [PATCH v2 0/2] s390/mm: don't set ARCH_KEEP_MEMBLOCK Date: Wed, 1 Jul 2020 16:18:28 +0200 Message-Id: <20200701141830.18749-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Rspamd-Queue-Id: 9A9108003FAC X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This series is based on the latest s390/features branch, which contains "s390/zcore: remove memmap device". [1] Looking into why we still create memblocks for stdnaby/hotplugged memory (via add_memory()), I discovered that we might not need ARCH_KEEP_MEMBLOC= K on s390x after all. This is relevant in the context of virtio-mem, where we hotplug a lot of small memory blocks (and want to avoid managing unused metadata). But als= o for existing setups, it might help to free up some memory after boot. Compile-tested on s390x, pseries, arm64, i386, mips64, powernv, sh, and x86_64. [1] https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit= /?h=3Dfeatures v1 -> v2: - "mm/memblock: expose only miminal interface to add/walk physmem" -- Use inline function for __next_physmem_range -- Rewrite some comments RFC -> v1: - "s390/zcore: traverse resources instead of memblocks" has been replaced on s390/features by "s390/zcore: remove memmap devic" - Add "mm/memblock: expose only miminal interface to add/walk physmem" -- Sort out section mismatch errors when using physmem after boot without ARCH_KEEP_MEMBLOCK - "s390/mm: don't set ARCH_KEEP_MEMBLOCK" -- Rephrase description David Hildenbrand (2): mm/memblock: expose only miminal interface to add/walk physmem s390/mm: don't set ARCH_KEEP_MEMBLOCK arch/s390/Kconfig | 1 - arch/s390/kernel/crash_dump.c | 6 ++-- include/linux/memblock.h | 28 ++++++++++++++--- mm/memblock.c | 57 ++++++++++++++++++----------------- 4 files changed, 55 insertions(+), 37 deletions(-) --=20 2.26.2