Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp390226pxb; Thu, 30 Sep 2021 08:13:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzim8Pyy2f4bvW1OP8Qj6ghWc11rijWqPewyMSSOO1ha8Nt/sVypkY4YjOVGiYlcmDcxf7m X-Received: by 2002:a17:906:704e:: with SMTP id r14mr7270638ejj.293.1633014815448; Thu, 30 Sep 2021 08:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633014815; cv=none; d=google.com; s=arc-20160816; b=uC5Pe926+pTrZK6V2rF8NOAYznw7RpU4R7Vx6gpmsYVeewf5evazqZCU7Oet7clD4F p+l+X2Mmfay465ctoInBS5DrFc0Kt5mh0A/4Y9dKQEfI+9wXM676HRdE56pyjRePIpa0 wZRn6yvpdsKQev0pTlkf8hjBBCh/IMQ8TYxDR+fLE+KdcK6hNvKU72KBj272XAM1Vzoj 3JK0rIRPWCw4yIUXx3ur8C1TPnAuoU3tHBJaCZPjf5yiK8Zo+X8sH+JkayBLq6//E2wG amph/p/TlgHD/xzpMjs7sgvGwRZI1ipAfH5xcdw7eOJsikRZUKKhM2W4QVwtRUhAFpKi SXOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qlV2IW6KgwSMkQiI/3nalledS1TzOJSnAsynrV1hvmI=; b=vP4kpn3M/96NHgm2Qts3nIwGeKROo0GstVL9sP9TxyNt4NiHbrWMtelz2Z/uUZeVsh XinXtJ1VG1fHoQCTbrQdki+wbwZchVk2yHzVPnoWwY5fG2faApxa6eaVTf1Mg9eLagjW hLCfecD3ibzjrUE5B8NROtYTlWssmOCzL3kybR2MHy+Up7UDbQsjbHH9X/29g/nDANmw uK7hpKuh4VCni8FQIG73o0kzqCTqlRYDmGw1YUMxddcY3yit3gokLTNYDEvxaBWYGTQk KBcNxyaPXyBLJkHyeQ7u8NHMHYSkBhkC62wPMJ7LOR5M8YEyiB9a8G1WjYxPt2vpdHuQ VzlQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kz10si673452ejc.582.2021.09.30.08.13.08; Thu, 30 Sep 2021 08:13:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351050AbhI3Om7 (ORCPT + 99 others); Thu, 30 Sep 2021 10:42:59 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:34655 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349769AbhI3Om7 (ORCPT ); Thu, 30 Sep 2021 10:42:59 -0400 Received: by mail-wr1-f53.google.com with SMTP id t8so10535661wri.1; Thu, 30 Sep 2021 07:41:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qlV2IW6KgwSMkQiI/3nalledS1TzOJSnAsynrV1hvmI=; b=KwWesWBcLF3Ao3oUBSagd1ExtrAdhcu2b+z1qu591O+PcUi1MCjqxIdu/ZDRSJPeEU s40rHYCh8/x50xuisAnr5FEmvxjqn82CQ+4Aex7NUfmNpIp0TikVFm+1HsfnrLZ0taJk b4m9UKxVmFHZPFJLu0kLMt0OuuEq/WtWaLdKKkMw7jP6dTvfc5RhdRsizCHdqz9ivs9z bS5s+m44BdpWhJzwujvkJucZuvPKoFPdMCKJe38RsRCl54/Isdv7KE0UiWEoB9ufd9Xr //M2gTCuUQwtbp7T90CwQaMVxcwynHSxpPx9mxDhxpaUbVnrFxI+n0F3ThI6+VPoRw8E TEPg== X-Gm-Message-State: AOAM5311RD6+ZhN6zDIeDd70SOG0QYjs4518LksIKV0ocfSYnMnt54Hd ygbVj3uaOoMNkCNVPxJG6NY= X-Received: by 2002:a5d:64a7:: with SMTP id m7mr6752049wrp.171.1633012875349; Thu, 30 Sep 2021 07:41:15 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id n26sm4999946wmi.43.2021.09.30.07.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 07:41:14 -0700 (PDT) Date: Thu, 30 Sep 2021 16:41:13 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Max Gurtovoy Cc: hch@infradead.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, stefanha@redhat.com, oren@nvidia.com, linux-pci@vger.kernel.org Subject: Re: [PATCH 1/1] driver core: use NUMA_NO_NODE during device_initialize Message-ID: References: <20210930142556.9999-1-mgurtovoy@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210930142556.9999-1-mgurtovoy@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Max, > Don't use (-1) constant for setting initial device node. Instead, use > the generic NUMA_NO_NODE definition to indicate that "no node id > specified". > > Signed-off-by: Max Gurtovoy > --- > drivers/base/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index e65dd803a453..2b4b46f6c676 100644 > --- a/drivers/base/core.c > +++ b/drivers/base/core.c > @@ -2838,7 +2838,7 @@ void device_initialize(struct device *dev) > spin_lock_init(&dev->devres_lock); > INIT_LIST_HEAD(&dev->devres_head); > device_pm_init(dev); > - set_dev_node(dev, -1); > + set_dev_node(dev, NUMA_NO_NODE); We might have one of these to fix in the PCI tree, as per: https://elixir.bootlin.com/linux/v5.15-rc3/source/drivers/pci/pci-sysfs.c#L84 Would this be of interest to you for a potential v2? Krzysztof