Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp665509ybt; Wed, 1 Jul 2020 07:19:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzclmHpYlVxrNS+pCftKzeXnF0C1Ro7/nBIiWtGjaZ8t3gMQAAer2aRVryzTT5iRH2V0qNP X-Received: by 2002:a50:8186:: with SMTP id 6mr29944521ede.45.1593613178020; Wed, 01 Jul 2020 07:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593613178; cv=none; d=google.com; s=arc-20160816; b=L4jQdAGRP8StrqAjtmWCdGJkLRS3e17NqHvm+7Q7vOsdjMI5n1qsPkMqf5Hw/CN+8Q 001+X2RTaydnHmedcaSoIm+LyXtbHz/LpFZWEX1Okaatkz4lZ6uJ2/zNweXDaR9lsFvF lh02Qlf/zdA1shHZ0f+lJbcPWAISmAS4StrVV18VgGqaPL8Kj0P1lz/pqK6jl8zph+3f PsZnOhkyVq8I2AzpXTSPlIrcgEGf90v/iLHMOeR9rP4rKgOliGcxKOODapJfYAoqC65E Jh8MRpygiwiNR/VHU5EY2Dk+Fp/euZV6qJ1UsTlJNzyRHr3/euiCmP07lWzRbuCOlWSd em+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OxgbA78Isty5LjQU/goDcTyWCLKH0Y+Zl49XxrxsnYY=; b=i6rtkPgGSjC3CroPhJQgSKxUWPXLFCUtORD6/2i5HmsOkT93hvobXVpPWS0f6JD1pT PzONGxp+Ow/wI/3ZHZebpY1uJKaNqLI4gCI/LgHXCLpbuToy6xihA/PXxbCQaoIMGNbt /Ku32mqv6aQyQkJkE9vzpwGPrXU3mmE01px3ZvQvhB0+fwUrxRYypTTVZ9118j19Vd9Z FfFHt3RARW9r0RNP6LZxVGRYlVZuKoLr4PTuq60yDc9x2XY5/9x72kGK4nMFLwrpDi+0 mQRzEkZaYJrwaNvVBsfKI4wUSQmTbk0VBdWuFzP7KLChqxEWKzL7rD+PtdRbk6WzY7LI 8obQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QO5yQN1p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx26si4090636edb.241.2020.07.01.07.19.14; Wed, 01 Jul 2020 07:19:38 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QO5yQN1p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731540AbgGAOS4 (ORCPT + 99 others); Wed, 1 Jul 2020 10:18:56 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:31499 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731528AbgGAOSt (ORCPT ); Wed, 1 Jul 2020 10:18:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593613128; 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: in-reply-to:in-reply-to:references:references; bh=OxgbA78Isty5LjQU/goDcTyWCLKH0Y+Zl49XxrxsnYY=; b=QO5yQN1po1hfOm8qbp9sHnztXYe/IGUYwj9fF0z0dYKNQBK4PkVHzxRef0DhYXmHI5VdEg Mzl+U468bJF/d1w748TS/B3wz4sD4AsCXo4P79bw5VcdJK8VPLCq10YF6q6IRkX3Krm5mZ ooCbxqFFqOK55tFNxVIaQQQb6RDhbaE= 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-270-CENe1AYBMuGvlkWzP0lwXQ-1; Wed, 01 Jul 2020 10:18:44 -0400 X-MC-Unique: CENe1AYBMuGvlkWzP0lwXQ-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 EBE58A0BDF; Wed, 1 Jul 2020 14:18:41 +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 6F0B05C1C5; Wed, 1 Jul 2020 14:18:38 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-mm@kvack.org, David Hildenbrand , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Philipp Rudo , Michael Holzheu , Mike Rapoport , Andrew Morton Subject: [PATCH v2 2/2] s390/mm: don't set ARCH_KEEP_MEMBLOCK Date: Wed, 1 Jul 2020 16:18:30 +0200 Message-Id: <20200701141830.18749-3-david@redhat.com> In-Reply-To: <20200701141830.18749-1-david@redhat.com> References: <20200701141830.18749-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 50be63450728 ("s390/mm: Convert bootmem to memblock") mentions "The original bootmem allocator is getting replaced by memblock. To cover the needs of the s390 kdump implementation the physical memory list is used." As we can now reference "physmem" managed in the memblock allocator after init even without ARCH_KEEP_MEMBLOCK, and s390x does no longer need other memblock metadata after boot (esp., the zcore memmap device that used it got removed), we can stop setting ARCH_KEEP_MEMBLOCK. With this change, we no longer create memblocks for standby/hotplugged memory (added via add_memory()) and free up memblock metdata (except physmem) after boot. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: Philipp Rudo Cc: Michael Holzheu Cc: Mike Rapoport Cc: Andrew Morton Signed-off-by: David Hildenbrand --- arch/s390/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index c7d7ede6300c5..7697a1f8e819a 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -102,7 +102,6 @@ config S390 select ARCH_INLINE_WRITE_UNLOCK_BH select ARCH_INLINE_WRITE_UNLOCK_IRQ select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE - select ARCH_KEEP_MEMBLOCK select ARCH_STACKWALK select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_NUMA_BALANCING -- 2.26.2