Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1581514pxb; Thu, 4 Feb 2021 17:32:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW0Wv01cPeOpSsEcLRwDl0p+MHSlk6gZ84zINMYiEOKVyHvTwoZgGl20oMxCa//95VpdTM X-Received: by 2002:a17:906:40d2:: with SMTP id a18mr1842604ejk.82.1612488764075; Thu, 04 Feb 2021 17:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612488764; cv=none; d=google.com; s=arc-20160816; b=qXDUyYvp8bKTKg0cvjjHRfzZsLcbFrHdpTotBzAGw/XwxKWe2UHyNWRfd0zhevB++/ 6K7/HI9M7WVGf2zPnz+bsohkKVmFh+JYU5acuMBoQZXF1LwN/yKx/tM3uHeTe6XlbbX9 sdtdpEGtyzaKWJMzV4Dk9X4uCODw/ICMcgID5xzIvvrqEAPcsczpTBcXwhZQGhCoMkPv jOcVWoFDeXNIk/qToPwbu+wExFP+vzdZCY+LTuCXLgQpkhiEV7vXxFJPHzbxRE4fq3j+ ksC74PCSKpW/SRQQzak+DpyLIQMtfHbliMQLj5nwGADmRAtEGrb8756Z30CoBG3TcavE nyZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3Bu3tpqlL0TzsMYLFu8iWOAryYWVnd5+YG1LX0UHDPQ=; b=KATTgh/TEj5sZWSzDX16h06y0HwtjkHwGDYwHSP+dbLS5OIvz8fPmA3fLHWR3uK1ZY wV5vMg9nuN4jvlB4U/Zd1CUmnOQj8t6TjeNaYE8VHTlU6kH1TQzHZ8oXv3y6SSDSA4xU x2Q6Ke8ZSfWbgnhqKYKGbh7nm9DmGA1kzJcb+tGlCzW2Lk0g5p3BJfzhx0u+AcMJ3kxb SFhWfxxMjVGlzKY6T8DabseuuZRklnkPSZ8Xv+mxqo7HDFhA1Bt9ioutIOu0UauLhtpV cLne4wQ3MAHUr3EH0qCeE0vJQQI3MBO5pGXNve9/JNQle4VUWG6qr2v3WH/zwpm1DECm mosg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si4094683ejf.743.2021.02.04.17.32.19; Thu, 04 Feb 2021 17:32:44 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239270AbhBDSoA (ORCPT + 99 others); Thu, 4 Feb 2021 13:44:00 -0500 Received: from mail-wm1-f44.google.com ([209.85.128.44]:34789 "EHLO mail-wm1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238782AbhBDSj1 (ORCPT ); Thu, 4 Feb 2021 13:39:27 -0500 Received: by mail-wm1-f44.google.com with SMTP id o10so6472597wmc.1; Thu, 04 Feb 2021 10:39:09 -0800 (PST) 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=3Bu3tpqlL0TzsMYLFu8iWOAryYWVnd5+YG1LX0UHDPQ=; b=o6xFZTJwJehJ7EoTGclD4//KBHh/D2eB8UJDefIL7sMRdCfXujn93aNK4h22pggznq NZAWNsOtukpPKM+pxMF3T6sazZzCGc+DfyKvPKfDU5GYm35vAguJQZ6bEVFUYoE1dB+s bHKWLfcpIBWKNDmcO3RNyUpAIRcLgxWs0YxxsM4w216kAspp7jujVrCQmUFxJgdUcjq4 8XsWwKn4nklhhYFdxo0AS4HyeWjTO/cqBuaIbUpnbvVv7To9SQtvbdbJjR1sx7HTghfv 0BNP+CptC8NNZzg0qPrw9TuQLCdpoom2/kJhbpgsvLhVFozd/rtoF3Ie6pEcCT4HLcpb LCxA== X-Gm-Message-State: AOAM530sRWtLkCIYvB1cpyyKkWsHAqEnYKOTvuULdOSOTqOPiiuG2+iq ZyBPxdeEBuBbrqhzkEHNsxJ+0SUtPU4= X-Received: by 2002:a1c:a546:: with SMTP id o67mr433285wme.151.1612463923713; Thu, 04 Feb 2021 10:38:43 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id z1sm9325938wru.70.2021.02.04.10.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 10:38:43 -0800 (PST) Date: Thu, 4 Feb 2021 18:38:41 +0000 From: Wei Liu To: Linux on Hyper-V List Cc: virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , pasha.tatashin@soleen.com, Wei Liu , Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" Subject: Re: [PATCH v6 08/16] ACPI / NUMA: add a stub function for node_to_pxm() Message-ID: <20210204183841.y4fgwjuggtbrnere@liuwe-devbox-debian-v2> References: <20210203150435.27941-1-wei.liu@kernel.org> <20210203150435.27941-9-wei.liu@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203150435.27941-9-wei.liu@kernel.org> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 03:04:27PM +0000, Wei Liu wrote: > There is already a stub function for pxm_to_node but conversion to the > other direction is missing. > > It will be used by Microsoft Hypervisor code later. > > Signed-off-by: Wei Liu Hi ACPI maintainers, if you're happy with this patch I can take it via the hyperv-next tree, given the issue is discovered when pxm_to_node is called in our code. > --- > v6: new > --- > include/acpi/acpi_numa.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h > index a4c6ef809e27..40a91ce87e04 100644 > --- a/include/acpi/acpi_numa.h > +++ b/include/acpi/acpi_numa.h > @@ -30,6 +30,10 @@ static inline int pxm_to_node(int pxm) > { > return 0; > } > +static inline int node_to_pxm(int node) > +{ > + return 0; > +} > #endif /* CONFIG_ACPI_NUMA */ > > #ifdef CONFIG_ACPI_HMAT > -- > 2.20.1 >