From: "Li, Aubrey" <aubrey.li@linux.intel.com>
To: Dave Hansen <dave.hansen@intel.com>,
Thomas Gleixner <tglx@linutronix.de>
Cc: Aubrey Li <aubrey.li@intel.com>,
mingo@redhat.com, peterz@infradead.org, hpa@zytor.com,
ak@linux.intel.com, tim.c.chen@linux.intel.com,
arjan@linux.intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 1/3] x86/fpu: track AVX-512 usage of tasks
Date: Wed, 19 Dec 2018 07:23:12 +0800 [thread overview]
Message-ID: <5c3b1ca3-d720-1493-d3d5-463869931f46@linux.intel.com> (raw)
In-Reply-To: <f0390c3a-2332-6e7c-0f0d-f3d25e4cf0bc@intel.com>
On 2018/12/19 1:14, Dave Hansen wrote:
> On 12/18/18 7:32 AM, Thomas Gleixner wrote:
>> What exactly prevents a 32bit kernel from having the AVX512 feature bit
>> set? And if it cannot be set on 32bit, then why are you compiling that code
>> in at all?
>
> There are three different AVX-512 states (and three bits) which Aubrey's
> patch checks. All three have different rules. Here's a summary along
> with some relevant SDM quotes from Vol1-13.6.
>
> Opmask state: All opmask registers can be set in 32-bit mode.
> ZMM_Hi256 state: "An execution of XRSTOR or XRSTORS outside 64-bit mode
> does not update ZMM8_H–ZMM15_H." This implies that
> ZMM0_H-ZMM7_H *are* updated in 32-bit mode.
> Hi16_ZMM state: "Outside 64-bit mode, Hi16_ZMM state is always in its
> initial configuration."
>
> All of Hi16_ZMM and *part* of ZMM_Hi256 can not be practically used in
> 32-bit mode. But, even using part of ZMM_Hi256 means the xfeature bit
> will be set.
>
> So, 2/3 of the features can be used in 32-bit mode. Nothing that I can
> find _prevents_ those features from being used in 32-bit mode.
>
> Aubrey, do you have information to the contrary?
>
Thanks Dave for the summary, similar info I have from SDM, so yes, 32bit
kernel can have xfeature bits set.
prev parent reply other threads:[~2018-12-18 23:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 4:22 [PATCH v6 1/3] x86/fpu: track AVX-512 usage of tasks Aubrey Li
2018-12-18 4:22 ` [PATCH v6 2/3] proc: add AVX-512 usage elapsed time to /proc/pid/status Aubrey Li
2018-12-18 4:22 ` [PATCH v6 3/3] Documentation/filesystems/proc.txt: add AVX512_elapsed_ms Aubrey Li
2018-12-18 14:14 ` [PATCH v6 1/3] x86/fpu: track AVX-512 usage of tasks Thomas Gleixner
2018-12-18 15:11 ` Li, Aubrey
2018-12-18 15:32 ` Thomas Gleixner
2018-12-18 16:28 ` Li, Aubrey
2018-12-18 21:38 ` Andi Kleen
2018-12-18 21:44 ` Dave Hansen
2018-12-18 22:05 ` Andi Kleen
2018-12-19 0:26 ` Li, Aubrey
2018-12-19 9:45 ` Thomas Gleixner
2018-12-18 17:14 ` Dave Hansen
2018-12-18 23:23 ` Li, Aubrey [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=5c3b1ca3-d720-1493-d3d5-463869931f46@linux.intel.com \
--to=aubrey.li@linux.intel.com \
--cc=ak@linux.intel.com \
--cc=arjan@linux.intel.com \
--cc=aubrey.li@intel.com \
--cc=dave.hansen@intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=tim.c.chen@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 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.