From owner-freebsd-current@FreeBSD.ORG Thu Oct 24 16:07:24 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 63199DC0; Thu, 24 Oct 2013 16:07:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 02BB82849; Thu, 24 Oct 2013 16:07:23 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id s19so1508441qcw.35 for ; Thu, 24 Oct 2013 09:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gN1p9otG74awguHjifSa6ROCB1Qu6HrR+KaK7zRsW8w=; b=MEsAhZ/agu/D49AXDF4ecgpUadv8tcFxEC/3jxWEPbMtb2lTwjz14zc5V27qBZTGnX 3sVGcwHBLe1F15p9284nkbpaGMEhVKnqOEJ2RLPtnK/OpdIEQlS9EwIzxKCjRr39hAAQ 50EtaNiHDFghGJTfyd8WBPWvcVtsv39jcvLwDmVknPsI4bMJ6s7hlRsuCM1d0jPY0NBB utb276QeahH6Pa1rvLZOg7sa9sJOJswMSRCtuqQAbnqcXvZGw8aoyq82i6cySP9mK77J Dq7VFQFLv5GLFDUT0asOsVqGSIMMHtD8TlwCuw7uJbDs4gt/dtn54EMjgsqi3FW6QgRb SiIg== MIME-Version: 1.0 X-Received: by 10.224.36.201 with SMTP id u9mr5029229qad.76.1382630843196; Thu, 24 Oct 2013 09:07:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Thu, 24 Oct 2013 09:07:23 -0700 (PDT) In-Reply-To: <2304698.vixPKsOToE@pc-alex.netasq.com> References: <2304698.vixPKsOToE@pc-alex.netasq.com> Date: Thu, 24 Oct 2013 09:07:23 -0700 X-Google-Sender-Auth: u8oaNDkHAG4zTcmssPAp1Ff6_ZE Message-ID: Subject: Re: Troubles with VIA VX900 chipset From: Adrian Chadd To: Alexandre Martins Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Alexander Motin , Fabien Thomas , "current@freebsd.org" , Fabien Thomas X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 16:07:24 -0000 Hi! Would you please create a PR with the patches attached? That way it's not lost. Thanks! -a On 24 October 2013 06:56, Alexandre Martins wrote: > Dear, > > We have seen some issues with the VIA VX900 chipset. The main trouble is > that > some SATA hard drive are not seen by the kernel (BIOS and boot-loader are > OK). > > After investigations, it seems that during the initialisation of the > controler, some reset commands are send via "ata_via_sata_reset" fonction. > Into the chipset documentation, there is a warning about successive reset > commands, and software must waiting the "BUSY" flag is clear, before send > another reset. I have added a "DELAY(10000)" between the second call of > "ata_sata_phy_reset" and the call of "ata_generic_reset" and the problem > disapear. > > I also made a more complex fix which check the "BUSY" flag. > > Which fix of delai checking is the better one ? > > Best Regards > > -- > Alexandre Martins > NETASQ -- We secure IT > >