Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8040557imu; Tue, 4 Dec 2018 01:45:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJenFl7Ig5aJ1BP0rFcKjrhVNqqosdJOM+KkqLCBM5eLobZ54emnIVdqhGzvN4eLUJrsQg X-Received: by 2002:a17:902:bcc7:: with SMTP id o7mr19753577pls.281.1543916757983; Tue, 04 Dec 2018 01:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543916757; cv=none; d=google.com; s=arc-20160816; b=Pf1nqGBO8Kwfw62IxeNYIWhZTTWYQULz9LIei7h5bUHZ5JRj4AUEjcFamAyu9pMa6/ bYvnMLy9gJKv3PBMsFDePEMIxanP50AUJjd953UVU2aMBbo0trRCKrhK6/anfRLAbDpO E0C54GXcZxjY7WL1JbYcDHNOFc04GO5Y1Z7TzwLqR6hvBQyhIDlmSsv0VeTVb4gMRV34 nfGQqrynwdJNv9VYrP1YZ8gX7xa8NeI43C+9WS0j2ujvPUuiyEcjlBvRPIj6ZAq4t4A/ QMdDFJQ9ImauPkzAYBkVVe4oyi4Y735RbA/kAchNzoi7ZLHnRpPztTbSsc1RnxO0DQyo b/Tw== 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:subject:cc:to:from:date; bh=cQrI5t3h6OES9pqsbXQbWyiAG+N7uEcGcQOkvE/BAQQ=; b=eBTnl69FIzWnteUERjfJZMGTmgSwWD4+kQ5RX03Huoi72jn2HTdY23HxjGM/TkNK2i cwzXLs/LEi93zGt8MA+57JbGrp5nOOGGe/9PPTLBRgEZW7GhPxxv6O+G99vX58SBi1oW tXS44NRtBZ4ZPpLV2A42VgCjyHavskpB39/mZ3tedvSJdi0RbDE2OCYdWncy7497JvzI VMHX517XCl9RGLX6aAQkOLs4VV6wC1MCWAUV1CeyJZPzvKnYcyv81RzBJACOuXHyH/s7 76GMPEPz8QRJz3n+7bVwzw8rX4bvY/l5VjXiDxDAchermaB8Ix8UL3HKHzpsxFuyvmJC DgVA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si15200318pgc.232.2018.12.04.01.45.42; Tue, 04 Dec 2018 01:45:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbeLDJpE (ORCPT + 99 others); Tue, 4 Dec 2018 04:45:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:59760 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725764AbeLDJpD (ORCPT ); Tue, 4 Dec 2018 04:45:03 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 834AEAD2C; Tue, 4 Dec 2018 09:44:58 +0000 (UTC) Date: Tue, 4 Dec 2018 10:44:54 +0100 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-acpi@vger.kernel.org, devel@linuxdriverproject.org, xen-devel@lists.xenproject.org, x86@kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Martin Schwidefsky , Heiko Carstens , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Rashmica Gupta , Andrew Morton , Pavel Tatashin , Balbir Singh , Michael Neuling , Nathan Fontenot , YueHaibing , Vasily Gorbik , Ingo Molnar , Stephen Rothwell , "mike.travis@hpe.com" , Oscar Salvador , Joonsoo Kim , Mathieu Malaterre , Michal Hocko , Arun KS , Andrew Banman , Dave Hansen , Vitaly Kuznetsov , Dan Williams Subject: Re: [PATCH RFCv2 3/4] mm/memory_hotplug: Introduce and use more memory types Message-ID: <20181204104454.522a3ba2@naga.suse.cz> In-Reply-To: <20181130175922.10425-4-david@redhat.com> References: <20181130175922.10425-1-david@redhat.com> <20181130175922.10425-4-david@redhat.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Nov 2018 18:59:21 +0100 David Hildenbrand wrote: > Let's introduce new types for different kinds of memory blocks and use > them in existing code. As I don't see an easy way to split this up, > do it in one hunk for now. > > acpi: > Use DIMM or DIMM_UNREMOVABLE depending on hotremove support in the kernel. > Properly change the type when trying to add memory that was already > detected and used during boot (so this memory will correctly end up as > "acpi" in user space). > > pseries: > Use DIMM or DIMM_UNREMOVABLE depending on hotremove support in the kernel. > As far as I see, handling like in the acpi case for existing blocks is > not required. > > probed memory from user space: > Use DIMM_UNREMOVABLE as there is no interface to get rid of this code > again. > > hv_balloon,xen/balloon: > Use BALLOON. As simple as that :) > > s390x/sclp: > Use a dedicated type S390X_STANDBY as this type of memory and it's > semantics are very s390x specific. > > powernv/memtrace: > Only allow to use BOOT memory for memtrace. I consider this code in > general dangerous, but we have to keep it working ... most probably just > a debug feature. I don't think it should be arbitrarily restricted like that. Thanks Michal