撤回: [edk2-devel] PciBus scan: Does it support scan from EndBusNum to StartBusNum?
Tiger Liu(BJ-RD) 将撤回邮件“[edk2-devel] PciBus scan: Does it support scan from EndBusNum to StartBusNum?”。 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100425): https://edk2.groups.io/g/devel/message/100425 Mute This Topic: https://groups.io/mt/97150683/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] PciBus scan: Does it support scan from EndBusNum to StartBusNum?
Hi, Pedro: Thanks for your reply! For example: There are 4 root bridges in a server motherboard, named them as : RP-A / RP-B / RP-C / RP-D RP-A : PCI Bus num range is 0 ~0x40 (hardware pre-configured) RP-B : PCI Bus num range is 0x40 ~0x80 (hardware pre-configured) RP-C : PCI Bus num range is 0x80 ~0xA0 (hardware pre-configured) RP-D : PCI Bus num range is 0xA0 ~0xE0 (hardware pre-configured) Usually, we create pci root bridge instances with sequence RP-A / RP-B / RP-C / RP-D. So, Pci bus driver scan pci root bridge sequence is RP-A/RP-B/RP-C/RP-D. So, could I rewrite pci root bridge driver with different root bridge report sequence? For example: I let pci root bridge driver create RP-D's pci root bridge io protocol first, and then RP-C / RP-B / RP-A, and so pci bus briver could scan RP-D's pci bus range first? Thanks -邮件原件- 发件人: devel@edk2.groups.io 代表 Pedro Falcato 发送时间: 2023年2月22日 3:18 收件人: devel@edk2.groups.io; yoshinoyat...@163.com 主题: Re: [edk2-devel] PciBus scan: Does it support scan from EndBusNum to StartBusNum? On Tue, Feb 21, 2023 at 3:08 AM Yoshinoya wrote: > > Hi > Usually PciBus scan is from low bus num to high bus num. > > So, does it support scan from end bus num to start bus num? > > Thanks Hi, What do you mean? Why do you want this? Do you want to number buses in reverse? That is technically doable (apart from probably the host bridge itself) but absolutely useless. If you mean "order of enumeration", then no. It is not possible. As PCI(e) topology works, you always start at the host bridge(s) (00:00.0) and its bus (bus 0, by definition), and then walk through whatever bridges you find. You cannot really start at any other place, unless you do some silly bruteforce method where you probe every bus for a device; and that method would not allow you to configure the buses and their BARs, as you need to. -- Pedro 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100424): https://edk2.groups.io/g/devel/message/100424 Mute This Topic: https://groups.io/mt/97101911/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] Questions about MicroPython and CPython in shell environment
Hi, Pedro: Thanks for your reply! How about UEFI MicroPython? Is it deprecated? Or maintained in other github branch? Thanks 发件人: Pedro Falcato 发送时间: 2022年9月26日 10:49 收件人: edk2-devel-groups-io ; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] Questions about MicroPython and CPython in shell environment Hi Tiger, CPython is already supported, see edk2-libc. Thanks, Pedro On Mon, 26 Sept 2022, 01:39 Tiger Liu(BJ-RD), mailto:tiger...@zhaoxin.com>> wrote: Hi, Experts: I have 2 questions about python support in shell environment. 1. MicroPython not supported in udk github base anymore? It seemed intel colleagures had developmented a sample MicroPython pkg in edk2-staging github. 2. Will CPython be supported in shell environment? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94303): https://edk2.groups.io/g/devel/message/94303 Mute This Topic: https://groups.io/mt/93918306/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Questions about MicroPython and CPython in shell environment
Hi, Experts: I have 2 questions about python support in shell environment. 1. MicroPython not supported in udk github base anymore? It seemed intel colleagures had developmented a sample MicroPython pkg in edk2-staging github. 2. Will CPython be supported in shell environment? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94298): https://edk2.groups.io/g/devel/message/94298 Mute This Topic: https://groups.io/mt/93918306/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] How to guard CAR's stack overflow
Hi, Johnson: Thanks a lot. Usually stack locates on top of heap area, After swapping stack and heap’s location, your method seems ok. Thanks 发件人: Brian J. Johnson 发送时间: 2022年9月23日 5:07 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io; Ni, Ray 主题: Re: [edk2-devel] How to guard CAR's stack overflow I've never tried protecting the stack like this, so I'm not sure exactly what you're running in to. The documentation says the base address is specified a bit differently for expand-down descriptors. It needs to point to the page below the stack (lower addresses.) The descriptors for the other segments would still need to cover the entire address space (limit 0x, page-granular, expand-up.) And you'd need to use a different segment selector (and hence a different GDT entry) for the stack segment (ss register) than for the regular data segments. Most of the early PEI code I've seen uses the same selector for ds, ef, fs, gs, and ss. Hope that helps. This is mostly theoretical. I don't actually have a lot of experience with x86 segment programming. Brian J. Johnson From: Tiger Liu(BJ-RD) [mailto:tiger...@zhaoxin.com] Sent: Wednesday, September 21, 2022, 10:32 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>, Ni, Ray <mailto:ray...@intel.com>, brian.john...@hpe.com<mailto:brian.john...@hpe.com> <mailto:brian.john...@hpe.com> Subject: [edk2-devel] How to guard CAR's stack overflow Hi, Johnson: Thanks for your reply! I tried and found it seemed causing some other problems. It hang in eary pei stage. It seems below code could also cause an exception if using expand-down mode in CAR phase’s stack established. mov eax, ss:[ebx] mov eax, [ebp] mov eax, [esp] Thanks 发件人: Brian J. Johnson mailto:brian.john...@hpe.com> 发送时间: 2022年9月20日 7:10 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; ray...@intel.com<mailto:ray...@intel.com>; Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com> 抄送: Fan, Jeff mailto:fanjianf...@byosoft.com.cn> 主题: Re: [edk2-devel] How to guard CAR's stack overflow You could also try modifying the Ia32 segment descriptors to mark the stack segment as an "expand down" type with a limit set just below the low end of the stack area. That should generate a stack-fault exception if the stack overflows, and wouldn't require building page tables. See sections 5.1 - 5.3 of the Intel SDM, volume 3. Brian J. Johnson From: Ni, Ray [mailto:ray...@intel.com] Sent: Wednesday, September 14, 2022, 10:25 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>, tiger...@zhaoxin.com<mailto:tiger...@zhaoxin.com> <mailto:tiger...@zhaoxin.com> Cc: Fan, Jeff <mailto:fanjianf...@byosoft.com.cn> Subject: [edk2-devel] How to guard CAR's stack overflow It’s doable. You need to enable paging and mark the very low 4K area of the stack as not-present. You could use the UefiCpuPkg/Library/CpuPageTableLib to help you create the 1:1 page table with the specific 4K area as not-present (if you are using x86 processors). Thanks, Ray From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io> On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, September 15, 2022 8:50 AM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] How to guard CAR's stack overflow Hi, Experts: Usually, we use Cache As Ram to setup stack and heap for C language running environment before permanent memory has been initialized. So, is there a method to guard this phase’s stack overflow? Note: I find udk has introduced a method to guard stack overflow after memory has been initialized and discovered. 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. _._,_._,_ Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93797)<https://edk2.groups.io/g/devel/message/93797> | | Mute This Topic<https://groups.io/mt/93691088/1761811> | New Topic<https://edk2.groups.io/g/devel/post> Your Subscription<https://edk2.groups.io/g/devel/editsub/1761811> | Contact Group Owner<mailto:devel+ow...@edk2.groups.io> | Unsubscribe<https://edk2.groups.io/g/devel/unsub> [brian.john...@hpe.com<mailto:brian.john...@hpe.com>] _ 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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 forward
Re: [edk2-devel] How to guard CAR's stack overflow
Hi, Johnson: Thanks for your reply! I tried and found it seemed causing some other problems. It hang in eary pei stage. It seems below code could also cause an exception if using expand-down mode in CAR phase’s stack established. mov eax, ss:[ebx] mov eax, [ebp] mov eax, [esp] Thanks 发件人: Brian J. Johnson mailto:brian.john...@hpe.com>> 发送时间: 2022年9月20日 7:10 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; ray...@intel.com<mailto:ray...@intel.com>; Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com>> 抄送: Fan, Jeff mailto:fanjianf...@byosoft.com.cn>> 主题: Re: [edk2-devel] How to guard CAR's stack overflow You could also try modifying the Ia32 segment descriptors to mark the stack segment as an "expand down" type with a limit set just below the low end of the stack area. That should generate a stack-fault exception if the stack overflows, and wouldn't require building page tables. See sections 5.1 - 5.3 of the Intel SDM, volume 3. Brian J. Johnson From: Ni, Ray [mailto:ray...@intel.com] Sent: Wednesday, September 14, 2022, 10:25 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>, tiger...@zhaoxin.com<mailto:tiger...@zhaoxin.com> <mailto:tiger...@zhaoxin.com> Cc: Fan, Jeff <mailto:fanjianf...@byosoft.com.cn> Subject: [edk2-devel] How to guard CAR's stack overflow It’s doable. You need to enable paging and mark the very low 4K area of the stack as not-present. You could use the UefiCpuPkg/Library/CpuPageTableLib to help you create the 1:1 page table with the specific 4K area as not-present (if you are using x86 processors). Thanks, Ray From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io> On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, September 15, 2022 8:50 AM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] How to guard CAR's stack overflow Hi, Experts: Usually, we use Cache As Ram to setup stack and heap for C language running environment before permanent memory has been initialized. So, is there a method to guard this phase’s stack overflow? Note: I find udk has introduced a method to guard stack overflow after memory has been initialized and discovered. 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. _._,_._,_ Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93797)<https://edk2.groups.io/g/devel/message/93797> | | Mute This Topic<https://groups.io/mt/93691088/1761811> | New Topic<https://edk2.groups.io/g/devel/post> Your Subscription<https://edk2.groups.io/g/devel/editsub/1761811> | Contact Group Owner<mailto:devel+ow...@edk2.groups.io> | Unsubscribe<https://edk2.groups.io/g/devel/unsub> [brian.john...@hpe.com<mailto:brian.john...@hpe.com>] _ 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94099): https://edk2.groups.io/g/devel/message/94099 Mute This Topic: https://groups.io/mt/93691088/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] Logical operator function in shell environment
Hi, Ray: Thanks for your reply! I looked it up in shell spec, not find logical operator functions supported. I found shell supported redirect output to an environment variable. But I could not succeed in my experiment. For example: 1. I create a environment variable "testvar" with set command 2. Then, I execute "date > testvar", but failed. Thanks -邮件原件- 发件人: Ni, Ray 发送时间: 2022年9月20日 16:56 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] Logical operator function in shell environment I don't know whether Shell supports such capability. Can you check the Shell spec? It's also possible that Spec supports such capability but implementation doesn't. Then you are welcome to implement that in ShellPkg. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, September 20, 2022 1:37 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] Logical operator function in shell environment > > Hi, Experts: > I am writing a shell script. > > I have a few questions about shell script syntax. > For examples: > 1. Could I save register content (which is read with mm command) to a > local variable? > Take an example: > Reading register 0x80's content with mm command, and I want to save > its content to a local variable for further processing. > >Maybe, I could use command output redirection syntax, and redirect > its content to an environment variable? > 2. Is there any logical operator functions could be used in shell script? > Such as : and / or functions. > > 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. > > > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93984): https://edk2.groups.io/g/devel/message/93984 Mute This Topic: https://groups.io/mt/93797877/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Logical operator function in shell environment
Hi, Experts: I am writing a shell script. I have a few questions about shell script syntax. For examples: 1. Could I save register content (which is read with mm command) to a local variable? Take an example: Reading register 0x80's content with mm command, and I want to save its content to a local variable for further processing. Maybe, I could use command output redirection syntax, and redirect its content to an environment variable? 2. Is there any logical operator functions could be used in shell script? Such as : and / or functions. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93980): https://edk2.groups.io/g/devel/message/93980 Mute This Topic: https://groups.io/mt/93797877/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] How to guard CAR's stack overflow
Hi, Experts: Usually, we use Cache As Ram to setup stack and heap for C language running environment before permanent memory has been initialized. So, is there a method to guard this phase's stack overflow? Note: I find udk has introduced a method to guard stack overflow after memory has been initialized and discovered. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93794): https://edk2.groups.io/g/devel/message/93794 Mute This Topic: https://groups.io/mt/93691088/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] question about iSCSI remote boot
Hello, I used I210 network card to do a remote boot os with iscsi method. I210 network card's oprom include a legacy ISCSI remote boot option ROM image. I want to use NetworkPkg\IScsiDxe drivers. So, if I use NetworkPkg\IScsiDxe driver, so I don't need load I210's legacy ISCSI option ROM image? Is UEFI Native ISCSI Dxe driver a substitute for legacy ISCSI option ROM? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#87325): https://edk2.groups.io/g/devel/message/87325 Mute This Topic: https://groups.io/mt/89629423/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] AcpiViewApp is for ARM platform
Hi, All: I tried to comple ShellPkg\Application\AcpiViewApp I found the default compiled AcpiViewApp version is for ARM platform For example: I used it in shell on a x86 platform, found it checked GICC structure. So, Is there a X86 version? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78337): https://edk2.groups.io/g/devel/message/78337 Mute This Topic: https://groups.io/mt/84521388/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] Ajays NET20DC Cable's alternative
Hi, Hao: Got it. Thanks 发件人: Wu, Hao A 发送时间: 2021年7月7日 19:09 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] Ajays NET20DC Cable's alternative Hello, As far as I know, you can use a USB 3.0 debug cable as an alternative. Also, I think there other methods to connect between host and target in Intel® UEFI Development Kit (Intel® UDK) Debugger Tool (version 1.5) Configuration and Setup Guide. (https://software.intel.com/content/www/us/en/develop/download/intel-uefi-development-kit-intel-udk-debugger-tool-version-15-configuration-and-setup-guide.html) However, I have not tried them from my side. Best Regards, Hao Wu From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Tiger Liu(BJ-RD) Sent: Wednesday, July 7, 2021 6:32 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] Ajays NET20DC Cable's alternative Hi, All: If users want to debug UDK BIOS source code, they could use COM port or USB port as communication channel. Usually, UDK suggests using Ajays NET20DC device as the usb port inter-connection cables between Host and Target board. But, I found: Ajays is bankcrupt so their product line is end of life (EOL). So, is there any other suggestions? Is there other alternative usb debug cable? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77584): https://edk2.groups.io/g/devel/message/77584 Mute This Topic: https://groups.io/mt/84041377/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Ajays NET20DC Cable's alternative
Hi, All: If users want to debug UDK BIOS source code, they could use COM port or USB port as communication channel. Usually, UDK suggests using Ajays NET20DC device as the usb port inter-connection cables between Host and Target board. But, I found: Ajays is bankcrupt so their product line is end of life (EOL). So, is there any other suggestions? Is there other alternative usb debug cable? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77551): https://edk2.groups.io/g/devel/message/77551 Mute This Topic: https://groups.io/mt/84041377/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
答复: [edk2-devel] Question about Smm code / StandaloneMmPkg
Hi, Laszlo && Kun: Got it. Thanks a lot. Best wishes, 发件人: Kun Qin 发送时间: 2021年3月5日 10:23 收件人: Laszlo Ersek ; devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Kinney, Michael D 抄送: Sean ; michael.kuba...@outlook.com 主题: RE: [edk2-devel] Question about Smm code / StandaloneMmPkg Hi Tiger, Our team has been sending patches to the community to cover Standalone MM driver to support x86 arch recently by believing that Standalone MM is the direction we are moving to in the long term. From our experience so far, the Standalone MM core infrastructure is arch independent and capable of operations such as dispatching MM drivers and managing memory as is. What really is missing would be the StandaloneMmCpu and an IPL that can install MM foundation for x86 arch. But I am unaware of any public implementation for these 2 components at this moment. As I joined this Standalone MM journey relatively recently, maybe other community members will have more information in that regards. Generally from our perspective, we are taking Standalone Mm model as an opportunity to provide better isolation between MM and non-MM environment, since this model is providing cleaner boundary inside MM without convoluted access to non-MM (mostly DXE) environment. If x86 SMM core code will ever be added to Standalone MM implemation, I would hope we do not lose advantage on that specific point. Thanks, Kun From: Laszlo Ersek<mailto:ler...@redhat.com> Sent: Thursday, March 4, 2021 12:55 To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; tiger...@zhaoxin.com<mailto:tiger...@zhaoxin.com>; Kinney, Michael D<mailto:michael.d.kin...@intel.com>; Kun Qin<mailto:ku...@outlook.com> Subject: Re: [edk2-devel] Question about Smm code / StandaloneMmPkg Adding Kun Qin; a comment below: On 03/04/21 09:34, Tiger Liu(BJ-RD) wrote: > Dear All: > I have a few questions about Smm code and StandaloneMmPkg. > > Take X86 Arch cpu as example: > 1. Smm infrastructure code is implemented in MdeModulePkg\Core\PiSmmCore >But it's a traditional smm mode, used launched in UEFI DXE Phase. > > A_Tour_Beyond_BIOS_Launching_Standalone_SMM_Drivers_in_PEI_using_the_EFI_Developer_Kit_II.pdf > > This doc introduced a standalone smm mode. > > PI Spec introduces a MM concept, it's arch independent. > > So, I have below questions: > 1. Will X86 SMM code implementation be migrated to MM concept code base? > 2. StandaloneMmPkg is a MM reference implementation, is it arch independent? > 3. The above doc mentioned launching SMM drivers in PEI, is it also > implemented in StandaloneMmPkg? Please see (also) the following thread: [edk2-rfc] [RFC] Support Both MM Traditional and Standalone Drivers with One MM Core https://edk2.groups.io/g/rfc/message/430 Thanks Laszlo > > 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. > > > > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72531): https://edk2.groups.io/g/devel/message/72531 Mute This Topic: https://groups.io/mt/81168076/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Question about Smm code / StandaloneMmPkg
Dear All: I have a few questions about Smm code and StandaloneMmPkg. Take X86 Arch cpu as example: 1. Smm infrastructure code is implemented in MdeModulePkg\Core\PiSmmCore But it's a traditional smm mode, used launched in UEFI DXE Phase. A_Tour_Beyond_BIOS_Launching_Standalone_SMM_Drivers_in_PEI_using_the_EFI_Developer_Kit_II.pdf > This doc introduced a standalone smm mode. PI Spec introduces a MM concept, it's arch independent. So, I have below questions: 1. Will X86 SMM code implementation be migrated to MM concept code base? 2. StandaloneMmPkg is a MM reference implementation, is it arch independent? 3. The above doc mentioned launching SMM drivers in PEI, is it also implemented in StandaloneMmPkg? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72430): https://edk2.groups.io/g/devel/message/72430 Mute This Topic: https://groups.io/mt/81072905/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] EDKII Minimum Platform Spec : Stage-III, boot shell
Dear all: I am studying EDKII Minimum Platform Spec. I have a few questions about Stage-III. (Chapter-5 in Minimum Platform spec) 1. Could Shell be launched just after DXE Arch drivers had finished executing. It means: After DXE Arch drivers has been executed, and all system table functions are ready,. And Serial driver has produced EFI_SERIAL_IO_PROTOCOL, and shell could use serial io protocol as input/output device. then launched shell.efi , is it ok? Or, the shell must be launched in BDS code? 2. Does Shell.efi depend on ConSplitterDxe / TerminalDxe drivers? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#72324): https://edk2.groups.io/g/devel/message/72324 Mute This Topic: https://groups.io/mt/81020598/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] MP Services Protocol : Support Hyper threading or not
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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#71910): https://edk2.groups.io/g/devel/message/71910 Mute This Topic: https://groups.io/mt/80819705/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] question about EDKII_IOMMU_PROTOCOL
Hi, Laszlo: Got it. Thanks -邮件原件- 发件人: Laszlo Ersek 发送时间: 2020年8月26日 18:35 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] question about EDKII_IOMMU_PROTOCOL On 08/25/20 09:39, Tiger Liu(BJ-RD) wrote: > Hi, Experts: > I find EDKII_IOMMU_PROTOCOL definition in > MdeModulePkg\Include\Protocol\IoMmu.h . > > But I didn't find its define in UEFI Spec or PI Spec. > So, is it a private protocol definition? Yes -- that's why the protocol name starts with the "EDKII_" prefix, and why the header file is under MdeModulePkg and not MdePkg. It's an "implementation detail" in edk2. Thanks, 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64670): https://edk2.groups.io/g/devel/message/64670 Mute This Topic: https://groups.io/mt/76402590/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] question about EDKII_IOMMU_PROTOCOL
Hi, Experts: I find EDKII_IOMMU_PROTOCOL definition in MdeModulePkg\Include\Protocol\IoMmu.h . But I didn't find its define in UEFI Spec or PI Spec. So, is it a private protocol definition? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64607): https://edk2.groups.io/g/devel/message/64607 Mute This Topic: https://groups.io/mt/76402590/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] question about UnitTest Framework
Hi, After studying previous discuss mail, UnitTest Framework is work for Continuous Integration mechanism. Code writer will provide some unit test functions, maybe they could also do code coverage test. Thanks -邮件原件- 发件人: devel@edk2.groups.io 代表 Tiger Liu(BJ-RD) 发送时间: 2020年8月13日 16:03 收件人: devel@edk2.groups.io 主题: [edk2-devel] question about UnitTest Framework Hi, Experts: I have a question about UnitTest Framework. UEFI Code has included some test infrastructure, such as: PI-SCT / SCT / FWTS etc. So, why we introduce a new UnitTest Framework? Is it mainly for Code Coverage test? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64415): https://edk2.groups.io/g/devel/message/64415 Mute This Topic: https://groups.io/mt/76163664/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] question about UnitTest Framework
Hi, Experts: I have a question about UnitTest Framework. UEFI Code has included some test infrastructure, such as: PI-SCT / SCT / FWTS etc. So, why we introduce a new UnitTest Framework? Is it mainly for Code Coverage test? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64143): https://edk2.groups.io/g/devel/message/64143 Mute This Topic: https://groups.io/mt/76163664/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] question about PCI bridge's bus range window configure's save and restore
Hi, Ric: Thanks for your reply. I think maybe some standard PCI config space registers, such as BAR registers, its content is restored by OS during S3 resume procedure. Such as: PCI bus driver scans PCI bus and assigns every PCI device’s resource requirements, and sets these BAR registers. But PCI bus driver doesn’t save these BAR configurations into Boot Script. So, I think PCI bridges’ secondary bus number / subordinate bus number registers are all standard PCI bridge’s config space registers. Maybe OS will also restore its original setting. Thanks 发件人: Ric Wang (王晓) 发送时间: 2020年8月10日 19:55 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: 答复: [edk2-devel] question about PCI bridge's bus range window configure's save and restore It’s done by BIOS pei s3 resume code. Restored register value saved while BIOS normal POST BY BootScriptExecutor. You can refer gEfiPeiS3Resume2Ppi usage Thanks 发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> [mailto:devel@edk2.groups.io] 代表 Tiger Liu(BJ-RD) 发送时间: 2020年8月10日 17:32 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> 主题: [edk2-devel] question about PCI bridge's bus range window configure's save and restore Hi, Experts: I have a question about PCI Bridge’s config space’s save and restore. Pci bus driver configured PCI Bridges’ secondary bus number register and subordinate bus number register. So, if system resumes from S3(Suspend to ram) state, who is responsible for restoring PCI Bridges’ secondary bus number / subordinate bus number registers’ content? Will the OS be responsible for it? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63940): https://edk2.groups.io/g/devel/message/63940 Mute This Topic: https://groups.io/mt/76101256/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] question about PCI bridge's bus range window configure's save and restore
Hi, Experts: I have a question about PCI Bridge’s config space’s save and restore. Pci bus driver configured PCI Bridges’ secondary bus number register and subordinate bus number register. So, if system resumes from S3(Suspend to ram) state, who is responsible for restoring PCI Bridges’ secondary bus number / subordinate bus number registers’ content? Will the OS be responsible for it? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63909): https://edk2.groups.io/g/devel/message/63909 Mute This Topic: https://groups.io/mt/76101256/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] question about MSFT compiler/link option
Hi, Andrew: Got it. Thank you very much. Best wishes, 发件人: devel@edk2.groups.io 代表 Andrew Fish via groups.io 发送时间: 2020年8月6日 11:46 收件人: edk2-devel-groups-io ; Tiger Liu(BJ-RD) 抄送: Mike Kinney ; Gao, Liming 主题: Re: [edk2-devel] question about MSFT compiler/link option On Aug 5, 2020, at 8:31 PM, Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com>> wrote: Hi, Michael: I wrote this sentence in C file: pTmp = (VOID*)& PdataStructTable; Tiger, Working around optimization is complicated. You likely added a statement that got optimized away as the value of pTmp could be ignored and your program could still get the same result. You would need to do some meaningful work with pTmp or make pTmp a volatile variable to force the compiler to NOT optimize it away. The better the optimizer, the more layers of abstraction it can see and optimize away. Thanks, Andrew Fish tried to reference the table being generated to prevent the optimizer from removing the data structure from the executable. But it is still being optimized away. I used MSTF VS2015. Thanks -邮件原件- 发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> 代表 Michael D Kinney 发送时间: 2020年8月5日 23:18 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com>>; Gao, Liming mailto:liming@intel.com>>; Kinney, Michael D mailto:michael.d.kin...@intel.com>> 主题: Re: [edk2-devel] question about MSFT compiler/link option Hi, I think you are seeing the impact of compiler optimizations. If a global variable is never referenced after optimizing the code, then the global variable will be optimized away. This type of optimization is important for size constrained environment like firmware. By using the /Gw- flag, you are disabling the ability of the compiler to optimize away unreferenced global variables. If you update the code in your example to guarantee the global variable is always accessed for all types of builds, then I suspect you will always see the global in the map. Thanks, Mike -Original Message- From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Tiger Liu(BJ-RD) Sent: Tuesday, August 4, 2020 11:34 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Gao, Liming mailto:liming@intel.com>> Subject: Re: [edk2-devel] question about MSFT compiler/link option Hi, Liming: Thanks for your reply! I checked map file, not find this global data array. I found if added this build option in this PEIM's inf, then it seems ok. [BuildOptions] MSFT:*_*_IA32_CC_FLAGS = /Gw- Thanks -邮件原件- 发件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> 代表 Liming Gao 发送时间: 2020年8月4日 23:21 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com>> 主题: Re: [edk2-devel] question about MSFT compiler/link option If this global variable is used by code, it will be linked into the final EFI image. You can check whether the generate map file includes it. -Original Message- From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Tiger Liu(BJ-RD) Sent: Tuesday, August 4, 2020 5:34 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] question about MSFT compiler/link option Hi, Experts: I have a question about MSFT compiler/link option. I wrote a PEIM, which had a large global data array definition in a C file. Such as: PRI_DATA_STRUCT PdataStructTable[] = { {01, 0x75,0xF0, 0x0, 0x0, 0x0 }, {02, 0x77,0xF0, 0x0, 0x0, 0x0 }, {03, 0x79,0xF0, 0x0, 0x0, 0x0 }, {04, 0x7B,0xF0, 0x0, 0x0, 0x0 }, {05, 0x7D,0xF0, 0x0, 0x0, 0x0 }, {06, 0x7F,0xF0, 0x0, 0x0, 0x0 }, .. }; This global data array is very large, about 20KB. But I found the PEIM's compiled size is about 5KB, it seems not include this global data array in the efi binary statically. Even the release version PEIM's size is larger than debug version. I found when compiling release version, the link option has : /MERGE:.rdata=.data It seems release binary included the global data array in the final efi image. So, my question is: Will the global data array be in linked into the final efi binary image when compiling debug version? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容 做任何未经授权的查阅、使用、复制或转发。 CONFIDENTIAL NOTE: This
Re: [edk2-devel] question about MSFT compiler/link option
Hi, Michael: I wrote this sentence in C file: pTmp = (VOID*)& PdataStructTable; tried to reference the table being generated to prevent the optimizer from removing the data structure from the executable. But it is still being optimized away. I used MSTF VS2015. Thanks -邮件原件- 发件人: devel@edk2.groups.io 代表 Michael D Kinney 发送时间: 2020年8月5日 23:18 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Gao, Liming ; Kinney, Michael D 主题: Re: [edk2-devel] question about MSFT compiler/link option Hi, I think you are seeing the impact of compiler optimizations. If a global variable is never referenced after optimizing the code, then the global variable will be optimized away. This type of optimization is important for size constrained environment like firmware. By using the /Gw- flag, you are disabling the ability of the compiler to optimize away unreferenced global variables. If you update the code in your example to guarantee the global variable is always accessed for all types of builds, then I suspect you will always see the global in the map. Thanks, Mike > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, August 4, 2020 11:34 PM > To: devel@edk2.groups.io; Gao, Liming > > Subject: Re: [edk2-devel] question about MSFT compiler/link option > > Hi, Liming: > Thanks for your reply! > > I checked map file, not find this global data array. > > I found if added this build option in this PEIM's inf, then it seems > ok. > [BuildOptions] > MSFT:*_*_IA32_CC_FLAGS = /Gw- > > Thanks > > -邮件原件- > 发件人: devel@edk2.groups.io 代表 > Liming Gao > 发送时间: 2020年8月4日 23:21 > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > 主题: Re: [edk2-devel] question about MSFT compiler/link option > > If this global variable is used by code, it will be linked into the > final EFI image. You can check whether the generate map file includes > it. > > > -Original Message- > > From: devel@edk2.groups.io On > Behalf Of Tiger > > Liu(BJ-RD) > > Sent: Tuesday, August 4, 2020 5:34 PM > > To: devel@edk2.groups.io > > Subject: [edk2-devel] question about MSFT > compiler/link option > > > > Hi, Experts: > > I have a question about MSFT compiler/link option. > > > > I wrote a PEIM, which had a large global data array > definition in a C file. > > Such as: > > PRI_DATA_STRUCT PdataStructTable[] = { > > {01, 0x75,0xF0, 0x0, 0x0, > 0x0 }, > > {02, 0x77,0xF0, 0x0, 0x0, > 0x0 }, > > {03, 0x79,0xF0, 0x0, 0x0, > 0x0 }, > > {04, 0x7B,0xF0, 0x0, 0x0, > 0x0 }, > > {05, 0x7D,0xF0, 0x0, 0x0, > 0x0 }, > > {06, 0x7F,0xF0, 0x0, 0x0, > 0x0 }, > > .. > > }; > > > > This global data array is very large, about 20KB. > > > > But I found the PEIM's compiled size is about 5KB, it > seems not include this global data array in the efi binary statically. > > Even the release version PEIM's size is larger than > debug version. > > > > I found when compiling release version, the link > option has : > > /MERGE:.rdata=.data It seems release binary included > the global data array in the final efi image. > > > > So, my question is: > > Will the global data array be in linked into the final > efi binary image when compiling debug version? > > > > 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. > > > > > > > > > > > 保密声明: > 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容 > 做任何未经授权的查阅、使用、复制或转发。 > 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. > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63768): https://edk2.groups.io/g/devel/message/63768 Mute This Topic: https://groups.io/mt/75983724/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] question about MSFT compiler/link option
Hi, Liming: Thanks for your reply! I checked map file, not find this global data array. I found if added this build option in this PEIM's inf, then it seems ok. [BuildOptions] MSFT:*_*_IA32_CC_FLAGS = /Gw- Thanks -邮件原件- 发件人: devel@edk2.groups.io 代表 Liming Gao 发送时间: 2020年8月4日 23:21 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] question about MSFT compiler/link option If this global variable is used by code, it will be linked into the final EFI image. You can check whether the generate map file includes it. > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, August 4, 2020 5:34 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] question about MSFT compiler/link option > > Hi, Experts: > I have a question about MSFT compiler/link option. > > I wrote a PEIM, which had a large global data array definition in a C file. > Such as: > PRI_DATA_STRUCT PdataStructTable[] = { > {01, 0x75,0xF0, 0x0, 0x0, 0x0 }, > {02, 0x77,0xF0, 0x0, 0x0, 0x0 }, > {03, 0x79,0xF0, 0x0, 0x0, 0x0 }, > {04, 0x7B,0xF0, 0x0, 0x0, 0x0 }, > {05, 0x7D,0xF0, 0x0, 0x0, 0x0 }, > {06, 0x7F,0xF0, 0x0, 0x0, 0x0 }, > .. > }; > > This global data array is very large, about 20KB. > > But I found the PEIM's compiled size is about 5KB, it seems not include this > global data array in the efi binary statically. > Even the release version PEIM's size is larger than debug version. > > I found when compiling release version, the link option has : > /MERGE:.rdata=.data It seems release binary included the global data array in > the final efi image. > > So, my question is: > Will the global data array be in linked into the final efi binary image when > compiling debug version? > > 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. > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63720): https://edk2.groups.io/g/devel/message/63720 Mute This Topic: https://groups.io/mt/75983724/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] question about MSFT compiler/link option
Hi, Experts: I have a question about MSFT compiler/link option. I wrote a PEIM, which had a large global data array definition in a C file. Such as: PRI_DATA_STRUCT PdataStructTable[] = { {01, 0x75,0xF0, 0x0, 0x0, 0x0 }, {02, 0x77,0xF0, 0x0, 0x0, 0x0 }, {03, 0x79,0xF0, 0x0, 0x0, 0x0 }, {04, 0x7B,0xF0, 0x0, 0x0, 0x0 }, {05, 0x7D,0xF0, 0x0, 0x0, 0x0 }, {06, 0x7F,0xF0, 0x0, 0x0, 0x0 }, .. }; This global data array is very large, about 20KB. But I found the PEIM's compiled size is about 5KB, it seems not include this global data array in the efi binary statically. Even the release version PEIM's size is larger than debug version. I found when compiling release version, the link option has : /MERGE:.rdata=.data It seems release binary included the global data array in the final efi image. So, my question is: Will the global data array be in linked into the final efi binary image when compiling debug version? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63694): https://edk2.groups.io/g/devel/message/63694 Mute This Topic: https://groups.io/mt/75983724/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] IsaBus driver's usage
Hi Nate: Got it. Thanks 发件人: devel@edk2.groups.io 代表 Nate DeSimone 发送时间: 2020年5月29日 15:08 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] IsaBus driver's usage Hi Tiger, I believe you are assuming that IsaBusDxe and SioDxe do the same thing, that is not the case. These two drivers are actually very different they do very different things. Consider a 15 year old PC. Most PC’s from that era had an ICH (the older terminology for PCH) with both parallel PCI and LPC controllers. A consequence of this design is legacy PCI supported subtractive decoding… which allowed OEMs to build systems with a PCI-to-ISA bridge device installed on the PCI bus… making it possible to build motherboards with ISA slots. This introduced one difficulty however, the LPC controller in the PCH is also a PCI-to-ISA bridge device, so you ended up having 2 PCI-to-ISA bridges in the system! Lets say your LPC bus has a Super I/O chip with a COM port, what happens if the user plugs a ISA serial card into an ISA slot? Does I/O port 0x3F8 get routed to the LPC controller or to the PCI controller? That is what IsaBusDxe is for, it arbitrates between multiple PCI-to-ISA bridges. About 10 years ago, the parallel PCI bus was removed, however at the same time a “Subtractive Decode Agent” was added to the PCH that allowed a single PCIe root port to be designated as being capable of subtractive decode. This allowed OEMs to build systems with a PCIe-to-PCI bridge… connected to a PCI-to-ISA bridge and still technically build systems with ISA slots. Starting with Sky Lake however, the subtractive decode agent was removed, which finally broke compatibility with the 1981 IBM PC. After Sky Lake, there can only be one PCI-to-ISA bridge in the system, the LPC controller. So there hasn’t really been a need for the arbitration driver anymore. SioDxe on the other hand is a generic Super I/O driver. Most new PCs today still have vestigial remnants of the Super I/O as part of their EC (embedded controller.) Specifically, most ECs support both the PS/2 and serial COM ports that were once part of Super I/O chips. Most ECs use PS/2 as the interface for the scan matrix keyboard on laptops. SioDxe provides the protocols that allow PciSioSerialDxe and Ps2KeyboardDxe to use these EC functions. Thanks, Nate From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, May 28, 2020 12:58 AM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] IsaBus driver's usage Hi, expert: I have a question about IsaBus driver. There is a isa bus driver in MdeModulePkg\Bus\Isa\IsaBusDxe. But i find nobody use it anymore. Based on current edk2-platform samples, they just use SioDxe driver plus Ps2Keyboard driver, not use IsaBus driver anymore. So when to use IsaBus driver? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#60853): https://edk2.groups.io/g/devel/message/60853 Mute This Topic: https://groups.io/mt/74517611/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] IsaBus driver's usage
Hi, expert: I have a question about IsaBus driver. There is a isa bus driver in MdeModulePkg\Bus\Isa\IsaBusDxe. But i find nobody use it anymore. Based on current edk2-platform samples, they just use SioDxe driver plus Ps2Keyboard driver, not use IsaBus driver anymore. So when to use IsaBus driver? Thanks -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#60381): https://edk2.groups.io/g/devel/message/60381 Mute This Topic: https://groups.io/mt/74517611/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Question about LAPIC Timer lib
Hi, Experts: There is a TimeLib implementation in UefiCpuPkg\Library\SecPeiDxeTimerLibUefiCpu . It uses cpu's local apic timer. I wonder whether it could be used in smm drivers? If using MicroSecondDelay function (which provided in this timerlib), maybe we should save OS's CPU local apic timer setting first. And restore OS's CPU local apic timer setting before return to OS environment. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#57503): https://edk2.groups.io/g/devel/message/57503 Mute This Topic: https://groups.io/mt/73073476/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] How to change RAID Card's configuration without going into its setup ui
Hi, Experts: I am studying how to remote control some hardware's configuration. Such as changing RAID Card's configuration without going into its setup ui. So, one question confused me. If RAID Card's firmware is written with UEFI driver model, so I can use some standard UEFI protocol to pass some configurations to RAID card's firmware? Or must use RAID Card vendor's private protocol to transfer new configurations? Such as: EFI Adapter Information Protocol, SetInformation function. Thanks -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56810): https://edk2.groups.io/g/devel/message/56810 Mute This Topic: https://groups.io/mt/72693301/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] How to change RAID Card's configuration without going into its setup ui
Hi, Experts: I am studying how to remote control some hardware's configuration. Such as changing RAID Card's configuration without going into its setup ui. So, one question confused me. If RAID Card's firmware is written with UEFI driver model, so I can use some standard UEFI protocol to pass some configurations to RAID card's firmware? Or must use RAID Card vendor's private protocol to transfer new configurations? Such as: EFI Adapter Information Protocol, SetInformation function. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56732): https://edk2.groups.io/g/devel/message/56732 Mute This Topic: https://groups.io/mt/72673358/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] Questions about UEFI MAT / PcdPropertiesTableEnable
Hi, Laszlo: Got it. Thanks Best wishes, -邮件原件- 发件人: devel@edk2.groups.io 代表 Laszlo Ersek 发送时间: 2020年3月23日 21:22 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] Questions about UEFI MAT / PcdPropertiesTableEnable On 03/17/20 10:27, Tiger Liu(BJ-RD) wrote: > Hi, Experts: > I have a question about UEFI MAT / PcdPropertiesTableEnable. > Device protection in Windows Security, standard hardware security requirement > is described as below: > TPM 2.0 > Secure Boot Enabled > DEP > UEFI MAT > > And UEFI MAT feature is related with PcdPropertiesTableEnable. > > But I found the newest UDK kernel, this PCD is still set with FALSE. > > So, is there any concerns if setting its default value as TRUE. The properties table should not be used. It has been superseded by the memory attributes table, per spec. In edk2, the properties table is controlled by the PCD, regardless of the memory attributes table. In edk2, the memory attributes table is always produced, regardless of the properties table. Please see the discussion under: [edk2] [patch 0/7] Add UEFI2.6 MemoryAttributesTable support. http://mid.mail-archive.com/1454069539-4056-1-git-send-email-jiewen.yao@intel.com Thanks 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56246): https://edk2.groups.io/g/devel/message/56246 Mute This Topic: https://groups.io/mt/72020387/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] Questions about UEFI MAT / PcdPropertiesTableEnable
Hi, Experts: I have a question about UEFI MAT / PcdPropertiesTableEnable. Device protection in Windows Security, standard hardware security requirement is described as below: TPM 2.0 Secure Boot Enabled DEP UEFI MAT And UEFI MAT feature is related with PcdPropertiesTableEnable. But I found the newest UDK kernel, this PCD is still set with FALSE. So, is there any concerns if setting its default value as TRUE. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55926): https://edk2.groups.io/g/devel/message/55926 Mute This Topic: https://groups.io/mt/72020387/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] question about : DmaBufferAlignment in CPU Arch driver
Dear All: I have a question about DmaBufferAlignment in CPU Arch driver. Based on PI Spec: .. This is typically the size of the largest data cache line in the platform. This value can be determined by looking at the data cache line sizes of all the caches present in the platform, and returning the largest. This is used by the root bridge I/O abstraction protocols to guarantee that no two DMA buffers ever share the same cache line. The value in this field is a constant that must not be modified after the CPU Architectural Protocol is installed. All consumers must treat this as a read-only field. But, I study Kabylake sample code, it uses UefiCpuPkg/CpuDxe/CpuDxe.inf, And it declares 4 (DmaBufferAlignment). For x86 cpu, the cache line size is usually 64 bytes. Why not set 64 in CPU Arch protocol interface struct? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#51128): https://edk2.groups.io/g/devel/message/51128 Mute This Topic: https://groups.io/mt/61342276/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] memmap content change question
Dear All: I have a question about memmap info. I kept platform no changes during below test, and found memmap info changes every time. The test steps is: 1. Boot to shell, run memmap command , and dump info to 111.txt 2. use reset command to reboot system to shell again, and dump info to 222.txt 3. then use comp command to compare 111.txt and 222.txt, and found the content was not same The platform no changes, why has these difference? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50928): https://edk2.groups.io/g/devel/message/50928 Mute This Topic: https://groups.io/mt/60745094/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer function hang
Hi, Mike: Got it! Thanks Best wishes, -邮件原件- 发件人: Kinney, Michael D 发送时间: 2019年11月19日 9:51 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io; Kinney, Michael D 主题: RE: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer function hang That is the only reason the IDTs are different. Earlier in this project, the same IDT was used by BSP and APs. This meant APs could call PEI Services and we did not know until there was a side effect. By using different IDTs, we catch APs calling PEI Services immediately. Mike > -Original Message- > From: Tiger Liu(BJ-RD) > Sent: Monday, November 18, 2019 5:21 PM > To: Kinney, Michael D ; > devel@edk2.groups.io > Subject: Re: [edk2-devel] [edk2] AP core : call > GetPeiServicesTablePointer function hang > > Hi, Mike: > Got it! > Thank you very much! > > I have another question: > Why does AP use an IDT table which is different with BSP? > Is there other concern? > > Thanks > -邮件原件- > 发件人: Kinney, Michael D > 发送时间: 2019年11月19日 0:27 > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; > Kinney, Michael D > 主题: RE: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer > function hang > > PEI Phase execution environment is focused on BSP execution. > The PEI Services and most of the PPI services are not designed to be > MP safe. Since it is not safe for an AP to call PEI Services, the IDT > entry with the pointer to the PEI Service Table is not available to an > AP to prevent code from incorrectly calling a PEI Service from an AP. > > It is legal to run code on an AP in the PEI Phase, but the code > executed must be carefully designed to not use PEI Services and is > usually designed to execute using only stack/memory and system > resources that have assigned for exclusive access by an AP. > This is usually communicated from BSP to an AP through a mailbox in > memory. If an AP needs something like a PEI Service (e.g. > memory allocation or logging), then the AP should make that request to > the BSP to perform that operation for the AP. > > Mike > > > -Original Message- > > From: devel@edk2.groups.io On > Behalf Of Tiger > > Liu(BJ-RD) > > Sent: Monday, November 18, 2019 1:08 AM > > To: devel@edk2.groups.io > > Subject: [edk2-devel] [edk2] AP core : call > GetPeiServicesTablePointer > > function hang > > > > Dear All: > > I met a question during debug multi-processor code. > > > > I found if AP's procedure call > > GetPeiServicesTablePointer function , then it would > hang. > > GetPeiServicesTablePointer ( > > VOID > > ) > > { > > CONST EFI_PEI_SERVICES **PeiServices; > > IA32_DESCRIPTOR Idtr; > > > > AsmReadIdtr (); > > PeiServices = (CONST EFI_PEI_SERVICES **) > (*(UINTN*)(Idtr.Base - > > sizeof (UINTN))); > > ASSERT (PeiServices != NULL); > > return PeiServices; > > } > > > > It seems BSP and AP use different IDT table? Why? > > > > 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. > > > > > > > > 保密声明: > 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容 > 做任何未经授权的查阅、使用、复制或转发。 > 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50856): https://edk2.groups.io/g/devel/message/50856 Mute This Topic: https://groups.io/mt/60171891/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer function hang
Hi, Mike: Got it! Thank you very much! I have another question: Why does AP use an IDT table which is different with BSP? Is there other concern? Thanks -邮件原件- 发件人: Kinney, Michael D 发送时间: 2019年11月19日 0:27 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Kinney, Michael D 主题: RE: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer function hang PEI Phase execution environment is focused on BSP execution. The PEI Services and most of the PPI services are not designed to be MP safe. Since it is not safe for an AP to call PEI Services, the IDT entry with the pointer to the PEI Service Table is not available to an AP to prevent code from incorrectly calling a PEI Service from an AP. It is legal to run code on an AP in the PEI Phase, but the code executed must be carefully designed to not use PEI Services and is usually designed to execute using only stack/memory and system resources that have assigned for exclusive access by an AP. This is usually communicated from BSP to an AP through a mailbox in memory. If an AP needs something like a PEI Service (e.g. memory allocation or logging), then the AP should make that request to the BSP to perform that operation for the AP. Mike > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Monday, November 18, 2019 1:08 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer > function hang > > Dear All: > I met a question during debug multi-processor code. > > I found if AP's procedure call > GetPeiServicesTablePointer function , then it would hang. > GetPeiServicesTablePointer ( > VOID > ) > { > CONST EFI_PEI_SERVICES **PeiServices; > IA32_DESCRIPTOR Idtr; > > AsmReadIdtr (); > PeiServices = (CONST EFI_PEI_SERVICES **) (*(UINTN*)(Idtr.Base - > sizeof (UINTN))); > ASSERT (PeiServices != NULL); > return PeiServices; > } > > It seems BSP and AP use different IDT table? Why? > > 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. > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50852): https://edk2.groups.io/g/devel/message/50852 Mute This Topic: https://groups.io/mt/60171891/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] AP core : call GetPeiServicesTablePointer function hang
Dear All: I met a question during debug multi-processor code. I found if AP's procedure call GetPeiServicesTablePointer function , then it would hang. GetPeiServicesTablePointer ( VOID ) { CONST EFI_PEI_SERVICES **PeiServices; IA32_DESCRIPTOR Idtr; AsmReadIdtr (); PeiServices = (CONST EFI_PEI_SERVICES **) (*(UINTN*)(Idtr.Base - sizeof (UINTN))); ASSERT (PeiServices != NULL); return PeiServices; } It seems BSP and AP use different IDT table? Why? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50824): https://edk2.groups.io/g/devel/message/50824 Mute This Topic: https://groups.io/mt/60171891/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] INF file : use conditional sentence
Based on INF Spec, maybe FeatureFlagExpress is a choice. When present, the feature flag expression determines whether the entry line is valid. If the feature flag expression evaluates to FALSE, this entry will be ignored by the EDK II build tools. For below example, is MSFT/GCC FeatureFlag ? [Sources.Ia32] Ia32/DisableCache.c | MSFT Ia32/GccInline.c | GCC Thanks -邮件原件- 发件人: Tiger Liu(BJ-RD) 发送时间: 2019年11月13日 16:49 收件人: devel@edk2.groups.io 主题: [edk2-devel] [edk2] INF file : use conditional sentence Dear All: I have a question about INF file written syntax. Could I use conditional sentence in INF file? For example: [Defines] .. [Sources] !ifdef ABC a.c !else b.c !endif .. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50583): https://edk2.groups.io/g/devel/message/50583 Mute This Topic: https://groups.io/mt/55548010/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] INF file : use conditional sentence
Dear All: I have a question about INF file written syntax. Could I use conditional sentence in INF file? For example: [Defines] .. [Sources] !ifdef ABC a.c !else b.c !endif .. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50580): https://edk2.groups.io/g/devel/message/50580 Mute This Topic: https://groups.io/mt/55548010/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] AMD : Styx/Overdrive board
Dear All: I found edk2-platforms\Platform\AMD\OverdriveBoard indicated it is related with OverdriveBoard. But I could not find this Motherboard introduction. 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50300): https://edk2.groups.io/g/devel/message/50300 Mute This Topic: https://groups.io/mt/47580867/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Isaac: I am curious about why providing these driver's' implementations (CPU Arch/PciHostBridge) by a binary FV and not use MdeModulePkg open source code. Based on a OCP ppt, the baseline boot flow is: ACM -> SEC -> UPI/DRAM MRC init/MP Init etc. -> DXE Phase -> .. I think FSP binary just cover SEC/PEI platform related init, and DXE phase's drivers should adopt standard UDK open source code. And it seems KabyLake/Whiskeylake use open source UDK Dxe phase's drivers. Thanks -Original Message- From: devel@edk2.groups.io On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, November 7, 2019 5:21 PM To: Oram, Isaac W ; devel@edk2.groups.io; Kubacki, Michael A Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Hi, Isaac: Got it! Maybe, these three DXE/SMM drivers are all provided by FvPostMemorySilicon.Fv #UefiCpuPkg/CpuDxe/CpuDxe.inf #UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf #MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf Thanks -邮件原件- 发件人: Oram, Isaac W 发送时间: 2019年11月8日 6:18 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Kubacki, Michael A 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Tiger, I believe that the solution used a silicon specific PciHostBridge driver provided by one of the binary FV providing silicon components (probably FILE = $(SILICON_BIN_PKG)/FvPostMemorySilicon/$(TARGET)/FvPostMemorySilicon.Fv). Regards, Isaac -Original Message- From: devel@edk2.groups.io On Behalf Of Tiger Liu(BJ-RD) Sent: Wednesday, November 6, 2019 9:45 PM To: Kubacki, Michael A ; devel@edk2.groups.io Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Hi, Michael: I have a question about PCI host bridge driver in Olympus board. I found PciHostBridge driver is deleted in CoreDxeInclude.dsc. #MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf So, it seems BoardMtOlympus\PlatformPkg.dsc does not include any PciHostBridge driver implementation. Thanks -邮件原件- 发件人: Tiger Liu(BJ-RD) 发送时间: 2019年11月6日 15:48 收件人: 'Kubacki, Michael A' ; devel@edk2.groups.io 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Got it. Thank you very much. Best wishes, -邮件原件- 发件人: Kubacki, Michael A 发送时间: 2019年11月6日 15:05 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Unfortunately not. That's why we're trying to add support for these other commercially available systems such as the System 76 laptop and the UP Xtreme board. The next product family that will likely get an open source board package added will be Comet Lake (client) as tracked here: https://bugzilla.tianocore.org/show_bug.cgi?id=2280 We very much would like to add back open source server platform code including support for a commercially available board and we're evaluating a few options but there's nothing definitive enough at the moment to give a target system or ETA. Thanks, Michael > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 10:47 PM > To: devel@edk2.groups.io; Kubacki, Michael A > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > code support > > Hi, Michael: > Got it. > Thanks > > For "Reference and Validation Platform" motherboard, could user buy it > at open market? > For example, buy it on Amazon. > > Thanks > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Kubacki, Michael A > 发送时间: 2019年11月6日 10:12 > 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io > 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > No other OCP support at the moment. Current board support is > summarized in this Readme.md: > https://github.com/tianocore/edk2- > platforms/blob/master/Readme.md#intel > > Newer Intel platform firmware is following the EDK II Minimum Platform > specification and the boards supported are documented here: > https://github.com/tianocore/edk2- > platforms/blob/master/Platform/Intel/Readme.md#supported-hardware > > KabylakeOpenBoardPkg supports two boards: > * KabylakeRvp3 (an Intel Kaby Lake Y Reference and Validation > Platform) > * GalagoPro3 (a commercial laptop with Kaby Lake from System 76) > > WhiskeylakeOpenBoardPkg currently supports: > * WhiskeylakeURvp (an Intel Whiskey Lake U Reference and Validation > Platform) > > There is a plan to add board support for the UP Xtreme board in > WhiskeylakeOpenBoardPkg soon as noted here: > https://bugzilla.tianocore.org/show_bug.cgi?id=2191. > > Thanks, > Michael > > > -Original Message- > > From: Tiger Liu(BJ-RD) > > Sent: Tuesday, November 5, 2019 5:32 PM > > To: Kubacki, Michael A ; > > devel@edk2.groups
Re: [edk2-devel] [edk2] DSC file : override FILE_GUID rule
Hi, Laszlo: Got it. Thanks Best wishes, -邮件原件- 发件人: Gao, Liming 发送时间: 2019年11月7日 23:16 收件人: Laszlo Ersek ; devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] DSC file : override FILE_GUID rule BaseTools can handle the space between them. Thanks Liming > -Original Message- > From: Laszlo Ersek > Sent: Thursday, November 7, 2019 11:12 PM > To: Gao, Liming ; devel@edk2.groups.io; > tiger...@zhaoxin.com > Subject: Re: [edk2-devel] [edk2] DSC file : override FILE_GUID rule > > On 11/07/19 15:59, Gao, Liming wrote: > > In FDF, you also need to specify this file guid and match the one in DSC. > > The syntax is like below: > > > > INF FILE_GUID= D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94 > > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf > > Thanks! (I assume there is no space character right after > "FILE_GUID=".) > > Cheers > Laszlo > > > Thanks > > Liming > >> -Original Message- > >> From: devel@edk2.groups.io On Behalf Of > >> Laszlo Ersek > >> Sent: Thursday, November 7, 2019 6:56 PM > >> To: devel@edk2.groups.io; tiger...@zhaoxin.com > >> Subject: Re: [edk2-devel] [edk2] DSC file : override FILE_GUID rule > >> > >> On 11/07/19 05:51, Tiger Liu(BJ-RD) wrote: > >>> Dear All: > >>> I have a question about FILE_GUID override rule in dsc file. > >>> For example: > >>> .. > >>> UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf { > >>> > >>> FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94 > >>> .. > >>> } > >>> > >>> Usually, will define FILE_GUID in PiSmmCpuDxeSmm.inf . > >>> > >>> Why override it in dsc file? > >> > >> IIRC, such overrides allow the platform DSC file to build the same > >> module multiple times, most likely with other overrides too (such > >> as PCD and lib class resolution). The resultant binaries will not > >> conflict in any firmware volume / firmware file-system, by FILE_GUID. > >> > >> I don't remember the syntax, to be used in the FDF file, for > >> refering to all of the builds of the same module INF file. > >> > >> Thanks > >> 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50276): https://edk2.groups.io/g/devel/message/50276 Mute This Topic: https://groups.io/mt/45221205/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Isaac: Got it! Maybe, these three DXE/SMM drivers are all provided by FvPostMemorySilicon.Fv #UefiCpuPkg/CpuDxe/CpuDxe.inf #UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf #MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf Thanks -邮件原件- 发件人: Oram, Isaac W 发送时间: 2019年11月8日 6:18 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) ; Kubacki, Michael A 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Tiger, I believe that the solution used a silicon specific PciHostBridge driver provided by one of the binary FV providing silicon components (probably FILE = $(SILICON_BIN_PKG)/FvPostMemorySilicon/$(TARGET)/FvPostMemorySilicon.Fv). Regards, Isaac -Original Message- From: devel@edk2.groups.io On Behalf Of Tiger Liu(BJ-RD) Sent: Wednesday, November 6, 2019 9:45 PM To: Kubacki, Michael A ; devel@edk2.groups.io Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Hi, Michael: I have a question about PCI host bridge driver in Olympus board. I found PciHostBridge driver is deleted in CoreDxeInclude.dsc. #MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf So, it seems BoardMtOlympus\PlatformPkg.dsc does not include any PciHostBridge driver implementation. Thanks -邮件原件- 发件人: Tiger Liu(BJ-RD) 发送时间: 2019年11月6日 15:48 收件人: 'Kubacki, Michael A' ; devel@edk2.groups.io 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Got it. Thank you very much. Best wishes, -邮件原件- 发件人: Kubacki, Michael A 发送时间: 2019年11月6日 15:05 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Unfortunately not. That's why we're trying to add support for these other commercially available systems such as the System 76 laptop and the UP Xtreme board. The next product family that will likely get an open source board package added will be Comet Lake (client) as tracked here: https://bugzilla.tianocore.org/show_bug.cgi?id=2280 We very much would like to add back open source server platform code including support for a commercially available board and we're evaluating a few options but there's nothing definitive enough at the moment to give a target system or ETA. Thanks, Michael > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 10:47 PM > To: devel@edk2.groups.io; Kubacki, Michael A > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > code support > > Hi, Michael: > Got it. > Thanks > > For "Reference and Validation Platform" motherboard, could user buy it > at open market? > For example, buy it on Amazon. > > Thanks > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Kubacki, Michael A > 发送时间: 2019年11月6日 10:12 > 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io > 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > No other OCP support at the moment. Current board support is > summarized in this Readme.md: > https://github.com/tianocore/edk2- > platforms/blob/master/Readme.md#intel > > Newer Intel platform firmware is following the EDK II Minimum Platform > specification and the boards supported are documented here: > https://github.com/tianocore/edk2- > platforms/blob/master/Platform/Intel/Readme.md#supported-hardware > > KabylakeOpenBoardPkg supports two boards: > * KabylakeRvp3 (an Intel Kaby Lake Y Reference and Validation > Platform) > * GalagoPro3 (a commercial laptop with Kaby Lake from System 76) > > WhiskeylakeOpenBoardPkg currently supports: > * WhiskeylakeURvp (an Intel Whiskey Lake U Reference and Validation > Platform) > > There is a plan to add board support for the UP Xtreme board in > WhiskeylakeOpenBoardPkg soon as noted here: > https://bugzilla.tianocore.org/show_bug.cgi?id=2191. > > Thanks, > Michael > > > -Original Message- > > From: Tiger Liu(BJ-RD) > > Sent: Tuesday, November 5, 2019 5:32 PM > > To: Kubacki, Michael A ; > > devel@edk2.groups.io > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > > code support > > > > Hi, Michael: > > Thanks for your reply! > > > > Is there any other project For Intel open source platform firmware? > > > > KabylakeOpenBoardPkg / WhiskeylakeOpenBoardPkg is also for OCP > > platform board? > > > > Thanks > > -邮件原件- > > 发件人: Kubacki, Michael A > > 发送时间: 2019年11月6日 2:38 > > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > > 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > > support > > > > Hi, > > > > The PurleyOpenBoardPkg code is being removed as noted in the > > following patch series
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Michael: I have a question about PCI host bridge driver in Olympus board. I found PciHostBridge driver is deleted in CoreDxeInclude.dsc. #MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf So, it seems BoardMtOlympus\PlatformPkg.dsc does not include any PciHostBridge driver implementation. Thanks -邮件原件- 发件人: Tiger Liu(BJ-RD) 发送时间: 2019年11月6日 15:48 收件人: 'Kubacki, Michael A' ; devel@edk2.groups.io 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Got it. Thank you very much. Best wishes, -邮件原件- 发件人: Kubacki, Michael A 发送时间: 2019年11月6日 15:05 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Unfortunately not. That's why we're trying to add support for these other commercially available systems such as the System 76 laptop and the UP Xtreme board. The next product family that will likely get an open source board package added will be Comet Lake (client) as tracked here: https://bugzilla.tianocore.org/show_bug.cgi?id=2280 We very much would like to add back open source server platform code including support for a commercially available board and we're evaluating a few options but there's nothing definitive enough at the moment to give a target system or ETA. Thanks, Michael > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 10:47 PM > To: devel@edk2.groups.io; Kubacki, Michael A > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > code support > > Hi, Michael: > Got it. > Thanks > > For "Reference and Validation Platform" motherboard, could user buy it > at open market? > For example, buy it on Amazon. > > Thanks > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Kubacki, Michael A > 发送时间: 2019年11月6日 10:12 > 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io > 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > No other OCP support at the moment. Current board support is > summarized in this Readme.md: > https://github.com/tianocore/edk2- > platforms/blob/master/Readme.md#intel > > Newer Intel platform firmware is following the EDK II Minimum Platform > specification and the boards supported are documented here: > https://github.com/tianocore/edk2- > platforms/blob/master/Platform/Intel/Readme.md#supported-hardware > > KabylakeOpenBoardPkg supports two boards: > * KabylakeRvp3 (an Intel Kaby Lake Y Reference and Validation > Platform) > * GalagoPro3 (a commercial laptop with Kaby Lake from System 76) > > WhiskeylakeOpenBoardPkg currently supports: > * WhiskeylakeURvp (an Intel Whiskey Lake U Reference and Validation > Platform) > > There is a plan to add board support for the UP Xtreme board in > WhiskeylakeOpenBoardPkg soon as noted here: > https://bugzilla.tianocore.org/show_bug.cgi?id=2191. > > Thanks, > Michael > > > -Original Message- > > From: Tiger Liu(BJ-RD) > > Sent: Tuesday, November 5, 2019 5:32 PM > > To: Kubacki, Michael A ; > > devel@edk2.groups.io > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > > code support > > > > Hi, Michael: > > Thanks for your reply! > > > > Is there any other project For Intel open source platform firmware? > > > > KabylakeOpenBoardPkg / WhiskeylakeOpenBoardPkg is also for OCP > > platform board? > > > > Thanks > > -邮件原件- > > 发件人: Kubacki, Michael A > > 发送时间: 2019年11月6日 2:38 > > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > > 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > > support > > > > Hi, > > > > The PurleyOpenBoardPkg code is being removed as noted in the > > following patch series recently sent to the mailing list - > > https://edk2.groups.io/g/devel/message/49843. > > > > It has not been tested in some time and does not align with our > > vision for Intel open source platform firmware. The effort required > > to update the code and sustain testing alongside a large number of > > planned changes elsewhere that will impact PurleyOpenBoardPkg led to > > the decision to remove the package before the next stable tag. > > > > Prior to removal the code should compile by following the > > instructions > here: > > https://github.com/tianocore/edk2- > > platforms/blob/master/Platform/Intel/Readme.md > > > > Thanks, > > Michael > > > > > -Original Message- > > > From: devel@edk2.groups.io On Behalf Of > > > Tiger > > > Liu(BJ-RD) > > > Sent: Tuesday, November 5, 2019 2:58 A
[edk2-devel] [edk2] DSC file : override FILE_GUID rule
Dear All: I have a question about FILE_GUID override rule in dsc file. For example: .. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf { FILE_GUID = D1D74FE9-7A4E-41D3-A0B3-67F13AD34D94 .. } Usually, will define FILE_GUID in PiSmmCpuDxeSmm.inf . Why override it in dsc file? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50164): https://edk2.groups.io/g/devel/message/50164 Mute This Topic: https://groups.io/mt/45221205/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Got it. Thank you very much. Best wishes, -邮件原件- 发件人: Kubacki, Michael A 发送时间: 2019年11月6日 15:05 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Unfortunately not. That's why we're trying to add support for these other commercially available systems such as the System 76 laptop and the UP Xtreme board. The next product family that will likely get an open source board package added will be Comet Lake (client) as tracked here: https://bugzilla.tianocore.org/show_bug.cgi?id=2280 We very much would like to add back open source server platform code including support for a commercially available board and we're evaluating a few options but there's nothing definitive enough at the moment to give a target system or ETA. Thanks, Michael > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 10:47 PM > To: devel@edk2.groups.io; Kubacki, Michael A > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > code support > > Hi, Michael: > Got it. > Thanks > > For "Reference and Validation Platform" motherboard, could user buy it > at open market? > For example, buy it on Amazon. > > Thanks > -邮件原件- > 发件人: devel@edk2.groups.io 代表 Kubacki, Michael A > 发送时间: 2019年11月6日 10:12 > 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io > 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > No other OCP support at the moment. Current board support is > summarized in this Readme.md: > https://github.com/tianocore/edk2- > platforms/blob/master/Readme.md#intel > > Newer Intel platform firmware is following the EDK II Minimum Platform > specification and the boards supported are documented here: > https://github.com/tianocore/edk2- > platforms/blob/master/Platform/Intel/Readme.md#supported-hardware > > KabylakeOpenBoardPkg supports two boards: > * KabylakeRvp3 (an Intel Kaby Lake Y Reference and Validation > Platform) > * GalagoPro3 (a commercial laptop with Kaby Lake from System 76) > > WhiskeylakeOpenBoardPkg currently supports: > * WhiskeylakeURvp (an Intel Whiskey Lake U Reference and Validation > Platform) > > There is a plan to add board support for the UP Xtreme board in > WhiskeylakeOpenBoardPkg soon as noted here: > https://bugzilla.tianocore.org/show_bug.cgi?id=2191. > > Thanks, > Michael > > > -Original Message- > > From: Tiger Liu(BJ-RD) > > Sent: Tuesday, November 5, 2019 5:32 PM > > To: Kubacki, Michael A ; > > devel@edk2.groups.io > > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > > code support > > > > Hi, Michael: > > Thanks for your reply! > > > > Is there any other project For Intel open source platform firmware? > > > > KabylakeOpenBoardPkg / WhiskeylakeOpenBoardPkg is also for OCP > > platform board? > > > > Thanks > > -邮件原件- > > 发件人: Kubacki, Michael A > > 发送时间: 2019年11月6日 2:38 > > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > > 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > > support > > > > Hi, > > > > The PurleyOpenBoardPkg code is being removed as noted in the > > following patch series recently sent to the mailing list - > > https://edk2.groups.io/g/devel/message/49843. > > > > It has not been tested in some time and does not align with our > > vision for Intel open source platform firmware. The effort required > > to update the code and sustain testing alongside a large number of > > planned changes elsewhere that will impact PurleyOpenBoardPkg led to > > the decision to remove the package before the next stable tag. > > > > Prior to removal the code should compile by following the > > instructions > here: > > https://github.com/tianocore/edk2- > > platforms/blob/master/Platform/Intel/Readme.md > > > > Thanks, > > Michael > > > > > -Original Message- > > > From: devel@edk2.groups.io On Behalf Of > > > Tiger > > > Liu(BJ-RD) > > > Sent: Tuesday, November 5, 2019 2:58 AM > > > To: devel@edk2.groups.io; Kubacki, Michael A > > > > > > Subject: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > > > code support > > > > > > Hi, Michael: > > > I found edk2-platforms include OCP Olympus board’s support package. > > > edk2-platforms\Platform\Intel\PurleyOpenBoardPkg\BoardMtOlympus > > > > > > In this wiki, > > > https://github.com/tianocore/tianocore.githu
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Michael: Got it. Thanks For "Reference and Validation Platform" motherboard, could user buy it at open market? For example, buy it on Amazon. Thanks -邮件原件- 发件人: devel@edk2.groups.io 代表 Kubacki, Michael A 发送时间: 2019年11月6日 10:12 收件人: Tiger Liu(BJ-RD) ; devel@edk2.groups.io 主题: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support No other OCP support at the moment. Current board support is summarized in this Readme.md: https://github.com/tianocore/edk2-platforms/blob/master/Readme.md#intel Newer Intel platform firmware is following the EDK II Minimum Platform specification and the boards supported are documented here: https://github.com/tianocore/edk2-platforms/blob/master/Platform/Intel/Readme.md#supported-hardware KabylakeOpenBoardPkg supports two boards: * KabylakeRvp3 (an Intel Kaby Lake Y Reference and Validation Platform) * GalagoPro3 (a commercial laptop with Kaby Lake from System 76) WhiskeylakeOpenBoardPkg currently supports: * WhiskeylakeURvp (an Intel Whiskey Lake U Reference and Validation Platform) There is a plan to add board support for the UP Xtreme board in WhiskeylakeOpenBoardPkg soon as noted here: https://bugzilla.tianocore.org/show_bug.cgi?id=2191. Thanks, Michael > -Original Message- > From: Tiger Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 5:32 PM > To: Kubacki, Michael A ; > devel@edk2.groups.io > Subject: Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS > code support > > Hi, Michael: > Thanks for your reply! > > Is there any other project For Intel open source platform firmware? > > KabylakeOpenBoardPkg / WhiskeylakeOpenBoardPkg is also for OCP > platform board? > > Thanks > -邮件原件- > 发件人: Kubacki, Michael A > 发送时间: 2019年11月6日 2:38 > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > Hi, > > The PurleyOpenBoardPkg code is being removed as noted in the following > patch series recently sent to the mailing list - > https://edk2.groups.io/g/devel/message/49843. > > It has not been tested in some time and does not align with our vision > for Intel open source platform firmware. The effort required to update > the code and sustain testing alongside a large number of planned > changes elsewhere that will impact PurleyOpenBoardPkg led to the > decision to remove the package before the next stable tag. > > Prior to removal the code should compile by following the instructions here: > https://github.com/tianocore/edk2- > platforms/blob/master/Platform/Intel/Readme.md > > Thanks, > Michael > > > -Original Message- > > From: devel@edk2.groups.io On Behalf Of Tiger > > Liu(BJ-RD) > > Sent: Tuesday, November 5, 2019 2:58 AM > > To: devel@edk2.groups.io; Kubacki, Michael A > > > > Subject: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > > support > > > > Hi, Michael: > > I found edk2-platforms include OCP Olympus board’s support package. > > edk2-platforms\Platform\Intel\PurleyOpenBoardPkg\BoardMtOlympus > > > > In this wiki, > > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II- > > Platforms > > It also said,edk2-platform include Project Olympus’s support: > > EDK II Minimum Platforms > > • https://github.com/tianocore/tianocore.github.io/wiki/Kaby-Lake- > > MinPlatform - EDK II platform firmware on 7th Generation Intel® > > Core™ Processors and chipsets (formerly > > https://ark.intel.com/products/codename/82879/Kaby-Lake platforms). > > • https://github.com/tianocore/tianocore.github.io/wiki/Purley- > > MinPlatform - EDK II platform firmware for the Open Compute Project > > (OCP) > > > http://www.opencompute.org/wiki/Server/ProjectOlympus#Project_Olymp > > us_Server_Motherboards. > > • > > https://github.com/tianocore/tianocore.github.io/wiki/Whiskey-Lake- > > MinPlatform - EDK II platform firmware on 8th Generation Intel® > > Core™ Processors and chipsets (formerly > > > https://ark.intel.com/content/www/us/en/ark/products/codename/135883 > > /whiskey-lake.html platforms). > > > > So, Could I compile a UEFI BIOS Firmware for Olympus board with > > current edk2-platform code + edk2 code? > > > > Note: > > Project Olympus board's wiki page: > > https://www.opencompute.org/wiki/Server/ProjectOlympus > > > > Thanks > > > > > > 保密声明: > > 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或 > 其内 > > 容做任何未经授权的查阅、使用、复制或转发。 > > CONFIDENTIAL NOTE: > > This email contains confidential or legally privileged information > > and is for the sole use of its intended recipient. Any unauthorized > >
Re: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Michael: Thanks for your reply! Is there any other project For Intel open source platform firmware? KabylakeOpenBoardPkg / WhiskeylakeOpenBoardPkg is also for OCP platform board? Thanks -邮件原件- 发件人: Kubacki, Michael A 发送时间: 2019年11月6日 2:38 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support Hi, The PurleyOpenBoardPkg code is being removed as noted in the following patch series recently sent to the mailing list - https://edk2.groups.io/g/devel/message/49843. It has not been tested in some time and does not align with our vision for Intel open source platform firmware. The effort required to update the code and sustain testing alongside a large number of planned changes elsewhere that will impact PurleyOpenBoardPkg led to the decision to remove the package before the next stable tag. Prior to removal the code should compile by following the instructions here: https://github.com/tianocore/edk2-platforms/blob/master/Platform/Intel/Readme.md Thanks, Michael > -Original Message- > From: devel@edk2.groups.io On Behalf Of Tiger > Liu(BJ-RD) > Sent: Tuesday, November 5, 2019 2:58 AM > To: devel@edk2.groups.io; Kubacki, Michael A > > Subject: [edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code > support > > Hi, Michael: > I found edk2-platforms include OCP Olympus board’s support package. > edk2-platforms\Platform\Intel\PurleyOpenBoardPkg\BoardMtOlympus > > In this wiki, > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II- > Platforms > It also said,edk2-platform include Project Olympus’s support: > EDK II Minimum Platforms > • https://github.com/tianocore/tianocore.github.io/wiki/Kaby-Lake- > MinPlatform - EDK II platform firmware on 7th Generation Intel® Core™ > Processors and chipsets (formerly > https://ark.intel.com/products/codename/82879/Kaby-Lake platforms). > • https://github.com/tianocore/tianocore.github.io/wiki/Purley- > MinPlatform - EDK II platform firmware for the Open Compute Project > (OCP) > http://www.opencompute.org/wiki/Server/ProjectOlympus#Project_Olymp > us_Server_Motherboards. > • https://github.com/tianocore/tianocore.github.io/wiki/Whiskey-Lake- > MinPlatform - EDK II platform firmware on 8th Generation Intel® Core™ > Processors and chipsets (formerly > https://ark.intel.com/content/www/us/en/ark/products/codename/135883 > /whiskey-lake.html platforms). > > So, Could I compile a UEFI BIOS Firmware for Olympus board with > current edk2-platform code + edk2 code? > > Note: > Project Olympus board's wiki page: > https://www.opencompute.org/wiki/Server/ProjectOlympus > > 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. > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#50027): https://edk2.groups.io/g/devel/message/50027 Mute This Topic: https://groups.io/mt/42100924/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] OCP : Olympus project's UEFI BIOS code support
Hi, Michael: I found edk2-platforms include OCP Olympus board’s support package. edk2-platforms\Platform\Intel\PurleyOpenBoardPkg\BoardMtOlympus In this wiki, https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Platforms It also said,edk2-platform include Project Olympus’s support: EDK II Minimum Platforms • https://github.com/tianocore/tianocore.github.io/wiki/Kaby-Lake-MinPlatform - EDK II platform firmware on 7th Generation Intel® Core™ Processors and chipsets (formerly https://ark.intel.com/products/codename/82879/Kaby-Lake platforms). • https://github.com/tianocore/tianocore.github.io/wiki/Purley-MinPlatform - EDK II platform firmware for the Open Compute Project (OCP) http://www.opencompute.org/wiki/Server/ProjectOlympus#Project_Olympus_Server_Motherboards. • https://github.com/tianocore/tianocore.github.io/wiki/Whiskey-Lake-MinPlatform - EDK II platform firmware on 8th Generation Intel® Core™ Processors and chipsets (formerly https://ark.intel.com/content/www/us/en/ark/products/codename/135883/whiskey-lake.html platforms). So, Could I compile a UEFI BIOS Firmware for Olympus board with current edk2-platform code + edk2 code? Note: Project Olympus board's wiki page: https://www.opencompute.org/wiki/Server/ProjectOlympus 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49964): https://edk2.groups.io/g/devel/message/49964 Mute This Topic: https://groups.io/mt/42100924/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
Hi, Liming: Got it. Thanks 发件人: Gao, Liming 发送时间: 2019年11月4日 13:09 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] Smbuslib and SmbusPpi Tiger: Yes. Quark SmBusLib is the real library instance. Mde SmBusLib bases on PPI. Platform can decide to implement the real SmbusLib library instance or provide SmbusPPI implementation. Thanks Liming From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> [mailto:devel@edk2.groups.io] On Behalf Of Tiger Liu(BJ-RD) Sent: Monday, November 04, 2019 1:04 PM To: Gao, Liming mailto:liming@intel.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi Hi, Liming: I found two smbuslib implemented in below path: 1. edk2-platforms\Silicon\Intel\QuarkSocPkg\QuarkNorthCluster\Library\SmbusLib I named this smbuslib as quark-smbuslib 2. MdePkg\Library\PeiSmbusLibSmbus2Ppi\ I name this smbuslib as Mde-smbuslib My questions are: 1. Quark-smbuslib provided some basic smbus operation functions, and these functions could be called by some PEIMs/Dxe drivers So, it means not needed to implement gEfiPeiSmbus2Ppi for PEI phase? (because quark-smbuslib has provided needed functions) 2. Mde-smbuslib will consume gEfiPeiSmbus2PpiGuid This smbuslib is independent , and just uses gEfiPeiSmbus2Ppi to encapsulate some functions. So, a BIOS provider should implement a gEfiPeiSmbus2Ppi for PEI phase? Thanks 发件人: Gao, Liming mailto:liming@intel.com>> 发送时间: 2019年11月4日 11:31 收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Tiger Liu(BJ-RD) mailto:tiger...@zhaoxin.com>> 主题: RE: [edk2-devel] [edk2] Smbuslib and SmbusPpi SmbusPpi is defined in PI spec. SmbusLib is defined in Edk2 MdePkg. Edk2 PEIM can base on SmBusLib. SmBusLib implementation wraps SmBusPpi. Thanks Liming From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> [mailto:devel@edk2.groups.io] On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, October 31, 2019 6:51 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Gao, Liming mailto:liming@intel.com>> Subject: [edk2-devel] [edk2] Smbuslib and SmbusPpi Hi, Liming: I have a question about smbus access during pei phase. I found there was not smbus ppi reference implementation in edk2-platform code base. And there was a SmbusLib reference implementation lib. So, PEIMs usually use functions provided by SmbusLib? Not use PeiSmbusPpi’s interface functions? Thanks Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49909): https://edk2.groups.io/g/devel/message/49909 Mute This Topic: https://groups.io/mt/40109007/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
Hi, Liming: I found two smbuslib implemented in below path: 1. edk2-platforms\Silicon\Intel\QuarkSocPkg\QuarkNorthCluster\Library\SmbusLib I named this smbuslib as quark-smbuslib 2. MdePkg\Library\PeiSmbusLibSmbus2Ppi\ I name this smbuslib as Mde-smbuslib My questions are: 1. Quark-smbuslib provided some basic smbus operation functions, and these functions could be called by some PEIMs/Dxe drivers So, it means not needed to implement gEfiPeiSmbus2Ppi for PEI phase? (because quark-smbuslib has provided needed functions) 2. Mde-smbuslib will consume gEfiPeiSmbus2PpiGuid This smbuslib is independent , and just uses gEfiPeiSmbus2Ppi to encapsulate some functions. So, a BIOS provider should implement a gEfiPeiSmbus2Ppi for PEI phase? Thanks 发件人: Gao, Liming 发送时间: 2019年11月4日 11:31 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: RE: [edk2-devel] [edk2] Smbuslib and SmbusPpi SmbusPpi is defined in PI spec. SmbusLib is defined in Edk2 MdePkg. Edk2 PEIM can base on SmBusLib. SmBusLib implementation wraps SmBusPpi. Thanks Liming From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> [mailto:devel@edk2.groups.io] On Behalf Of Tiger Liu(BJ-RD) Sent: Thursday, October 31, 2019 6:51 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Gao, Liming mailto:liming@intel.com>> Subject: [edk2-devel] [edk2] Smbuslib and SmbusPpi Hi, Liming: I have a question about smbus access during pei phase. I found there was not smbus ppi reference implementation in edk2-platform code base. And there was a SmbusLib reference implementation lib. So, PEIMs usually use functions provided by SmbusLib? Not use PeiSmbusPpi’s interface functions? Thanks Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49907): https://edk2.groups.io/g/devel/message/49907 Mute This Topic: https://groups.io/mt/40109007/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] Smbuslib and SmbusPpi
Hi, Liming: I have a question about smbus access during pei phase. I found there was not smbus ppi reference implementation in edk2-platform code base. And there was a SmbusLib reference implementation lib. So, PEIMs usually use functions provided by SmbusLib? Not use PeiSmbusPpi’s interface functions? Thanks Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49759): https://edk2.groups.io/g/devel/message/49759 Mute This Topic: https://groups.io/mt/40109007/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable
Hi, Liming: Thanks for your explanation. If setting PcdOptimizeCompilerEnable as disable, then will cause D9025 compiling warning. Such as: cl : Command line warning D9025 : overriding '/O1' with '/Od' So, is it ok? Thanks 发件人: devel@edk2.groups.io 代表 Liming Gao 发送时间: 2019年10月30日 23:00 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable NOOPT is build target. It includes the compiler option to disable optimization. If the platform supports NOOPT target, it can be built with -b NOOPT. PcdOptimizeCompilerEnable is one feature PCD defined in edk2-platforms. It can be used to control the compiler option in [BuildOptions] section. It can also be used for DEBUG or RELEASE target. Thanks Liming From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> mailto:devel@edk2.groups.io>> On Behalf Of Tiger Liu(BJ-RD) Sent: Tuesday, October 29, 2019 7:01 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable Hi, All: I have a question about NOOPT and PcdOptimizeCompilerEnable. If Target = NOOPT, then will disable all optimizations. And PcdOptimizeCompilerEnable has the same function. So, What’s the relationship between PcdOptimizeCompilerEnable and NOOPT? Thanks Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49703): https://edk2.groups.io/g/devel/message/49703 Mute This Topic: https://groups.io/mt/39414231/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] NOOPT and PcdOptimizeCompilerEnable
Hi, All: I have a question about NOOPT and PcdOptimizeCompilerEnable. If Target = NOOPT, then will disable all optimizations. And PcdOptimizeCompilerEnable has the same function. So, What's the relationship between PcdOptimizeCompilerEnable and NOOPT? Thanks Best wishes, ? ? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49582): https://edk2.groups.io/g/devel/message/49582 Mute This Topic: https://groups.io/mt/39414231/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] NVDIMM with QEMU+OVMF
Hi, Laszlo: Ask a question about NVDIMM support within Qemu+OVMF environment. It seems QEMU support NVDIMM type. Does current OVMF code support emulated NVDIMM controller init? Thanks Best wishes, 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#48270): https://edk2.groups.io/g/devel/message/48270 Mute This Topic: https://groups.io/mt/34331721/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
答复: [edk2-devel] [edk2] DxeIpl : create page table, occupied too much memory range
Hi, Andrew: Thanks a lot. Best wishes, -邮件原件- 发件人: devel@edk2.groups.io 代表 Andrew Fish via Groups.Io 发送时间: 2019年9月19日 1:11 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 抄送: Laszlo Ersek 主题: Re: [edk2-devel] [edk2] DxeIpl : create page table, occupied too much memory range > On Sep 18, 2019, at 3:50 AM, Tiger Liu(BJ-RD) wrote: > > Hi, Laszlo: > Thanks for your reply! > > Is Using PcdUse5LevelPageTable also a method to reduce paging table's memory > requirement? > Tiger, No the 5-level page tables [1] are about increasing the size of the virtual addresses from 48 bits (256 terabytes) to 57 bits (128 petabytes). On x86 there are noncanonical addresses [2] in the middle of the virtual memory space that will cause a GP fault if they are used since they can not be mapped by page tables. The 5-level page table decreases the amount of noncanonical addressess in the virtual memory map, since the 5th level allows you to map more virtual addresses. I think from an EFI perspective you likely only add a single page table entry unless your CPU supports more than 256 terabytes of physical address space. > I find PcdUse1GPageTable's default value is false, why? The people who work for CPU companies will know more than me, but I seem to remember that 1GB page tables are common on modern server CPUs, but not on client CPUs. So I guess the PCD is just to remove a check that is likely to fail [3]. If your system supports 1GB pages you can set PcdUse1GPageTable to TRUE in your platforms DSC file. Given EFI is identity mapped (Virtual address == Physical address) and Long Mode requires that paging is enabled you need page tables for any physical address that is decoded by your chipset or memory controller (memory or memory mapped IO). If you look at this code [4] you will see you can configure how much of the address space requires page tables via the EFI_HOB_TYPE_CPU, if that HOB is not present a CPU ID instruction is used to ask the processor how much physical addressing it supports, and if that CPU ID feature is not present you get the old answer of 36-bits. So if you are trying to minimized page table generation you need to set EFI_HOB_TYPE_CPU.SizeOfMemorySpace to a value that matches the highest memory or memory mapped IO physical addresses you platform supports. Basically it does not matter how much physical addressing your CPU supports if nothing in your system is decoded by some of the upper address bits. PcdUse1GPageTable is only going to help you if your CPU supports it. > > PcdUse5LevelPageTable's default value is true, and DxeIpl module will create > 5-level paging for Dxe's long mode? > As I mentioned you only need the 5 level page tables if your system has memory or memory mapped IO at an address greater than 256 terabytes (48-bits). [1] https://en.wikipedia.org/wiki/Intel_5-level_paging [2] https://en.wikipedia.org/wiki/X86-64 [3] https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c#L667 [4] https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c#L679 Thanks, Andrew Fish > Best wishes, > > -邮件原件- > 发件人: Laszlo Ersek > 发送时间: 2019年9月17日 20:07 > 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) > 主题: Re: [edk2-devel] [edk2] DxeIpl : create page table, occupied too much > memory range > > On 09/17/19 13:08, Tiger Liu(BJ-RD) wrote: >> Hi, Expert: >> I have a question about creating page table. >> If a CPU support 48bit physical address line, then creating page tables(Page >> size=2MB) will occupy too much memory region. >> >> Now, developer could only use PcdUse1GPageTable to avoid occupy too much >> memory region? > > Not only. See <https://bugzilla.tianocore.org/show_bug.cgi?id=2008>. > > Thanks > 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. > > > 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47563): https://edk2.groups.io/g/devel/message/47563 Mute This Topic: https://groups.io/mt/34197334/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] DxeIpl : create page table, occupied too much memory range
Hi, Expert: I have a question about creating page table. If a CPU support 48bit physical address line, then creating page tables(Page size=2MB) will occupy too much memory region. Now, developer could only use PcdUse1GPageTable to avoid occupy too much memory region? Thanks Best wishes, ? ? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47361): https://edk2.groups.io/g/devel/message/47361 Mute This Topic: https://groups.io/mt/34174701/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
答复: [edk2-devel] [edk2] If use prebuild tools, not need install python 2.7 anymore?
Hi, Liming: Based on the below web info: https://github.com/tianocore/tianocore.github.io/wiki/Edk2-buildtools The python tools are used to compile the building tools written by python. https://github.com/tianocore/tianocore.github.io/wiki/BuildTool-Setup-Guide in the above web, it said: “The tools in this section are NOT required to build the EDK II project; they are needed to compile the BaseTools used to build the EDK II project.” If I used the Prebuilt Windows tools (Win32 binaries), then I don’t need install python package anymore? Or, current UDK source code doesn’t support prebuilt tools binary, it always need installing Python to compile python build tools every time. Thanks 发件人: devel@edk2.groups.io 代表 Liming Gao 发送时间: 2019年8月19日 22:46 收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) 主题: Re: [edk2-devel] [edk2] If use prebuild tools, not need install python 2.7 anymore? Now, edk2 stable tag release is https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Release-Planning After edk2-stable201903 tag, edk2 supports Python3. User needs to install Python3.x, doesn’t need to set PYTHON path. Thanks Liming From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> [mailto:devel@edk2.groups.io] On Behalf Of Tiger Liu(BJ-RD) Sent: Monday, August 19, 2019 4:56 PM To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> Subject: [edk2-devel] [edk2] If use prebuild tools, not need install python 2.7 anymore? Hello, I have a question about needing install python 2.7 If user wants to setup udk compiling environment, he needs install python 2.7. When running build command every time, it always check python tool path. Why? If I compiled basetools before, and use the prebuilt basetools package, then I don’t need install python 2.7 package? 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. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#46077): https://edk2.groups.io/g/devel/message/46077 Mute This Topic: https://groups.io/mt/32964418/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [edk2] If use prebuild tools, not need install python 2.7 anymore?
Hello, I have a question about needing install python 2.7 If user wants to setup udk compiling environment, he needs install python 2.7. When running build command every time, it always check python tool path. Why? If I compiled basetools before, and use the prebuilt basetools package, then I don't need install python 2.7 package? 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. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#46036): https://edk2.groups.io/g/devel/message/46036 Mute This Topic: https://groups.io/mt/32943095/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-