Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7442443rwp; Tue, 18 Jul 2023 15:45:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhA7qOv3fDaNoA51QBGt/F6HW+OthNIbazzNERH2/XnfnHUd/Xi9o0NhZOsrW5u5/hUYjA X-Received: by 2002:a17:902:7b98:b0:1b8:30d8:bc49 with SMTP id w24-20020a1709027b9800b001b830d8bc49mr15863068pll.45.1689720339766; Tue, 18 Jul 2023 15:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689720339; cv=none; d=google.com; s=arc-20160816; b=ouwe2EQFqLIPSjLlr5tFx2ve/yX/J7iSDexlP9JX20lseoDfDJMT/qzWfL4wYKOV1u YB+jKH49fy8G4s8QGtkL+0+trRxFBuK162hNz68CmiYoSSVvfXlro3ZxX7fyU2ZE0aOX e0/Hs/zoVQeSiWP+jQLyeEar+LLlCug/vVX+TVUiVqODAHxa+sAoErlWiGzWLleTDq1o DcwdJNgy7jmbGNkPXrXg0CENr2xNzgHH58D3aM/3fVPoo8xzbOUn7BCw9QHkdBzCQclu 3wt71AXpfKO30U32PDKiRD53WnXbZNRTetXkwhyWWPHhjTELxvMvKFcEEiQlPmaQpsWd JEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=69DCNkNewNKMgQotvKNc/GosqsMW82kV8HC9kw4hzgQ=; fh=50Ybgtp/PJFFxlX56N1k/Qr9MY1e4M/56a5qxHSSn2Y=; b=sERy9Qt4XmyJOu0pXvIemFI0oF+i8SD1Dj9itgUo636cyZhIA/jyAiAC5+1XK8O/H6 DIvh72N2IyJijXL7jsNykfECdL4mXPopa6g8nt08oF2ZPJfB4UqSoNoZj/polVtOPitr 9HRVV9YFDrMumrPE0CN+pW50xNEc7N1E43m40WxMCA2wiWww9jEDKAph9lOWZahlfF08 u3q7ONAihwea+jyh6BMrdOiL1FyY3OEz1WHZJdCG+zVXzjKQtgfsZNMIg8eYAhaPJzsW z/4ZYteUGFO1tUda9Iy1bRkPcw0c6Ph6e7z7wh+AWaNUMBfp/OvYSK3sG6pRIusQfvI3 jqNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cPHinmaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a170902ce8100b001b8698149f2si2335369plg.588.2023.07.18.15.45.26; Tue, 18 Jul 2023 15:45:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cPHinmaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjGRWSH (ORCPT + 99 others); Tue, 18 Jul 2023 18:18:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjGRWSF (ORCPT ); Tue, 18 Jul 2023 18:18:05 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59E8BBD for ; Tue, 18 Jul 2023 15:18:01 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id ca18e2360f4ac-77dcff76e35so57995439f.1 for ; Tue, 18 Jul 2023 15:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1689718680; x=1690323480; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=69DCNkNewNKMgQotvKNc/GosqsMW82kV8HC9kw4hzgQ=; b=cPHinmaEYoGEtvYV2Vy7VI5g3M1QVkrWTKG38z7qSmHKKEau0/vvVXN58utkwiu42O O5PBwd9TmVEz0nSUAcxqpUVmTH0ot6gC/rnOLYeRsggQIzQI7UbKWtJcKP+i0t5WuPes CKNbzTpYee6dOqFFyPSWEZykLEg8IvZiOARq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689718680; x=1690323480; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=69DCNkNewNKMgQotvKNc/GosqsMW82kV8HC9kw4hzgQ=; b=TNb4do6yHWdPapjQgWnR1Y/n6TiMK5N121fXimPcJPaQitA539w/8WEyuSHZ/e6qqj YRR4+50r130Fu++LMHjqLU5wn3gE3yHmJ9oqohO5RryOO84Qyrs4EEBFHGnrp25u+nGA EMQ4qNmRSb0HHAF72c0M1GWjm1zjLLoUlTjPtC+23WD79AVGbzfD9C1YK+IyFLvPUnE4 o5cpKkqEcnvceCAII/jc2/4AT5tr3+9VnLXoK46Vfjq+QyE9HTl3csFCe3ma9mmLrhfT NyojRma2eSpEnHGJc41IAnN+t3tqQdeBC2hlk4xonXe0W88qPu/2YIQncYk7DUztOcOT 056A== X-Gm-Message-State: ABy/qLbN8xvMF6F+sg/20dzFiyM/lRyQ7XLDTDJtNPOpdO/EMJ6STc+4 tYYgdE9CH8f++yesgBipgpTVFA== X-Received: by 2002:a05:6602:3a83:b0:780:cb36:6f24 with SMTP id bz3-20020a0566023a8300b00780cb366f24mr3114447iob.2.1689718680729; Tue, 18 Jul 2023 15:18:00 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b10-20020a5ea70a000000b007870289f4fdsm897822iod.51.2023.07.18.15.18.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 15:18:00 -0700 (PDT) Message-ID: <9e51ace9-02c9-8dfb-c092-4158415a9821@linuxfoundation.org> Date: Tue, 18 Jul 2023 16:17:59 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 0/5] cpupower: Add various feature control support for amd_pstate Content-Language: en-US To: Thomas Renninger , trenn@suse.com, shuah@kernel.org, Wyes Karny Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, gautham.shenoy@amd.com, Mario.Limonciello@amd.com, Ray.Huang@amd.com, Perry.Yuan@amd.com, Shuah Khan References: <20230619190503.4061-1-wyes.karny@amd.com> <1896655.g5d078U9FE@p200300d2573c9800520d172709106850.dip0.t-ipconnect.de> From: Shuah Khan In-Reply-To: <1896655.g5d078U9FE@p200300d2573c9800520d172709106850.dip0.t-ipconnect.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/23 05:19, Thomas Renninger wrote: > Hi, > > sorry for the late answer, I wanted to give this a test, but could not > make it (yet). > > My 2 cents on this one: > > what Ray already mentioned is greatly appreciated: Find common APIs, not only > AMD vs Intel, but general ones, outside of the driver specific sysfs dir, e.g.: > /sys/devices/system/cpu/cpufreq/... > > But not at all costs and if the epp part is (AMD) specific and varies to others > in meaning or in values, it has to be a specific file/API. > > (Another Example/Request at the end) > > And...: It would be nice to see some documentation in form of manpage > enhancements. At least for the newly introduced arguments. > If not yet, there should be: possible value range, which machines (CPU flags, > Zen 4, ...), if more complex technology, some kind of introduction or > reference where to find things would be really great. > > I wonder whether it could be possible to connect this with: > Documentation/admin-guide/pm/intel_pstate.rst > Documentation/admin-guide/pm/amd-pstate.rst > > I guess there is a static web site address people could rely on where above > kernel docs are hosted forever? > Then it would make sense to link the cpupower manpage with it and keep the > description short and avoid duplication? > > Thomas > > > Another Example/Request at the end: > > One example I recently got asked for, the bug is private: > "cpupower is not returning max turbo active cores information on latest Intel > processors." > > Here are examples of 2 newer cpus that don't return the active core > information like this: > 3600 MHz max turbo 4 active cores > 3600 MHz max turbo 3 active cores > 3700 MHz max turbo 2 active cores > 3800 MHz max turbo 1 active cores > > Not sure whether there finally is some kind of consolidation on turbo/boost/ > dynamic/hw/bios interfaces in respect to turbo/boosting technology. But if > anyhow possible and it makes sense, it would be really great to see one sysfs > file exposed to userspace to read/enable/disable. > > Possible cpufreqs (including or only) boost freqs, maybe with active cores if > this is a general technique optionally added if avail? > > Nothing which has to be implemented at all costs and right now, just an idea > on how things could be consolidated at some point of time which might be wise > to think about now already... > I applied these for Linux 6.6-rc1 - ran quick tests. Please act on feedback from Thomas and send me patches on top of https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=cpupower thanks, -- Shuah