From owner-cvs-all@FreeBSD.ORG Fri May 30 20:02:07 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71DD9106566C; Fri, 30 May 2008 20:02:07 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7C6FD8FC0C; Fri, 30 May 2008 20:02:07 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4UK27kV067047; Fri, 30 May 2008 20:02:07 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4UK27Vd067046; Fri, 30 May 2008 20:02:07 GMT (envelope-from marius) Message-Id: <200805302002.m4UK27Vd067046@repoman.freebsd.org> From: Marius Strobl Date: Fri, 30 May 2008 20:02:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/dev/sym sym_hipd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 20:02:07 -0000 marius 2008-05-30 20:02:06 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/dev/sym sym_hipd.c Log: MFC: 1.69 - Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) in order to get rid of bus space handle and tag in struct sym_hcb. - Remove unused members related to bus addresses in struct sym_hcb. - sym(4) takes care of allocating an instance of struct sym_hcb itself so don't let newbus allocate it as an unused softc also. - Add basic MPSAFE locking. This includes changing the sym(4) CCBs to be allocated up-front instead of on demand as needed. Besides making these allocations more likely to succeed, this also solves the problem of calling bus_dmamap_create(9) with the SIM mutex held. Revision Changes Path 1.67.2.2 +157 -120 src/sys/dev/sym/sym_hipd.c