Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem P...
details: https://anonhg.NetBSD.org/src/rev/456713f31c08
branches: trunk
changeset: 343586:456713f31c08
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Feb 15 19:36:35 2016 +0000
description:
Print error code for failure to map PRAMIN BAR.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv40.c | 12 +++++----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 9ce7781ee2e2 -r 456713f31c08 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv40.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv40.c Mon Feb 15 19:00:42 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/instmem/nouveau_subdev_instmem_nv40.c Mon Feb 15 19:36:35 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_subdev_instmem_nv40.c,v 1.2 2014/08/23 08:03:34 riastradh Exp $ */
+/* $NetBSD: nouveau_subdev_instmem_nv40.c,v 1.3 2016/02/15 19:36:35 riastradh Exp $ */
/*
* Copyright 2012 Red Hat Inc.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_instmem_nv40.c,v 1.2 2014/08/23 08:03:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_instmem_nv40.c,v 1.3 2016/02/15 19:36:35 riastradh Exp $");
#include <engine/graph/nv40.h>
@@ -80,10 +80,12 @@
#ifdef __NetBSD__
priv->iomemt = nv_device_resource_tag(device, bar);
priv->iomemsz = nv_device_resource_len(device, bar);
- if (bus_space_map(priv->iomemt, nv_device_resource_start(device, bar),
- priv->iomemsz, 0, &priv->iomemh)) {
+ ret = bus_space_map(priv->iomemt,
+ nv_device_resource_start(device, bar),
+ priv->iomemsz, 0, &priv->iomemh);
+ if (ret) {
priv->iomemsz = 0;
- nv_error(priv, "unable to map PRAMIN BAR\n");
+ nv_error(priv, "unable to map PRAMIN BAR: %d\n", ret);
return -EFAULT;
}
#else
Home |
Main Index |
Thread Index |
Old Index