summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-06-27 19:28:50 +0900
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 05:11:10 +1000
commite2a4e78cdccc4bb2d3729981313da237ad4ad43f (patch)
treef31bc60fc691f6afc18542fafdd0a9eeeb2dad97 /drivers/gpu/drm/nouveau/core/include/subdev
parent8ba9ff11632cb05d6f55555711d8425e32ee44b0 (diff)
downloadop-kernel-dev-e2a4e78cdccc4bb2d3729981313da237ad4ad43f.zip
op-kernel-dev-e2a4e78cdccc4bb2d3729981313da237ad4ad43f.tar.gz
drm/nouveau/bar: add noncached ioremap property
Some BARs (like GK20A's) do not support being ioremapped write-combined. Add a boolean property to the BAR structure and handle that case in the Nouveau BO implementation. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/bar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/bar.h b/drivers/gpu/drm/nouveau/core/include/subdev/bar.h
index 9faa98e..9002cbb 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/bar.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/bar.h
@@ -20,6 +20,9 @@ struct nouveau_bar {
u32 flags, struct nouveau_vma *);
void (*unmap)(struct nouveau_bar *, struct nouveau_vma *);
void (*flush)(struct nouveau_bar *);
+
+ /* whether the BAR supports to be ioremapped WC or should be uncached */
+ bool iomap_uncached;
};
static inline struct nouveau_bar *
OpenPOWER on IntegriCloud