summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-04-17 19:11:28 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-01 12:58:22 -0700
commita32a944a60c854ab44cf873dfc1954828f50b046 (patch)
treecfaae4fa6077cda36a33d2cd8e6f7f652e3bc278 /crypto
parentf2acc8dc0644194efba8474d3a4dc13752430894 (diff)
powerpc/powernv/npu: Do a PID GPU TLB flush when invalidating a large address range
commit d0cf9b561ca97d5245bb9e0c4774b7fadd897d67 upstream. The NPU has a limited number of address translation shootdown (ATSD) registers and the GPU has limited bandwidth to process ATSDs. This can result in contention of ATSD registers leading to soft lockups on some threads, particularly when invalidating a large address range in pnv_npu2_mn_invalidate_range(). At some threshold it becomes more efficient to flush the entire GPU TLB for the given MM context (PID) than individually flushing each address in the range. This patch will result in ranges greater than 2MB being converted from 32+ ATSDs into a single ATSD which will flush the TLB for the given PID on each GPU. Fixes: 1ab66d1fbada ("powerpc/powernv: Introduce address translation services for Nvlink2") Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Alistair Popple <alistair@popple.id.au> Acked-by: Balbir Singh <bsingharora@gmail.com> Tested-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions