Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3513123pxb; Mon, 4 Apr 2022 19:25:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZZnTpvrYv5ORIl/BELul573vJ0S4Fpa/WlblCSaR79IaQ0q1dYds9Opgj4HsonZ4iwsrG X-Received: by 2002:a17:902:db0f:b0:156:9bf0:952d with SMTP id m15-20020a170902db0f00b001569bf0952dmr1122781plx.52.1649125540897; Mon, 04 Apr 2022 19:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125540; cv=none; d=google.com; s=arc-20160816; b=0ZGXbeIsyFupMwDASFbrMikgBAKyR0XcuXeXCAgs6XfqQWyoKMIIdtiLzIWKNj4GwY 6nzbP6XA6eiLfWZBPdO1JVkoGEkm0c4z3q4cGDCk+xKEYbcxyDmwWO9ckvTh7YMQXOeT WSOpwzdubqPcyovmbLFkYQpEpCArOAkWaAZz4ha1Ea9kloVou2v27TFAzX7IzFcziZKT jJlPqqT2AlUn/H3MAhh7IWY8eiWm2gkUCCZr9iwyJNd7b8ddxJpXWEOnGXd7GlKNdHC8 IWi03JsgpT+dtg4RPBfhub9hFdP9xHibNW76sRYlZZ+8Whdj6PipSzEpH1+i6LLpvzOJ 125Q== 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; bh=GXsUWOlZWHtMW8UzV7ifbzxYk+i53ahvftpT0KhN7Cw=; b=y989sKMyeTtGqLjTuxcBbhlmR+aMzY0TJKuy0HdcgMNCmWu9lZFqqZpIp5BYtsCBZS b8AlesYwmxO6OL7dyxLAkNEOaqsBtRYj3ldbTmFhCefrqCDU3T+ewznvr1c0V3jNuMHm OPGen1/V4/3sTsoZ6Z1lInJvmTLsyNpYLDxZqZsnE1bQ47LKNAmjlRm2Lyr4B5C9EHLV vvH3n+ec/ALuvs+/AA8q8/JYdtLalP2BvDgAnm1kMYQKw5EzcjgNmdpfBzOCn8KlAXot w8th3ynQquM3dkPaJMJ6Q17EOOY4tFOdQLenM6d3xKUgtGDIfB7zvDmZ9yf182pq30Zf s9yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x7-20020a17090a6b4700b001cabc409081si900315pjl.67.2022.04.04.19.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:25:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 484C02E4F2A; Mon, 4 Apr 2022 17:47:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378602AbiDDV6I (ORCPT + 99 others); Mon, 4 Apr 2022 17:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379085AbiDDQdD (ORCPT ); Mon, 4 Apr 2022 12:33:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9006436E0C; Mon, 4 Apr 2022 09:31:07 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 520B3D6E; Mon, 4 Apr 2022 09:31:07 -0700 (PDT) Received: from [10.57.8.9] (unknown [10.57.8.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 65D843F73B; Mon, 4 Apr 2022 09:31:04 -0700 (PDT) Message-ID: <74a2f038-50dd-91e5-227d-a1c633a87184@arm.com> Date: Mon, 4 Apr 2022 17:31:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [RESEND][PATCH 5/8] PM: EM: Remove old debugfs files and print all 'flags' Content-Language: en-US To: Ionela Voinescu Cc: linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, Pierre.Gondois@arm.com, viresh.kumar@linaro.org, rafael@kernel.org, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, mka@chromium.org, nm@ti.com, sboyd@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, cristian.marussi@arm.com, sudeep.holla@arm.com, matthias.bgg@gmail.com References: <20220321095729.20655-1-lukasz.luba@arm.com> <20220321095729.20655-6-lukasz.luba@arm.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Ionela, Thank you for reviewing these patches. On 4/4/22 17:02, Ionela Voinescu wrote: > Hi Lukasz, > > IMO the debugfs files were fine as they were: > - They offered information on units and inefficiencies without having > to dig into the code to see which bit is for which flag. > - I believe the artificial EM power values fit under bogoWatts as unit, > so that part would still be correct. > > On the other hand, your new file offers more information: we'd be able > to see in debugfs whether we're dealing with an artificial EM, despite > needing a bit more looking over the code to understand the output. I have consolidated them, so we would support more features in the flag automatically when there will be a need. In Android kernel we don't have unfortunately the debugfs compiled-in, so this information is still only for kernel testing with some Linux distro. I have been thinking to switch into sysfs interface, so we could have it in Android as well. This patch change adding a generic 'flags' which would be more 'stable' (which is a requirement for sysfs contract) is also a closer step into that direction. But that is for longer discussion and not for this $subject. > > I don't have a strong opinion and the code looks fine, so: > > Reviewed-by: Ionela Voinescu >