From patchwork Sat Mar 9 20:13:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 779209 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBBAF4E1DD; Sat, 9 Mar 2024 20:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015214; cv=none; b=JWtY8DsqjHHdW5gs5or23NF+Z52upyHrW7xFFYtUQwkdP3VWp8V281PJ+oip8dmphs2OUN8z+ZCHqRdq/nI3hgkKkBFgH8oNp0hnDJ7gbuF0usHzdzMLAmglCduTV6IBVMT52E15trhyFi9ET50WPmDbpaOVtLHSJxjBwJio0xM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015214; c=relaxed/simple; bh=2d/0SU8NbLGWulMjfdPpcnLpf+NbqM1N53gNgqn1xyI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YbK1CA9DEAOIr0T71iqMQrUifx5/tvgMnGqqDhbL35obivYNB1kwVn04xC8CxNxsmKd1haW/SThmjR+872/hX3NWjqucfLtIE2aq0aOO/R52N8a+jMZeFoP0pZYpDOMFZQ4tCojMKjYuxUOVeMhhA3SsoWNTCnEGP7uCvjSiJNQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=YAG6bTuv; arc=none smtp.client-ip=212.227.15.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="YAG6bTuv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015205; x=1710620005; i=w_armin@gmx.de; bh=2d/0SU8NbLGWulMjfdPpcnLpf+NbqM1N53gNgqn1xyI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=YAG6bTuvyvWfGisK9mOSO81VmSZhSGnFwEcZ2fYla9gXq3dXaiMkyF1HI2cqq4Ow Qbm8irYUwuCpfKBsz/jHY1Gp00NZK+SvjdME9UoVREPVeALJNVb9NEACPpSf+E7Tx fxjBANoClqzMV0CoDvpc/rSoI1WOqP5jWjSqaEK8ZdfJ3y0d4jbH8RV1iWHNBHe3m XyNvYHqs5Ofkw2ELiER7TBMIKANc4BhANC0TCFXwhyHD2p8akxFj8CKeIpOTPAZGN X4utR9ssqDsZqoW+Gm0Cm071Ru6T21DcD7vAxTOnKKGSKOKjukEqM4ozSThf+8pBG FbC0kELCwLttlSPEzw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Msq6M-1qpqzF0Jtg-00tEP8; Sat, 09 Mar 2024 21:13:25 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] ACPI: bus: Indicate support for _TFP thru _OSC Date: Sat, 9 Mar 2024 21:13:06 +0100 Message-Id: <20240309201310.7548-2-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240309201310.7548-1-W_Armin@gmx.de> References: <20240309201310.7548-1-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:oFfJiv3k9Mg6wPpoCWG1sFAJvVfJz247ZHr0ZfWO2Kt2Jt53fab etu9BtJi1Yp5TzTfedXRIdF4xJAzDjoZ9hVJMjtxLhiHtY0bIKsVDImTM3Mft4+lJ2THtyv 1Ke2bogI3KGwtZ6A6aCm2ngS+A9jUPku4zITOVN5cE7v1Hy3EHwmvA2qdHc9q8dhn2kqMKA nktLK8y8Zm+MbddXxHEIA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SmwexVi6t0I=;VZgFv8W930hm0tTirrBxsXFDHUK JGxp6VfmdBD8wHamUr/qG7t8Yv0Fdggh1cdOeBmAziZAV8y33JYi0nnNeuLGReEEQ1tua4OUS lcMwL9o6wkkcddXKpKWXZVw1AHiw5Y4Z4+zTBPo8YPfb2aqZz8wLl7x2nmVf6HESC1ID3/LAU 12Dbi+zcgZhzo01oQ9r9XSEbsMA+Cba6udJZJTOKJByichKdaRhEqi698qQBQYG0SHCb/wOV/ 0UNk13sSvpz4VLyJBaNsGgBLWvd6vJXWP8nxoI8XCxXG28zKQOabGGyufZjC20al2EfD+cmCt pmRiSAcdHzQpsYZWYqv+K+R04US4To1KVqS9FOgkeaUr+kAueDJhL9WE5flRSOyRWcOfvZDCe p5l9/BYixnjKSHvDtez2pTt+QG79JB8skGjfrOTEx+eu8VYdmCYRlTuEpfbmfy5VsCB/uVMsp ykXaYXX4l5wavBVrwQuaJSW0F46T9UcaQE6gZtXqhaaJ7ekazEhLWksVYYhcsIPmgp6d4tKmy IugTugyuoeKgVka8SEezt34RDSp/YkDE/EnMvOQcUz4SUiczdFLPBadsFhTGYlANwEP5s68ER xVH1Z4NIauV5fB2kEdaE3k/iW5isympRhMOgUU9adFRhuFUBcc+KS6Upp3POi5MwO3XNdlCo3 qCwpJmUQJb4GMMNW7RnhaHtRUfp83Mhy6z3aBQG2DjjKmnW7HQ3Kc6YmN62465haqdUQ5u5qw An9A7AtTWHyM5H3KiSts4ijC35A2iQ70vSKzv7+FqnGQykE5YF/e6FhtlAaBd2iwN+EpUNvH6 d3QP2oiQGLpSoOVbEOjxeXpbtl4rFXYM+3zix+uvOLA+E= The ACPI thermal driver already uses the _TPF ACPI method to retrieve precise sampling time values, but this is not reported thru _OSC. Fix this by setting bit 9 ("Fast Thermal Sampling support") when evaluating _OSC. Fixes: a2ee7581afd5 ("ACPI: thermal: Add Thermal fast Sampling Period (_TFP) support") Signed-off-by: Armin Wolf --- drivers/acpi/bus.c | 2 ++ include/linux/acpi.h | 1 + 2 files changed, 3 insertions(+) -- 2.39.2 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index d9fa730416f1..9c13a4e43fa8 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -316,6 +316,8 @@ static void acpi_bus_osc_negotiate_platform_control(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PAD_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_PROCESSOR)) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PPC_OST_SUPPORT; + if (IS_ENABLED(CONFIG_ACPI_THERMAL)) + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_FAST_THERMAL_SAMPLING_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index a170c389dd74..7727ebbc4219 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -573,6 +573,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); #define OSC_SB_CPCV2_SUPPORT 0x00000040 #define OSC_SB_PCLPI_SUPPORT 0x00000080 #define OSC_SB_OSLPI_SUPPORT 0x00000100 +#define OSC_SB_FAST_THERMAL_SAMPLING_SUPPORT 0x00000200 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 #define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000 #define OSC_SB_CPC_FLEXIBLE_ADR_SPACE 0x00004000 From patchwork Sat Mar 9 20:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 779461 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFE7B4EB47; Sat, 9 Mar 2024 20:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015214; cv=none; b=fdAVaSOgs9p56Tb4p+x8drxa8m97YN18/ygneUQ7KiH+hfoyjzMvGW30OLvtMD5995yNWqEZN8E/HtrAY5wvO6FPQ4XP3/e+zgS5UZcHcC03JWscOh2Rgp99U3N5dSA6yOWt4C4NWe5ANjqw7xusEmNoxGkY5240N0PHA/TUeY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015214; c=relaxed/simple; bh=XWLZ2rgpQpSaO4G+ifVKeg4eQCMQ6Yp+R6eWcIJepGE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XbxMrGud0vFqWdv+qgvbr/DJB7mbszgIHh9IV21tXiUaB4iH4E8mEkNc7qQwDhttwKQHLP/yoWcppZXp57hj+QI3unoGFmkEcxL9+0EQ3WAqOS/HKfCaNXBce3uNpTSBxZCIGI6aRJ7Tcv+2UhRTh4biEodTBoqQyHw8HL1wn8Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=qJTw/elu; arc=none smtp.client-ip=212.227.17.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="qJTw/elu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015206; x=1710620006; i=w_armin@gmx.de; bh=XWLZ2rgpQpSaO4G+ifVKeg4eQCMQ6Yp+R6eWcIJepGE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=qJTw/eluzR1HyXjWlOHnvPVAKmmU8mYeayVGCIeh/xKnyg1AG98epeCCiKuU554x 2oRmIeNQ7L7lLolBMUk0ZRwOxbd3zDCQsSORoFgxyaSN8u0scpvYtHQZobhwtiZfW aDut94vT2iz0bcnjSUO9ibC4pmKnIRX/qB0RtItuKdPhpUL+JISpkVD7uPWM6NmsL 9A0IhveTmIQB1+LTPrzy3dn2qOBM9vAbb2AN/wfDVd6XhiHCT27PsIjDsc/EZrqS4 AuUnWDvjP4S8V5JTfL/xB90QeCZkLB6PgfmB6tqi4tjC4f//mvnHc4Q3oY0GfDcfi PD7rvuYrctkP8sHKuA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M1Hdq-1rhPB61nsw-002lw8; Sat, 09 Mar 2024 21:13:26 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] ACPI: bus: Indicate support for more than 16 p-states thru _OSC Date: Sat, 9 Mar 2024 21:13:07 +0100 Message-Id: <20240309201310.7548-3-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240309201310.7548-1-W_Armin@gmx.de> References: <20240309201310.7548-1-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:0qO7cBk4t1+ClaeNpEJmIBUVYnAjaZTPk0gclbEcnPiP9mQ/SRv DlAsPnxwpipGYvU+bj6aAStZTWZroWS9xEqVhsdrQmIAyYzVRmOd+FEpxJ2cIHXualF12bu k60PGTe0JqzIwwhHjAMh/t0VXBN9ACwNrxwGKyOUzhom53r5Wa0VhWtXCzfCfv4MOQl5Z6H +S/JX6wLMQwYGDJBKW5Jw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:zQRWBD0d07Q=;SxaHJllzkx3QVfBVoRrhRAOXbXD /iWRV3Dg35t3OZ+FW3TgdIlz3fLqTO72miGOnW0D+XWgJbEPl6OOXjkUH/i1ZY/Vq6GCfTTpK 1KL+LC3A3do8N/K7Eb5QCLYZk/QJL6AK0jYOepmH5ZEqHPl1EqXbOok/uC+fSthKS5ixCiim/ 4wsusKEDPv/QGc0CLj7v1UpUp3/5tnJ+p9rfO4UnXYj9LjPMLENKzeUCrJMLL/EHoDeUP+XTY 91EPlEui6NL7mopkCk/7N+aQSczp/W3RHrTavZRUkK9w95KAo8I+lZrcFJTYkWG0WtEbMyjud qdaVLQV+lfPaiwcITMsVHNJYYDhrh0x0yyVC3pn5qyiKvldiQuNk2aiQsN6dmMPK1rTHqzi2k LZkWyx/bs2nu+M4/LIu909EIeUfuIZhTfODlnuFdoBXgbJ/YctmTHXlgULIlD2BL4LJulYvrG KmnmMGwRjZciPCK+cNFSSKaHpfeAP8CmE6muUh1Un9eA6Yx3IhPMO0Z1UKLsW2ZJjIJ4UsaT1 3I+lNrHhbqsUYJTt4FtQIClG/19d0vT1kwdaBuuS24C8S8hGeKNkBSyo5gxWHiJkYFnPCswEX y8CJOlHk8C4R457TkFpEJM0Ioy0Yl/eYV36TqvhkccPV5nm1mmG83tq6HGS0G/kCJzzKwY8jE jsXU4U6NTVN2qN9DrzFoEizB/UXw7mHJfySAm1s7A0jRbnwZx931IWqCO77yPPoHWvQFS8oJX SAgu+6mtvSu1XGaf83k69bMZWN1lSrhJ799Dz122b8IjKhf8Yf8rCoonQ3qs2jL6rbiJBzR9D 1jjFkgcAi51RDdtYPq+X2cdyxWY+jTPIhF0cqY11Bmc/8= The code responsible for parsing the available p-states should have no problems handling more than 16 p-states. Indicate this by setting bit 10 ("Greater Than 16 p-state support") when evaluating _OSC. Signed-off-by: Armin Wolf --- drivers/acpi/bus.c | 1 + include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+) -- 2.39.2 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 9c13a4e43fa8..d5b0e80dc48e 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -321,6 +321,7 @@ static void acpi_bus_osc_negotiate_platform_control(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_OVER_16_PSTATES_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_PRMT)) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_FFH)) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 7727ebbc4219..baa07b5a717f 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -574,6 +574,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_FAST_THERMAL_SAMPLING_SUPPORT 0x00000200 +#define OSC_SB_OVER_16_PSTATES_SUPPORT 0x00000400 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 #define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000 #define OSC_SB_CPC_FLEXIBLE_ADR_SPACE 0x00004000 From patchwork Sat Mar 9 20:13:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 779208 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E59C524AE; Sat, 9 Mar 2024 20:13:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015217; cv=none; b=H2bL5wJUx4KmBJoN1hwpLl63cuQoGfRVSFkvKXu6IHw8InQbMKFs1C/qhN64sZ1cBLz3sJBdxwtj4OeWrJ3kyvliOBkT3YE0RkqpPBtdHfZUthbsu3WkedOjDi7CQkcRk5qR/5nyLQC10qeFEh85xlrKdfPlCLUs6AGk11rROVc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015217; c=relaxed/simple; bh=h7As2GoZ0kc5nMuNQ2K/Q6VQcUC5YXNL19J+2NPAfT8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oU8XSpftwdakSSkcivUtNcM66rPykqnH7IDxspCWY7XiK2ol3abg6AWJ/lAItle58zV0lluSxxePXLH13NNpTV4ezFrtGgW4qgZmuUtZLByTJ/Tc6f6CsckkhLcTC6qyVr9ncb6hdbzHjILCsLIOL0T1gcJS6E4Rl7xQt6cZpEA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=Y0B69+Lr; arc=none smtp.client-ip=212.227.15.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="Y0B69+Lr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015209; x=1710620009; i=w_armin@gmx.de; bh=h7As2GoZ0kc5nMuNQ2K/Q6VQcUC5YXNL19J+2NPAfT8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=Y0B69+LrJqT450AJgDoNJ1lR57FIalwYDCBeks71ZbMurg6Vq+L4lA1HhPsFKvTN xj4cLgZoWv5sJGTNV+Zk4h6rPohJynXQnOzY76hJFp9Iya1hviRacFu4rAwBEsgrC q1FUf5l3HQQeNO4ljIG9J+GNosKp9GuhK25f5W2xfu8ZvNjcN6UHY+SmLvcU8z98N DZTy7ikihAFu9guX3VemAr81Ao7SZ57fcQaiA2sNUsadkBzY6Xy2pMmGCcuhtW8qw cycBGM3LWQiT5qpz464ve4FUWg8Vk8wQsC3V7aIAUDLarGhGKBfwIsjgYQjPJx8hA V3WpY9nujgFWG0uKdg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MXGrE-1rKIFT1ZGQ-00YgdU; Sat, 09 Mar 2024 21:13:29 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] ACPI: bus: Indicate support for the Generic Event Device thru _OSC Date: Sat, 9 Mar 2024 21:13:08 +0100 Message-Id: <20240309201310.7548-4-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240309201310.7548-1-W_Armin@gmx.de> References: <20240309201310.7548-1-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:VM6+TPnokB3vj8sl1fSmOpeuD2WdF77iFdD1I6kvwdhRdIIEHCe 7aQuyl5LrWwzDTfl36ttYa9wIQofVj2v9xw0JuiS3AAaWYHPYD1tqMTqh/p9T6kponFwDLD c457tU27/Rr4MTSM6rCMkHsku9ovYanaiDt6ZStMkXv1Bd2XHb/LEYbeoa+IIDVF1T5HEWa hWfrX83LAmbRZ9Td8ymdA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:qlVnVpWaAyw=;r7njhLsw6csIgn8JbulqJlfZoHq Bu02f3y2wImHuJwv9K5GaIkFs7j5Zx7hMlA9zX6R+ILHxuiEW11A86PapTo1NZ3QJrGEA3tsg rX1CJa4hf+MBUvAe57/8JS1o0+VmkKKMbig+LQRDVqsiZOViylKehaIJT2D7BYmk7sjUDQOGA BdjMyaeEy6NE4mZPJiMHf6No0mZafuqFP8G+YMUHHiXfrXPaAb7nKUZPn3XGfuuXwG14qlG+r K59pyrDiWk7fek/gDDP6kR+u4fWzoFNMuMvBCZ6Op5i8zq27ab4GvYU2BAfS+0RnOwEu1Bpvh Kv7EQ1MRRdultsUqQrGkffTndU/BjW7VuhBYdrlTanUaT+7jXRYAeon6Zvv0Ug8FsEOVMCfwz K9pHdPI2nGfEDIIdCHMkr+EpU4JJoK/cFaUwIQ2e5eOHHOtWS/49XYiRSHf+iQAhXxhZzfnAw j6+QUfym/WXh/WXkiwAFEcpX4qBKagTQ4HD0fP02sLnYsax2b0ezIBVfdV9DtIls1i+iRUVtH A6oNLHyN9FYVwr04X6QEjrVaad8FUZUrFHLwLobMkJShC/1exHNwSnLoMuAfE5XrIz+UyAMJG E+fqX/y+b2f1BQpjuxV1q75wiDygvOUi+erH4dLi/CYZnhcuUnE8yOu/HjDZc4aIyGQ0hyvzO OaQ7v+kWpG/Vj0A1F2TtGNByl1X9OsG9GopfWyQvxLrOWYb2BCLuOpdH70jA9fMtmN4u37PFK uW3GEakFnPR+swdPfd9+lqa4mdQvyJISQqAiwA6530H47GwPYV5H1Ub9FowptsA7l9qvcOR9k qy7sdCXfgKE4r426/k6suAq4BglFn/fKminTYgubksEcQ= A device driver for the Generic Event Device (ACPI0013) already exists for quite some time, but support for it was never reported thru _OSC. Fix this by setting bit 11 ("Generic Event Device support") when evaluating _OSC. Fixes: 3db80c230da1 ("ACPI: implement Generic Event Device") Signed-off-by: Armin Wolf --- drivers/acpi/bus.c | 1 + include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+) -- 2.39.2 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index d5b0e80dc48e..0c48b603098a 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -322,6 +322,7 @@ static void acpi_bus_osc_negotiate_platform_control(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_OVER_16_PSTATES_SUPPORT; + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GED_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_PRMT)) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_FFH)) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index baa07b5a717f..aa26259a28b8 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -575,6 +575,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); #define OSC_SB_OSLPI_SUPPORT 0x00000100 #define OSC_SB_FAST_THERMAL_SAMPLING_SUPPORT 0x00000200 #define OSC_SB_OVER_16_PSTATES_SUPPORT 0x00000400 +#define OSC_SB_GED_SUPPORT 0x00000800 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 #define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000 #define OSC_SB_CPC_FLEXIBLE_ADR_SPACE 0x00004000 From patchwork Sat Mar 9 20:13:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 779460 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67510535D0; Sat, 9 Mar 2024 20:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015219; cv=none; b=HwXQbv5G2YlrxHhfrfutQ6UMiFPUllSL5plx9Q2EF4OyrOVPlfa/XJrbB7EA4EJpEtep3GQL+4JSwtrD+wcKnaUbcyH8jwFLCIc6O+NBI5R8dPWphhMrPK2nqmZi4P3CpR97C6EcKVJxOdIBtFK3bLLIY0wRFdufSt/7n1x/nVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015219; c=relaxed/simple; bh=MpfZeJ7zuV5JXnUgnnz7R8bvCTHFOUpWMvKtpgsYw5I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZMDm52i4B8JhiwtezN0cx77Wp2DPcmQUNIoFUNjITVu8j6HZIFwgRq0NycrqWgNVY4lbtVzotvOYsflWMVfFj1vow6o7uNKCVjwwlU+JTVjIND4cgsERDYS+QTuUn/Y6Z7JMrAh8D8SnqUoYT5bThxvA8SMVbUo+F8OubbTDjHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=QWpZZNQ3; arc=none smtp.client-ip=212.227.15.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="QWpZZNQ3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015211; x=1710620011; i=w_armin@gmx.de; bh=MpfZeJ7zuV5JXnUgnnz7R8bvCTHFOUpWMvKtpgsYw5I=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=QWpZZNQ3hk1qi3jEA4zD58ruez08RwD6yZtWVzV3HAMkNLdS0oFMj/2NP7461IKF 0KowCnA3gvH4EPzC74NVG4pCHdhHqhz2BDcAlWyl2qJ52iyrlBmBrLDUhy1HE9ieY 7tpH6BUarun+bBf5vyN+OunlX70xkADk0Xxv4pxvWL3TtdROH8urGvoQXXredCYkw D83C2iEyzKSnBehbky+toRTpYnKVHuACawFVuvzIbFOBxs8aGeBLt7XUV58fpWM98 /W3FQ80EXAGbJmMGGGEgpYUEekGA3eBYc7aO1ZNMiMZq6BLX3+9FHkVklf6GnxtLQ VF+cZhH7ZcZt4MkvEA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MEFvj-1rZSoh3tUT-00AEKj; Sat, 09 Mar 2024 21:13:30 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] ACPI: Fix Generic Initiator Affinity _OSC bit Date: Sat, 9 Mar 2024 21:13:09 +0100 Message-Id: <20240309201310.7548-5-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240309201310.7548-1-W_Armin@gmx.de> References: <20240309201310.7548-1-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:s99o/eP5YArAw/9FdlxQ5CUdxOk/3Pr4sobKxN0NSx/0WnzJqDn k6VjZ22EI9FSWmrLxqrg2eBAzER/SaKJqTvn4lpfJJf0Ox+eEEfi/4gmu3RDJuw2M+9m23O mpxP2MY+WgX/w7Bvx1hmwnPZJMWZD/jMax+pl8xyatMs/NQGOz0f4F5U1Fz2vVeLkmQZCaj 2Wbek0lfgDd/V0A2UhGHw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:qb/aEQnxtgw=;HKCqubTyv2xSVrEJTrPsEdbQK6b ZKVJsZs/HWBjfKcT2eFFiz5Og+Z7GZ2huK8LKWj7z1270lO4L4L7TvJGZrXKChPhvfNRmcgGf ahAvRECxTRRyASiVI4XYqNOQNrDzIAW4pECxVFJMjzaP9q1YDIKrPCe+Yl1vfqLHWKAcNKisZ 3Z0fLZI48wOyWf1CfWK40k7GB1lrqAqGUn3d3s2AiIrEA5wJfgh1zdcK+xjEoYgaWUYZILzsP +LTy2xydfz7eAguCbeE++uwqiLqIaj//BvdIeBBPEcPjoy1n2Qm1vt3iq3n6SYTyqLLMOgYF6 qUrefsmtYL4BAkF25Kactic2C1J8wbNGqFPM8KzoMSoE//J6tPsDNUPv265/UkuO+AmNXEHs9 vGYnghvRpRHL4kHJVXxBOnsPrFl4AJslZRP8/yvIRsA2tE+4qViq44tzDCExjyF5mLLe9XAW/ sOPHQRs62OW1oPw+HQHxDS+tPPuL3L2LgU/cfy9GByhg/WE6Ib8/CpkGYeRPBDy22tkQmfQNS +K3J4LbLsAyA5Ecte162g1rjiozb+9tY9KS2LwdiJkr8hCIzAsCsp85+t9bRVwSZgXnOLoSNG Q0FqdXDFXLDVQyB5mdB0K/CT8M/p5MCOsHZ4bpd0G8wegEs3EMpmKl+0hnv1atiSKXv3jORLG p2qgvCCt7UjPzqKWrESUvXYC78p9O2Ot40F2bkW8YUnToI4wnLLwqKVarclGrRx1pXDDZPq32 uuKCddr624vL0EfckL0ZcrJJUd4rITeR6aeKOn+abWafgFQUJBuKBDI10VNyGipXQ6t3ZtxD9 kPeicakPL3sQjmB9EUp099sDhT18TuRrM36B9NOCR0fjU= The ACPI spec says bit 17 should be used to indicate support for Generic Initiator Affinity Structure in SRAT, but we currently set bit 13 ("Interrupt ResourceSource support"). Fix this by actually setting bit 17 when evaluating _OSC. Fixes: 01aabca2fd54 ("ACPI: Let ACPI know we support Generic Initiator Affinity Structures") Signed-off-by: Armin Wolf --- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.39.2 diff --git a/include/linux/acpi.h b/include/linux/acpi.h index aa26259a28b8..b99c83968a9d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -577,8 +577,8 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); #define OSC_SB_OVER_16_PSTATES_SUPPORT 0x00000400 #define OSC_SB_GED_SUPPORT 0x00000800 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 -#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00002000 #define OSC_SB_CPC_FLEXIBLE_ADR_SPACE 0x00004000 +#define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00020000 #define OSC_SB_NATIVE_USB4_SUPPORT 0x00040000 #define OSC_SB_PRM_SUPPORT 0x00200000 #define OSC_SB_FFH_OPR_SUPPORT 0x00400000 From patchwork Sat Mar 9 20:13:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 779207 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A755753E27; Sat, 9 Mar 2024 20:13:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015220; cv=none; b=RLQPHpdrqzpX7pGs2cR6/E5jKLtesb8MhQLoLDLtSH7+NXuFJjcPX4SLUoCdnOjHEKFPipvBQnhefZxkiD59n2HYNHxmTDFsjiCsKEa+BnmYH8SRF54W68vo3cuSsPxPq6zdzNSSjFyznMjhTIzWfs0hH5lkuQeXSIpEo7AJz+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015220; c=relaxed/simple; bh=ahUYjYw8kA/+Bjg2ABTW2gzExb4Nrutf13nNb+pttWs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=otgYrAhO4+74i/BHADajgnWZuyGPpB5ZIakaJmbfWGyEC54CmT8ySEWJe2sQIbOnUKNb8sjECf1Nt75VmXVDYOe/kuQNATZ32X3bhwqLQO5g+Lvet1YbmGIzzDPIZTFNtyXGZVdOKNlPNJYfb1NB/bFpBtyDjRgNQYKQ9yLi2Ks= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b=fiU1ZcuW; arc=none smtp.client-ip=212.227.17.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=w_armin@gmx.de header.b="fiU1ZcuW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015213; x=1710620013; i=w_armin@gmx.de; bh=ahUYjYw8kA/+Bjg2ABTW2gzExb4Nrutf13nNb+pttWs=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=fiU1ZcuWSgJQiDpNOxws8xnYWx5vZLga5v+tmHcajhBqhS0eCoiH6dRwXGg3r0kB kMcEI4r5EbKbwgBNoIuT0MnDfUsNFFGt9sVFm9QCl/JKGKGR1Fhcxv2RzbPphxd5u QeraAwCE20iYT0CqNv00KyfEdoKS0mj/y6XCoLVKuSAukdLGoTuPBpE9LlixctZlc x+PKY5HgMiBbB6TU0z3OLZborhTYlIhqgBqBHhtlJM1wu25z+R3o1rKkA73Qes7kT 5f/6vq9c/pwqY/+ylzhmiMY+RF4ulDNFkkyk6tHUBpOaHQoABfJxUC68kSQ//lQFQ QFlMSdbJEfl/eSJQZg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MuUnK-1qsaoI3TUY-00rZzg; Sat, 09 Mar 2024 21:13:32 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ACPI: bus: Indicate support for IRQ ResourceSource thru _OSC Date: Sat, 9 Mar 2024 21:13:10 +0100 Message-Id: <20240309201310.7548-6-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240309201310.7548-1-W_Armin@gmx.de> References: <20240309201310.7548-1-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:ajxKF2sRDtuGSq8Evx8/nuKPIB5CoSQT3HMEoEAQCWoVsfKVSy7 3YvlNHTq6SHsoesZVzLEVXU5qVskul9g4jiKm5jlWxm0TTYDptHKrFWkf97dZZf0LQjCBo+ eoT/Giaoq0UhJNBoCg4hFo1hRQAtk+7kUN44eT7pxGQ5b2D54f9LSk8Z8Tc5XqyoFB8DQIi gef8genRqLdtuIRTxU/LQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:HCs6odhmgeA=;jlEKTmUZ4Hc0aXpEVkEpL4andRq hfCxjwGzEj4ezmK4WbIQjlswmlFyE1SQIltDLDL3RZy0wGjOCdG/D6SFiVd/WllhUkZpKXVx5 D1lRBLY7tDwBh1bWSxZV53UFtZqDQtAVt0x/MRTzu/M4+5o/FQyddHAB9ZcjAvCNNY7nJV+GF OtBfENeereB/4jIa77hxpgE6SgLuItmH0qEjbbJ+Vh65XnwEeBT6LsgRI1w5mc7opdYlmsaCE DizL5iCvsJfY7K5mqcMvvWWCyWtyxVuhda+K8lqSW5iS4WriaIzXAN6GYyezsiUHJBnm2qnvY ouB+FNZok2DsNN085Vry6lvA7kdRmIwNSTOIRRa7szbMT+ZxH06PLs7CTlxgCde6BKepORpLw nvaAaVx+yyjXeV/P+TjARKl5kFN+BdBq49U+FjfkSkaMUzptKaFuuknpT0sKKzN5obRkGd49C CeGBHl6Z1g6ne3FO/KNNjwBNQBxcJ5SRNZRjmkziwIC4JhokFHoAYYSlEwZEtpU5ykhe6uhIx 3c7mPQfSV5XpfYnu+b9ezH9f7RXyFBQNvGX2X49W9zkTxOOUiYmx1jXfgV1kObQQ972gLDiNo C/cVrmvNdAuN7O+TTfkA8ud3AiXm8e89pZHcVZracTZhPnH32eCLa5+YpcAq4YFDk+EXq87ez 8yInDCxU4kMohes4udtIj2T/Mj63I1dx1+AYqPSGVOA2nMtqQZPinTBnwUJ2JuNJKysSZVqNr 2R/i1eyASfw8aXGnbXczHFl2p4ABzdow0DaGEBxAna1//J5su01pLZJrNU6q+rOhT5MjBQrdf Kcbv4JD8pYw9f2v6dcX2/LoVLhs3yIpqxzBItbu7RpuBI= The ACPI IRQ mapping code supports parsing of ResourceSource, but this is not reported thru _OSC. Fix this by setting bit 13 ("Interrupt ResourceSource support") when evaluating _OSC. Fixes: d44fa3d46079 ("ACPI: Add support for ResourceSource/IRQ domain mapping") Signed-off-by: Armin Wolf --- drivers/acpi/bus.c | 1 + include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+) -- 2.39.2 diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 0c48b603098a..a87b10eef77d 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -323,6 +323,7 @@ static void acpi_bus_osc_negotiate_platform_control(void) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_OVER_16_PSTATES_SUPPORT; capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_GED_SUPPORT; + capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_IRQ_RESOURCE_SOURCE_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_PRMT)) capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PRM_SUPPORT; if (IS_ENABLED(CONFIG_ACPI_FFH)) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index b99c83968a9d..d62be29cf7a6 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -577,6 +577,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); #define OSC_SB_OVER_16_PSTATES_SUPPORT 0x00000400 #define OSC_SB_GED_SUPPORT 0x00000800 #define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000 +#define OSC_SB_IRQ_RESOURCE_SOURCE_SUPPORT 0x00002000 #define OSC_SB_CPC_FLEXIBLE_ADR_SPACE 0x00004000 #define OSC_SB_GENERIC_INITIATOR_SUPPORT 0x00020000 #define OSC_SB_NATIVE_USB4_SUPPORT 0x00040000