Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8530020ybi; Thu, 6 Jun 2019 14:06:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5aI0JibWU+hqfYi9xi6P9plKN1DXoiSVUwYHUThBsP3HDscil31c17IoO1lAVvDaCEpUY X-Received: by 2002:a63:6b07:: with SMTP id g7mr461302pgc.325.1559855173569; Thu, 06 Jun 2019 14:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559855173; cv=none; d=google.com; s=arc-20160816; b=x8/RN1zYzS9OL6BIrB7an6GuB6Gy5j/K3XglqtJH1zlnsdpy2uwbfkY5mY5skF32w1 ZRephPp29fDlMOwC11k1VNAki9J0ZzLzzLBBwniQ6qUfABaQp5CJP3eKNH7QZM2GTQiQ S0kSUv4TacN2xgnpJPxc7ulhEmO+ihUWISdmE0zz//SC7kRGNxPegjwrqGRDAqIoe8t4 Nhf9X/ZLs/0BQ/KVX6lmiuhN6kZh44uumTCMzbZNVgzp+GdPYSRpp2oDVWhqDB4CnOH1 /pR6U51jfLbAJeOTAxpx1rN/+hp5oamZGfnSpXNb3ecnENnndAnSuJbJMdy3Ahw8Inzy 7saw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=epEjW5IpR6kSEZemo8/MWQhCGmzC7cOgrzu6vlv3or8=; b=gnbt4w2Fub58KHGGBblDZj663WMHWk1Alxzt2iUapEvVpzhQXidieNUMimZ1S5mJJI HVyR8qXNY+sgnSCWWYVNGnGKaVp4tk/qg6cA/84Zg3UlBw1V3Aa96aqNaBt+BIXYG19G vsJA/5rkzNTx1fjesTPzmocOUlN14E7zfGS/frp2gfdHAc6bhJGUD9ReXCzFrhi1OjUa /7jBiZd+tlSFh/jV9lXYKcRfT8FBp8LmV+IMHiixSlQAqjtEkdSgxEtgzt4/UtYM1a5/ ijpgYmInYq5eXLwZJ+exmXBBFiWSXqkdcijJcjSIhZVHxX14xrggvnZWgx3ioXVFNvws Cupw== 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 r23si142082pgj.234.2019.06.06.14.05.56; Thu, 06 Jun 2019 14:06:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729837AbfFFQzq (ORCPT + 99 others); Thu, 6 Jun 2019 12:55:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:55242 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728718AbfFFQzq (ORCPT ); Thu, 6 Jun 2019 12:55:46 -0400 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 4C0D2AC8E; Thu, 6 Jun 2019 16:55:45 +0000 (UTC) Date: Thu, 6 Jun 2019 18:55:42 +0200 From: Oscar Salvador To: Dan Williams Cc: akpm@linux-foundation.org, Michal Hocko , Vlastimil Babka , Logan Gunthorpe , Pavel Tatashin , Jane Chu , linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 02/12] mm/sparsemem: Add helpers track active portions of a section at boot Message-ID: <20190606165535.GA31194@linux> References: <155977186863.2443951.9036044808311959913.stgit@dwillia2-desk3.amr.corp.intel.com> <155977187919.2443951.8925592545929008845.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155977187919.2443951.8925592545929008845.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 02:57:59PM -0700, Dan Williams wrote: > Prepare for hot{plug,remove} of sub-ranges of a section by tracking a > sub-section active bitmask, each bit representing a PMD_SIZE span of the > architecture's memory hotplug section size. > > The implications of a partially populated section is that pfn_valid() > needs to go beyond a valid_section() check and read the sub-section > active ranges from the bitmask. The expectation is that the bitmask > (subsection_map) fits in the same cacheline as the valid_section() data, > so the incremental performance overhead to pfn_valid() should be > negligible. > > Cc: Michal Hocko > Cc: Vlastimil Babka > Cc: Logan Gunthorpe > Cc: Oscar Salvador > Cc: Pavel Tatashin > Tested-by: Jane Chu > Signed-off-by: Dan Williams Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3