Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp968883ybl; Wed, 14 Aug 2019 08:42:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbDGzS7qOvqm8V8YLGVlyijnti726ffv5g4fryPj7ON+AXQkhcHNjw4997dF9i+9BdbDnP X-Received: by 2002:a17:90a:e38e:: with SMTP id b14mr330327pjz.125.1565797328339; Wed, 14 Aug 2019 08:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565797328; cv=none; d=google.com; s=arc-20160816; b=H6C3wCWwBWR1rpmjUQ91LxbuV/OX82bDyjZHuGnqjwwTIq2Nsx/b4LQ2lc/QW5qYnF sC25n7prJxMohaZ3oiHIufJfp+wARXuwVvG7dQ1jAdo5VlAvQoU/sD96xdtcwB3GjouY r5w36M7IH2yv59QXXjd0zQnczD7vd0XHYpiOdLbILSFWs6DVFocVHJldO9KM6VX3ZAmb Q+X/JMGOgAM5u5R3WDR026K4nMxAqmIElxfV9udo8pJjFCOlGVCqCHd4sCFHuRfeR7pj KBClKNr9/+Oq2X9vWv9InaIJglDPmWmr/bZJ838DJZVR7xRGx4xK+o/Ge6I4RQKq2rJO oHCw== 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 :message-id:date:subject:cc:to:from; bh=2OyCXnQR50RQrDe9fz4jA7ucuRCl/tSGv1mO2AN4yjY=; b=lFj6U+BMRDSb+r8aUU//TV9aDdkqLFN7hx9RF34Hbx5gDuVPKSVCvRuhqIR4lJtQOk gx1/t/DQAD6qkxyeamuB9bnnv6C4QtXW4SKb54tRb5YQBZGk46PlwgX1SRZc5Yf9OnYV RR3TcRmbv9aGQ6vHEDrnDC2CP0Rb7fWhLLgZLzXQvY+IhSS/rG1dzYQn1qUdMuJqzGEv Q9umIjAxhO9tsxz0xPlfJVl2BNDy4hm0xheesROQ2jpr5TTXqfx0MC+QzMnvO5QeY1bB QWMnR4RfaskH38xrm86KmlH+5TtbDSdwvMrBTTQOU7NIwV8nko80pzgA0LZyxhQg3AoS kzcw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e37si8293pge.343.2019.08.14.08.41.51; Wed, 14 Aug 2019 08:42:08 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727425AbfHNPlQ (ORCPT + 99 others); Wed, 14 Aug 2019 11:41:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55068 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfHNPlQ (ORCPT ); Wed, 14 Aug 2019 11:41:16 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F76A51EF3; Wed, 14 Aug 2019 15:41:15 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-49.ams2.redhat.com [10.36.116.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B9418069C; Wed, 14 Aug 2019 15:41:09 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Arun KS , Bjorn Helgaas , Borislav Petkov , Dan Williams , Dave Hansen , Ingo Molnar , Michal Hocko , Nadav Amit , Oscar Salvador , Pavel Tatashin , Wei Yang Subject: [PATCH v2 0/5] mm/memory_hotplug: online_pages() cleanups Date: Wed, 14 Aug 2019 17:41:04 +0200 Message-Id: <20190814154109.3448-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 14 Aug 2019 15:41:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some cleanups (+ one fix for a special case) in the context of online_pages(). Hope I am not missing something obvious. Did a sanity test with DIMMs only. v1 -> v2: - "mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()" -- Turned into "mm/memory_hotplug: make sure the pfn is aligned to the order when onlining" -- Dropped the "nr_pages not an order of two" condition for now as requested by Michal, but kept a simplified alignment check - "mm/memory_hotplug: Drop PageReserved() check in online_pages_range()" -- Split out from "mm/memory_hotplug: Simplify online_pages_range()" - "mm/memory_hotplug: Simplify online_pages_range()" -- Modified due to the other changes David Hildenbrand (5): resource: Use PFN_UP / PFN_DOWN in walk_system_ram_range() mm/memory_hotplug: Drop PageReserved() check in online_pages_range() mm/memory_hotplug: Simplify online_pages_range() mm/memory_hotplug: Make sure the pfn is aligned to the order when onlining mm/memory_hotplug: online_pages cannot be 0 in online_pages() kernel/resource.c | 4 +-- mm/memory_hotplug.c | 61 ++++++++++++++++++++------------------------- 2 files changed, 29 insertions(+), 36 deletions(-) -- 2.21.0