Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp9012176ybi; Fri, 7 Jun 2019 01:58:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqcMt7CLR49iAr2S1A5J06YclU8f0NZ+IGYn+z8ZSjElvnBOd8YekOT2jZN+U3ngYm8kL7 X-Received: by 2002:a17:902:760f:: with SMTP id k15mr29523014pll.125.1559897890583; Fri, 07 Jun 2019 01:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559897890; cv=none; d=google.com; s=arc-20160816; b=uVgkEodHx5qraBE31gFEsz6FSkhDMz77c7pgk1wkhfTIZxqrv2V3kYc8b/sM9836vH XIlr51y//92y/VrwozxVuHV5JX0e6nB01+dkRCfIwGEqmGu5PnF9z5j+MjXY63VR99qK Xk28ijNoiQNzYc7rYJlf2LcgCgrK1WPOEhbV87c8c+O6XDEo3F3YHgBP79pr1W3TZSsh mgD2iFD1N0ccQozmZCLQSWOHwNjhhPbGy+1iWzrUtPDvYmPbeQ1giM2LA1EPSxtL6RjD uPbBOW2D4s5EdjHDOl2ZJURssk/QWF+BwvIGzEX4Xwam4d6lTHj73P0YuHOsQq0UrZ61 Mt7g== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=0v9HsiHh93IM1pVklIufn9k/hFTDIbu7kcYAPOOtNvc=; b=jbtgr+oSe7sKrGrrmWIprHXksq4Vky+Qu7k2lmDH/XEyydF89rbrUfE1U+1bhip9JJ 64HbkexEBjGqNEEnt8qWkH1GD6A4SNJq09q9goAgKswUfZQKAV4QjUQ697XuftKAqXLT JK1GbyAd1QGF9r8l224bYJKg8z+Byur3uXU049KG5LHmNiWl8feloJrgq7m5M4+mdezp jODGxZHr2zxLtzVws+vEv1Yi0DmOFf9tBBHemn3NHSOSbZmcHz4+DtBK3AfMvZp74JVv UxBwHFY7TBkEOHooVP86yqNuxWp3W/1eHwfinIOhpDU+EYCwd4qlLTDBRhs8DijDlzTH lGXw== 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 e7si1187958pjj.21.2019.06.07.01.57.53; Fri, 07 Jun 2019 01:58:10 -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 S1727519AbfFGI43 (ORCPT + 99 others); Fri, 7 Jun 2019 04:56:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:36462 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727207AbfFGI42 (ORCPT ); Fri, 7 Jun 2019 04:56:28 -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 69A33ABB1; Fri, 7 Jun 2019 08:56:27 +0000 (UTC) Date: Fri, 7 Jun 2019 10:56:24 +0200 From: Oscar Salvador To: Dan Williams Cc: akpm@linux-foundation.org, Michal Hocko , Toshi Kani , =?iso-8859-1?B?Suly9G1l?= Glisse , Logan Gunthorpe , Pavel Tatashin , linux-mm@kvack.org, linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 10/12] mm/devm_memremap_pages: Enable sub-section remap Message-ID: <20190607085612.GA5803@linux> References: <155977186863.2443951.9036044808311959913.stgit@dwillia2-desk3.amr.corp.intel.com> <155977193326.2443951.14201009973429527491.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <155977193326.2443951.14201009973429527491.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:58:53PM -0700, Dan Williams wrote: > Teach devm_memremap_pages() about the new sub-section capabilities of > arch_{add,remove}_memory(). Effectively, just replace all usage of > align_start, align_end, and align_size with res->start, res->end, and > resource_size(res). The existing sanity check will still make sure that > the two separate remap attempts do not collide within a sub-section (2MB > on x86). > > Cc: Michal Hocko > Cc: Toshi Kani > Cc: J?r?me Glisse > Cc: Logan Gunthorpe > Cc: Oscar Salvador > Cc: Pavel Tatashin > Signed-off-by: Dan Williams Looks good to me: Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3