From patchwork Wed Sep 12 15:21:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 10597779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C78E214E0 for ; Wed, 12 Sep 2018 15:22:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6A4D2A4EB for ; Wed, 12 Sep 2018 15:22:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9CE12A4ED; Wed, 12 Sep 2018 15:22:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F0342A4A2 for ; Wed, 12 Sep 2018 15:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbeILU1r (ORCPT ); Wed, 12 Sep 2018 16:27:47 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12104 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726640AbeILU1r (ORCPT ); Wed, 12 Sep 2018 16:27:47 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1BB45524D69C9; Wed, 12 Sep 2018 23:22:28 +0800 (CST) Received: from j00421895-HPW10.china.huawei.com (10.202.226.46) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Wed, 12 Sep 2018 23:22:22 +0800 From: Jonathan Cameron To: CC: , , , Jonathan Cameron Subject: [PATCH 0/1] PCI: support numa node specification on a per device basis. Date: Wed, 12 Sep 2018 16:21:39 +0100 Message-ID: <20180912152140.3676-1-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.17.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ACPI specification allows individual PCI devices to be associated with proximity domains that may or may not be the same as the host bridge below which they are attached. This is done with the _PXM method. Unfortunately Linux doesn't take any notice of this as it would normally be done during the device_add but that stage the ACPI firmware node is not yet associated with the device as this is not done until the call to acpi_pci_find_companion which is called form acpi_platform_notify only after the device_add. The easiest place to make this association seems to be pci_acpi_setup, but there are lots of alternative possibilities. Jonathan Cameron (1): pci: Pick up the acpi numa node value if it is specified at the device level. drivers/pci/pci-acpi.c | 5 +++++ 1 file changed, 5 insertions(+)