From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 15:54:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B52337B401 for ; Wed, 13 Aug 2003 15:54:25 -0700 (PDT) Received: from yowl.no-ip.com (host-59.uni.net.ua [213.169.83.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7623E43FBD for ; Wed, 13 Aug 2003 15:54:14 -0700 (PDT) (envelope-from serkov@yowl.no-ip.com) Received: from yowl.no-ip.com (localhost [127.0.0.1]) by yowl.no-ip.com (8.12.9/8.12.9) with ESMTP id h7DMnK3M019857 for ; Thu, 14 Aug 2003 01:49:52 +0300 (EEST) (envelope-from serkov@yowl.no-ip.com) Received: by yowl.no-ip.com (8.12.9/8.12.9/Submit) id h7DMmmOU019586 for freebsd-hackers@freebsd.org; Thu, 14 Aug 2003 01:48:48 +0300 (EEST) From: Alexander Serkov To: freebsd-hackers@freebsd.org Date: Thu, 14 Aug 2003 01:45:45 +0300 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308140145.45882.serkov@ukrpost.net> Subject: Why is ATAPI DMA disabled by default ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: serkov@ukrpost.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 22:54:25 -0000 I use 5.1-current and have found that by default FreeBSD disables ATAPI's support for DMA transfers and thus uses CPU hungry PIO modes. It even makes sysctl used to change this read-only. I had changed the default value of atapi_dma to 1 in dev/ata/atapi-all.c to 1 and it worked fine for me. Can someone explain why it is disabled?