From owner-p4-projects@FreeBSD.ORG Sat May 20 19:00:03 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 81FF416A422; Sat, 20 May 2006 19:00:03 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DFF016A420 for ; Sat, 20 May 2006 19:00:03 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBAF743D45 for ; Sat, 20 May 2006 19:00:02 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4KIxSgq084944 for ; Sat, 20 May 2006 18:59:28 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4KIxSOX084941 for perforce@freebsd.org; Sat, 20 May 2006 18:59:28 GMT (envelope-from kmacy@freebsd.org) Date: Sat, 20 May 2006 18:59:28 GMT Message-Id: <200605201859.k4KIxSOX084941@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 97525 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 19:00:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=97525 Change 97525 by kmacy@kmacy_storage:sun4v_rwbuf on 2006/05/20 18:58:54 style fix add error check Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#13 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#13 (text+ko) ==== @@ -931,13 +931,14 @@ HIM_LOCK(him); SLIST_FOREACH(r, &map->dm_reslist, dr_link) { - va = (vm_offset_t)BDR_START(r) + r->dr_offset; + va = (vm_offset_t)BDR_START(r) + r->dr_offset ; len = r->dr_used; while (len > 0) { if ((err = hvio_iommu_getmap(him->him_handle, VA_TO_TSBID(him, va), &ioattr, &ra))) { - printf("failed to _getmap: err: %ld, handle: %#lx, tsbid: %#lx", - err, him->him_handle, VA_TO_TSBID(him, va)); + if (err != H_ENOMAP) + printf("failed to _g=etmap: err: %ld, handle: %#lx, tsbid: %#lx\n", + err, him->him_handle, VA_TO_TSBID(him, va)); continue; } if ((err = hvio_dma_sync(him->him_handle, ra,