From patchwork Thu Nov 10 13:45:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13038808 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 738D6C433FE for ; Thu, 10 Nov 2022 13:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cEYPpa2QJ0Ls66fRgmDvIr2LiH/3/UxRLGGWAp/Qex8=; b=D4ATyXrZfgneux Z7N0I0J0c5NoRGKO5E35sz52bjfy9/mhL8HQ/RA05r+JW6kS4GMYv/VFSVOoDlWWPcYwuEsSON9ed 2v2p0jUhHMLMaBWKMblcuU/oHWO5Pylmh3l+sULRBVmK17rUimhcUmzExzt16esWqSLLH9NncT2Xk lpAb0YhhH2VB2Zk23GYqjXSC7DQugkqIYDprIbaJlkGT2VR1DdvcwaO45jQIt2YCiOa80v1z9glWF Fd49Z7IiwdO1q8hOUtb+5iEw4oBrd3yiuT4nqAehlExBVDzKghWD1P4t8Mm2BYaNbRkWjLVcuAPax 8fTsuiSs7sBP6JR3w6rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot7rq-00670m-Mj; Thu, 10 Nov 2022 13:45:18 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot7rn-0066x7-KO for linux-arm-kernel@lists.infradead.org; Thu, 10 Nov 2022 13:45:17 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC2BF1FB; Thu, 10 Nov 2022 05:45:14 -0800 (PST) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C0C9A3F703; Thu, 10 Nov 2022 05:45:07 -0800 (PST) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: Sudeep Holla , "Rafael J . Wysocki" , Will Deacon , Catalin Marinas Subject: [PATCH v2 0/2] ACPI: Implement FFH OpRegion support Date: Thu, 10 Nov 2022 13:45:03 +0000 Message-Id: <20221110134505.1375955-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_054515_761542_C761292E X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This short series adds supports for ACPI Fixed Function Hardware(FFH) based Opregion that is being added to ACPI v6.5 The ACPICA support for the same is now merged and imported into linux-next via PM tree. The first patch adds a generic FFH OpRegion handler. Since handling of FFH OpRegion is very platform and the generic handlers just call the platform/ architecture specific callbacks for all the work. The last/second patch adds the ARM64 specific callback which handles FFH OpRegion using arch specific SMC/HVC instructions using SMCCC. The specification can be found at [1]. [1] https://developer.arm.com/docs/den0048/latest Sudeep Holla (2): ACPI: Implement a generic FFH Opregion handler arm64: Add architecture specific ACPI FFH Opregion callbacks arch/arm64/kernel/acpi.c | 106 +++++++++++++++++++++++++++++++++++++++ drivers/acpi/Kconfig | 10 ++++ drivers/acpi/Makefile | 1 + drivers/acpi/acpi_ffh.c | 55 ++++++++++++++++++++ drivers/acpi/bus.c | 6 +++ include/linux/acpi.h | 7 +++ 6 files changed, 185 insertions(+) create mode 100644 drivers/acpi/acpi_ffh.c