From patchwork Tue Jun 30 08:17:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 11633447 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6CB1912 for ; Tue, 30 Jun 2020 08:17:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9388020768 for ; Tue, 30 Jun 2020 08:17:45 +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="CuVmQ2rv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9388020768 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 A40C26B0092; Tue, 30 Jun 2020 04:17:44 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9F2AE6B0098; Tue, 30 Jun 2020 04:17:44 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E0C26B0099; Tue, 30 Jun 2020 04:17:44 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0210.hostedemail.com [216.40.44.210]) by kanga.kvack.org (Postfix) with ESMTP id 7491F6B0092 for ; Tue, 30 Jun 2020 04:17:44 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 098B2180AD804 for ; Tue, 30 Jun 2020 08:17:44 +0000 (UTC) X-FDA: 76985174448.25.mind93_0e1087a26e76 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id D584F1804E3A1 for ; Tue, 30 Jun 2020 08:17:43 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,david@redhat.com,,RULES_HIT:30054,0,RBL:207.211.31.81:@redhat.com:.lbl8.mailshell.net-66.10.201.10 62.18.0.100;04yfu71gridz59ig4867h87746cutypoerfzqfaj8d7cy9zcye64p8pruk1hcpj.kehzpznbbeshpurkbtsufqt1tzcgaqbju75fasag69ue4pnt6ydmp71fop3yoqg.c-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: mind93_0e1087a26e76 X-Filterd-Recvd-Size: 3799 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Tue, 30 Jun 2020 08:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593505062; 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=mqoCAmbWLVew+uL9ZYjU1VZPjkLf7qSDUzEf8IJ6hME=; b=CuVmQ2rvuY/6auo5s9wwEqq7YbItC1Bnq2mkKQ4FKQol1TvvvKwCuzog6QNoOv2UlqO0v9 yfydyMlfeeyXP3En8TAKXljH47+V+QWwOVuO8fkFL+62FBMsESQp89ZcVqmMbT9CDXGYl4 082donR7cUEZKvtgBZvzJb0Wx+546Os= 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-445-xTMZIrTPMRCJ8fZFUQQFwQ-1; Tue, 30 Jun 2020 04:17:38 -0400 X-MC-Unique: xTMZIrTPMRCJ8fZFUQQFwQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 46348805EEF; Tue, 30 Jun 2020 08:17:36 +0000 (UTC) Received: from t480s.redhat.com (ovpn-114-56.ams2.redhat.com [10.36.114.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1197B60BF3; Tue, 30 Jun 2020 08:17: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 v1 0/2] s390/mm: don't set ARCH_KEEP_MEMBLOCK Date: Tue, 30 Jun 2020 10:17:28 +0200 Message-Id: <20200630081730.6862-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Rspamd-Queue-Id: D584F1804E3A1 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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 is the follow-up of [1]: [PATCH RFC 0/2] s390/mm: don't set ARCH_KEEP_MEMBLOCK This series is based on the latest s390/features branch, which contains "s390/zcore: remove memmap device". [2] Looking into why we still create memblocks for stdnaby/hotplugged memory (via add_memory()), I discovered that we might not need ARCH_KEEP_MEMBLOCK 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 also 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://lkml.kernel.org/r/20200417150151.17239-1-david@redhat.com [2] https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?h=features 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 | 17 +++++++--- mm/memblock.c | 63 +++++++++++++++++++---------------- 4 files changed, 50 insertions(+), 37 deletions(-)