From patchwork Thu Jan 11 09:30:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 18947 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1329068dyi; Thu, 11 Jan 2024 01:31:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGe4FocuLw9FL7MKA3hrc12rvCIy3cJ2l+UE2D2Uaj8YCViR0zB6bxhTrPxXVjoCX3Vrnp7 X-Received: by 2002:a17:906:409:b0:a28:b79a:37a0 with SMTP id d9-20020a170906040900b00a28b79a37a0mr314852eja.222.1704965499042; Thu, 11 Jan 2024 01:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704965499; cv=none; d=google.com; s=arc-20160816; b=aBkSZ1z1g048krjSkxxRegCJhoNdXzv/Qttdgy80ZEibSmAS6WNQsVmB+qHxY2ztdK vcMTqNbLfYeChMEh3rwgx2c0jzlj2P/G4CBvWraAOzBGXNUSHeb38I6Ibhw3HWbBohAW kfXY9WbCOIgnEviEgk7zuKohuJ359u4auoz5/a3OJMFICaEjDaMAv96dTRRfFHftyOe1 JgIAtYVU6McehC4z4bY3tLZTzSLizdz6vNG+Hf8WKZRJSPDtrX86YRL4mXKKwnCGq/LL PYBJYeD7Xz2WrAkTho0LGztu1gs+PVLcyYnhY9VCmbmikolYEhr+nZMq/y9BP6qqJqmN kOmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0u2ZqaYTukKS/ErfsgIWqLBT0BekDb7tY/EUWordXcQ=; fh=Ht2C34ikojivmsjwXjSqFBDmzjHdD6yX68Xa6Pv6fTI=; b=lRZDB/sgppkj6G1JyY2IkE8joY0juSo873mtoXLyd3LjiJject6VO9fN5jO0J22+3F mW7J7N/6VTwlEXz59Tf31tqltmQ5rm45K1ZkGrp8eAhe0gHy+J0MojcJR5RmS16TdDR/ pZuFLYtmhAUMCM/Rc2xF1hZakl+70u18L7LDWSNdvneKKZBMEfiE02m2+KM015CNsxfE Puq9/+bUU2t69tfyznyequP0Z7jLSskKMm4eTIZI1bNvoQtr2G/Dar0EdPr4zY5skGS3 U0eZP6UqOnUsh4AhDGFkTrplKk1KbMrr6GgcwXvjpjHpbhKb/Dq6lSB4wspY9UvoFFAy UJCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=nystDnn5; spf=pass (google.com: domain of linux-kernel+bounces-23315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23315-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id os25-20020a170906af7900b00a2be163c60dsi327589ejb.118.2024.01.11.01.31.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 01:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=nystDnn5; spf=pass (google.com: domain of linux-kernel+bounces-23315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23315-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A30331F2180D for ; Thu, 11 Jan 2024 09:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D32E312E5B; Thu, 11 Jan 2024 09:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="nystDnn5" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CAD510A2F for ; Thu, 11 Jan 2024 09:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1d3e8a51e6bso40924875ad.3 for ; Thu, 11 Jan 2024 01:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704965466; x=1705570266; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0u2ZqaYTukKS/ErfsgIWqLBT0BekDb7tY/EUWordXcQ=; b=nystDnn5QuSvip3d60xSy0rBgMQrJnJMPbGIEhWktq1Bur8GW0CDK/UMU/9o1ZyZjM iFzPBHBFRPzOx3MGYetwX68u3Ohy5Y/H5BqOj677k0f0Kv+2YOvaVDffmPxGMkTIxv4U Z9hOP9Cu5eI32TZ7Sd0f0UVQ5sGRrSQR10M3n5oj2qAXvQy3GxgON3vpWgdUb+P5V5Ez m00Ps2TfSrOcMkSl4wRcrFBXf3YUvUOUjqYPHxIq7R8D6cH+sSSQ8xWV3qc92lJCJWUJ x32//+koXUakHI39WmiQp7ZUToznzUL382cRvaoTaTFAvQUbHH9MEdDzHBRn/t8RX4BK TroQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704965466; x=1705570266; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0u2ZqaYTukKS/ErfsgIWqLBT0BekDb7tY/EUWordXcQ=; b=gy2CsVv5z+JWw77ba7SVDpxEgzi0HcIW9H4/04H6/0atPPjlz9IpdKrvHatpb3aK0O M1VX+9q8izruAwhLq7C8hhGa0xMBSMZ/6/QWH0Q6PQho1DSBEnnm+2nIiUSCvWYGXrq3 UMoUzACCEtxurd3+mP80nAcfFjyD0/HGx6qR2Ja5ijCQKiBoh+I311m9zm4MnUK3Iqms XFTsWc+HNmXHUZskW8axv+vgsiK6q7/+OxDQ6g3mcsuAOH4jsoFMVcsK2dN5tvwKGnYT SP3aa5wsdWXp4MPzCWgWjfEerQPZEmx+2skg5wJ2GUsUidoUCkiT9daI9ubUo1LwZCpv dL8Q== X-Gm-Message-State: AOJu0YwE93Gozb9lV65rx15d5PNZ7nxrkMFEvhEmvBMvrumGpYMFpNvS eaNwwrn/d9k+T+HCKIDR8vNxBY1frdkZAA== X-Received: by 2002:a17:902:bb16:b0:1d4:e208:9b0 with SMTP id im22-20020a170902bb1600b001d4e20809b0mr880703plb.44.1704965466610; Thu, 11 Jan 2024 01:31:06 -0800 (PST) Received: from sunil-laptop.. ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id jd2-20020a170903260200b001d4a7cf0673sm730566plb.117.2024.01.11.01.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 01:31:06 -0800 (PST) From: Sunil V L To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org Cc: "Rafael J . Wysocki" , Len Brown , Anup Patel , Daniel Lezcano , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Andrew Jones , Atish Kumar Patra , Sunil V L Subject: [PATCH -next 0/2] RISC-V: ACPI: Add LPI support Date: Thu, 11 Jan 2024 15:00:56 +0530 Message-Id: <20240111093058.121838-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787785903084310888 X-GMAIL-MSGID: 1787785903084310888 This series adds support for Low Power Idle (LPI) on ACPI based platforms. LPI is described in the ACPI spec [1]. RISC-V FFH spec required to enable this is available at [2]. [1] - https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html#lpi-low-power-idle-states [2] - https://github.com/riscv-non-isa/riscv-acpi-ffh/releases/download/v/riscv-ffh.pdf Sunil V L (2): ACPI: Enable ACPI_PROCESSOR for RISC-V cpuidle: RISC-V: Add ACPI LPI support drivers/acpi/Kconfig | 2 +- drivers/cpuidle/cpuidle-riscv-sbi.c | 78 +++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-)