* [U-Boot] [PATCH] efi_loader: workaround for grub lsefi bug
@ 2017-07-20 11:59 Rob Clark
2017-07-24 18:31 ` [U-Boot] " Heinrich Schuchardt
2017-07-28 22:29 ` Alexander Graf
0 siblings, 2 replies; 5+ messages in thread
From: Rob Clark @ 2017-07-20 11:59 UTC (permalink / raw)
To: u-boot
Patch has also been sent to fix grub to not ignore the error returned
and treat protocol_buffer_count as valid. But that that might take a
while to trickle into distro's, so this workaround might be useful.
Signed-off-by: Rob Clark <robdclark@gmail.com>
---
lib/efi_loader/efi_boottime.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 27e51a253f..a45de39919 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -637,6 +637,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(void *handle,
{
EFI_ENTRY("%p, %p, %p", handle, protocol_buffer,
protocol_buffer_count);
+ *protocol_buffer_count = 0;
return EFI_EXIT(EFI_OUT_OF_RESOURCES);
}
--
2.13.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] efi_loader: workaround for grub lsefi bug
2017-07-20 11:59 [U-Boot] [PATCH] efi_loader: workaround for grub lsefi bug Rob Clark
@ 2017-07-24 18:31 ` Heinrich Schuchardt
2017-07-24 19:20 ` Rob Clark
2017-07-28 22:29 ` Alexander Graf
1 sibling, 1 reply; 5+ messages in thread
From: Heinrich Schuchardt @ 2017-07-24 18:31 UTC (permalink / raw)
To: u-boot
On 07/20/2017 01:59 PM, Rob Clark wrote:
> Patch has also been sent to fix grub to not ignore the error returned
> and treat protocol_buffer_count as valid. But that that might take a
> while to trickle into distro's, so this workaround might be useful.
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
> lib/efi_loader/efi_boottime.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
> index 27e51a253f..a45de39919 100644
> --- a/lib/efi_loader/efi_boottime.c
> +++ b/lib/efi_loader/efi_boottime.c
> @@ -637,6 +637,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(void *handle,
> {
> EFI_ENTRY("%p, %p, %p", handle, protocol_buffer,
> protocol_buffer_count);
> + *protocol_buffer_count = 0;
> return EFI_EXIT(EFI_OUT_OF_RESOURCES);
> }
>
>
NAK
We already have this patch waiting to correctly implement
ProtocolsPerHandle:
efi_loader: implement ProtocolsPerHandle
https://patchwork.ozlabs.org/patch/787995/
@Rob: Could you, please, test if this patch solves your problem.
Regards
Heinrich
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] efi_loader: workaround for grub lsefi bug
2017-07-24 18:31 ` [U-Boot] " Heinrich Schuchardt
@ 2017-07-24 19:20 ` Rob Clark
2017-07-25 8:28 ` Alexander Graf
0 siblings, 1 reply; 5+ messages in thread
From: Rob Clark @ 2017-07-24 19:20 UTC (permalink / raw)
To: u-boot
On Mon, Jul 24, 2017 at 2:31 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> On 07/20/2017 01:59 PM, Rob Clark wrote:
>> Patch has also been sent to fix grub to not ignore the error returned
>> and treat protocol_buffer_count as valid. But that that might take a
>> while to trickle into distro's, so this workaround might be useful.
>>
>> Signed-off-by: Rob Clark <robdclark@gmail.com>
>> ---
>> lib/efi_loader/efi_boottime.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
>> index 27e51a253f..a45de39919 100644
>> --- a/lib/efi_loader/efi_boottime.c
>> +++ b/lib/efi_loader/efi_boottime.c
>> @@ -637,6 +637,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(void *handle,
>> {
>> EFI_ENTRY("%p, %p, %p", handle, protocol_buffer,
>> protocol_buffer_count);
>> + *protocol_buffer_count = 0;
>> return EFI_EXIT(EFI_OUT_OF_RESOURCES);
>> }
>>
>>
>
> NAK
>
> We already have this patch waiting to correctly implement
> ProtocolsPerHandle:
>
> efi_loader: implement ProtocolsPerHandle
> https://patchwork.ozlabs.org/patch/787995/
>
> @Rob: Could you, please, test if this patch solves your problem.
>
From a quick look, it looks like it probably should. I mostly sent
this patch so people would have a way to lsefi in grub to see what my
device-path patches where doing.
BR,
-R
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] efi_loader: workaround for grub lsefi bug
2017-07-24 19:20 ` Rob Clark
@ 2017-07-25 8:28 ` Alexander Graf
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2017-07-25 8:28 UTC (permalink / raw)
To: u-boot
On 24.07.17 21:20, Rob Clark wrote:
> On Mon, Jul 24, 2017 at 2:31 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>> On 07/20/2017 01:59 PM, Rob Clark wrote:
>>> Patch has also been sent to fix grub to not ignore the error returned
>>> and treat protocol_buffer_count as valid. But that that might take a
>>> while to trickle into distro's, so this workaround might be useful.
>>>
>>> Signed-off-by: Rob Clark <robdclark@gmail.com>
>>> ---
>>> lib/efi_loader/efi_boottime.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
>>> index 27e51a253f..a45de39919 100644
>>> --- a/lib/efi_loader/efi_boottime.c
>>> +++ b/lib/efi_loader/efi_boottime.c
>>> @@ -637,6 +637,7 @@ static efi_status_t EFIAPI efi_protocols_per_handle(void *handle,
>>> {
>>> EFI_ENTRY("%p, %p, %p", handle, protocol_buffer,
>>> protocol_buffer_count);
>>> + *protocol_buffer_count = 0;
>>> return EFI_EXIT(EFI_OUT_OF_RESOURCES);
>>> }
>>>
>>>
>>
>> NAK
>>
>> We already have this patch waiting to correctly implement
>> ProtocolsPerHandle:
>>
>> efi_loader: implement ProtocolsPerHandle
>> https://patchwork.ozlabs.org/patch/787995/
>>
>> @Rob: Could you, please, test if this patch solves your problem.
>>
>
> From a quick look, it looks like it probably should. I mostly sent
Yes, lsefi works with your patch.
> this patch so people would have a way to lsefi in grub to see what my
> device-path patches where doing.
I simply applied both now :).
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] efi_loader: workaround for grub lsefi bug
2017-07-20 11:59 [U-Boot] [PATCH] efi_loader: workaround for grub lsefi bug Rob Clark
2017-07-24 18:31 ` [U-Boot] " Heinrich Schuchardt
@ 2017-07-28 22:29 ` Alexander Graf
1 sibling, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2017-07-28 22:29 UTC (permalink / raw)
To: u-boot
> Patch has also been sent to fix grub to not ignore the error returned
> and treat protocol_buffer_count as valid. But that that might take a
> while to trickle into distro's, so this workaround might be useful.
>
> Signed-off-by: Rob Clark <robdclark@gmail.com>
Thanks, applied to efi-next
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-28 22:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-20 11:59 [U-Boot] [PATCH] efi_loader: workaround for grub lsefi bug Rob Clark
2017-07-24 18:31 ` [U-Boot] " Heinrich Schuchardt
2017-07-24 19:20 ` Rob Clark
2017-07-25 8:28 ` Alexander Graf
2017-07-28 22:29 ` Alexander Graf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.