Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp661403lqt; Mon, 18 Mar 2024 22:32:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt+Vaea7WOTUFgzZd1vfl8QG0NjPe1QFemWeXvzg3u0+L++DhnBSv+WhrX9kytqIs24RNT1PDwIMe7VpCIj2b7+VIf5t/BMxqjE3g6Ug== X-Google-Smtp-Source: AGHT+IF/+Bs1OckmwcdKaO/7ckjVqr9JuHTK5ztAG/QETyWhgG5dRWSQ0GBrjot2GBwVieewDHrJ X-Received: by 2002:a05:6808:2f0c:b0:3c3:7abe:c996 with SMTP id gu12-20020a0568082f0c00b003c37abec996mr12620496oib.55.1710826368129; Mon, 18 Mar 2024 22:32:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710826368; cv=pass; d=google.com; s=arc-20160816; b=sBI/9XAtEl0QgSfiHEGyOySkGDMeyfwUKlbwT8s9OY4ZZw1xJPOX/kvpCjeyVFZ9VM +ICsUDRlZNOhtYwWTuiFEo/+T++/08cZKKHCcK+Pzm2rY5hvuBB/75BhFYExhxZpGDuv 6hr1MCk9vo+ZVAA5iUkqJBW+BJrxiA04md8Z3iCugbcGMp7tdA0JB75bEouy1jCYinI3 S6uhWvOzAzmLE32p+UQ+XcbVDGseL1t+m6c0M0E3/T1hAiX0yusWkN7il8XHeJlvD4Lv hvbPI3XGZyx2hS5926+MsHstg6+zLYr6qF2Zw2hsz0LONS539hNniye5f9tmoppar9Gk R61g== 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=5aSzY2VJWDittzpsS5JFj/mmLGexq9XYEbkvVBzvnJA=; fh=p/XsY3ZuMxeGBjGGE4HbqNvvFC1Ijvafnkjlcqf+f7A=; b=kExIy4U3Th279miYsteLIABDV7ilsdhnMBCycu0Y3W+hyi1vIfjfLkrJJgIYQbHzxB m9s9BzWaGnF4AXxq2SBXe5LrLFWW6LXk0LuGDABgBNHmUkHpwv1jbznKCNah5ftpnvVK pRnCE0mwX+RdhaBzayk++MlfDIdF/VXFLb47DrVn1mbRdjs8mp8yAFhpZp4tgDj6BrH8 RhpWJF8s/3tpFW+PpPFSou9BAyhTmWxGOzLZQc3+8g9DERWU51eEJZJeVaeSsJaxE36W wXjAQHAPLNrWv6K9jEXWzE22/djXF/pHyAb5KDm+NnHelPmTbH/OZ3BEYsUSJkKHhlZp aGFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pdp7-com.20230601.gappssmtp.com header.s=20230601 header.b="Yeobk/Hf"; arc=pass (i=1 dkim=pass dkdomain=pdp7-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-106921-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106921-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p8-20020a63e648000000b005dc1e39fbeasi9653696pgj.80.2024.03.18.22.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 22:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106921-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@pdp7-com.20230601.gappssmtp.com header.s=20230601 header.b="Yeobk/Hf"; arc=pass (i=1 dkim=pass dkdomain=pdp7-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-106921-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106921-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1945D2827BA for ; Tue, 19 Mar 2024 02:27:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ED5F65190; Tue, 19 Mar 2024 02:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b="Yeobk/Hf" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 7DF7064CEC for ; Tue, 19 Mar 2024 02:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710815260; cv=none; b=CFU2cwyMSCTuOf2TIOA01ZB1PN0BA6pcFCqgVOqJyistwgg7q2z+3K4mqPLbH42mzyyf6MDndZ0WELyengr9jf/IBEqdxR2bMRSyNQx5FLhAAZmyU1ij9wasTOUKN42lOiY78JHdbWabX26DXtX1JVGsxj278c3Ecm86oHlnFVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710815260; c=relaxed/simple; bh=sP2e+6JEJh7rHz8Yoq24mQxbkis71cZ97nSr01L0O54=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t0vioOPLDfW17tEYdJnKQ34DZDF2AtECxfCzqyeT8NpPdMNc4x/JY8LkFXouz2PgdM7KseiojOvT1WZOUvBv4gzW/HPKHVJfSVaa0LcZZZ2TopnzOpAm9j4vxLCj3cXtQ/NX9tXq9ZueKWmf+u74N1kU5brdrxkhK/8ndKkW0jA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com; spf=none smtp.mailfrom=pdp7.com; dkim=pass (2048-bit key) header.d=pdp7-com.20230601.gappssmtp.com header.i=@pdp7-com.20230601.gappssmtp.com header.b=Yeobk/Hf; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pdp7.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=pdp7.com Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1deffa23bb9so22337545ad.2 for ; Mon, 18 Mar 2024 19:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdp7-com.20230601.gappssmtp.com; s=20230601; t=1710815258; x=1711420058; 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=5aSzY2VJWDittzpsS5JFj/mmLGexq9XYEbkvVBzvnJA=; b=Yeobk/Hf0XL3Ax61xcZQttm/BUQsRSsLfxbPgHnCzGbMyDutfh7X0WQbD7CbcJf7L/ wzsZxuIFAk2IBmmdNaSWPMiB+6WvNUFvySqgZesF/sTypX7ivjMbf8Y5eX8GFa1XiTPH s2mwL+1vZsiXd3F+L1b+We9UVMESce9dKmAX5Ax0LEKDfg0uiX1eW0u46OxcUicNrTRK +hBipN3fguNOfPExZSh+9Ep2nwPeAQvPqUKScYjfxw1XaYKOrVnsiR+g/ddtzlZhGX0B 945xDYeUG/FdP2SIy39Us37OWY760xKtoLQUF6GsRGdU0Xt35YYSAy+qMU5L47HdIvEC r9og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710815258; x=1711420058; 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=5aSzY2VJWDittzpsS5JFj/mmLGexq9XYEbkvVBzvnJA=; b=hNYG43qzJ6Ldyixg+FPN+IEtrBXIEF7D5AHfLiDFeiNX5UNwty8E0mH9YmurBaVUuD vUEZ70WPAyQqn1kTthYzIQNN0hu7nIFyUUicBHUWduy5MdRM4GvgG4k7nDEG/LvCR/pK 0ecjvQKLquJzRIA9dEh/hAkZH379ip2aN9bqTJ2AHBS0YmwurcSh9+cqWJv36aiFXO7D rQiuHLRQZzZe578+RRo8euS1irq6REQQkd9mXO0x8EPBdJrCyK8Tt3ghgaGcAitvSi36 JtNsq6OjsbLlqQCWA4ViObKtMH+HC/pWfgXEd/bA77BDI6Q3tIQchr+Ju+UCp6L5ES8o F3bA== X-Forwarded-Encrypted: i=1; AJvYcCUHcn9717zUMuKkqnZg/Igfe+BCEToN+MHUMfRFhW8OCasE6iSC0pbmCbj2GO3hs8v9cwfTXad4XKTqBMjWpxlr/IVz5W7n3TT/h/j5 X-Gm-Message-State: AOJu0Yz+O5ohpWnT82oI+/+zP7vlW/pDXespCO+sD8R6Vr/1366Jszbq qk8cViU0BYKNEMyh+KxGRXuHQobzlmsuwy5InrSPq1RfnbgYrJibY4EfakTCNRA= X-Received: by 2002:a17:902:ce81:b0:1dd:a8e2:60a4 with SMTP id f1-20020a170902ce8100b001dda8e260a4mr17768006plg.42.1710815257730; Mon, 18 Mar 2024 19:27:37 -0700 (PDT) Received: from x1 ([2601:1c2:1800:a790:ca87:56ba:58b7:a676]) by smtp.gmail.com with ESMTPSA id t5-20020a170902e84500b001e02d9c05d8sm2323576plg.103.2024.03.18.19.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 19:27:36 -0700 (PDT) Date: Mon, 18 Mar 2024 19:27:34 -0700 From: Drew Fustini To: Sunil V L Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Len Brown , Paul Walmsley , Palmer Dabbelt , Albert Ou , Viresh Kumar , Conor Dooley , Andrew Jones , Atish Kumar Patra , Anup Patel Subject: Re: [PATCH v1 -next 0/3] RISC-V: ACPI: Enable CPPC based cpufreq support Message-ID: References: <20240208034414.22579-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: On Mon, Mar 18, 2024 at 11:40:34AM -0700, Drew Fustini wrote: > On Thu, Feb 08, 2024 at 09:14:11AM +0530, Sunil V L wrote: > > This series enables the support for "Collaborative Processor Performance > > Control (CPPC) on ACPI based RISC-V platforms. It depends on the > > encoding of CPPC registers as defined in RISC-V FFH spec [2]. > > > > CPPC 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#collaborative-processor-performance-control > > [2] - https://github.com/riscv-non-isa/riscv-acpi-ffh/releases/download/v1.0.0/riscv-ffh.pdf > > > > The series is based on the LPI support series. > > Based-on: 20240118062930.245937-1-sunilvl@ventanamicro.com > > (https://lore.kernel.org/lkml/20240118062930.245937-1-sunilvl@ventanamicro.com/) > > Should the https://github.com/vlsunil/qemu/tree/lpi_exp branch also be > used for this CPPC series too? I noticed the ventanamicro qemu repo has a dev-upstream branch [1] which contains 4bb6ba4d0fb9 ("riscv/virt: acpi: Enable CPPC - _CPC and _PSD"). I've built that but I still see 'SBI CPPC extension NOT detected!!' in the Linux boot log. I'm using upstream opensbi. It seems that sbi_cppc_probe() fails because cppc_dev is not set. Nothing in the upstream opensbi repo seems to call sbi_cppc_set_device(), so I am uncertain how it is possible for it to work. Is there an opensbi branch I should be using? Thanks, Drew [1] https://github.com/ventanamicro/qemu/tree/dev-upstream