On 20 January 2017 at 15:06, Marc Zyngier <[email protected]> wrote:
> On 20/01/17 14:41, Mark Rutland wrote:
>> [Adding Marc Zyngier]
>>
>> On Fri, Jan 20, 2017 at 02:20:43PM +0000, Ard Biesheuvel wrote:
>>> Users of ArmGenericTimerVirtCounterLib may execute under virtualization,
>>> which implies that they may be affected by core errata of the host.
>>>
>>> Some implementations of the ARM Generic Timer are affected by errata where
>>> reads of the counter and reads or writes to the timer value may execute
>>> incorrectly when issued around the time the counter is incremented by
>>> the hardware.
>>
>> So far, there are at least two slightly different errata I've seen in
>> this area: Freescale erratum A-008585, and Hisilicon erratum #161010101.
>>
>> The first has a workaround in upstream Linux, whereas the latter
>> apparently requires a different workaround, and is currently under
>> review.
>>
>> There may not be a one-size-fits-all solution, here. To that end, I
>> would strongly suggest that we document precisely which errata we are
>> trying to handle here.
>
> Also, is there any way that DT/ACPI could be used to identify the actual
> erratum? When running a guest on my FSL box, my guest launch script adds
> the required property to the guest DT for the kernel to pick it up. Not
> as nice as a "one size fits all" method, but as Mark pointed out, such a
> method may simply not exist...
>

DT should be feasible, given that the UEFI firmware for QEMU does
consume the DT supplied to it. ACPI tables are produced by the
firmware rather than consumed by it, so fortunately we don't need to
care about those.

So if a binding should be defined that describes this erratum, we
could in fact use it to enable it rather than enable it
unconditionally. Are we talking about just 'fsl,erratum-a008585' here?
Or have additional ones been specified already? And is anyone aware if
any work has been done on the QEMU side of this?
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to