From patchwork Mon Sep 7 14:03:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249212 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3730447ilg; Mon, 7 Sep 2020 07:07:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBp2PIIJDGg4ywzVoOencs0WamFUXXwmwyj013FBZKjcrQSIULuNaaFySVz1FLwA1MpFzb X-Received: by 2002:a17:906:4046:: with SMTP id y6mr15811170ejj.148.1599487665257; Mon, 07 Sep 2020 07:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599487665; cv=none; d=google.com; s=arc-20160816; b=URiCz3wac73eNNsbbHzv0R6NTOEnYa3IR7hZyZfkZrmOEZJ5wyBJUtm3RLQv4YTboA 1/h+mE88sibtuFpsUBu40phrNLC+LLERG/ym9R6WqP3+kOc0Wq/rUR7/ErOSyFMmrRAx lsInN1n4IMFK64AkqoEskCHLhhWgYIqTH0SAyLxYnisJf8+f7NCzD2TjP8SD5Vlb/H6x Y24YmVdTawfdlmWiD3zoPLeny+J9aJ0vo6kCB8RtkAebLfPNjSGMu0Gt5YZZmj52y4bN LGd9574ypjMRe3WTEddxTM9DOr3KHQgcj3rSwFNsch0BUfPb3FbSVuDz49TIHK9uXiNa 7N1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gPv4NqJXkN1t4/asyK10JyW0MG7CuHU7pT6soeybAdc=; b=wXOqTxdAVHJrrgaKSaHx+52YvGssGtIaxcig8vBOfOlal0e/Cq/i25EhPzEqXevVhC R6jzVt1NboDr68GvCb35AhvNDtqbf0gDsNqcR4yztzDiCX4zkwq/hBzwF6HKfDiSS0xp pLDcH1D+1TzhKkNKLuLsj2F/1WtjSgH7sJRuhpM4bMjS2umewBAyK4UdLbVazT7WPG/W EC6eqlu2LCO8QIDin2shXmK6JQ3cFD4MCrcl2m44WvQVNpib+BPgJ4s0AcBOlS4EvRf4 JwCDdh93yoDdgLD9yGpaCCsnAuwEWO37eLJFmkNc/ddXrOdcW5wH3XbK2lFMh7fR3shu 7KeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-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 j4si9343629eds.475.2020.09.07.07.07.45; Mon, 07 Sep 2020 07:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729636AbgIGOHj (ORCPT + 7 others); Mon, 7 Sep 2020 10:07:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11247 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729773AbgIGOGN (ORCPT ); Mon, 7 Sep 2020 10:06:13 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 882418E65DAF15108DEE; Mon, 7 Sep 2020 22:06:11 +0800 (CST) Received: from lhrphicprd00229.huawei.com (10.123.41.22) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Sep 2020 22:06:03 +0800 From: Jonathan Cameron To: , , , , Lorenzo Pieralisi , , Ingo Molnar CC: Bjorn Helgaas , , Thomas Gleixner , , Dan Williams , Brice Goglin , "Sean V Kelley" , , "Hanjun Guo" , Jonathan Cameron Subject: [PATCH v10 3/6] ACPI: Let ACPI know we support Generic Initiator Affinity Structures Date: Mon, 7 Sep 2020 22:03:04 +0800 Message-ID: <20200907140307.571932-4-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200907140307.571932-1-Jonathan.Cameron@huawei.com> References: <20200907140307.571932-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.123.41.22] X-CFilter-Loop: Reflected Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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 --- drivers/acpi/bus.c | 4 ++++ include/linux/acpi.h | 1 + 2 files changed, 5 insertions(+) -- 2.19.1 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 54002670cb7a..113c661eb848 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -303,7 +303,11 @@ static void acpi_bus_osc_support(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; +#ifdef CONFIG_ARM64 + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT; +#endif #ifdef CONFIG_X86 + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GENERIC_INITIATOR_SUPPORT; if (boot_cpu_has(X86_FEATURE_HWP)) { capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPC_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPCV2_SUPPORT; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 1e4cdc6c7ae2..1321518a53d2 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -546,6 +546,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;