public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* TPL of RegisterKeyNotify
@ 2016-12-09 12:09 Michael Zimmermann
  2016-12-12  1:07 ` Zeng, Star
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Zimmermann @ 2016-12-09 12:09 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

I couldn't find any information in the spec about the TPL which notify
functions will/should be called with.
When I do File IO from within such an handler DxeCore tells me that
'RaiseTpl with OldTpl(0x10) > NewTpl(0x8)' which translated means
TPL_NOTIFY > TPL_CALLBACK.

That probably means that it's called using TPL_NOTIFY, but is that
defined somewhere?
Do I have to raise another (TPL_CALLBACK) event to be able to perform
my File IO operation to solve this?

Thanks
Michael


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

* Re: TPL of RegisterKeyNotify
  2016-12-09 12:09 TPL of RegisterKeyNotify Michael Zimmermann
@ 2016-12-12  1:07 ` Zeng, Star
  2017-01-10 14:48   ` Michael Zimmermann
  0 siblings, 1 reply; 4+ messages in thread
From: Zeng, Star @ 2016-12-12  1:07 UTC (permalink / raw)
  To: Michael Zimmermann, edk2-devel@lists.01.org
  Cc: Kinney, Michael D, Rothman, Michael A, Zeng, Star

Michael,

There is already an approved UEFI mantis https://mantis.uefi.org/mantis/view.php?id=1634 that has the clarification to the TPL of KeyNotify function.
Currently KB drivers just call the KeyNotify functions in TimerEvent that has TPL_NOTIFY, we are updating code to make the KeyNotify functions called in TPL_CALLBACK to the new mantis.


Thanks,
Star
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Michael Zimmermann
Sent: Friday, December 9, 2016 8:09 PM
To: edk2-devel@lists.01.org <edk2-devel@ml01.01.org>
Subject: [edk2] TPL of RegisterKeyNotify

I couldn't find any information in the spec about the TPL which notify functions will/should be called with.
When I do File IO from within such an handler DxeCore tells me that 'RaiseTpl with OldTpl(0x10) > NewTpl(0x8)' which translated means TPL_NOTIFY > TPL_CALLBACK.

That probably means that it's called using TPL_NOTIFY, but is that defined somewhere?
Do I have to raise another (TPL_CALLBACK) event to be able to perform my File IO operation to solve this?

Thanks
Michael
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: TPL of RegisterKeyNotify
  2016-12-12  1:07 ` Zeng, Star
@ 2017-01-10 14:48   ` Michael Zimmermann
  2017-01-10 17:23     ` Andrew Fish
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Zimmermann @ 2017-01-10 14:48 UTC (permalink / raw)
  To: Zeng, Star; +Cc: edk2-devel@lists.01.org, Kinney, Michael D, Rothman, Michael A

just FYI, mantis links are useless if you don't have access to that ;)
I don't know what this is usually used for but making some parts of
uefi.org public doesn't sound like a bad idea to me.

Thanks
Michael

On Mon, Dec 12, 2016 at 2:07 AM, Zeng, Star <star.zeng@intel.com> wrote:
> Michael,
>
> There is already an approved UEFI mantis https://mantis.uefi.org/mantis/view.php?id=1634 that has the clarification to the TPL of KeyNotify function.
> Currently KB drivers just call the KeyNotify functions in TimerEvent that has TPL_NOTIFY, we are updating code to make the KeyNotify functions called in TPL_CALLBACK to the new mantis.
>
>
> Thanks,
> Star
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Michael Zimmermann
> Sent: Friday, December 9, 2016 8:09 PM
> To: edk2-devel@lists.01.org <edk2-devel@ml01.01.org>
> Subject: [edk2] TPL of RegisterKeyNotify
>
> I couldn't find any information in the spec about the TPL which notify functions will/should be called with.
> When I do File IO from within such an handler DxeCore tells me that 'RaiseTpl with OldTpl(0x10) > NewTpl(0x8)' which translated means TPL_NOTIFY > TPL_CALLBACK.
>
> That probably means that it's called using TPL_NOTIFY, but is that defined somewhere?
> Do I have to raise another (TPL_CALLBACK) event to be able to perform my File IO operation to solve this?
>
> Thanks
> Michael
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


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

* Re: TPL of RegisterKeyNotify
  2017-01-10 14:48   ` Michael Zimmermann
@ 2017-01-10 17:23     ` Andrew Fish
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Fish @ 2017-01-10 17:23 UTC (permalink / raw)
  To: Michael Zimmermann; +Cc: Zeng, Star, Mike Kinney, edk2-devel@lists.01.org


> On Jan 10, 2017, at 6:48 AM, Michael Zimmermann <sigmaepsilon92@gmail.com> wrote:
> 
> just FYI, mantis links are useless if you don't have access to that ;)
> I don't know what this is usually used for but making some parts of
> uefi.org public doesn't sound like a bad idea to me.
> 

Mantis is the UEFI Forum Specification Working group bug tracker. The UEFI Forums organizational documents require membership to view things work group, only the finished specs are public. There is a history of companies implementing spec work group  items and building interfaces that end up not being compatible with the spec, but close enough that you can't spot them in the wild. I think this was a big problem in wireless specifications, but it is generally the same group of lawyers from the member companies that setup the bylaws of the industry trade groups. 

So I agree the mantis reference in the commit message is confusing...

Thanks,

Andrew Fish 

> Thanks
> Michael
> 
> On Mon, Dec 12, 2016 at 2:07 AM, Zeng, Star <star.zeng@intel.com> wrote:
>> Michael,
>> 
>> There is already an approved UEFI mantis https://mantis.uefi.org/mantis/view.php?id=1634 that has the clarification to the TPL of KeyNotify function.
>> Currently KB drivers just call the KeyNotify functions in TimerEvent that has TPL_NOTIFY, we are updating code to make the KeyNotify functions called in TPL_CALLBACK to the new mantis.
>> 
>> 
>> Thanks,
>> Star
>> -----Original Message-----
>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Michael Zimmermann
>> Sent: Friday, December 9, 2016 8:09 PM
>> To: edk2-devel@lists.01.org <edk2-devel@ml01.01.org>
>> Subject: [edk2] TPL of RegisterKeyNotify
>> 
>> I couldn't find any information in the spec about the TPL which notify functions will/should be called with.
>> When I do File IO from within such an handler DxeCore tells me that 'RaiseTpl with OldTpl(0x10) > NewTpl(0x8)' which translated means TPL_NOTIFY > TPL_CALLBACK.
>> 
>> That probably means that it's called using TPL_NOTIFY, but is that defined somewhere?
>> Do I have to raise another (TPL_CALLBACK) event to be able to perform my File IO operation to solve this?
>> 
>> Thanks
>> Michael
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



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

end of thread, other threads:[~2017-01-10 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-09 12:09 TPL of RegisterKeyNotify Michael Zimmermann
2016-12-12  1:07 ` Zeng, Star
2017-01-10 14:48   ` Michael Zimmermann
2017-01-10 17:23     ` Andrew Fish

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