From owner-svn-src-projects@FreeBSD.ORG Sun Aug 25 23:26:44 2013 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2030F990; Sun, 25 Aug 2013 23:26:44 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0DF7428E7; Sun, 25 Aug 2013 23:26:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7PNQheP021792; Sun, 25 Aug 2013 23:26:43 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7PNQhr4021791; Sun, 25 Aug 2013 23:26:43 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201308252326.r7PNQhr4021791@svn.freebsd.org> From: Alexander Motin Date: Sun, 25 Aug 2013 23:26:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r254892 - projects/camlock/sys/dev/ahci X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Aug 2013 23:26:44 -0000 Author: mav Date: Sun Aug 25 23:26:43 2013 New Revision: 254892 URL: http://svnweb.freebsd.org/changeset/base/254892 Log: With GEOM direct dispatch support there is finally a good reason to enable multi-vector MSI interrupts. Single interrupt thread may have insufficient performance to handle completion from all ports of the controller. At least on synthetic tests 6 SSDs can outperform it. Modified: projects/camlock/sys/dev/ahci/ahci.c Modified: projects/camlock/sys/dev/ahci/ahci.c ============================================================================== --- projects/camlock/sys/dev/ahci/ahci.c Sun Aug 25 23:16:52 2013 (r254891) +++ projects/camlock/sys/dev/ahci/ahci.c Sun Aug 25 23:26:43 2013 (r254892) @@ -676,7 +676,7 @@ static int ahci_setup_interrupt(device_t dev) { struct ahci_controller *ctlr = device_get_softc(dev); - int i, msi = 1; + int i, msi = 2; /* Process hints. */ if (ctlr->quirks & AHCI_Q_NOMSI)