From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: Laszlo Ersek <lersek@redhat.com>,
"Zeng, Star" <star.zeng@intel.com>,
edk2-devel-01 <edk2-devel@ml01.01.org>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
"Tian, Feng" <feng.tian@intel.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Wei, David" <david.wei@intel.com>
Subject: Re: [PATCH 0/3] MdePkg, MdeModulePkg, Vlv2TbltDevicePkg: 64-bit LoopTimes in S3 MEM_POLL
Date: Fri, 9 Dec 2016 22:58:23 +0000 [thread overview]
Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386F5F73@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <71ecf438-dbaf-c9a1-1b88-530e7e428573@redhat.com>
Hi Laszlo
According to your description on compatibility, I do not have concern.
So far, I do not receive any concern from any other people, so I think it is good.
Reviewed-by: Jiewen.Yao@intel.com<mailto:Jiewen.Yao@intel.com>
Thank you
Yao Jiewen
From: Laszlo Ersek [mailto:lersek@redhat.com]
Sent: Sunday, December 4, 2016 2:34 AM
To: Yao, Jiewen <jiewen.yao@intel.com>; Zeng, Star <star.zeng@intel.com>; edk2-devel-01 <edk2-devel@ml01.01.org>
Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Tian, Feng <feng.tian@intel.com>; Gao, Liming <liming.gao@intel.com>; Wei, David <david.wei@intel.com>
Subject: Re: [edk2] [PATCH 0/3] MdePkg, MdeModulePkg, Vlv2TbltDevicePkg: 64-bit LoopTimes in S3 MEM_POLL
On 12/03/16 00:56, Yao, Jiewen wrote:
> HI Laszlo
>
> Would you please give me some time, so that I could discuss internal
> team to see if there is any concern on this API update?
>
>
>
> The estimation will be 1 work week at most.
>
>
>
> Usually adding a new API does not need compatibility check, but updating
> an existing API always need.
Sure, thanks.
Laszlo
> *From:*Laszlo Ersek [mailto:lersek@redhat.com]
> *Sent:* Friday, December 2, 2016 5:47 PM
> *To:* Zeng, Star <star.zeng@intel.com<mailto:star.zeng@intel.com>>; Yao, Jiewen
> <jiewen.yao@intel.com<mailto:jiewen.yao@intel.com>>; edk2-devel-01 <edk2-devel@ml01.01.org<mailto:edk2-devel@ml01.01.org>>
> *Cc:* Kinney, Michael D <michael.d.kinney@intel.com<mailto:michael.d.kinney@intel.com>>; Tian, Feng
> <feng.tian@intel.com<mailto:feng.tian@intel.com>>; Gao, Liming <liming.gao@intel.com<mailto:liming.gao@intel.com>>; Wei, David
> <david.wei@intel.com<mailto:david.wei@intel.com>>
> *Subject:* Re: [edk2] [PATCH 0/3] MdePkg, MdeModulePkg,
> Vlv2TbltDevicePkg: 64-bit LoopTimes in S3 MEM_POLL
>
>
>
> On 12/02/16 05:54, Zeng, Star wrote:
>> On 2016/12/2 9:53, Yao, Jiewen wrote:
>>> HI Laszlo
>>> Thank you to raise this long time existing issue. :-)
>>>
>>> There is historic reason that we inherit this undocumented API from
>>> EDK-I to EDKII.
>>>
>>> I do not object your update.
>
> Thanks!
>
>>> I am thinking if it is time to create a new API which can match PI
>>> specification, and suggest all consumers use the new API.
>>>
>>> RETURN_STATUS
>>> EFIAPI
>>> S3BootScriptSavePiMemPoll (
>>> IN S3_BOOT_SCRIPT_LIB_WIDTH Width,
>>> IN UINT64 Address,
>>> IN VOID *Data,
>>> IN VOID *DataMask,
>>> IN UINT64 Delay,
>>> );
>>
>> If the new API is introduced, the old one could be marked as deprecated
>> by DISABLE_NEW_DEPRECATED_INTERFACES.
>
> That's cool, but until then, can we please accept these patches? :)
>
> Thanks!
> Laszlo
>
>> Thanks,
>> Star
>>
>>>
>>> Thank you
>>> Yao Jiewen
>>>
>>>
>>>> -----Original Message-----
>>>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
>>>> Laszlo Ersek
>>>> Sent: Friday, December 2, 2016 1:56 AM
>>>> To: edk2-devel-01 <edk2-devel@ml01.01.org <mailto:edk2-devel@ml01.01.org<mailto:edk2-devel@ml01.01.org %3cmailto:edk2-devel@ml01.01.org>>>
>>>> Cc: Tian, Feng <feng.tian@intel.com <mailto:feng.tian@intel.com<mailto:feng.tian@intel.com %3cmailto:feng.tian@intel.com>>>; Gao, Liming
>>>> <liming.gao@intel.com <mailto:liming.gao@intel.com<mailto:liming.gao@intel.com %3cmailto:liming.gao@intel.com>>>;
>>>> Kinney, Michael D <michael.d.kinney@intel.com <mailto:michael.d.kinney@intel.com<mailto:michael.d.kinney@intel.com %3cmailto:michael.d.kinney@intel.com>>>; Zeng, Star
>>>> <star.zeng@intel.com
<mailto:star.zeng@intel.com%0b>> <mailto:star.zeng@intel.com>>; Wei, David <david.wei@intel.com
<mailto:david.wei@intel.com%0b>> <mailto:david.wei@intel.com>>
>>>> Subject: [edk2] [PATCH 0/3] MdePkg, MdeModulePkg, Vlv2TbltDevicePkg:
>>>> 64-bit LoopTimes in S3 MEM_POLL
>>>>
>>>> While working on S3 boot script related stuff in OVMF, I wanted to see
>>>> if infinite blocking was possible in the various POLL opcodes. While
>>>> edk2's implementation of IO_POLL, PCI_CONFIG_POLL and
>>>> PCI_CONFIG2_POLL
>>>> follows the PI spec vol5 closely, even internally (using 100ns delay
>>>> units), the MEM_POLL internals differ -- they are microseconds based.
>>>>
>>>> That's not a problem per se (it's just a different internal opcode
>>>> representation, which is fine); the problem is that the current
>>>> internals don't conform to the spec: in 32-bit builds, the UINT64 number
>>>> of 100ns units that the caller intends to wait for is silently
>>>> truncated, for no good reason. This issue is not hard to fix (we can
>>>> even keep the microseconds-based internals), so let's fix it.
>>>>
>>>> Repo: https://github.com/lersek/edk2/
>>>> Branch: mempoll_looptimes_64bit
>>>>
>>>> Cc: David Wei <david.wei@intel.com <mailto:david.wei@intel.com<mailto:david.wei@intel.com %3cmailto:david.wei@intel.com>>>
>>>> Cc: Feng Tian <feng.tian@intel.com <mailto:feng.tian@intel.com<mailto:feng.tian@intel.com %3cmailto:feng.tian@intel.com>>>
>>>> Cc: Liming Gao <liming.gao@intel.com <mailto:liming.gao@intel.com<mailto:liming.gao@intel.com %3cmailto:liming.gao@intel.com>>>
>>>> Cc: Mang Guo <mang.guo@intel.com <mailto:mang.guo@intel.com<mailto:mang.guo@intel.com %3cmailto:mang.guo@intel.com>>>
>>>> Cc: Michael D Kinney <michael.d.kinney@intel.com <mailto:michael.d.kinney@intel.com<mailto:michael.d.kinney@intel.com %3cmailto:michael.d.kinney@intel.com>>>
>>>> Cc: Star Zeng <star.zeng@intel.com <mailto:star.zeng@intel.com<mailto:star.zeng@intel.com %3cmailto:star.zeng@intel.com>>>
>>>>
>>>> Thanks
>>>> Laszlo
>>>>
>>>> Laszlo Ersek (3):
>>>> MdePkg, MdeModulePkg: S3BootScriptSaveMemPoll(): accept 64-bit
>>>> LoopTimes
>>>> MdeModulePkg: S3SaveStateDxe, SmmS3SaveState: save 64-bit
>>>> LoopTimes
>>>> Vlv2TbltDevicePkg/BootScriptSaveDxe: save 64-bit LoopTimes
>>>>
>>>> MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | 2 +-
>>>> MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveState.c | 8
>>>> ++++----
>>>> MdeModulePkg/Universal/Acpi/SmmS3SaveState/SmmS3SaveState.c | 8
>>>> ++++----
>>>> MdePkg/Include/Library/S3BootScriptLib.h | 2 +-
>>>> MdePkg/Library/BaseS3BootScriptLibNull/BootScriptLib.c | 2 +-
>>>> Vlv2TbltDevicePkg/BootScriptSaveDxe/ScriptSave.c | 4 ++--
>>>> 6 files changed, 13 insertions(+), 13 deletions(-)
>>>>
>>>> --
>>>> 2.9.2
>>>>
>>>> _______________________________________________
>>>> edk2-devel mailing list
>>>> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> <mailto:edk2-devel@lists.01.org>
>>>> https://lists.01.org/mailman/listinfo/edk2-devel
>>
>
next prev parent reply other threads:[~2016-12-09 22:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-01 17:55 [PATCH 0/3] MdePkg, MdeModulePkg, Vlv2TbltDevicePkg: 64-bit LoopTimes in S3 MEM_POLL Laszlo Ersek
2016-12-01 17:55 ` [PATCH 1/3] MdePkg, MdeModulePkg: S3BootScriptSaveMemPoll(): accept 64-bit LoopTimes Laszlo Ersek
2016-12-01 17:55 ` [PATCH 2/3] MdeModulePkg: S3SaveStateDxe, SmmS3SaveState: save " Laszlo Ersek
2016-12-01 17:55 ` [PATCH 3/3] Vlv2TbltDevicePkg/BootScriptSaveDxe: " Laszlo Ersek
2016-12-02 1:53 ` [PATCH 0/3] MdePkg, MdeModulePkg, Vlv2TbltDevicePkg: 64-bit LoopTimes in S3 MEM_POLL Yao, Jiewen
2016-12-02 4:54 ` Zeng, Star
2016-12-02 9:46 ` Laszlo Ersek
2016-12-02 23:56 ` Yao, Jiewen
2016-12-03 18:33 ` Laszlo Ersek
2016-12-09 22:58 ` Yao, Jiewen [this message]
2016-12-16 1:00 ` Kinney, Michael D
2017-01-03 11:35 ` Laszlo Ersek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74D8A39837DF1E4DA445A8C0B3885C50386F5F73@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox