From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161130AbWLPQNY (ORCPT ); Sat, 16 Dec 2006 11:13:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161133AbWLPQNY (ORCPT ); Sat, 16 Dec 2006 11:13:24 -0500 Received: from srv5.dvmed.net ([207.36.208.214]:34654 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161130AbWLPQNX (ORCPT ); Sat, 16 Dec 2006 11:13:23 -0500 Message-ID: <45841B20.9030402@pobox.com> Date: Sat, 16 Dec 2006 11:13:20 -0500 From: Jeff Garzik User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Alan CC: David Shirley , linux-kernel@vger.kernel.org Subject: Re: SATA DMA problem (sata_uli) References: <20061213112004.59cb186c@localhost.localdomain> In-Reply-To: <20061213112004.59cb186c@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.3 (----) X-Spam-Report: SpamAssassin version 3.1.7 on srv5.dvmed.net summary: Content analysis details: (-4.3 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Alan wrote: >> I tracked it down to one of the drives being forced into PIO4 mode >> rather than UDMA mode; dmesg bits: >> ata4.00: ATA-7, max UDMA/133, 586072368 sectors: LBA48 NCQ (depth 0/32) >> ata4.00: ata4: dev 0 multi count 16 >> ata4.00: simplex DMA is claimed by other device, disabling DMA > > Your ULi controller is reporting that it supports UDMA upon only one > channel at a time. The kernel is honouring this information. The older > ULi (was ALi) PATA devices report simplex but let you turn it off so see > if the following does the trick. Test carefully as always with disk driver > changes. > > (Jeff probably best to check the docs before merging this but I believe > it is sane) > > Signed-off-by: Alan Cox My Uli SATA docs do not appear to cover the bmdma registers :( Only the PCI config registers. But regardless, I think the better fix is to never set ATA_HOST_SIMPLEX if ATA_FLAG_NO_LEGACY is set. None of the SATA controllers I've ever encountered has been simplex. Jeff