* [edk2-devel] [edk2] Smbuslib and SmbusPpi
@ 2019-10-31 10:51 Tiger Liu(BJ-RD)
2019-11-04 3:30 ` Liming Gao
0 siblings, 1 reply; 5+ messages in thread
From: Tiger Liu(BJ-RD) @ 2019-10-31 10:51 UTC (permalink / raw)
To: devel@edk2.groups.io, liming.gao@intel.com
[-- Attachment #1: Type: text/plain, Size: 782 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 4897 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
2019-10-31 10:51 Tiger Liu(BJ-RD)
@ 2019-11-04 3:30 ` Liming Gao
0 siblings, 0 replies; 5+ messages in thread
From: Liming Gao @ 2019-11-04 3:30 UTC (permalink / raw)
To: devel@edk2.groups.io, tigerliu@zhaoxin.com
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
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] On Behalf Of Tiger Liu(BJ-RD)
Sent: Thursday, October 31, 2019 6:51 PM
To: devel@edk2.groups.io; Gao, Liming <liming.gao@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.
[-- Attachment #2: Type: text/html, Size: 7387 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
@ 2019-11-04 5:03 Tiger Liu(BJ-RD)
2019-11-04 5:09 ` Liming Gao
0 siblings, 1 reply; 5+ messages in thread
From: Tiger Liu(BJ-RD) @ 2019-11-04 5:03 UTC (permalink / raw)
To: Gao, Liming, devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 2727 bytes --]
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 <liming.gao@intel.com>
发送时间: 2019年11月4日 11:31
收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) <TigerLiu@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 <liming.gao@intel.com<mailto:liming.gao@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.
[-- Attachment #2: Type: text/html, Size: 17567 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
2019-11-04 5:03 [edk2-devel] [edk2] Smbuslib and SmbusPpi Tiger Liu(BJ-RD)
@ 2019-11-04 5:09 ` Liming Gao
0 siblings, 0 replies; 5+ messages in thread
From: Liming Gao @ 2019-11-04 5:09 UTC (permalink / raw)
To: devel@edk2.groups.io, tigerliu@zhaoxin.com
[-- Attachment #1: Type: text/plain, Size: 3275 bytes --]
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] On Behalf Of Tiger Liu(BJ-RD)
Sent: Monday, November 04, 2019 1:04 PM
To: Gao, Liming <liming.gao@intel.com>; 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 <liming.gao@intel.com<mailto:liming.gao@intel.com>>
发送时间: 2019年11月4日 11:31
收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com<mailto:TigerLiu@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 <liming.gao@intel.com<mailto:liming.gao@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.
[-- Attachment #2: Type: text/html, Size: 19793 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-devel] [edk2] Smbuslib and SmbusPpi
@ 2019-11-04 6:10 Tiger Liu(BJ-RD)
0 siblings, 0 replies; 5+ messages in thread
From: Tiger Liu(BJ-RD) @ 2019-11-04 6:10 UTC (permalink / raw)
To: Gao, Liming, devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 4049 bytes --]
Hi, Liming:
Got it.
Thanks
发件人: Gao, Liming <liming.gao@intel.com>
发送时间: 2019年11月4日 13:09
收件人: devel@edk2.groups.io; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com>
主题: 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 <liming.gao@intel.com<mailto:liming.gao@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 <liming.gao@intel.com<mailto:liming.gao@intel.com>>
发送时间: 2019年11月4日 11:31
收件人: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Tiger Liu(BJ-RD) <TigerLiu@zhaoxin.com<mailto:TigerLiu@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 <liming.gao@intel.com<mailto:liming.gao@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.
[-- Attachment #2: Type: text/html, Size: 23416 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-04 6:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-04 5:03 [edk2-devel] [edk2] Smbuslib and SmbusPpi Tiger Liu(BJ-RD)
2019-11-04 5:09 ` Liming Gao
-- strict thread matches above, loose matches on Subject: below --
2019-11-04 6:10 Tiger Liu(BJ-RD)
2019-10-31 10:51 Tiger Liu(BJ-RD)
2019-11-04 3:30 ` Liming Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox