diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bios.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bios.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index b59f348f14fc..7369b5e73649 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c | |||
@@ -2083,11 +2083,11 @@ peek_fb(struct drm_device *dev, struct io_mapping *fb, | |||
2083 | uint32_t val = 0; | 2083 | uint32_t val = 0; |
2084 | 2084 | ||
2085 | if (off < pci_resource_len(dev->pdev, 1)) { | 2085 | if (off < pci_resource_len(dev->pdev, 1)) { |
2086 | uint32_t __iomem *p = io_mapping_map_atomic_wc(fb, off); | 2086 | uint32_t __iomem *p = io_mapping_map_atomic_wc(fb, off, KM_USER0); |
2087 | 2087 | ||
2088 | val = ioread32(p); | 2088 | val = ioread32(p); |
2089 | 2089 | ||
2090 | io_mapping_unmap_atomic(p); | 2090 | io_mapping_unmap_atomic(p, KM_USER0); |
2091 | } | 2091 | } |
2092 | 2092 | ||
2093 | return val; | 2093 | return val; |
@@ -2098,12 +2098,12 @@ poke_fb(struct drm_device *dev, struct io_mapping *fb, | |||
2098 | uint32_t off, uint32_t val) | 2098 | uint32_t off, uint32_t val) |
2099 | { | 2099 | { |
2100 | if (off < pci_resource_len(dev->pdev, 1)) { | 2100 | if (off < pci_resource_len(dev->pdev, 1)) { |
2101 | uint32_t __iomem *p = io_mapping_map_atomic_wc(fb, off); | 2101 | uint32_t __iomem *p = io_mapping_map_atomic_wc(fb, off, KM_USER0); |
2102 | 2102 | ||
2103 | iowrite32(val, p); | 2103 | iowrite32(val, p); |
2104 | wmb(); | 2104 | wmb(); |
2105 | 2105 | ||
2106 | io_mapping_unmap_atomic(p); | 2106 | io_mapping_unmap_atomic(p, KM_USER0); |
2107 | } | 2107 | } |
2108 | } | 2108 | } |
2109 | 2109 | ||