From owner-p4-projects@FreeBSD.ORG Tue Jul 11 05:31:00 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 E3DDE16A4DD; Tue, 11 Jul 2006 05:30:59 +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 B4B0516A4E2 for ; Tue, 11 Jul 2006 05:30:59 +0000 (UTC) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CEF343D5D for ; Tue, 11 Jul 2006 05:30:59 +0000 (GMT) (envelope-from csjp@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 k6B5Uxj6051795 for ; Tue, 11 Jul 2006 05:30:59 GMT (envelope-from csjp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6B5Uxqi051792 for perforce@freebsd.org; Tue, 11 Jul 2006 05:30:59 GMT (envelope-from csjp@freebsd.org) Date: Tue, 11 Jul 2006 05:30:59 GMT Message-Id: <200607110530.k6B5Uxqi051792@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to csjp@freebsd.org using -f From: "Christian S.J. Peron" To: Perforce Change Reviews Cc: Subject: PERFORCE change 101258 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: Tue, 11 Jul 2006 05:31:00 -0000 http://perforce.freebsd.org/chv.cgi?CH=101258 Change 101258 by csjp@csjp_rnd01 on 2006/07/11 05:30:51 Fix from what I can is a typo in the argument passed to bus_get_dma_tag, we passed dev and we should be passing mpt->dev. This fixes the build for mpt(4) capable kernels. Affected files ... .. //depot/projects/kmacy_sun4v_stable/src/sys/dev/mpt/mpt_pci.c#4 edit Differences ... ==== //depot/projects/kmacy_sun4v_stable/src/sys/dev/mpt/mpt_pci.c#4 (text+ko) ==== @@ -679,7 +679,7 @@ * Align at byte boundaries, * Limit to 32-bit addressing for request/reply queues. */ - if (mpt_dma_tag_create(mpt, /*parent*/bus_get_dma_tag(dev), + if (mpt_dma_tag_create(mpt, /*parent*/bus_get_dma_tag(mpt->dev), /*alignment*/1, /*boundary*/0, /*lowaddr*/BUS_SPACE_MAXADDR, /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,