Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2487777rdb; Wed, 4 Oct 2023 02:47:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/ByQSweRsar+rlCqke7J2Jphr3k4Ote/tPSJCH0d1apsp4cWjm7G3qhYrz5DQWs9ycrhU X-Received: by 2002:a9d:6a0a:0:b0:6c4:b0fa:12c2 with SMTP id g10-20020a9d6a0a000000b006c4b0fa12c2mr1540478otn.19.1696412829677; Wed, 04 Oct 2023 02:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696412829; cv=none; d=google.com; s=arc-20160816; b=uehoBmC6uvFuidAsMcEGutrHYQsvndU8JTjetrbtFCe/1hIBGDwdWJ2vWo+mHbq+YT NlqQ14j+Eq1tot6KsoxGeym945jJi5oOhN4U1/+jTM55iKHKgqRNaHUvkyotyG12AbP/ aGVnoS8cOZrnR3DcG+VQ6ShY85+Z3HqY0zLhMvhFSAiRch5ycVLGdEA273XBgq9jMFos 9RrgMafWLmW417nXvtQheZoVScojPCModZdZekLvZinW+QDueqc5bSeZ+WjcK30jU9K7 x5iMUrbiOB/Bn6TvNo9dcnYSqAvqUsC1JS/pj7MfyLw6sEvtjxFfH+2XSIK9XjRjl67Z P+Aw== 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=AwFpidwlrT0ixEaSmk00O9IXAz8OqAxpGwqvDKjd4rw=; fh=tPw/gibI8N3/uOsiBsMLhGrKeqt4KtaxJItUj9t6TSU=; b=dBZ98ujnNGLILgMNABQHa9fa6qzzsOcLukU7yzNBHZE4AkQtwzCv7gpZMq7xY3X8aw yL1QUPM9Gr2bAr0VimgWyXD5fQpRlSIuRqAGnvJzHd87fgA5ZmKncyV3FRHX7a2Ev+0O NjbBw0uSP5y2HskbxtQXR25jOJgVSrFFf4TZdFDkp2jEtOysYtp6pmvyP5ko3INUo68h N9m/WqbWrw15ANI2ySSBEs3gpXAFgNttJxtsJxJ7q34oWL6tJub/AJb5k9E2totpW9Eq G/3yKDTmCw7mKL7r2y0t/Pj4/GMfqJfgolKqr+jKVaEFqOfqP/IFmuXMwv6/VTEN1jnz 0upw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EadL71nB; 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 x5-20020a654145000000b00565e6a5b065si3301658pgp.107.2023.10.04.02.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:47:09 -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=EadL71nB; 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 5AD3C8260FB9; Wed, 4 Oct 2023 02:47:07 -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 S242006AbjJDJq7 (ORCPT + 99 others); Wed, 4 Oct 2023 05:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232904AbjJDJq6 (ORCPT ); Wed, 4 Oct 2023 05:46:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F586A7; Wed, 4 Oct 2023 02:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696412815; x=1727948815; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=n1lhfxc/wP5roOkvPQmjjy/QM7cgipKqKy8XywFw8h8=; b=EadL71nBlYV4cMO+jWihQowkOGvpKgVgh+cSsB0x8fuk6Ph7GScQnwQp 7htftLEDT0H3dAjZ9fn1HZaW5MVU4q9wOr95Li7TMytdsbn8WRPxw2Y7y 2t4QiRH7ARp2bhEZkkJ/llJrRZFqUbuBx1edHbdxqT60d7iH1aNtXFNNt nAs4cVTNQnE+4XFvueaDLO6nNYMEfIUS3J8HyXJRfwKSCyjkJoI8RvNza /IFk2Oi6qnh95ii49OGzQ8SVGZIMiDZ4pOJGZGEeCV/qt54ZZ5YrlK17D pnJa1pnsxbrEyGO9ESgaA/qLlgtvUrUMNn976OsrQ1Ru17fBbMHZqiL8w g==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="447290952" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="447290952" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 02:46:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="894861717" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="894861717" Received: from cyrillet-mobl.ger.corp.intel.com ([10.252.55.203]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 02:45:26 -0700 Date: Wed, 4 Oct 2023 12:46:49 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: srinivas pandruvada cc: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= , Hans de Goede , markgross@kernel.org, Andy Shevchenko , platform-driver-x86@vger.kernel.org, LKML Subject: Re: [UPDATE][PATCH] platform/x86/intel-uncore-freq: Conditionally create attribute for read frequency In-Reply-To: Message-ID: References: <20231002131817.1590966-1-srinivas.pandruvada@linux.intel.com> <6c59be5-1ff1-d0b1-5960-3789fe10c692@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-667317560-1696412813=:1931" 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,URIBL_BLOCKED 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]); Wed, 04 Oct 2023 02:47:07 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-667317560-1696412813=:1931 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Tue, 3 Oct 2023, srinivas pandruvada wrote: > On Tue, 2023-10-03 at 16:10 +0300, Ilpo Järvinen wrote: > > On Mon, 2 Oct 2023, Srinivas Pandruvada wrote: > > > > > When the current uncore frequency can't be read, don't create > > > attribute > > > "current_freq_khz" as any read will fail later. Some user space > > > applications like turbostat fail to continue with the failure. So, > > > check > > > error during attribute creation. > > > > > > Fixes: 8a54e2253e4c ("platform/x86/intel-uncore-freq: Uncore > > > frequency control via TPMI") > > > > Hi, > > > > Thanks for the update but that commit id looks bogus, or where the > > value > > is used w/o error check? > > commit 8a54e2253e4c25e5b61c9a9bee157bb52da5d432 > Author: Srinivas Pandruvada > Date: Thu Apr 20 15:05:14 2023 -0700 > > platform/x86/intel-uncore-freq: Uncore frequency control via TPMI > > > This is the commit exposed the issue. This is not the commit which > changed the code in question. > > > I can add also > Fixes: dbce412a7733 ("platform/x86/intel-uncore-freq: Split common and > enumeration part") > > But the change even before that as this commit just reorganized code > but because of change of folders, that will look like correct commit. I never thought dbce412a7733 is being fixed here, it's just a refactor moving code around like you say. But how about 414eef27283a ("platform/x86/intel/uncore-freq: Display uncore current frequency") which actually adds the code line you're now fixing. What was broken before it? All I see is the one call in show_perf_status_freq_khz() but that's checking for errors. -- i. --8323329-667317560-1696412813=:1931--