Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp570587lqb; Thu, 14 Mar 2024 22:53:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9z+mBFS5iHWbI2HBe0dvkPq2utYo98rHtsUmzgvI0hcVbeB91FL8MkAEyPYOcd6cLUSPxt5HOEpfPOUN0P3TQbIZ4dor7O8LPpIzKyQ== X-Google-Smtp-Source: AGHT+IHqR4kTQ/Dys9mmn5DlefwP1DcO7UJ+omyFh6hlT0N2YB8hEsqBMfuyxTMJYTIOMkwKTo7D X-Received: by 2002:a17:906:e286:b0:a46:220b:25b4 with SMTP id gg6-20020a170906e28600b00a46220b25b4mr1923581ejb.11.1710482025463; Thu, 14 Mar 2024 22:53:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710482025; cv=pass; d=google.com; s=arc-20160816; b=JUEGFTWOZjEvhymPUfWQ7OH6N4NI9hEeV0MBku51/+o3PJwJglsZpiGfkGAKjSJQhS YDff1eIu4SquwOPvA1zySWUOsT5yxZeM6j9lWGM8AEcPPO+SI5+JctOqJvL1NwJD98eD ofUkeLwiYq+L49jlVlNBxrrqujNNVi5qOO5Tad1f6TxfDcdL+ycDvgebrvxWMQASanzT c1z0nTowMLnaLePdWAQMitessyc4w+Tu1Xak3jRIpFIt5ve8HrlKvIs1/phs9T0k94iR L4+bsWdt2ldWcONxyhIze0Qd2x68ZXYcMC0gzVHuz/HB92ytcMclGZBCXqpDAdonRNJ7 5EXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6143Xt6B1fDIKqVroZrZ1l3ARGTZuJpSXXKGYmPvAls=; fh=MDNKvM2EmFCvoyUF3dleauO0+qvrxx7h+KUjUksuglo=; b=wtMfJi9+R3x+Pm8pKJJ7wdo52JN0S1Kl4qerJ+CNiUtqKZwBdnVR/fIuwSjsIqxh/r psM4h6Et1c+Wc9grbpie0K5EmjptBjcZYfzcPbkrI0IO2RG4msZdJIhKd7d2NsDHQzlN aVGIRtdwl0uXnD+Bz8983Zaqybej1TH+Nv53O+3bUybx+sSaPLdyHEXTZ9w7m31EEZHe aUUdh1RzHelyC6bCQp0xmqJG3ENcw2hNWQDKdOf95GLeZwQT2WkeR6CCQ77UGduWIn/J H3kZsbJr+2LfkAazJko3FaYVmcLuSklcAPHp8NaaUIrWFNPZG29SsyQUTuAVgrqrXgC9 Ro/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ADeBF+Ez; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-104078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104078-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k10-20020a170906578a00b00a4483e8d479si1412483ejq.611.2024.03.14.22.53.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 22:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ADeBF+Ez; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-104078-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104078-linux.lists.archive=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 049FC1F2280E for ; Fri, 15 Mar 2024 05:53:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6418B134BE; Fri, 15 Mar 2024 05:53:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="ADeBF+Ez" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 8D0C812E6D for ; Fri, 15 Mar 2024 05:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710482015; cv=none; b=NJ3zuKeB2VWMC2dQHweQSvekDkvVqn/9tW1vC/V/Jqmf/UVfK5PcScGTyBhx2Atxqbftyb7d3s+QbCcCbW30BmRlhnJ8neJXJsStPdlsNPenbhpXDJD7/uZrsM3OSh/Yt5ileHs8I7CZYMOUr3aeAwpk3bAqEBq8cMfVoiWNvGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710482015; c=relaxed/simple; bh=UDhwVLvrhKZ4zV83WNvEmS1n7Q5RwVHTSzv7hrkimAk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Iud1DpSDv8r16FkFYPOIEXQcuocqq+n4PyfrzLUD5Lrihi4z6GmpqccptL739bF8s/lPi6SsQJpufLohKAZBXiNhvaIGq8xW8mgDt3cQ7Qqi0avghSVDoGYxh907t1vdBmd3MddiizkYuU+a5Hl6G37gApIqFlJzBga2Vo9ieu0= 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=ADeBF+Ez; arc=none smtp.client-ip=209.85.214.178 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-f178.google.com with SMTP id d9443c01a7336-1dee5daa236so6988065ad.0 for ; Thu, 14 Mar 2024 22:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1710482013; x=1711086813; 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=6143Xt6B1fDIKqVroZrZ1l3ARGTZuJpSXXKGYmPvAls=; b=ADeBF+EzvihhgqCzjtlhJAWGFXdOcayNCcFl51JfItK8YNAuKa+3+UN9+I4JPNa6pO vYJyTE25aWD7L2oobBVuSaB5gMTeCfBGNyVVc5BqhUR06SkUvF3yE5c683YmWV9Q9cSS r3rQT9L0Av74zCK98nSRpqO25sintcjT0nR3oJaPLh/485r/FN8uooyZEhmw02Ly1wcc yFOfD+8qHR0W40TIFU8Q2dBKCwfK+P3MDEllkqkA9pScG2jQhObB9Tjty4DE+3xVccEW E6aedSjyuRE+GjXhIllxuSFuI7wC1NkmI6Ck94937CBJE/3SwKMjS0QmAYx2JF5dJ9M3 D35g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710482013; x=1711086813; 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=6143Xt6B1fDIKqVroZrZ1l3ARGTZuJpSXXKGYmPvAls=; b=fiN/TrNj7kt75lmhW6pQKT8jUqDtGkX2VVF54ROgUzjAxzKQAS3gOsDRrFNgiPMPTE nIz1tsIR924o7k/EJVpXuvPERw/twx0k5e1NTY0QihTX9z2otHPEJlIM06sNewt5rmuo D2KLY+er59HULXo7tkztcwlyyF078kGHynRI+NbTIldIY6TJeXZdeis+kGopkY5CAxTK m81i4ng/tJj/TlhQx56Y0KVM1YVIWoJvk8fRP6jVSBT7YIctGHWnlydglv2Qd7kGi9aY PoCd7TeJJCzdLx8C4wf4WzT8+tU205CMUWVm8iLlQgWpDPWAnMIqo6gBDPfjx0gPDUGj i0lQ== X-Forwarded-Encrypted: i=1; AJvYcCVBWloeLGMU0cljrt3sL1IKaS/78YgkgkqhfVxof+LCsYoRFfmaItM2UI8XapmqhmM+H38NvkQWLETBX6vZd6b75YCWFJatAQdukbO7 X-Gm-Message-State: AOJu0YzSA7vLiRGuA2n/Y2n95F5vh1cjK+Ju45g64JXEix1M4OHYlOhM Q3orv8Bk/eSyBFgpqaJuye7Lmm8bwlrYxcPVL8cTIx6vpOmEwWCXSWaVpMbGOw0= X-Received: by 2002:a17:902:f706:b0:1dd:8df3:1727 with SMTP id h6-20020a170902f70600b001dd8df31727mr2720117plo.44.1710482012859; Thu, 14 Mar 2024 22:53:32 -0700 (PDT) Received: from sunil-laptop ([106.51.184.12]) by smtp.gmail.com with ESMTPSA id u11-20020a170903124b00b001dcbffec642sm2804203plh.133.2024.03.14.22.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 22:53:32 -0700 (PDT) Date: Fri, 15 Mar 2024 11:23:23 +0530 From: Sunil V L To: Drew Fustini Cc: linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, "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-kernel@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: Hi Drew, On Thu, Mar 14, 2024 at 07:59:46PM -0700, Drew Fustini wrote: > 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]. > > I'm interested in trying out this series. Might you be able to provide > some guidance on how to setup a test environment? > > Are there specific branches of qemu and edk2 that I should use? > 1) You need LPI objects in the platform. I have added dummy objects for testing this for qemu virt machine. Please use below branch. https://github.com/vlsunil/qemu/tree/lpi_exp Since interrupt controllers are not merged yet in linux, we need to boot without any IO devices and use only polling based console and ram disk. Above qemu branch disables IO devices as well. 2) Enable below config options while building linux kernel. RISCV_SBI_V01 HVC_RISCV_SBI 3) Use upstream EDK2 (RiscVVirt) 4) Boot: qemu-system-riscv64 \ -M virt,pflash0=pflash0,pflash1=pflash1 \ -m 2G -smp 8 \ -serial mon:stdio \ -blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd \ -blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd \ -kernel arch/riscv/boot/Image \ -initrd buildroot/output/images/rootfs.cpio \ -append "root=/dev/ram ro console=hvc earlycon=sbi" Feel free to ping me if you have any difficulties. Thanks! Sunil