From 9b8bcb05189c439a23a059b6e4bf62e064852b08 Mon Sep 17 00:00:00 2001 From: petrov Date: Thu, 3 Jun 2004 06:17:05 +0000 Subject: [PATCH] Add DIAGNOSTIC in iommu_dvmamap_load if pmap_extract fails. --- sys/arch/sparc64/dev/iommu.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c index 564780fb23e4..bbed51653af8 100644 --- a/sys/arch/sparc64/dev/iommu.c +++ b/sys/arch/sparc64/dev/iommu.c @@ -1,4 +1,4 @@ -/* $NetBSD: iommu.c,v 1.73 2004/03/22 12:20:52 nakayama Exp $ */ +/* $NetBSD: iommu.c,v 1.74 2004/06/03 06:17:05 petrov Exp $ */ /* * Copyright (c) 2001, 2002 Eduardo Horvath @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.73 2004/03/22 12:20:52 nakayama Exp $"); +__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.74 2004/06/03 06:17:05 petrov Exp $"); #include "opt_ddb.h" @@ -545,6 +545,9 @@ iommu_dvmamap_load(t, sb, map, buf, buflen, p, flags) * Get the physical address for this page. */ if (pmap_extract(pmap, (vaddr_t)vaddr, &curaddr) == FALSE) { +#ifdef DIAGNOSTIC + printf("iommu_dvmamap_load: pmap_extract failed %lx\n", vaddr); +#endif bus_dmamap_unload(t, map); return (-1); }