From patchwork Tue Aug 18 17:04:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247905 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp3285008ect; Tue, 18 Aug 2020 10:06:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlLHYiywNKuZCWHE6SuQlCT34YR3nna6BoPdysizJpDaLlJyPCnLaELRTJOt1A3I/TTDJH X-Received: by 2002:aa7:d293:: with SMTP id w19mr20163599edq.119.1597770375504; Tue, 18 Aug 2020 10:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597770375; cv=none; d=google.com; s=arc-20160816; b=ahd2GdCoXpouwZ3qf43H6NiANYmF16SUiM4xWBPn7YPD+DEeblckvQLLL/RORyMmO2 Qol3S6dMHcVBsc7Oy12VyuFfTp3EIFLyBvK5apm3+N2WuhTwc/leXlMEfekpeCp8HbSx xaepyZBsT2N8NN2e7YZ5XKiay1nAOdkNkUK596T/x0LBTLaoyi4sSU6gM2dkthYBV5xZ I5KAR/JAVrUO2ceX/iTIXc+owFEI0oydxMVK4hASu4SbnQxdK96SM4z9vqqORIFntv1q 0fG3245Y8r/Wd9RFU4dT1V3bP01/MD6WTu4Az6nkMWRGkPmZtp8Zew5vNofoOwEcxdSm eRUg== 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=pN6PwSVplNWT3x2XxWu6Ts7O8rVeCxruJcHUMqzHgh0=; b=atX3HVhDy2/5grir2dTn3BWnNi1/ckdOdoNAdqgDtA047rKEvaFFcWPWe2s/j/SM+t BLTW+TFhCdNvjFgtbXma1LAOIkXXR506cua1AuYHnuTzuxd2hmt7vtKXl8SeXNaDTXjG cFvYJ/vWa5BnhoLhGMl23w4CDr+6exHT4WFtm4YzGx1Mw4wjZEqKvcXmCJUMl07N4pMp RLbRW4/9YuTXRk2PBhwGk0cZlcMok2sfjbhbf+0Dj6lWBEmLEIEOiCE4J3jpv75L+OXq BxIL23EvPjNwO29Sa8E1UC4D5xBmNh6S8cNfNXDZm1pfyfBZM/72lBWD6BzAMTQHqxoO 2B8A== 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 x16si13836657ejy.527.2020.08.18.10.06.15; Tue, 18 Aug 2020 10:06:15 -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 S1728122AbgHRRGL (ORCPT + 7 others); Tue, 18 Aug 2020 13:06:11 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2657 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728480AbgHRRGI (ORCPT ); Tue, 18 Aug 2020 13:06:08 -0400 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 95F6C2CBE99186A757D0; Tue, 18 Aug 2020 18:06:07 +0100 (IST) Received: from lhrphicprd00229.huawei.com (10.123.41.22) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1913.5; Tue, 18 Aug 2020 18:06:07 +0100 From: Jonathan Cameron To: , , , CC: Lorenzo Pieralisi , Bjorn Helgaas , , , Ingo Molnar , Thomas Gleixner , , Dan Williams , Brice Goglin , Sean V Kelley , Jonathan Cameron Subject: [PATCH v8 3/6] ACPI: Let ACPI know we support Generic Initiator Affinity Structures Date: Wed, 19 Aug 2020 01:04:14 +0800 Message-ID: <20200818170417.1515975-4-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200818170417.1515975-1-Jonathan.Cameron@huawei.com> References: <20200818170417.1515975-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.123.41.22] X-ClientProxiedBy: lhreml702-chm.china.huawei.com (10.201.108.51) To lhreml710-chm.china.huawei.com (10.201.108.61) 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 | 1 + include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+) -- 2.19.1 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 54002670cb7a..0ac96fb67515 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -302,6 +302,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 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;