From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 26 23:20:44 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9901D1065690 for ; Wed, 26 Aug 2009 23:20:44 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.freebsd.org (Postfix) with ESMTP id 7B0178FC21 for ; Wed, 26 Aug 2009 23:20:44 +0000 (UTC) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.14.3/8.14.3) with ESMTP id n7QMraAn063684 for ; Wed, 26 Aug 2009 15:53:36 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.14.3/8.14.3/Submit) id n7QMrauP063683 for hackers@freebsd.org; Wed, 26 Aug 2009 15:53:36 -0700 (PDT) (envelope-from steve) Message-Id: <200908262253.n7QMrauP063683@wattres.watt.com> In-Reply-To: <4A954A35.4030207@icyb.net.ua> From: steve@Watt.COM (Steve Watt) Organization: Watt Consultants, San Jose, CA, USA Date: Wed, 26 Aug 2009 15:53:36 -0700 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: hackers@freebsd.org X-Archived: 1251327216.828595188@wattres.Watt.COM X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (wattres.watt.com [127.0.0.1]); Wed, 26 Aug 2009 15:53:36 -0700 (PDT) Cc: Subject: Re: enable ECC in OS code? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 23:20:44 -0000 In <4A954A35.4030207@icyb.net.ua>, avg@icyb.net.ua wrote: > >Here is a question that I am afraid I know an answer for. >I have some ECC capable hardware: >1) Athlon II with embedded memory controller that can do ECC >2) DRAM modules with ECC >Assuming that ECC data lanes are connected between the two on motherboard, and >given that BIOS doesn't perform any ECC setup (nor there is any option to control >that) - would it be possible to turn on ECC from OS code? >Or is it too late in the game already? It's about 100 times easier to have the BIOS do this. First off, it's usually quite specific to the chip set exactly how to do it. Next, if ECC wasn't enabled previously, the ECC bytes will all be wrong, which means that you'll have to rewrite all of memory after you've turned it on. Oh, and you have to fetch the code that rewrites the ECC from the memory with incorrect ECC to do that. If the BIOS is broken to the extent that it doesn't enable ECC on a system that it should be available, whine at the vendor. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices...