mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Make capsules in a contiguous virtual space
@ 2017-12-19 10:49 Ge Song
  2017-12-21 21:47 ` Richard Ruigrok
  0 siblings, 1 reply; 3+ messages in thread
From: Ge Song @ 2017-12-19 10:49 UTC (permalink / raw)
  Cc: Ge Song, Matt Fleming, Ard Biesheuvel, linux-efi, linux-kernel

Recently we found it failed to update firmware through capsule update
mechanism in linux-4.14 and later version.

After some investigation, the reason is firmware expects capsules in a
contiguous virtual space and this assumption is not satisfied in recent
linux versions.

Ge Song (2):
  Revert "efi/capsule-loader: Use page addresses rather than struct page
    pointers"
  efi/capsule-loader: Request a contiguous virtual space for capsules

 drivers/firmware/efi/capsule-loader.c | 23 ++++++++++++++---------
 drivers/firmware/efi/capsule.c        |  7 +++----
 include/linux/efi.h                   |  4 ++--
 3 files changed, 19 insertions(+), 15 deletions(-)

-- 
2.7.4

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

* Re: [PATCH 0/2] Make capsules in a contiguous virtual space
  2017-12-19 10:49 [PATCH 0/2] Make capsules in a contiguous virtual space Ge Song
@ 2017-12-21 21:47 ` Richard Ruigrok
  2017-12-22 15:50   ` Ard Biesheuvel
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Ruigrok @ 2017-12-21 21:47 UTC (permalink / raw)
  To: Ge Song; +Cc: Matt Fleming, Ard Biesheuvel, linux-efi, linux-kernel

Please tested-by
Tested on Centiq, applied on v4.15-rc4.
This fixes the regression introduced in 4.13 where the capsule is no longer passed in contiguous virtual memory.

On 12/19/2017 3:49 AM, Ge Song wrote:
> Recently we found it failed to update firmware through capsule update
> mechanism in linux-4.14 and later version.
>
> After some investigation, the reason is firmware expects capsules in a
> contiguous virtual space and this assumption is not satisfied in recent
> linux versions.
>
> Ge Song (2):
>   Revert "efi/capsule-loader: Use page addresses rather than struct page
>     pointers"
>   efi/capsule-loader: Request a contiguous virtual space for capsules
>
>  drivers/firmware/efi/capsule-loader.c | 23 ++++++++++++++---------
>  drivers/firmware/efi/capsule.c        |  7 +++----
>  include/linux/efi.h                   |  4 ++--
>  3 files changed, 19 insertions(+), 15 deletions(-)
>

-- 
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.

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

* Re: [PATCH 0/2] Make capsules in a contiguous virtual space
  2017-12-21 21:47 ` Richard Ruigrok
@ 2017-12-22 15:50   ` Ard Biesheuvel
  0 siblings, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2017-12-22 15:50 UTC (permalink / raw)
  To: Richard Ruigrok
  Cc: Ge Song, Matt Fleming, linux-efi, Linux Kernel Mailing List

On 21 December 2017 at 21:47, Richard Ruigrok <rruigrok@codeaurora.org> wrote:
> Please tested-by
> Tested on Centiq, applied on v4.15-rc4.
> This fixes the regression introduced in 4.13 where the capsule is no longer passed in contiguous virtual memory.
>
> On 12/19/2017 3:49 AM, Ge Song wrote:
>> Recently we found it failed to update firmware through capsule update
>> mechanism in linux-4.14 and later version.
>>
>> After some investigation, the reason is firmware expects capsules in a
>> contiguous virtual space and this assumption is not satisfied in recent
>> linux versions.
>>
>> Ge Song (2):
>>   Revert "efi/capsule-loader: Use page addresses rather than struct page
>>     pointers"
>>   efi/capsule-loader: Request a contiguous virtual space for capsules
>>


Thanks for the patches (and for the tested-by). I will look into this,
but I'd like to try to fix this without breaking the quirk we did for
Quark.



>>  drivers/firmware/efi/capsule-loader.c | 23 ++++++++++++++---------
>>  drivers/firmware/efi/capsule.c        |  7 +++----
>>  include/linux/efi.h                   |  4 ++--
>>  3 files changed, 19 insertions(+), 15 deletions(-)
>>
>
> --
> Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
> Qualcomm Technologies, Inc. is a member of the
> Code Aurora Forum, a Linux Foundation Collaborative Project.
>

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

end of thread, other threads:[~2017-12-22 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-19 10:49 [PATCH 0/2] Make capsules in a contiguous virtual space Ge Song
2017-12-21 21:47 ` Richard Ruigrok
2017-12-22 15:50   ` Ard Biesheuvel

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

all inboxes | Powered by JetHome®