[Nouveau] [PATCH v2 1/3] device: use the correct mmio size when mapping
Karol Herbst
kherbst at redhat.com
Fri Apr 17 18:09:30 UTC 2020
Fixes warnings on GPUs with smaller a smaller mmio region like vGPUs.
Signed-off-by: Karol Herbst <kherbst at redhat.com>
---
drm/nouveau/nvkm/engine/device/base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drm/nouveau/nvkm/engine/device/base.c b/drm/nouveau/nvkm/engine/device/base.c
index 8ebbe1656..17676c75a 100644
--- a/drm/nouveau/nvkm/engine/device/base.c
+++ b/drm/nouveau/nvkm/engine/device/base.c
@@ -2963,7 +2963,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
/* identify the chipset, and determine classes of subdev/engines */
if (detect) {
- map = ioremap(mmio_base, 0x102000);
+ map = ioremap(mmio_base, mmio_size);
if (ret = -ENOMEM, map == NULL)
goto done;
--
2.25.2
More information about the Nouveau
mailing list