Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp13458pxf; Wed, 17 Mar 2021 13:58:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyltEhO9ylBEpXc2hh230XgA36EjXAAdp+mBVL7nE+omnmiwmxr9hEML7Ksojg1k3qnCj4D X-Received: by 2002:a17:906:dfcc:: with SMTP id jt12mr38049561ejc.31.1616014705066; Wed, 17 Mar 2021 13:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616014705; cv=none; d=google.com; s=arc-20160816; b=Ob/l57cOMxYi1jTJhXXnY+yc02/dtVzllK3iPWM+Or6w7XhHUlVDWWQN3iOtp71PvK bEkjqj32+joOgPseoV5xxpHqaiuhkoLAR5vtdpBED7uSZ0cSedQh7XbQlarfzXkZAVn9 ECR7Xij2RJ6r6x7TiH2D92WZ6fhi8MHzznvATqjD5VgkttXGLls1p0tzKUzk1/8Q6Djz iYDmv+wkIJAM51DbqDYmzepJsxN9Pnbuwgwttb3bBs1RBxq9Vr+oEl1Eu5We+3PC0cWB T4adnmHxgME5+SHEAh690MXjxBOH3DmNlNMyaZC9oRXEv0Gg9V+dZPYroWQ0NuIMGhpO kWZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=WJDnOKbgKtD3ookKJpzMR4s2KSch09fRD66JnOmXOz0=; b=A6ErEsJb3uPUxu7JcYjztRHD9e87wZDDoexImvrPnQ3gXkMQUEFo1aSfMXcZaSr1xV d2p+paet1jwTglaOV3VztCabD7gKid1XFW/sIlDJOc8VK4S4/B7upCw383uSsggemy9W 5V6EKjxQB60E47DaX3xk4mQHjxiJxGNI/fWxOiRXpPnz0TLXEYS0AyJKYwXVmTSqsCVG qTR6hE5BVV5o36z3dFyYK7wIOdXCZs/crPlJNnr2wtjR55ql8XcXG/GzXNwqdCAIyb+9 ObUT1vcU1IsWib+pi9XSuIZ6tm6LPBOk9bvCuJhXN1swZik3FgBNkegipQ49sR8qK5Be Wwtw== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si17935043edx.88.2021.03.17.13.58.02; Wed, 17 Mar 2021 13:58:25 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233490AbhCQU4e (ORCPT + 99 others); Wed, 17 Mar 2021 16:56:34 -0400 Received: from foss.arm.com ([217.140.110.172]:47512 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233391AbhCQU4Q (ORCPT ); Wed, 17 Mar 2021 16:56:16 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C512B1FB; Wed, 17 Mar 2021 13:56:15 -0700 (PDT) Received: from e113632-lin (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB28F3F70D; Wed, 17 Mar 2021 13:56:14 -0700 (PDT) From: Valentin Schneider To: John Paul Adrian Glaubitz Cc: "Peter Zijlstra \(Intel\)" , Linux Kernel Mailing List , "linux-ia64\@vger.kernel.org" , Sergei Trofimovich , debian-ia64 Subject: Re: [PATCH 0/1] sched/topology: NUMA distance deduplication In-Reply-To: <87zgz1pmx4.mognet@arm.com> References: <255d6b5d-194e-eb0e-ecdd-97477a534441@physik.fu-berlin.de> <8735wtr2ro.mognet@arm.com> <87zgz1pmx4.mognet@arm.com> Date: Wed, 17 Mar 2021 20:56:12 +0000 Message-ID: <87wnu5pkib.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/21 20:04, Valentin Schneider wrote: > Technically it *is* coping with it, it's just dumping the entire NUMA > distance matrix in the process... Let me see if I can't figure out why your > system doesn't end up with nr_node_ids=1. > Does the below a) compile b) do anything? From what I could gather, nothing actually tickles the possible map for ia64. The standard pattern seems to be node_possible_map = numa_nodes_parsed; but here at a quick glance it seems it's online or nothing, so that's what I went for. HTH. --- diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index a5636524af76..e2af6b172200 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c @@ -446,7 +446,8 @@ void __init acpi_numa_fixup(void) if (srat_num_cpus == 0) { node_set_online(0); node_cpuid[0].phys_id = hard_smp_processor_id(); - return; + slit_distance(0, 0) = LOCAL_DISTANCE; + goto out; } /* @@ -489,7 +490,7 @@ void __init acpi_numa_fixup(void) for (j = 0; j < MAX_NUMNODES; j++) slit_distance(i, j) = i == j ? LOCAL_DISTANCE : REMOTE_DISTANCE; - return; + goto out; } memset(numa_slit, -1, sizeof(numa_slit)); @@ -514,6 +515,8 @@ void __init acpi_numa_fixup(void) printk("\n"); } #endif +out: + node_possible_map = node_online_map; } #endif /* CONFIG_ACPI_NUMA */