From patchwork Sat Mar 9 20:13:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 13587918 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 082E34D9EC; Sat, 9 Mar 2024 20:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015212; cv=none; b=DiEizPQD1CI+VzZafhonK8G/lecAqli9jyyzoYfgb4N3QJh9E95DrNLP6ZL9N15Q8dP7+chf5YlQg47jcfssc+deCdE7h0VNo3kMM1DCJ0g4UnG8FqHaGA03fhK1/z681wEe4RE/ujqX8r2FpghnYP3bkxVcea+8FrZCTZEoCK4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710015212; c=relaxed/simple; bh=DDC1CBqfrgPh109rJsO3aoCX8S+FPW2MUiqgY2AF9rM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qS1ifmHMv1HHhtfmx73h8Y/J2iXhoPoseEpZp9xKavthNPyMwCju/SSIGlSn7EAGItFaxBXdTH1ZNRWHl7TAx1CZMUno6ygTMIbkCgUMnPDMHeUZ0D9wizv3uMunckQY2TdBYLRtGzD+6OQDQa9D/v5oCxhikRd7aoRoYmXYIL8= 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=GcELflsL; arc=none smtp.client-ip=212.227.17.20 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="GcELflsL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1710015203; x=1710620003; i=w_armin@gmx.de; bh=DDC1CBqfrgPh109rJsO3aoCX8S+FPW2MUiqgY2AF9rM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=GcELflsLOy5f67IKtlHLrqz3LZ4eyiVuk32fZJQjgWCfQAPRG53HNIDlwzdVvoic o9FeByXfZiX80d+nUvLN3iLtM86wwYIBIWQgr1q2+BTzrMZ8qEUwsOu04SmDnWIi8 VbUEPdy8me30uj9z1A5KG/7T8bw3ZnDGeMT/QE248EV6F9xEqTBO7yfoCTHIkZwaW U1XT8WTTvpB+F0RWkr2lc/W82L0cT3hAJjXA+4QgN6zyU7ek4QCXSrkHwKCH9Eo2Z YYpIeIu+Tv0JawfL5ZYkuN4FzsDEpBjumkm+mjsz9BquumJ+ela/8FbRXyRv6yjb4 vPybz+7nOno14OVW3Q== 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 1MHGCu-1rehTn1hdQ-00DFGl; Sat, 09 Mar 2024 21:13:23 +0100 From: Armin Wolf To: rafael@kernel.org, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] ACPI: bus: _OSC fixes Date: Sat, 9 Mar 2024 21:13:05 +0100 Message-Id: <20240309201310.7548-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 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:hcAHVwh3puWdFWCz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Gzb+WAsWke+P6YzWTuZ5wdkK2CR+y77s+q/wXIhooaeis= This patch series fixes the handling of various ACPI features bits when evaluating _OSC. The first three patches fix the reporting of various features supported by the kernel, while the fourth patch corrects the feature bit used to indicate support for the "Generic Initiator Affinity" in SRAT. The last patch fixes the reporting of IRQ ResourceSource support. Unlike the other feature bits, the ACPI specification states that this feature bit might be used by the ACPI firmware to indicate whether or not it supports the usage of IRQ ResourceSource: "If not set, the OS may choose to ignore the ResourceSource parameter in the extended interrupt descriptor." Since the code responsible for parsing IRQ ResourceSource already checks if ResourceSource is present, i assumed that we can omit taking this into account. All patches where tested on a Asus Prime B650-Plus and a Dell Inspiron 3505. Armin Wolf (5): ACPI: bus: Indicate support for _TFP thru _OSC ACPI: bus: Indicate support for more than 16 p-states thru _OSC ACPI: bus: Indicate support for the Generic Event Device thru _OSC ACPI: Fix Generic Initiator Affinity _OSC bit ACPI: bus: Indicate support for IRQ ResourceSource thru _OSC drivers/acpi/bus.c | 5 +++++ include/linux/acpi.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) --- 2.39.2