From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 380D33845CB for ; Wed, 3 Jun 2026 18:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780510644; cv=none; b=qHhlOKoe/syqh71mw5x6gnW4rrIT/iPmvitJTLEMB7H/4CLmNFA1uCtUqf2z3Fj6bKsdQrflRDfUF+LzYb6HOd4GaEeEiThBF5MnlUDraueaT48b3XgblevPO7KpIA2qM9KQG16lvmTSM7kYluHhntfAeG8Ur3t5QDjC8xlfqeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780510644; c=relaxed/simple; bh=mR4+Ie2bbuKPIew7pLbo5Lq0aWKZQl1rt3zOr2eMg8U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eJq5otQBsMXchDRdKE3AXsCC7rVF9jiotos/qpQrDAY+8yge9t0BaI+29UShMxRFKD0wGg3LZ6gZFoIKvttWmgDecaLamYrZ7k6njhMMWJt4nlIA8db7eJrGykW41/9wEgSzMHKe/Jb6LwrZx+Ivouz0DZQdFf0TcrwXHNRlJmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vw8rNWZe; arc=none smtp.client-ip=209.85.160.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Vw8rNWZe" Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-43bf9548df4so6940494fac.0 for ; Wed, 03 Jun 2026 11:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1780510642; x=1781115442; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=l5Er5Wpg+r3gMIOrk4BdcNKYR+hF85apkXNRWWoLPtI=; b=Vw8rNWZeMZYzEezuM4ch0Wyn7fdrxwa9unlZ0fFkcUx0WMep65ITYKSKEQXvslsJA8 MLMRCAyJ6AM8aT2EcqpcUPMczAO2aI+R0/GKTxqAE+tPg5uKJidEb69Mug81BIVtNceO 5cFSFQavV29Qw6Sura1XSBK+tfQIja+jfh8Bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780510642; x=1781115442; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l5Er5Wpg+r3gMIOrk4BdcNKYR+hF85apkXNRWWoLPtI=; b=S+I57rytZoMrKN8eYVBotjJ8DdrciP/ZvXHdCpp1kHul0sRrLX7sTPyN0srYMYW6H0 u9MX3Boc961mog2iF7FxGMerGGwm2/EnA9QYJ/UH2FUYTqI+NLe2NbE8CZOf4m5RPRDb yYOjSoqaPqLBG4N0uITRICQNYq8bAQnK9a1DolVSPW8Lavm+f+EsBg8UmvpjN7GgrXQu FfkjQpdNzv9z3jtwPzCM1EHUQOTJMd5w2SbRHEAYWZYjgH2pVQgXByn9wI/tC7514hyl pBU8pQ2/FMH5LE725LUJa1L4IroIYoYWZvGiIdUWST51KSQ3rqPH5orVCf2bR2DBHr9r 63hQ== X-Forwarded-Encrypted: i=1; AFNElJ8QIx8JFOzfwbVxBMsv7o6Zcg6+GSxjy1pnEhrzbQjNh+u8Hr1C2FOKpHb699JRySzeroRWQwbBR8kNNKY=@vger.kernel.org X-Gm-Message-State: AOJu0YyWJkqYS9uPkx9qoFhqw6Rv9oIiBQVy69ZPYLGMb479Rqd1Q250 gRYDB0kT4ryNGNK48ZZDjFMtR1l7tRZ6S3vXHNFSzXM4Fvx/qVOTAWTkjxVj/HrrMYo= X-Gm-Gg: Acq92OHR7qKUD366QmAo28x2x4atHTRZEHgUMBHOWgbLk5Wyc7TBYnk6Q5gR+jQWLT2 2yaq5eB9iEfFB1twCXGoluZQNx5BejhR97vT4sfxfatjlad/nAZyKHMBZcdmyPjfGh2vwjvY31V T6DFUwfCV6w7Lgcus0eMJZrpZUiBcDTHhVHnmojaA8WrG+tS9lsOvH6F8I1njp7EsVxe9/5/tZ6 MauHqsXmyFfS0Ns5L8tTzs58Ppzx5HudFGbmDQQJtovr0a0Rl5l30o2Z3tzHuTRPoPOEM29i1bX +POwjoiRBJ5LYKKcqgJcICL64E4JJwB1Fo/v2LZrD4VuhmPs8dvFjwcOPAhwESWFp8DI8WAxiwi 1Vsj5PhR3CjLhv5APEJRS9xhA4xtLapoXDV7rLMBDCe/TWk0tD7Or6CGuHv5RbZGygvIXLqvgrg lzWikTZmt2C8wtCd7+DALPxzgVy9bO1ndaX9ag1d1goQ== X-Received: by 2002:a05:6870:a447:b0:417:ab68:fbaf with SMTP id 586e51a60fabf-440db9db66emr2976318fac.20.1780510641909; Wed, 03 Jun 2026 11:17:21 -0700 (PDT) Received: from [192.168.1.14] ([38.15.57.99]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-440d8500f0esm2778781fac.18.2026.06.03.11.17.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2026 11:17:21 -0700 (PDT) Message-ID: <9e4994be-008d-4c0b-9bb0-1ff782ad00f5@linuxfoundation.org> Date: Wed, 3 Jun 2026 12:17:19 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] cpupower: Implement powercap enabled setters To: =?UTF-8?Q?Mateusz_Ja=C5=9Bkiewicz?= , Shuah Khan Cc: Thomas Renninger , "John B. Wyatt IV" , John Kacur , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <5ff19049-a83a-4ef9-9cae-b97438fb3e77@linuxfoundation.org> <20260528153248.4114324-1-jaskiewiczteo@gmail.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20260528153248.4114324-1-jaskiewiczteo@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/28/26 09:32, Mateusz Jaƛkiewicz wrote: > powercap_set_enabled() and powercap_zone_set_enabled() are part of the > public libcpupower API, but both currently return success without > updating sysfs. You are right that cpupower set_enable API simply returns success. Does intel-rapl:0 implement store function on your system? It doesn't on mine. cd /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0 echo 1 > enabled bash: echo: write error: Function not implemented > > Write the requested value to the matching enabled attribute so callers > can actually enable or disable the powercap control type or zone, and > report write failures back to the caller. > The patch loos good. Is there an existing use-case for this? thanks, -- Shuah