]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: gk20a: do not access invalid TLB
authorSang-Hun Lee <sanlee@nvidia.com>
Thu, 12 Jun 2014 17:52:59 +0000 (13:52 -0400)
committerEric Chuang <echuang@nvidia.com>
Sun, 15 Jun 2014 23:11:01 +0000 (16:11 -0700)
commitdc85d8f4fb08a2a7cc85f8432aee8370b860b73b
tree17192d8a14d5bfc3380331b63fd72d06eb6dd9c7
parent5719c78c02ec602cc9965a81976c4d9d60580a3c
gpu: nvgpu: gk20a: do not access invalid TLB

Problem description:
 - gk20a_mm_tlb_invalidate guarantees callers that
   TLB would be in a clean state
 - gk20a_mm_tlb_invalidate checks whether the dirty
   flag is set, then mark clean, then performs
   reset operation
 - If there are two parallel callers, one thread would be
   performing the clean up operation, while the other thread
   is returned to the caller

Fix description:
 - Extends the duration of the TLB dirty flag mutex lock

Bug 1519537

Change-Id: Ib762d876ea11c06cc39399b1e2607ae3a2c0e17e
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/422820
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/gpu/nvgpu/gk20a/mm_gk20a.c