public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: [edk2-devel] MP Services Protocol : Support Hyper threading or not
@ 2021-02-23  4:49 Tiger Liu(BJ-RD)
  0 siblings, 0 replies; 5+ messages in thread
From: Tiger Liu(BJ-RD) @ 2021-02-23  4:49 UTC (permalink / raw)
  To: devel@edk2.groups.io, fanjianfeng@byosoft.com.cn, lersek

[-- Attachment #1: Type: text/plain, Size: 2401 bytes --]

Dear All:
Got it.

Thank you very much.

Thanks
发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 fanjianfeng@byosoft.com.cn
发送时间: 2021年2月23日 9:18
收件人: devel@edk2.groups.io; lersek <lersek@redhat.com>; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com>
主题: Re: [edk2-devel] MP Services Protocol : Support Hyper threading or not

" Will EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() make all 8 logical cores do some tasks simultaneously?"

All APs logical processors excute AP task, not including BSP. Acutally the answer is 7.

Jeff

From: Laszlo Ersek<mailto:lersek@redhat.com>
Date: 2021-02-22 18:39
To: devel<mailto:devel@edk2.groups.io>; tigerliu<mailto:tigerliu@zhaoxin.com>
Subject: Re: [edk2-devel] MP Services Protocol : Support Hyper threading or not
On 02/22/21 08:08, Tiger Liu(BJ-RD) wrote:
> Dear All:
> I have a question about MP Services Protocol.
> Does it support Hyper-threading technology?
>
> For example:
> A Quad-cores CPU(with HT feature support), actually it is equal to 8 logical cores.
> Take assumption 8 logical cores are all healthy and being enabled.
>
> So:
>
> 1.      Will EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors()return total 8 logical processor cores?
>
> 2.      Will EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() make all 8 logical cores do some tasks simultaneously?

My understanding is "yes", to both questions. Most of the MP stuff deals
with "logical processors".


BTW, if you check the EFI_MP_SERVICES_GET_PROCESSOR_INFO prototype, it
outputs EFI_PROCESSOR_INFORMATION. The latter has the following fields:

  EFI_CPU_PHYSICAL_LOCATION      Location;
  EXTENDED_PROCESSOR_INFORMATION ExtendedInformation;

The former gives you a package/core/thread identification for a
particular processor number. The latter (optionally) provides a 6-level
description (package / module / tile / die / core / thread). In each
information structure, "logical thread" is the finest granularity
information.

hth
Laszlo









保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

[-- Attachment #2: Type: text/html, Size: 16054 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [edk2-devel] MP Services Protocol : Support Hyper threading or not
@ 2021-02-22  7:08 Tiger Liu(BJ-RD)
  2021-02-22 10:39 ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: Tiger Liu(BJ-RD) @ 2021-02-22  7:08 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

Dear All:
I have a question about MP Services Protocol.
Does it support Hyper-threading technology?

For example:
A Quad-cores CPU(with HT feature support), actually it is equal to 8 logical cores.
Take assumption 8 logical cores are all healthy and being enabled.

So:

1.      Will EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors()return total 8 logical processor cores?

2.      Will EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() make all 8 logical cores do some tasks simultaneously?

Thanks


?????
?????????????????????????????????????????????????????
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

[-- Attachment #2: Type: text/html, Size: 6728 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-23 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-23  4:49 [edk2-devel] MP Services Protocol : Support Hyper threading or not Tiger Liu(BJ-RD)
  -- strict thread matches above, loose matches on Subject: below --
2021-02-22  7:08 Tiger Liu(BJ-RD)
2021-02-22 10:39 ` Laszlo Ersek
2021-02-23  1:17   ` fanjianfeng
2021-02-23 17:29     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox