gpu: nvgpu: enable IO coherence characteristics for dGPUs

Enable NVGPU_SUPPORT_IO_COHERENCE characteristics for dGPUs which support
DMA_COHERENCE e.g. GV100

Bug 200383034

Change-Id: If12d2ef6c642f7c4cce83dbf05f492100ee1c7e0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1644277
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2018-01-23 02:32:06 -08:00
committed by mobile promotions
parent 3f0f6267ea
commit 66c5507daf

View File

@@ -646,8 +646,10 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
np = nvgpu_get_node(g);
if (of_dma_is_coherent(np))
if (of_dma_is_coherent(np)) {
__nvgpu_set_enabled(g, NVGPU_DMA_COHERENT, true);
__nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true);
}
return 0;
}