From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 8C50812E6A for ; Fri, 15 Mar 2024 05:53:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710482015; cv=none; b=BOR7ZFakU9gFaOpMRsPBzaAG2llQFhAyXb+OIgwGZ5Dy3cVsbQrb5Qq1kLT0UyRf75wqPFd2DYf8LxWG/OhrPaEmO+dlLRYajsvJOEStaH57PefoA49ue5666FRu8wCTEkNXVlD1G3ahpHTEXLAxZt9XseTg+YSa0iahaBZu5zE= 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.173 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="ADeBF+Ez" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1dc09556599so13327165ad.1 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=uSK4FfjjvXJblnzosTaACaTOd7lUhN2D9JMCqcNnhkJBHg+lm57ztlEqyFXahgZ+ti NsCSqd4yixL9AdFyHBLnm61yPnxdxJmYgC1Pz+wpy8jrSy1KodnNzg87ahEZBWsg1kpW JYcmjLoDaOVtTGO3xQqGSSMK5DLi28dd2CpntXt7fKyxM/9bF7q8A9rzYOy3r2bjcqrr blppf/y/hudoliKVAZb7dOuV4MzjlYhUX5C3fULkUKS7w1MoeXyLlEw1Fgb9Og3boHEH HPGpKp21v8kNpXidZBP1kNrgL8xLYTyOuc2dMCAyUR8Ai6F7FZ97W2Zp/7aA5n1RpcAp Y/ZA== X-Gm-Message-State: AOJu0Yx3IKfOz2+l2TaXupbZZ8BQ3duBuhME9f2j5D3aV3lBTudTBM7f X4NzEw+8rirL8GF3Ryql4GYmt1xmkkGUQQtPJ/b2/zP7gO4axuR2vu+I7ngtYxg= X-Google-Smtp-Source: AGHT+IFdhVX1m34Rty2PqcdB9AWHBwlmpI+1s+YRgrPY8LLbB4ruxR0YBRVt2iLRDYdvkYdiR1xfvw== 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-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: 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