From: Cyril Hrubis <chrubis@suse.cz>
To: Piotr Kubaj <piotr.kubaj@intel.com>
Cc: daniel.niestepski@intel.com, tomasz.ossowski@intel.com,
helena.anna.dubel@intel.com, rafael.j.wysocki@intel.com,
ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v14] high_freq_hwp_cap_cppc.c: new test
Date: Tue, 9 Jun 2026 16:35:17 +0200 [thread overview]
Message-ID: <aigkpab-7FvQNIsq@yuki.lan> (raw)
In-Reply-To: <20260609121840.61087-2-piotr.kubaj@intel.com>
Hi!
> +static void setup(void)
> +{
> + unsigned int eax, ebx, ecx, edx;
> +
> + __cpuid_count(0, 0, eax, ebx, ecx, edx);
> + if (ebx != CPUID_VENDOR_EBX || edx != CPUID_VENDOR_EDX ||
> + ecx != CPUID_VENDOR_ECX)
> + tst_brk(TCONF, "not a GenuineIntel CPU");
I've send a patch for the tst_test structure that adds .needs_cpu_vendor
field. If that gets merged you can just set it to "GenuineIntel" and the
test should be automatically skipped on anything but Intel CPUs.
> + __cpuid_count(CPUID_LEAF_THERMAL, 0, eax, ebx, ecx, edx);
> + if (!(eax & CPUID_HWP_BIT))
> + tst_brk(TCONF, "HWP not supported (MSR 0x771 unavailable)");
This specific check still needs to be ifdefed around with x86 and x86_64
macros.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-09 14:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 12:18 [LTP] [PATCH v14] high_freq_hwp_cap_cppc.c: new test Piotr Kubaj
2026-06-09 12:42 ` [LTP] " linuxtestproject.agent
2026-06-09 13:55 ` Cyril Hrubis
2026-06-09 14:35 ` Cyril Hrubis [this message]
2026-06-09 14:40 ` [LTP] [PATCH v14] " Andrea Cervesato via ltp
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=aigkpab-7FvQNIsq@yuki.lan \
--to=chrubis@suse.cz \
--cc=daniel.niestepski@intel.com \
--cc=helena.anna.dubel@intel.com \
--cc=ltp@lists.linux.it \
--cc=piotr.kubaj@intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=tomasz.ossowski@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.