From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hans de Goede" <hdegoede@redhat.com>,
markgross@kernel.org,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [UPDATE][PATCH] platform/x86/intel-uncore-freq: Conditionally create attribute for read frequency
Date: Wed, 4 Oct 2023 12:46:49 +0300 (EEST) [thread overview]
Message-ID: <b7fd5b52-9d91-cfe-e011-522160947115@linux.intel.com> (raw)
In-Reply-To: <ab0ab04980b07e2893d9672b96311230ac981e40.camel@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]
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 <srinivas.pandruvada@linux.intel.com>
> 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.
next prev parent reply other threads:[~2023-10-04 9:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-02 13:18 Srinivas Pandruvada
2023-10-03 13:10 ` Ilpo Järvinen
2023-10-03 15:13 ` srinivas pandruvada
2023-10-04 9:46 ` Ilpo Järvinen [this message]
2023-10-04 18:19 Srinivas Pandruvada
2023-10-05 7:03 ` Hans de Goede
2023-10-05 8:59 ` Andy Shevchenko
2023-10-05 14:07 ` srinivas pandruvada
2023-10-06 15:09 ` Ilpo Järvinen
2023-10-11 9:20 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7fd5b52-9d91-cfe-e011-522160947115@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markgross@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome