Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp635156ima; Wed, 24 Oct 2018 06:59:56 -0700 (PDT) X-Google-Smtp-Source: AJdET5e94LrR4RVmVau6sX+vDKFAbNMALCgq/XvlPjcqoJE5ifnAiceeyJ2G4FFBbM7kglHBmfBT X-Received: by 2002:a17:902:b7cc:: with SMTP id v12-v6mr2554770plz.278.1540389596427; Wed, 24 Oct 2018 06:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540389596; cv=none; d=google.com; s=arc-20160816; b=x+h2Pn2JF+TH5t8s3MtdL//NJKwDcVvzdlDU60kEsGcx4cDQO+Tewn0+byGpqmDCfM 41/CksiVo8gX04J/40wxkcaGxaYromSyFnv17cAgXElOQNhRB+6yYKLVVDrbx73bxISA 4BRBaeHPNX3/v62StXR/9NTAlW9LA3thUamB/HpXC30FtwLY0WMtA8k4yUG775syXiv8 /fAILAFI2o+MwsnCpZ6a9THNwJRJCUzD5zIDSucSpvrKHIMvPkvZCudxza6lvVBPtOaN vVLUMgUmB1VqOFrDbRRUWVPYQeVE0yK2S7/nKlmjb18SsR13XzBKfAdsLQwZgGI7HhbU pEMw== 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=Ch2EQ9qfr9vWUt7o+SHxLWSIDWHTzlRwtGBuy4I5/EY=; b=jULKK5fi0rUHO/Xq+wlxPDyDh30IbEfgXwb8c0H/g9mV4f6rebf2zxNEDpyMwuPT+q 2V6ZiocIufIdubQqNMe3gKU+MqAz+u0olkF8MA08jYjC8BgE1aWzo6OqDPRNmOX0744F iBQlla1J32XRF0wFuTNx76rSFZy4g1jnJmk0XOOiJRLSEvL7tF5eC6ezodiYoN+qG+Kq Nvzsxw+rUw7dAWbtU80dDB7joGnOPjiDv8r5NgAbniI6m/zeAnhEbuMGuZZPFRqZkoxv q0dnMBqAPJfWUMAnUQtff2BCA2OjvKgLudJVxU3B5GVRualhxRgShSx2UrlrCpU7laGQ r50w== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si4380690plp.247.2018.10.24.06.59.40; Wed, 24 Oct 2018 06:59:56 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbeJXW1Q (ORCPT + 99 others); Wed, 24 Oct 2018 18:27:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:58846 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726407AbeJXW1Q (ORCPT ); Wed, 24 Oct 2018 18:27:16 -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 6CD34AF8F; Wed, 24 Oct 2018 13:59:01 +0000 (UTC) Date: Wed, 24 Oct 2018 15:58:59 +0200 From: Michal Hocko To: Anshuman Khandual Cc: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com, punit.agrawal@arm.com, will.deacon@arm.com, Steven.Price@arm.com, steve.capper@arm.com, catalin.marinas@arm.com, akpm@linux-foundation.org, mike.kravetz@oracle.com, n-horiguchi@ah.jp.nec.com Subject: Re: [PATCH V3 3/5] mm/hugetlb: Enable arch specific huge page size support for migration Message-ID: <20181024135859.GI18839@dhcp22.suse.cz> References: <1540299721-26484-1-git-send-email-anshuman.khandual@arm.com> <1540299721-26484-4-git-send-email-anshuman.khandual@arm.com> <20181024135639.GH18839@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181024135639.GH18839@dhcp22.suse.cz> 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 24-10-18 15:56:39, Michal Hocko wrote: > On Tue 23-10-18 18:31:59, Anshuman Khandual wrote: > > Architectures like arm64 have HugeTLB page sizes which are different than > > generic sizes at PMD, PUD, PGD level and implemented via contiguous bits. > > At present these special size HugeTLB pages cannot be identified through > > macros like (PMD|PUD|PGDIR)_SHIFT and hence chosen not be migrated. > > > > Enabling migration support for these special HugeTLB page sizes along with > > the generic ones (PMD|PUD|PGD) would require identifying all of them on a > > given platform. A platform specific hook can precisely enumerate all huge > > page sizes supported for migration. Instead of comparing against standard > > huge page orders let hugetlb_migration_support() function call a platform > > hook arch_hugetlb_migration_support(). Default definition for the platform > > hook maintains existing semantics which checks standard huge page order. > > But an architecture can choose to override the default and provide support > > for a comprehensive set of huge page sizes. > > > > Reviewed-by: Naoya Horiguchi > > Signed-off-by: Anshuman Khandual > > Acked-by: Michal Hocko fat fingers here, should be mhocko@suse.com of course. -- Michal Hocko SUSE Labs