Re: [PATCH v2] kvm/arm64: fixed passthrough gpu into vm on arm64
From: Jason Gunthorpe
Date: Mon Apr 04 2022 - 09:24:14 EST
On Fri, Apr 01, 2022 at 05:48:59PM +0100, Marc Zyngier wrote:
> NAK. For a start, there is no such thing as 'write-combine' in the ARM
> architecture, and I'm not convinced you can equate WC to Normal-NC.
> See the previous discussion at [1].
>
> [1] https://lore.kernel.org/r/20210429162906.32742-1-sdonthineni@xxxxxxxxxx
We've had a lot of discussions with ARM related to how this works with
drivers like mlx5 that use WC.
ARM has now published some guidance on this:
https://community.arm.com/arm-research/m/resources/1012
As an ecosystem we seem to be drifting toward Normal-NC for this
behavior (largely because it is what Linux does). At least that is
what we are testing and qualifing ARM CPUs against mlx5 with.
I'm guessing it will turn into a SBSA like thing where the ARM ARM is
kind of vauge but a SOC has to implement Normal-NC in a certain way to
be functional for the server market.
Jason