From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (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 58C4A1C0F for ; Thu, 15 Feb 2024 04:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707971835; cv=none; b=P/tC5T5KA6h714yC3rERtZTOYLYOWjjLtREHtnFnKV9pLvE5kcqmCwltbmol+UlnaVJpahPDf79Z3OYVkctdpT/5RYsFDQXF9VOJpiGxOhCHLle1x/N2Qf0NkzT9hwkbjcqIe2fJe8LTu6FK861Oz/D08O+QM4wmZ1WmLkZNovM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707971835; c=relaxed/simple; bh=hWjmYkC4Y2k+DXmyyldp64dBFjzl/FP6Z68rFyr4mCE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SFMca7Tiu6eN480LZhgwkb+LYRgdZ+2oXvvnQ38bZGjudRq3TLah+DSawKbrx/4Fanuf26G9MRID2ukiI2ZRep5bJ8op7F0UwjMBD+RiCjsZJOA4pgR3PKp8b6GZy5+FFu6/DbzMwpYUv5VxaPwRh1semOV2pZkExNBOJkEEbUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=aKNQTR2l; arc=none smtp.client-ip=209.85.210.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="aKNQTR2l" Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6e2df04c812so212086a34.3 for ; Wed, 14 Feb 2024 20:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1707971832; x=1708576632; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eNxJDjUCrN6LyBUSVQQs/vfYX3KHuLasmPCTnAxXhZ0=; b=aKNQTR2l31qk4unC6v3bbtL+ygY4o8K9Ce2Gc5gt+5P9e+lTTKdsNVCr4k7USfA4HD +iqCvRsNOGcbqDeE40HKpDqBPsggEbPTeBDg9bNgtHm4EifcGiw9kO17F0v+9eZB0Tns hNWq/8BO4FibtOWUohHGG2S5J4RNf24E7//hvzb8YFUupElNDIbv2wA3sAjPRXs50z6w O2hZdzLRbgBgY97JNuu9anS9EbGygOgJxGvkjxazmt/GgAdcLhDP9o16XI9Y20hl8sN3 UjnsVukozZ0zVQ9q6Igio9UMMVw2iuFvhGCGEXGuSQ8aT5TSIsZe/c27mk+/CTnn0z9+ DxhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707971832; x=1708576632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eNxJDjUCrN6LyBUSVQQs/vfYX3KHuLasmPCTnAxXhZ0=; b=UPCnRmtj4zqJbPxdSYC2dHNEyMAA2dcs16d6zNpLFeten4fqsRMxiYOMIBghosnQkG mybl5bN7UfhGvBIjxay0GZ9+lSWbtdzxcGj0nhJGjQT1cE+x33CnHSrE6bm3qa5ggCGL stNCU4YXXOwcv7hlRs2UuHuPghtYzciEuAG6RheWD0jB4S6xYcGI20cn5h73NDw7y8pX HcecjFfcfdUGhOdWKeVYIztUY9tImq9XsP3tLZJy6cJFGumLaIoFJkDH0Y8YG91nOyGD BuzInU0AlMbKVPWEYeEsTvkd7y+dpLmdzCgV7WD0/C14tGUZtPmdY/sXvsvs7NU6xUcl BT0A== X-Gm-Message-State: AOJu0Yzb+vbD+0ix8/H3+DzzLpOf85rqtq6ChN0xFu1Z/Mj89N9+O3Eg ptLqBrUccJ9kkLKFyWvBFGmgCnM6Y89Hgk8fGMpHQvOgKrwUCmXG0r/sLmXXPWG7XRMNc0BO/MV 6eLc= X-Google-Smtp-Source: AGHT+IF6VXW2Q1PC6MlD1H84uMFhuVJdYWGUe07iOM0/TV77GrZ+nJHBLkmineD4719XAI9et/fv0Q== X-Received: by 2002:a9d:7985:0:b0:6e4:22b4:72ef with SMTP id h5-20020a9d7985000000b006e422b472efmr757348otm.5.1707971832463; Wed, 14 Feb 2024 20:37:12 -0800 (PST) Received: from sunil-laptop ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id h25-20020a9d61d9000000b006dbfafc2049sm103050otk.30.2024.02.14.20.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 20:37:12 -0800 (PST) Date: Thu, 15 Feb 2024 10:07:03 +0530 From: Sunil V L To: linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: "Rafael J . Wysocki" , Pavel Machek , Paul Walmsley , Palmer Dabbelt , Albert Ou , Len Brown , Anup Patel , Daniel Lezcano , Andrew Jones , Conor Dooley , Atish Kumar Patra Subject: Re: [PATCH v3 -next 0/3] RISC-V: ACPI: Add LPI support Message-ID: References: <20240118062930.245937-1-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118062930.245937-1-sunilvl@ventanamicro.com> Hi Rafel, On Thu, Jan 18, 2024 at 11:59:27AM +0530, Sunil V L wrote: > 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 > Could you please take a look at this series also and provide ACK if looks fine? Thanks, Sunil > Changes since v2: > 1) Added "riscv_" prefix for functions made non static (Feedback from Drew) > 2) Added RB tags from Drew. > > Changes since v1: > 1) Reordered the commits such that the patch which enables > ACPI_PROCESSOR is the last one in the series. > 2) Used GENMASK and other changes to address Drew's comments. > 3) Moved common functions required by both DT and ACPI based cpuidle > drivers from the DT driver to common arch/riscv/suspend.c. > 4) ACPI cpuidle driver is added under drivers/acpi/riscv > 5) Rebased to latest for-next branch of linux-riscv. > > > Sunil V L (3): > cpuidle: RISC-V: Move few functions to arch/riscv > ACPI: RISC-V: Add LPI driver > ACPI: Enable ACPI_PROCESSOR for RISC-V > > arch/riscv/include/asm/suspend.h | 3 ++ > arch/riscv/kernel/suspend.c | 49 +++++++++++++++++ > drivers/acpi/Kconfig | 2 +- > drivers/acpi/riscv/Makefile | 3 +- > drivers/acpi/riscv/cpuidle.c | 81 +++++++++++++++++++++++++++++ > drivers/cpuidle/cpuidle-riscv-sbi.c | 49 ++--------------- > 6 files changed, 141 insertions(+), 46 deletions(-) > create mode 100644 drivers/acpi/riscv/cpuidle.c > > -- > 2.34.1 >