Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3499021pxk; Mon, 7 Sep 2020 15:17:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzst4agiDLJvlvZOsJ2e5b60X2eWd4NWYK8SeYibchhzPZMcTRQWeZzCh2zPgr6al8Bjzpl X-Received: by 2002:a05:6402:2c3:: with SMTP id b3mr24007902edx.213.1599517071486; Mon, 07 Sep 2020 15:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599517071; cv=none; d=google.com; s=arc-20160816; b=ks4M4rbbDSAFGafZ+W/WAcjsId/LjofJMkQUf2HfAw1aNPQdtOKXS/dJHqzNfovs2q o0Cq6HQ5KT8q8ktBUFzXTXI/QrOutPJh70IYdxNfPseSljuWyiWvgQFC33khDzJjM8M3 +Jb+loY2sKY9rYCoyldgHsbIqvfwlafkoz/NItks7wMH4xhrVuHbCKSRXSTcr24t5zDW UibfrAFSB3/mlnJTJ4C7IaGTK+PdxgS0h+RlRZry0fb2+zE95N5gBTMQpmwVbC3ZVIOl jugMiqU3/2WXF94Q1n1+p34ypH91SUSRwmM4G/lk73Vs31VbS61nlYiGI6VRN8R8HNwU /stA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=y+jndXsSFHSqkdem4tICzGKtUuWGOW1XPa7G3+KJdlo=; b=GWXVQzw+xfZX42Ejj/UU2s/v9YtQ8k+7pcpB15OUKqONn3reaXsJRlg/VnCSNXiihc px9FTnucNCmpW4pVmlD119TRIiF8ovOlfPM/uWYUZrWCwv+0djY0aeCPSmslmcQLkgC1 ThbCGUeovrg0paUaKCeY/A/ScKpyLtrilNiRQOb7+SGCt8tSCjz4PJfOj1xNxkxqMh1i DMZ0LM+VibhNyB1p+dSyBk3ZCHpom1SpHCkT2kgT0sebGV6up+XtZnKWe69DmVzgaHKS cF2UXg0btYcRZ/es8BauaMeB6oxLCVGFCkKUMPa799fui0U0bkp/VC8hqcCUO3+dWZAB dWaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=rfNv3rGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd22si7252999ejb.546.2020.09.07.15.17.16; Mon, 07 Sep 2020 15:17:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=rfNv3rGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbgIGWQV (ORCPT + 99 others); Mon, 7 Sep 2020 18:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgIGWQU (ORCPT ); Mon, 7 Sep 2020 18:16:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04605C061573 for ; Mon, 7 Sep 2020 15:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=y+jndXsSFHSqkdem4tICzGKtUuWGOW1XPa7G3+KJdlo=; b=rfNv3rGN+fxmp1UzL9RAptIeKY H8JJ+Aq2w9k4kpGmAAi0ZBdPgm4sZ6r/aCJzWtz5bG4AYpNDBiznLIqWgt0Y3RuZY/T0F//bbA1iX nY42XhJoLePtzqeCA+Pu0PE22oXzgKyj2Nk8uwf7ZT+gfQlzmGyjx7Zxbn0xiUv6QyIr4L0jNzF3R Odp7tj2lWjJI+zGQpipKqjtCRfs7zpAfcggfaG4IQgex8Rb5YxWdA2XcixynkdsAzm9xoBYbGE2dQ tSxQXNpJCQSZoHw8IDAyXMALKjRUDIosTTymQRi1aaaPyp0pKdmAL3+SWWXmz714iIWvPPFlf3uif jYBIqbHw==; Received: from [2601:1c0:6280:3f0::1fce] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFPQh-0006JG-7l; Mon, 07 Sep 2020 22:16:03 +0000 Subject: Re: [PATCH] : provide stubs for MEMORY_ISOLATION not set (for Microblaze) To: Mike Rapoport Cc: LKML , Linux MM , Andrew Morton , Michal Nazarewicz , Wen Congyang , Michal Simek , Christoph Hellwig , kernel test robot References: <1f6b42e6-b6b5-40e3-92b4-77bd610d3e49@infradead.org> <20200907070511.GN424181@linux.ibm.com> From: Randy Dunlap Message-ID: <8a1a155a-50ac-170f-13b2-01123bfc396f@infradead.org> Date: Mon, 7 Sep 2020 15:15:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200907070511.GN424181@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/20 12:05 AM, Mike Rapoport wrote: > Hi Randy, > > On Sun, Sep 06, 2020 at 12:33:08PM -0700, Randy Dunlap wrote: >> From: Randy Dunlap >> >> Fix build errors in Microblaze when CONFIG_MEMORY_ISOLATION is not >> set/enabled by adding stubs for 3 missing functions. > > I've tried to follow Kconfig dependencies to see how could we have both > CONTIG_ALLOC=y and CONFIG_MEMORY_ISOLATION=n and I could not find how > was this possible. > > We have > > config CONTIG_ALLOC > def_bool (MEMORY_ISOLATION && COMPACTION) || CMA > > and > > config CMA > bool "Contiguous Memory Allocator" > depends on MMU > select MIGRATION > select MEMORY_ISOLATION > > and alloc_contig_range() is hidden behind '#ifdef CONFIG_CONTIG_ALLOC' > > In any rate, I think the better fix would be to update Kconfig > dependencies rather than add stubs for these functions. OK, working on that. Should have something soon. >> Fixes these build errors: >> >> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: mm/page_alloc.o: in function `alloc_contig_range': >> (.text+0xa0c0): undefined reference to `start_isolate_page_range' >> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa2bc): undefined reference to `test_pages_isolated' >> gcc-9.3.0-nolibc/microblaze-linux/bin/microblaze-linux-ld: (.text+0xa378): undefined reference to `undo_isolate_page_range' >> >> Fixes: 0815f3d81d76 ("mm: page_isolation: MIGRATE_CMA isolation functions added") # v3.10 >> Fixes: b023f46813cd ("memory-hotplug: skip HWPoisoned page when offlining pages") # v3.10 >> Reported-by: kernel test robot >> Signed-off-by: Randy Dunlap >> Cc: Michal Nazarewicz >> Cc: Wen Congyang >> Cc: Michal Simek >> Cc: Christoph Hellwig >> Cc: Andrew Morton >> Cc: Mike Rapoport >> Cc: linux-mm@kvack.org >> --- >> include/linux/page-isolation.h | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) -- ~Randy