From patchwork Mon Apr 1 15:36:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 161542 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp612809jan; Mon, 1 Apr 2019 08:37:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj+yh2f9B5wVEjKF+NJ3PPNr3QCQpxL5nPbx7wKpKiwTZkKUobQN/y1hgzTJWJaVVz1VtO X-Received: by 2002:a65:50c2:: with SMTP id s2mr53536859pgp.112.1554133034970; Mon, 01 Apr 2019 08:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554133034; cv=none; d=google.com; s=arc-20160816; b=mingTPOw22jLT4AdnM8AsFCcGP93uop8lyizrNjt9+ErY2166iK+a/vUQSFuydIfP7 3t3ZwmxsZ4ca4PikNUIs2RBVJjLb0Z/AiUjS6hwrs2OFEVb9+HSJK3Q0GdrdUWhJ4K6H tksr8xMPvw72zuqY5s895pJWhbOjTVnZNZyLCWUHeZO7Sx5ygKFoePnElIBTPpDTiN/Z j8OD9nQKJfqPCT9lxbZAqaAbAU4L9N9uOtV+djHeYVWnGUrmt6fJngWPvMftbYoj2wBf 4U127aLYAnQ6G7jH8Kka0c205AnHrnKsT9WFkqnkCJzKzsBSNl8VgI8hdum+4uCKKJ4D +3bA== 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=8RCKlxZLig/j8+KvzSyfS11/XgCNzk3sasMHjNb2h1g=; b=yjk4wp2kT88WLqMoRiNt/RbDq8kbBUmb+eMA7PFZMP3nX6ri5FXyAGL6iBMXK5zEKa ZuzFGyEAHnRbZ+zDHD3y2NticsoATzz3/Mj4VTKnnFrR+ZU/Gowq17RS4h2IYsuLYdGj 44b3/XrAEnv7BZ//sKDRreTDfztRHGLKohvhXsl+np4q8Mf8Gyk3Ez0daZ5P+21di+P8 QbHBcT91SFxMho0zqzMkQIpPrdIUPH05bhFiW3r+tu3Gqq+LvQbvc6SqdJc6iadJxluv N2I5GlAF52SrqMUTEIunRgA0C+LQTqFKE7ZRhmjn3Pk6qQX79lt+eLh3LUZbuGlv+KT2 j11A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-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 h126si8728458pgc.365.2019.04.01.08.37.14; Mon, 01 Apr 2019 08:37:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfDAPhO (ORCPT + 9 others); Mon, 1 Apr 2019 11:37:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44964 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726514AbfDAPhO (ORCPT ); Mon, 1 Apr 2019 11:37:14 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [10.3.19.214]) by Forcepoint Email with ESMTP id 98D9D3E39DD5515E0BB5; Mon, 1 Apr 2019 23:37:11 +0800 (CST) Received: from FRA1000014316.huawei.com (100.126.230.97) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Mon, 1 Apr 2019 23:37:01 +0800 From: Jonathan Cameron To: , , CC: , , , , Jonathan Cameron Subject: [RFC PATCH v2 3/3] ACPI: Let ACPI know we support Generic Initiator Affinity Structures Date: Mon, 1 Apr 2019 23:36:03 +0800 Message-ID: <20190401153603.67775-4-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190401153603.67775-1-Jonathan.Cameron@huawei.com> References: <20190401153603.67775-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 X-Originating-IP: [100.126.230.97] 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. Note that this currently doesn't take into account whether we have the relevant setup code for a given architecture. Do we want to make this optional, or should the initial patch set just enable it for all ACPI supporting architectures? Signed-off-by: Jonathan Cameron --- 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 6ecbbabf1233..0ebc4722d83e 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 d5dcebd7aad3..cc68b2ad0630 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -503,6 +503,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;