From 66c5507dafaffcd59459bc9687d0439bab91ae13 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 23 Jan 2018 02:32:06 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1644277 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/linux/pci.c') diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c index 905a3d39..6ebe8dda 100644 --- a/drivers/gpu/nvgpu/common/linux/pci.c +++ b/drivers/gpu/nvgpu/common/linux/pci.c @@ -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; } -- cgit v1.2.2