mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: Enable IO coherency on GV100
This reverts commit 848af2ce6d.
This is a revert of a revert, etc, etc. It re-enables IO coherence again.
JIRA EVLR-2333
Change-Id: Ibf97dce2f892e48a1200a06cd38a1c5d9603be04
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1669722
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f85a0d3e00
commit
418f31cd91
@@ -20,6 +20,7 @@
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/reset.h>
|
||||
@@ -1111,6 +1112,7 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
struct gk20a *gk20a;
|
||||
int err;
|
||||
struct gk20a_platform *platform = NULL;
|
||||
struct device_node *np;
|
||||
|
||||
if (dev->dev.of_node) {
|
||||
const struct of_device_id *match;
|
||||
@@ -1151,6 +1153,12 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
if (err)
|
||||
goto return_err;
|
||||
|
||||
np = nvgpu_get_node(gk20a);
|
||||
if (of_dma_is_coherent(np)) {
|
||||
__nvgpu_set_enabled(gk20a, NVGPU_USE_COHERENT_SYSMEM, true);
|
||||
__nvgpu_set_enabled(gk20a, NVGPU_SUPPORT_IO_COHERENCE, true);
|
||||
}
|
||||
|
||||
if (nvgpu_platform_is_simulation(gk20a))
|
||||
__nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user