Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2067541ybv; Thu, 6 Feb 2020 15:18:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyM/ZtR7SkfOh83+c09BVWl9IMOaCgexcvjmf3b2Fl1gYBsfMLBZ9JwZNpGHmBbDUdyIJEh X-Received: by 2002:aca:c0c5:: with SMTP id q188mr117912oif.169.1581031139143; Thu, 06 Feb 2020 15:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581031139; cv=none; d=google.com; s=arc-20160816; b=fCV/cJKoSkmG04NwHU3kJRv3uGBcOJvO/KBhXn4obondztaT6o2S4Y2H5SOpayB9fx aY8r18nkSqEbsL0HRb8zIpLwXx3yPffSR9uj52jV63vIzzm3lEbEJPvj9lMQB26Vn8QK qpHe0pvK0fUxzf6+xbSrjSqar0QAvlQTMMthKy7a+lM5fIcFhvLJCmFcFlhMA48dyL/2 80C8jkWHStB6KIY0dimC0rYki+HmtckSRnsvRITxfZGRMd0L4NOAOpenbr4Faco/AXep AZLwP2NGFYq9hm44j3UEFZS5CRGlyU3RXpUljL2NqQg/8vZjJUdMAvLxdR5WH9NoIEWI Xgrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IB8qAOM/npHq828QSgmrjd3wlW6d2QeAoZxCtDYC5B4=; b=bNEqJgS/98TV9Ga7pHkBKnqkKERt7nRn4ERQDqH5UCc8Gv56uKyZCoaPzV23UN00CJ lRw9GQ+I6EkULPc+XIpogklnnloxeqj3VTARbmuL4BhZOQFB8Lv816ho/J9J0ovBOWU8 EFxsRH84c2jthNpj0Vsvl+lclGtYVuf7p+vUp0ZWnsKkM9rQsOrpNpOED0lnXslY5CsC 2YhXWBjQAIcQzARONO//ASDdbTTfHv4QuQlCAMsJgN771Zsaf/Qojsp4bdu6ZVoJwPCc Hao2trUmEB0ulZ1Xsotjpt84YvuAnqIlgFa5eTAbQD2WH/tguIIaDcKHMOxadtG+eya9 0F3Q== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si632915otq.30.2020.02.06.15.18.32; Thu, 06 Feb 2020 15:18:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbgBFXRc (ORCPT + 99 others); Thu, 6 Feb 2020 18:17:32 -0500 Received: from mga12.intel.com ([192.55.52.136]:40466 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726509AbgBFXRc (ORCPT ); Thu, 6 Feb 2020 18:17:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2020 15:17:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,411,1574150400"; d="scan'208";a="226308897" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga008.fm.intel.com with ESMTP; 06 Feb 2020 15:17:29 -0800 From: Wei Yang To: akpm@linux-foundation.org, osalvador@suse.de, dan.j.williams@intel.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, bhe@redhat.com, david@redhat.com, Wei Yang Subject: [PATCH 0/3] Fixes "mm/sparsemem: support sub-section hotplug" Date: Fri, 7 Feb 2020 07:16:26 +0800 Message-Id: <20200206231629.14151-1-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During reviewing David's code, I found current sub-section hotplug is broken in several places. The following link fix one potential issue, while David and I still spot some suspicious points. https://lkml.org/lkml/2020/2/6/334 The problem here is mainly about the memmap manipulation: * memmap would be overwrite if not use SPARSEMEM_VMEMMAP * only need to adjust memmap for SPARSEMEM_VMEMMAP Wei Yang (3): mm/sparsemem: adjust memmap only for SPARSEMEM_VMEMMAP mm/sparsemem: get physical address to page struct instead of virtual address to pfn mm/sparsemem: avoid memmap overwrite for non-SPARSEMEM_VMEMMAP mm/sparse.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) -- 2.17.1