Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-10 Thread Ethan Tsao
Hi Ray, Thanks your input. I will remove this debug message as well. Best Regards, Ethan > -Original Message- > From: Ni, Ray > Sent: Friday, November 8, 2019 4:59 PM > To: Tsao, Ethan ; devel@edk2.groups.io > Cc: Chaganty, Rangasai V > Subject: RE: [PATCH] IntelSiliconPkg/Library:Add B

Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-08 Thread Ni, Ray
When a API needs enough buffer prepared by caller, there are two styles of APIs: 1. Status FillBuffer (VOID *Buffer, UINTN BufferSize) BufferSize is passed by value so the API has no way to return back the required size. It's ok as long as the caller is able to calculate the proper size

Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-07 Thread Ethan Tsao
Hi Ray, There is one debug message print available and requested Config block size while Config Block table is not enough to add new. Caller only know size is not enough by return status. With this debug message, Caller can know how many size need to enlarge. What do you think to keep this debug

Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-07 Thread Ethan Tsao
Hi Ray, I do agree with you. I will remove all debug message since all error scenario can be cover by return status. Caller can understanding through return status. Best Regards, Ethan > -Original Message- > From: Ni, Ray > Sent: Friday, November 8, 2019 2:25 PM > To: Tsao, Ethan ; deve

Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-07 Thread Ni, Ray
Ethan, What if all of the debug message are removed? Library especially very fundamental like ConfigBlock is better to be quite. It's the ConfigBlock API designer's responsibility to ensure the error is returned properly to caller, otherwise it's the API's bug. When the API can return correct stat

Re: [edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-07 Thread Ethan Tsao
Hi Ray, Thanks your good input. I just review all debug message and most print is for error report purpose, such as allocate memory failure,...etc. >From my opinion, this kind debug message is useful for BIOS when unexpected >error happen. In normal case, it will not be print. Best Regards, Etha

[edk2-devel] [PATCH] IntelSiliconPkg/Library:Add BaseConfigBlockLib Library

2019-11-06 Thread Ethan Tsao
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2318 Establish one copy of Config blocks library class and instance in IntelSiliconPkg and remove copies from other silicon packages , like KabyLakeSiliconPkg, CoffelakeSiliconPkg. Signed-off-by: Ethan Tsao Cc: Sai Chaganty Cc: Ray Ni --- Si