Re: x86-64: memset()/memcpy() not fully standards compliant

From: Jan Beulich
Date: Fri Jan 06 2012 - 05:21:55 EST


>>> On 06.01.12 at 03:03, "H. Peter Anvin" <hpa@xxxxxxxxx> wrote:
> On 01/05/2012 05:47 PM, Andi Kleen wrote:
>>>
>>> Is that still true, and do we even use string instructions still on
>>> those old CPUs? Jan's fixes don't introduce any additional delays in
>>> the non-string-instruction paths.
>>
>> Yes various of the CPUs with bugs used string instructions.
>>
>
> Which CPUs are you talking about here?

Indeed, I went through various specification updates/revision guides
without finding any relevant erratum.

>>
>> Both string and non string instructions are used on modern CPUs,
>> so making any of that slower is not a good idea.
>>
>
> Obviously not, but I'm perfectly fine turning REP_GOOD off on old broken
> CPUs.

Yes, that's what my plan would have been too, had I been able to
identify any specific CPU(s) that actually suffer from such problems.

Jan

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/