Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1582826pxb; Thu, 4 Feb 2021 17:35:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJw84jAGQHv0SHfNpoJnypnOv4EVat4gfVckVXCtfkWLtO1v7D23U3UEGalbePs4LAOelUN4 X-Received: by 2002:aa7:d888:: with SMTP id u8mr1273270edq.239.1612488915241; Thu, 04 Feb 2021 17:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612488915; cv=none; d=google.com; s=arc-20160816; b=sFwG7vVsXPcD+ayro0C7csrdLwzakNpxHlHo3viH38sA+nH4LYLlmrd04/Mf8NSO3s aVzabZmXhfrSXjIbOQpQAr4N7xwHBoAFV3ZUZlzGWFaEG1qnQd71VJcvEslaqniQIM7u WNH6VCdz5fvEvi4QDA/4idq+2XPkHkC69+dA5QedcZLnn0z0UzjXZ1fZ9utpKibEebpF /wyhqgbfCWXmAgIJR9zlenGGVigND+AeEOK45XzZQU7Y8yv1Oz6YCApg+IuAZVsMTOcn edKA5Qucqfvd1H0HByNCEaLn2K5/57WvBTrgRZrj1kpn99g0/dOW6m2s69EYETrkixRX 3GYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=xnuUw1FLcM4+2rBIDsM0pF6wdlTJf4QW7NKIBa7PlDU=; b=i2UJqLslJu7Uy3vpaKtnB3CeAvC+XLS3qwcG6DK1TPCjNmeh985isj4o9hMR/2mQ4X wtLcduc5pQyqK9W3w76e9wLQfkbfdH3MYSvRDYcjJWWizDTk0pnuOVQRRm1+lMzKG66S gPoNsixJlAocpNsMbyrbjxbKZ8I8h8PQTo4/5qBSgfZiIPirKCKv3bQYm7e5EBo/3uex F6N7N0fEKOqgeSgSEtjczUutnJIQcr7269Eo6nzEp9Qt5MGykVTrPvq57rXDlFu4Ewgw OfvEjS6XjImV9ZofXVb3NpKF7NWk7vHha2GBYBn+cN8vj1Pq8hKMsKw8iw95IKyMeG0K D0lA== 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 v4si5389380edj.37.2021.02.04.17.34.50; Thu, 04 Feb 2021 17:35:15 -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 S239374AbhBDSsQ (ORCPT + 99 others); Thu, 4 Feb 2021 13:48:16 -0500 Received: from mail-ot1-f48.google.com ([209.85.210.48]:41499 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239321AbhBDSqg (ORCPT ); Thu, 4 Feb 2021 13:46:36 -0500 Received: by mail-ot1-f48.google.com with SMTP id s107so4408935otb.8; Thu, 04 Feb 2021 10:46:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xnuUw1FLcM4+2rBIDsM0pF6wdlTJf4QW7NKIBa7PlDU=; b=FSBP/7o608u2T/6CsEOHE082t7ThtmgZRsV0oE6+H6WcdO4zFsmjZ93caRvUkpninm paFLDPwC6Em42lc2x4ccoYauhiOAXswkhDPLpRrd8YVFqdB+Et6dVoXwdKHvmrfAZdjq 2OtP+7XzBfpGNHjwiPBH66FfSsOdwi/H7hLbvZoehWCo9Qz4lYIZ2Eao1y7nYd1WKJPD lQgQLILP1R7DNmmz6uvWYEbzWeo9VsM7SLwyCSvckoatztDJCr4jn0mtDmvuzIOx6cOW QvHYjY4at+d+hOdLTCH++XHOLHbWuMLi+8+gTarQzqflnLF2D1cuTcLtuWr6TfkoxJ3y 9EMg== X-Gm-Message-State: AOAM5302rykKyorCKoTlLnElkXKHk3RP0B/Q1neRLkDWShPrthMIlPGM vMoPTKc7nRkwVlrm/IYLzrXryKBgB84FJEy5B+k= X-Received: by 2002:a05:6830:2313:: with SMTP id u19mr554329ote.321.1612464336202; Thu, 04 Feb 2021 10:45:36 -0800 (PST) MIME-Version: 1.0 References: <20210203150435.27941-1-wei.liu@kernel.org> <20210203150435.27941-9-wei.liu@kernel.org> <20210204183841.y4fgwjuggtbrnere@liuwe-devbox-debian-v2> In-Reply-To: <20210204183841.y4fgwjuggtbrnere@liuwe-devbox-debian-v2> From: "Rafael J. Wysocki" Date: Thu, 4 Feb 2021 19:45:25 +0100 Message-ID: Subject: Re: [PATCH v6 08/16] ACPI / NUMA: add a stub function for node_to_pxm() To: Wei Liu Cc: Linux on Hyper-V List , virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , Pavel Tatashin , Robert Moore , Erik Kaneda , "Rafael J. Wysocki" , Len Brown , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 4, 2021 at 7:41 PM Wei Liu wrote: > > 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. Yes, you can. Thanks! > > > --- > > 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 > >