diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-02-08 21:25:47 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-27 19:03:34 -0500 |
commit | 71f53272b28b1086b3f34e5e255815c37504ac2c (patch) | |
tree | 3eb55c03773459f1ccd5b422197555bac5b22b41 /drivers/gpu/nvgpu/common/linux | |
parent | a885f682d6cf2476c0cee695942b5f4c2718aa70 (diff) |
gpu: nvgpu: FIFO sched fixes
Miscellaneous fixes for the sched code:
1. Make sure get_addr() on an SGL respects the use phys flag since
the runlist needs physical addresses when NVLINK is in use.
2. Ensure the runlist is contiguous. Since the runlist memory is
not virtually addressed the buffer must be physically contiguous.
3. Use all 64 bits of the runlist address in the runlist base addr
register (and related fields).
JIRA EVLR-2333
Change-Id: Id4fd5ba4665d3e35ff1d6ca78dea6b58894a9a9a
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1654667
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
Tested-by: Thomas Fleury <tfleury@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c index 64f638e2..e441ec76 100644 --- a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c +++ b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | |||
@@ -316,7 +316,8 @@ void nvgpu_memset(struct gk20a *g, struct nvgpu_mem *mem, u32 offset, | |||
316 | */ | 316 | */ |
317 | u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl) | 317 | u64 nvgpu_mem_get_addr_sgl(struct gk20a *g, struct scatterlist *sgl) |
318 | { | 318 | { |
319 | if (!nvgpu_iommuable(g)) | 319 | if (nvgpu_is_enabled(g, NVGPU_MM_USE_PHYSICAL_SG) || |
320 | !nvgpu_iommuable(g)) | ||
320 | return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl)); | 321 | return g->ops.mm.gpu_phys_addr(g, NULL, sg_phys(sgl)); |
321 | 322 | ||
322 | if (sg_dma_address(sgl) == 0) | 323 | if (sg_dma_address(sgl) == 0) |