From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 1 18:15:55 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 475E2C8A for ; Thu, 1 Nov 2012 18:15:55 +0000 (UTC) (envelope-from michael.schuh@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C15B08FC08 for ; Thu, 1 Nov 2012 18:15:54 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id e12so2590535lag.13 for ; Thu, 01 Nov 2012 11:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FarGUO5O0kkQJJPmOyLI2lUwS1esQh424/ZaBYv1Jj0=; b=iM26eZs0O/2xK8bsIQmyqsnFSzHMybk0ZX4tO54a6+4CQJffCUSb8K+avBCQwhBsni +Wn3t2/NS4Z5CBOeoLf7+kIhzEnoKNXZG3N/+X0QXm7ZDqJTOPB0lH6NNfar7cxOvwRs YRChxIn+DENzxqXl2uQYcQfjio2Ihi1o4dj51U5b9tkabW5dihB/8rg4enq3SKBQK6gM qn++BqRqm7kyOnGX/ae8Ok8dwvqbuJG7yX7NOB+XswY+dAZBhZyohCPdI+TGpL3T9o/u oSQ/Tf9OWOMINcTfArTM+/8Y9zEpjOI6UXGyJ2rmfw2dB3gH06ApKaQayzEAN7ceqG2w mFFQ== MIME-Version: 1.0 Received: by 10.112.102.230 with SMTP id fr6mr16243706lbb.112.1351793753513; Thu, 01 Nov 2012 11:15:53 -0700 (PDT) Received: by 10.112.134.106 with HTTP; Thu, 1 Nov 2012 11:15:53 -0700 (PDT) Date: Thu, 1 Nov 2012 19:15:53 +0100 Message-ID: Subject: ata-intel.c - Intel ICH(7) Controller working modes From: Michael Schuh To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Fri, 02 Nov 2012 11:21:01 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 18:15:55 -0000 Hi @all, after a nightmare of digging the Internet, testing this, testing that, etc i have found a (temporary possible) Solution for a bug, that i reported: http://www.freebsd.org/cgi/query-pr.cgi?pr=173251 This bug is related to ( ?all? ) Machines that are based on INTEL-ICH chipsets withouth the possibility to change its working mode from (compatibility) IDE to AHCI. FreeBSD could not detect any SATA drive. There is no BIOS option to change the working mode of the ICH controller. As you can read in my follow-ups i had to patch the kernel back to its old behavior prior to 8.3 RELEASE. Just that can't be the solution. May be i haven't seen anything that would to get pushed into the loader.conf, but i didn't found anything related that helped. +TUNABLE_INT("hw.ahci.force", &force_ahci); <<< The only thing i found in relation to this. just that didn't worked. May be a more experienced developer can take a look on it and find a way to set the controllers into the new AHCI working mode or fallback to IDE mode if failed on boot time? here some deeper knowledge about the settings. http://rants.atmurray.net/2009/06/sata-ahci-mode-on-systems-without-bios.html It seems that this is not persistent and gets everytime changed back from the Systems BIOS or the chip itself on initialization. in the article is also mentioned that not all chipsets supports ahci. while the author is referring to the same kind of machine, i think it should be possible to swithc the controller to ahci in my case. i could patch back the kernels ata-intel.c driver, just no idea what this means in deep and how i can put the stuff from the article above into it. to enforce a check before the driver gets loaded. i am not a kern developer. i am grateful for any hint or help. from my point of view it would be nice if we can get a working solution into the kernel, so people that use those machines didn't have to patch their kernels all the time. i found more ppl. with that problem. many thanks michael p.s. i am not member of that mailing list, so i will see only answers sent to myself (not only to the list)