ACK / APPLIED[artful]: [PATCH 1/2][Zesty] powerpc/powernv/npu-dma: Add explicit flush when sending an ATSD
Seth Forshee
seth.forshee at canonical.com
Thu Jun 29 21:15:40 UTC 2017
On Thu, Jun 29, 2017 at 01:40:12PM -0300, Breno Leitao wrote:
> From: Alistair Popple <alistair at popple.id.au>
>
> BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1701272
>
> NPU2 requires an extra explicit flush to an active GPU PID when
> sending address translation shoot downs (ATSDs) to reliably flush the
> GPU TLB. This patch adds just such a flush at the end of each sequence
> of ATSDs.
>
> We can safely use PID 0 which is always reserved and active on the
> GPU. PID 0 is only used for init_mm which will never be a user mm on
> the GPU. To enforce this we add a check in pnv_npu2_init_context()
> just in case someone tries to use PID 0 on the GPU.
>
> Signed-off-by: Alistair Popple <alistair at popple.id.au>
> [mpe: Use true/false for bool literals]
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> (cherry picked from commit bbd5ff50afffcf4a01d05367524736c57607a478)
> Signed-off-by: Breno Leitao <leitao at debian.org>
Clean cherry picks, scope is limited to powerpc. For both patches:
Acked-by: Seth Forshee <seth.forshee at canonical.com>
Applied to artful/master-next, thanks.
More information about the kernel-team
mailing list