Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp834485ybp; Wed, 9 Oct 2019 05:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA3fpQW4GM9NGhbSddfHaFOessIjF5sOnpxOsww8seO+rb124tBIBmYOQXpMij70wsEyzS X-Received: by 2002:a50:ee12:: with SMTP id g18mr2559724eds.114.1570622748671; Wed, 09 Oct 2019 05:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570622748; cv=none; d=google.com; s=arc-20160816; b=ksIKtW58XWck55ICDwUZIXeJ3s1LuAMc5Fdc0pvKS3oB1Kmc2sGYygCyguPEWwuQr0 rtgJTT5z+y7mThgnlz3wLsH344SVQzf/HjRQhkhE0RGjviaZPb2xx7w5u2V6tjkE2HGV imevhG+gna1FHYgtBvjGIfJFYvTabwt0ACLq5k7S1jSZVFK/VCum574ut1DeJ/NaqSY9 NQwlywxF/s8EEVr5BshfMX0eFVXpHydDcUOPCCfcSWamiGiAKbANENTP0VR92D5WwXn9 HPV1GUIv0KgQcXF37Zyk8A2G5PJmx4YBQcOjfxfDksLI8s6gpDYojkmR5M12lhEY9aBT lkUQ== 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:dkim-signature; bh=dtS4F7XkA7NXEFSiBUTN+MJJcDQu2q+vCfZUQy+bNyU=; b=r3curin1IuMMlA5+o8fYjwYktxK63tBgx4aALs35hUl2lXWqFUARm6nzr4NO/G5UgL TRCxKisFfouqHx7uvRgrHWfmLYZWUdXgiSiF8OpbG+8QRFFrZTgAT1VaSmOkE6ovQ6yb 5zLqq5UgVyVXzpN5L3zdxTl5ot9ZQg6mxV62AWyGa+Ko6gPB4mAy22PnpGFP57Yq1BcL EtRH7qQ3V28tgDnyViGoScu1BgBaKTJkj4XJwDu+5VoZ5DX9SThM0IZYdQdv5cXYFR8K 9m6FxMqf6pH82afcUCUBTYSHL0+mvV1zqzEuH+Mp7KIt7+TnPWld3lvG8hQxnslWpBhr 9kVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeblueprint-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=CDmkwE3X; 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 h14si1183387edb.425.2019.10.09.05.05.24; Wed, 09 Oct 2019 05:05:48 -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; dkim=pass header.i=@codeblueprint-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=CDmkwE3X; 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 S1730950AbfJIMEQ (ORCPT + 99 others); Wed, 9 Oct 2019 08:04:16 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34973 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727228AbfJIMEQ (ORCPT ); Wed, 9 Oct 2019 08:04:16 -0400 Received: by mail-ed1-f66.google.com with SMTP id v8so1792916eds.2 for ; Wed, 09 Oct 2019 05:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeblueprint-co-uk.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dtS4F7XkA7NXEFSiBUTN+MJJcDQu2q+vCfZUQy+bNyU=; b=CDmkwE3XsBkLPqd+Wrp3c0USAwAHa/YvwCcyPxnh8+CAwipOm4wQjmkbpZ+/BqnylE ZVT5hHUsooJLvkubHozfCmNaaH6ubAZeWDmdJYOzvabR+6G4izlomPDJ5zMIljcGzWAg SIpETtH1H3FDAlYKbQcgS6doZ4UAFwo/8t91MtelbAaqcX/cXXjus5Yu/uV63JPQJRfk JjujXHKVuRcZd9APQ2mmcMLMWNMde3X5twKaYMIXYe8XjndUxsdM9k/byyK9sbmmnKdo fCnwNfe/JqLclTl8RZCKuHCPdkRqG3NEs/VZeWS25+LX+bgdKQ1zVPDNDEgIcPXuWOwo 78lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dtS4F7XkA7NXEFSiBUTN+MJJcDQu2q+vCfZUQy+bNyU=; b=gYRmJst3MNDtCedmf+qSPyqOM/EeOLRJg0lKWasChyt0TbpUde81bmQTBxoZ7/KcJU NCFwu9iE7YHDIc22qdmCT9oMvxcK3MVW13PVx5ODAcXAyb2YfU+EuEOtwe0NggTFRU8g HcaYUHP45QSs+sU4N69NDWvkpEhLQRf1Uhg+Nj+/Qas/iJAjBLot7AG3Ep/iwS379U+N 95liijInnxFN9dbNT5TzP5aRx/6J9RRiedHA4MvIw+PKiARXdcW0j9cYSy39Y+0OZ7Uz b3xA3mDVfctEnJyDYOy6tDeDJ04ueHo/3ahlwoy6dRLR2BeX0m++vs2VWcO8BWddFs1L 5g2w== X-Gm-Message-State: APjAAAVQV38rtT9EpjeX9cAbwtEL6dqw5vRvaACp25/I54EmlbqKny81 MMfEdG82NWGtrpycY725RmbtPg== X-Received: by 2002:a17:906:d964:: with SMTP id rp4mr2336654ejb.147.1570622654335; Wed, 09 Oct 2019 05:04:14 -0700 (PDT) Received: from localhost (5ec1659c.skybroadband.com. [94.193.101.156]) by smtp.gmail.com with ESMTPSA id k9sm329380edr.88.2019.10.09.05.04.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Oct 2019 05:04:13 -0700 (PDT) Date: Wed, 9 Oct 2019 13:04:12 +0100 From: Matt Fleming To: Guenter Roeck Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Tony Luck , Rik van Riel , Suravee.Suthikulpanit@amd.com, Borislav Petkov , Thomas.Lendacky@amd.com, Mel Gorman , Ralf Baechle , Paul Burton , James Hogan , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Subject: Re: [PATCH v4 2/2] sched/topology: Improve load balancing on AMD EPYC Message-ID: <20191009120412.GA4065@codeblueprint.co.uk> References: <20190808195301.13222-1-matt@codeblueprint.co.uk> <20190808195301.13222-3-matt@codeblueprint.co.uk> <20191007152816.GA10940@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007152816.GA10940@roeck-us.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 07 Oct, at 08:28:16AM, Guenter Roeck wrote: > > This patch causes build errors on systems where NUMA does not depend on SMP, > for example MIPS and PPC. For example, building mips:ip27_defconfig with SMP > disabled results in > > mips-linux-ld: mm/page_alloc.o: in function `get_page_from_freelist': > page_alloc.c:(.text+0x5018): undefined reference to `node_reclaim_distance' > mips-linux-ld: page_alloc.c:(.text+0x5020): undefined reference to `node_reclaim_distance' > mips-linux-ld: page_alloc.c:(.text+0x5028): undefined reference to `node_reclaim_distance' > mips-linux-ld: page_alloc.c:(.text+0x5040): undefined reference to `node_reclaim_distance' > Makefile:1074: recipe for target 'vmlinux' failed > make: *** [vmlinux] Error 1 > > I have seen a similar problem with one of my PPC test builds. > > powerpc64-linux-ld: mm/page_alloc.o:(.toc+0x18): undefined reference to `node_reclaim_distance' Thanks for this Guenter. So, the way I've fixed this same issue for ia64 was to make NUMA depend on SMP. Does that seem like a suitable solution for both PPC and MIPS?