Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1286445 > unrolled thread

Re: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock

Started byMatt Fleming <matt@codeblueprint.co.uk>
First post2015-12-08 13:50 +0100
Last post2015-12-08 14:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock  spinlock Matt Fleming <matt@codeblueprint.co.uk> - 2015-12-08 13:50 +0100
    Re: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-12-08 14:20 +0100

#1286445 — Re: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock

FromMatt Fleming <matt@codeblueprint.co.uk>
Date2015-12-08 13:50 +0100
SubjectRe: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock
Message-ID<qDpSs-2rq-55@gated-at.bofh.it>
On Tue, 01 Dec, at 11:50:19AM, Ard Biesheuvel wrote:
> The rtc_lock spinlock aims to serialize access to the CMOS RTC between
> the UEFI firmware and the kernel drivers that use it directly. However,
> x86 is the only arch that performs such direct accesses, and that never
> uses the time related UEFI runtime services. Since no other UEFI enlightened
> architectures have a legcay CMOS RTC anyway, we can remove the rtc_lock
> spinlock entirely.
> 
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
>  drivers/firmware/efi/runtime-wrappers.c | 32 +++++---------------
>  1 file changed, 8 insertions(+), 24 deletions(-)

Is this really true? It's not possible, for instance, for 32-bit ARM
systems to use the rtc-cmos driver which would access the same
physical device that UEFI would with the GetTime() service?

With the pending 32-bit ARM UEFI support coming, this needs to be
considered carefully.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1286457 — Re: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock

FromArd Biesheuvel <ard.biesheuvel@linaro.org>
Date2015-12-08 14:20 +0100
SubjectRe: [PATCH v2 6/7] efi: runtime-wrapper: get rid of the rtc_lock spinlock
Message-ID<qDqls-2QG-13@gated-at.bofh.it>
In reply to#1286445
On 8 December 2015 at 13:48, Matt Fleming <matt@codeblueprint.co.uk> wrote:
> On Tue, 01 Dec, at 11:50:19AM, Ard Biesheuvel wrote:
>> The rtc_lock spinlock aims to serialize access to the CMOS RTC between
>> the UEFI firmware and the kernel drivers that use it directly. However,
>> x86 is the only arch that performs such direct accesses, and that never
>> uses the time related UEFI runtime services. Since no other UEFI enlightened
>> architectures have a legcay CMOS RTC anyway, we can remove the rtc_lock
>> spinlock entirely.
>>
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> ---
>>  drivers/firmware/efi/runtime-wrappers.c | 32 +++++---------------
>>  1 file changed, 8 insertions(+), 24 deletions(-)
>
> Is this really true? It's not possible, for instance, for 32-bit ARM
> systems to use the rtc-cmos driver which would access the same
> physical device that UEFI would with the GetTime() service?
>
> With the pending 32-bit ARM UEFI support coming, this needs to be
> considered carefully.

That seems highly unlikely. Even if 32-bit UEFI ARM systems existed
with this particular RTC (which is highly doubtful), it should not be
exposed to the OS in the first place, since we don't have the
compatibility concern that the PC has in that regard (where it is a
requirement)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web