From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: daniel.lezcano@linaro.org, lukasz.luba@arm.com,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/thermel/intel/workload_hint: Mask unsupported types
Date: Thu, 28 Aug 2025 12:55:55 -0700 [thread overview]
Message-ID: <d1c898fbb9b5095bc038d2393d350722627f3627.camel@linux.intel.com> (raw)
In-Reply-To: <CAJZ5v0hcwgmddSN=0eM+PxTNuE1dm=iRLBbYWF7PFcB8H2ztDA@mail.gmail.com>
On Thu, 2025-08-28 at 21:34 +0200, Rafael J. Wysocki wrote:
> On Thu, Aug 28, 2025 at 9:23 PM Srinivas Pandruvada
> <srinivas.pandruvada@linux.intel.com> wrote:
> >
> > The workload hint may contain some other hints which are not
> > defined.
> > So mask out unsupported types. Currently only lower 4 bits of
> > workload
> > type hints are defined.
> >
> > Signed-off-by: Srinivas Pandruvada
> > <srinivas.pandruvada@linux.intel.com>
> > ---
> > .../selftests/thermal/intel/workload_hint/workload_hint_test.c | 3
> > +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git
> > a/tools/testing/selftests/thermal/intel/workload_hint/workload_hint
> > _test.c
> > b/tools/testing/selftests/thermal/intel/workload_hint/workload_hint
> > _test.c
> > index ba58589a1145..3ee018bca899 100644
> > ---
> > a/tools/testing/selftests/thermal/intel/workload_hint/workload_hint
> > _test.c
> > +++
> > b/tools/testing/selftests/thermal/intel/workload_hint/workload_hint
> > _test.c
> > @@ -133,6 +133,7 @@ int main(int argc, char **argv)
> > } else if (ret == 0) {
> > printf("Poll Timeout\n");
> > } else {
> > +
>
> Is this change intentional? Looks like it is not needed.
Not intentional. Will send update.
Thanks,
Srinivas
>
> > if ((lseek(fd, 0L, SEEK_SET)) < 0) {
> > fprintf(stderr, "Failed to set
> > pointer to beginning\n");
> > exit(1);
> > @@ -144,6 +145,8 @@ int main(int argc, char **argv)
> > ret = sscanf(index_str, "%d", &index);
> > if (ret < 0)
> > break;
> > +
> > + index &= 0x0f;
> > if (index > WORKLOAD_TYPE_MAX_INDEX)
> > printf("Invalid workload type
> > index\n");
> > else
> > --
> > 2.50.1
> >
>
prev parent reply other threads:[~2025-08-28 19:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 19:23 [PATCH] selftests/thermel/intel/workload_hint: Mask unsupported types Srinivas Pandruvada
2025-08-28 19:34 ` Rafael J. Wysocki
2025-08-28 19:55 ` srinivas pandruvada [this message]
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=d1c898fbb9b5095bc038d2393d350722627f3627.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=rafael@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).