Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4153118rdh; Fri, 29 Sep 2023 12:49:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnBAw0qB/bEBxwR4LeXEuUPsyVRCBKcySHgETP37fgatjdAQwHwdsH6Etoh2rOOIUiYJ/M X-Received: by 2002:a17:903:32c2:b0:1c3:b0c7:38bf with SMTP id i2-20020a17090332c200b001c3b0c738bfmr7776892plr.12.1696016968678; Fri, 29 Sep 2023 12:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696016968; cv=none; d=google.com; s=arc-20160816; b=iYd6Uln8PHkFRkFNoRzz7KtDid4CmEjhksM4DRBvLl+zJ4rRUhv0Bj2sgyWjh0yWug zYMATLwTsb540UbxMC9B9bUDC7WfbGNKX6+xPcbgKMs4dkQAekYvHGIMZ6dDXAHCGjs6 dNpYMAn4+RE+7efDaeG1EVWAlWt+ggfryJ0cr1g2skaYvrBBsnnAwOCONA+BcQiY35eI uErle6Rj50rrOTbqKmxT6Z1GSsQy6STpL/tYpN620yJxKQFn91hHd09akaG/ouCrR0T6 oJpuEqXC95jEjCCkHTJ7aAWK8Z5LhFNt/U9OR0XRN6icaj86gSXlrk6CBQS0EhFMsiGE ZZcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=lTVbFM920YYvO/Zy8P+oFVvYvPX609C9Vt8Uolutyk8=; fh=ZWqgRrjgiHkbLCOJ/mYm1Xgevf1I8vLp2i7bNggwygM=; b=kHJmhDSoMU+pgZVchEEP4Xi6dtEcIKZih+Tqwg3GB13u0SyiotjzvWrT0HBhi+ifpB 4euTBsRcUQFpzfEc+hSAH8ehzAB8XsiHroXpVnYT70VNDZ5la2ZYnEYICzA1avK1+El2 7bkNEDSSeAVAM6bMaGJaas7jicFQ4jH41cN9FOkghxkmHYpgPi7UScGRaI8VjN55vnHh ku8TQzASQnGGN08m7PLB9yaak3KAT3JhrXpueJaHWK5goDi7s1QqkUOIUFYqfzkVgCLS /q2Iz/PjZOe4ndBXJo7OwDhNao9hQIRFejZywCDON6nXFglhNSSOUDHNNMYepTkqQve9 9VQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=glaReEow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v70-20020a638949000000b005859c8462f5si2685786pgd.268.2023.09.29.12.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 12:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=glaReEow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 670C4806D7DE; Fri, 29 Sep 2023 05:15:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbjI2MOz (ORCPT + 99 others); Fri, 29 Sep 2023 08:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbjI2MOy (ORCPT ); Fri, 29 Sep 2023 08:14:54 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26DA195; Fri, 29 Sep 2023 05:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695989693; x=1727525693; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=KNfatNXoG01pvqTGnOOrlsYSgYpTKa6jT4GBdzYHpH4=; b=glaReEowGOTXDElaWMWFg9mdA6nVwbcMYtmdfmWcppCLtf4SGP71tmmk mEQuHPFZE2bUXx85zeg48meH/Ij1OQNpBM8ejK2Dft8o8bM7k+UOXb9eh wuTr1GnPKgCI+p89NquIoQFrdPPTMoqQhOgMiErvqLkjAR52CR4b+dGHr i7pmzZfbfENCY/1qf9AxuSFvZhKBxz4aC2opA8tQ7ZN4FVDE8cbz3p+5F +KbqtLUPZGGVFj5uDbuGyeSS+tRosDhq2mikCZLSw6pXu29uRaOLwA0+e 4E8hFCSoywXJqNO5PAyOmtLTtDir3nYESu0qVo4ppbg+KCSIjj5rRjc2+ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="3857214" X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="3857214" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 05:14:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="813536" Received: from smorozov-mobl1.ger.corp.intel.com ([10.252.52.167]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 05:14:15 -0700 Date: Fri, 29 Sep 2023 15:14:47 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Srinivas Pandruvada cc: Hans de Goede , markgross@kernel.org, Andy Shevchenko , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [PATCH 1/3] platform/x86: ISST: Use fuse enabled mask instead of allowed levels In-Reply-To: <20230925194555.966743-2-srinivas.pandruvada@linux.intel.com> Message-ID: <6991c0fa-7b3c-b99a-4ac4-9c499d4d808b@linux.intel.com> References: <20230925194555.966743-1-srinivas.pandruvada@linux.intel.com> <20230925194555.966743-2-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 29 Sep 2023 05:15:15 -0700 (PDT) On Mon, 25 Sep 2023, Srinivas Pandruvada wrote: > Allowed level mask is a mask of levels, which are currently allowed > to dynamically switch. But even dynamic switching is not allowed, even if ? > user should be able to check all parameters for selection via BIOS. I think you're lacking a negation in the above paragraph because it sounds like there's an internal contradiction in it. Can you please take a look. -- i. > So when passing the level mask for display to user space, use fuse > enabled mask, which has all levels. > > Signed-off-by: Srinivas Pandruvada > --- > drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c > index 37f17e229419..48465636aadb 100644 > --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c > +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c > @@ -712,7 +712,7 @@ static int isst_if_get_perf_level(void __user *argp) > return -EINVAL; > > perf_level.max_level = power_domain_info->max_level; > - perf_level.level_mask = power_domain_info->pp_header.allowed_level_mask; > + perf_level.level_mask = power_domain_info->pp_header.level_en_mask; > perf_level.feature_rev = power_domain_info->pp_header.feature_rev; > _read_pp_info("current_level", perf_level.current_level, SST_PP_STATUS_OFFSET, > SST_PP_LEVEL_START, SST_PP_LEVEL_WIDTH, SST_MUL_FACTOR_NONE) >