diff options
author | Vinod G <vinodg@nvidia.com> | 2018-06-26 21:09:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-14 18:36:53 -0400 |
commit | ac98827c9d81746020dce689f9eb8c4018a8c148 (patch) | |
tree | 142dea7d1109be3b12a4e94c738a01ab7b13ee89 /drivers/gpu/nvgpu/common/posix | |
parent | b97bcb3c689426a1b099e88ceef4d55584e2362b (diff) |
gpu: nvgpu: Add L2 register read-backs following writes
LTC register write is followed by a register read
and if data doesn't match code will report the error.
Renamed existing nvgpu_writel_check function as
nvgpu_writel_loop as it loops until the write get success.
nvgpu_writel_check function write and read back and
compare the data.
Bug 2039150
Change-Id: I0a49be36aad23936f2d58aa82872710827da1d32
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1762344
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/posix')
-rw-r--r-- | drivers/gpu/nvgpu/common/posix/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/posix/io.c b/drivers/gpu/nvgpu/common/posix/io.c index dc32c20e..7bab8af6 100644 --- a/drivers/gpu/nvgpu/common/posix/io.c +++ b/drivers/gpu/nvgpu/common/posix/io.c | |||
@@ -54,7 +54,7 @@ u32 __nvgpu_readl(struct gk20a *g, u32 r) | |||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | void nvgpu_writel_check(struct gk20a *g, u32 r, u32 v) | 57 | void nvgpu_writel_loop(struct gk20a *g, u32 r, u32 v) |
58 | { | 58 | { |
59 | BUG(); | 59 | BUG(); |
60 | } | 60 | } |