Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp429766ybt; Wed, 24 Jun 2020 02:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDTJz1W9U39nofqtv/bQnw/YvWdQ3Vt8SorCut49CRSX6B/hw66kUOPYTVzxMjZQc8M5yh X-Received: by 2002:a17:906:7686:: with SMTP id o6mr12794207ejm.326.1592992278700; Wed, 24 Jun 2020 02:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592992278; cv=none; d=google.com; s=arc-20160816; b=RGapUel+iI78DNy9Ss8EBA+97PG7Ii0zj02pHU1ZjNsCKnOAUJRfSyjbEGl/y/zOMF P3q6DeTv6E16kiylIx+rMVOqrWY/q0fkSi2+K0R/4hLUmtiPXUgpi5igPIGWKlrgjfBD +YEOb2zcl566nFr86CkAiD9mEyADuKcYN29ebokq9I9ZHrULTPx+nIaPoT9UT+nTi/15 0++axiodcxOJwu03S+zbGn28uuYyrfYvF7VDWh9oIPQfFw6XAu/Tup+ZpE04uMAwtn7z beDVLT3P2+oO+C4ygBssPlvtnkGLHsdqX4cfIGrH6aXQqAYJNqiMeG8fdfXfGImm8e6b YXJw== 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:reply-to:message-id :subject:cc:to:from:date; bh=LdDjDrBW7ntQ0DHWeBoXmDY++22C1exxCdzgesyQTt0=; b=YHaimNljg17Bh/dmx+EQuxt2TvLkN0tUK/UdGar6UCBGZEiIi97EA4RY5y1TNxX29E wEZ4PcJF4a34ufAk4eKApMUrg0isQnHkFRHvjvMjj6RZ3keFgJVt0k0gTz3+/qNGmrp2 +W27gK4VHuLM4c54xL3HWhg8UQzJEu2q+DhqohRYn28Bi2EWj+Nq3VuX/596Iu/0satc 7mtt/joLIOIg3LnIU/UmCZNhxYnBWwrTjHgJsRMpo16Md7CqfOxReT9fQiwszUVv58aH EQ5xelgyMVWZuKWKruVGMEAWT0QrXs53Xjuq5qrTrdTuYgOBlcSIwuoCIXfxlqBH7y3y PzWQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si7341651edc.298.2020.06.24.02.50.44; Wed, 24 Jun 2020 02:51:18 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390043AbgFXJtI (ORCPT + 99 others); Wed, 24 Jun 2020 05:49:08 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:7900 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389848AbgFXJtH (ORCPT ); Wed, 24 Jun 2020 05:49:07 -0400 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05O9Wo7h015945; Wed, 24 Jun 2020 05:48:52 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31uwymhxkd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jun 2020 05:48:52 -0400 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05O9Wqri016022; Wed, 24 Jun 2020 05:48:51 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 31uwymhxjs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jun 2020 05:48:51 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05O9TS1X024022; Wed, 24 Jun 2020 09:48:49 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma04dal.us.ibm.com with ESMTP id 31uurpunyk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jun 2020 09:48:49 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05O9mmbc28443000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Jun 2020 09:48:48 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9F8866A04D; Wed, 24 Jun 2020 09:48:48 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24F776A047; Wed, 24 Jun 2020 09:48:48 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.85.91.248]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 24 Jun 2020 09:48:48 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 719DC2E4AB5; Wed, 24 Jun 2020 15:18:43 +0530 (IST) Date: Wed, 24 Jun 2020 15:18:43 +0530 From: Gautham R Shenoy To: Srikar Dronamraju Cc: Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Mel Gorman , Vlastimil Babka , "Kirill A. Shutemov" , Christopher Lameter , Michael Ellerman , Linus Torvalds , Gautham R Shenoy , Satheesh Rajendran , David Hildenbrand Subject: Re: [PATCH v5 1/3] powerpc/numa: Set numa_node for all possible cpus Message-ID: <20200624094843.GA31972@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <20200624092846.9194-1-srikar@linux.vnet.ibm.com> <20200624092846.9194-2-srikar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200624092846.9194-2-srikar@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-24_05:2020-06-24,2020-06-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 malwarescore=0 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 cotscore=-2147483648 mlxscore=0 clxscore=1011 lowpriorityscore=0 suspectscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006240069 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 02:58:44PM +0530, Srikar Dronamraju wrote: > A Powerpc system with multiple possible nodes and with CONFIG_NUMA > enabled always used to have a node 0, even if node 0 does not any cpus > or memory attached to it. As per PAPR, node affinity of a cpu is only > available once its present / online. For all cpus that are possible but > not present, cpu_to_node() would point to node 0. > > To ensure a cpuless, memoryless dummy node is not online, powerpc need > to make sure all possible but not present cpu_to_node are set to a > proper node. > > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > Cc: Michal Hocko > Cc: Mel Gorman > Cc: Vlastimil Babka > Cc: "Kirill A. Shutemov" > Cc: Christopher Lameter > Cc: Michael Ellerman > Cc: Andrew Morton > Cc: Linus Torvalds > Cc: Gautham R Shenoy > Cc: Satheesh Rajendran > Cc: David Hildenbrand > Signed-off-by: Srikar Dronamraju This looks good to me. Reviewed-by: Gautham R. Shenoy -- Thanks and Regards gautham.