From patchwork Tue Feb 12 16:49:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 158160 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4060049jaa; Tue, 12 Feb 2019 08:50:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IZObCpXJMUqP0SV05QHV0JtLSqGILXrYb11/BpnBOpY7gscX8qOvxZdU8o1/9EjaD6P+wpp X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr4979894plb.182.1549990246723; Tue, 12 Feb 2019 08:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549990246; cv=none; d=google.com; s=arc-20160816; b=UOt6vbidtxPged9asW3SBBndGNkeZy64A1lXLr6FzuW1xQO1/AtLYc5XOz4wrzF/gP oTpIVshTSUeTh7kUmwNfgCYK2WgcOfzHhWZLzJuoQjNz1W8EZxrxHMGCxpYbIZDvYS2m g2jMD29wEZpZiNuH+FXkjNE+PgGMLHHJ6vKkC07kU+ZQrcoweAdd8gahyCxW95oJruK6 9r4qrQc4dCOojRGqBzotULoL5ywUV5mL0IgMS2drYrGGap+nbI2R1mknRiph4Ky//Fb/ NI4bdjSMSjS+FFsm82+3tyBmrY1AnT177MvZiXj2m7B7xm0mpPWBYZKxaFF8X1qy4fAo 3Z8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=22u2nzQfQfmqHyKDhVuCSOwYEX716Xpo/VCkQkdinJ0=; b=PIzvtRavAm7iR6Y7sydZuuO8nzH+f2pQRqGOcgVduBdqPtXLq1hHVEPn8SS9/62mc+ JVINyRFrq8Iit90ozYM4ah6iQd7gEgtRhNn5YglFav3nYM72Dt1+K9e685yIZ2YJsD/G mHjAgV2SVzBE809NNm0xWWrOb+wvUf+XDxD5rJaYMdHus61Rs21FDkuv4C4irZWCN5Ou qq6mZcTc7JIf/vAuYcEX56TxzL0qGL9T35YbEEvg7BjmaOkCAEsvcGILHxtK2Wm5UPBO V7dwjlpp/miebLw+M57a2gfvFI4fZFtbO6FX3N2/8d9XoAhcaw+e0e2pI0tWO5wrn+pP bp+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si219506pll.148.2019.02.12.08.50.46; Tue, 12 Feb 2019 08:50:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731333AbfBLQuo (ORCPT + 31 others); Tue, 12 Feb 2019 11:50:44 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:50722 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730844AbfBLQuk (ORCPT ); Tue, 12 Feb 2019 11:50:40 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DBF00DF7E33A091663B7; Wed, 13 Feb 2019 00:50:36 +0800 (CST) Received: from j00421895-HPW10.huawei.com (10.202.226.61) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Wed, 13 Feb 2019 00:50:26 +0800 From: Jonathan Cameron To: , , , CC: , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , Keith Busch , "Rafael J . Wysocki" , Michal Hocko , , Jonathan Cameron Subject: [PATCH 3/3] ACPI: Let ACPI know we support Generic Initiator Affinity Structures Date: Tue, 12 Feb 2019 16:49:26 +0000 Message-ID: <20190212164926.202-4-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190212164926.202-1-Jonathan.Cameron@huawei.com> References: <20190212164926.202-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.61] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Until we tell ACPI that we support generic initiators, it will have to operate in fall back domain mode and all _PXM entries should be on existing non GI domains. This patch sets the relevant OSC bit to make that happen. Signed-off-by: Jonathan Cameron --- Note that this will need platform guards unless we make generic initiators work on all ACPI platforms from the start. drivers/acpi/bus.c | 1 + include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+) -- 2.18.0 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 5c093ce01bcd..461fb393346a 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -315,6 +315,7 @@ static void acpi_bus_osc_support(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT; #ifdef CONFIG_X86 if (boot_cpu_has(X86_FEATURE_HWP)) { diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 87715f20b69a..760c6f3d57f0 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -498,6 +498,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); #define OSC_SB_PCLPI_SUPPORT 0x00000080 #define OSC_SB_OSLPI_SUPPORT 0x00000100 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 +#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000 extern bool osc_sb_apei_support_acked; extern bool osc_pc_lpi_support_confirmed;