Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756421AbZKEN2P (ORCPT ); Thu, 5 Nov 2009 08:28:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756175AbZKEN2P (ORCPT ); Thu, 5 Nov 2009 08:28:15 -0500 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:23498 "EHLO TX2EHSOBE003.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755652AbZKEN2O convert rfc822-to-8bit (ORCPT ); Thu, 5 Nov 2009 08:28:14 -0500 X-SpamScore: -26 X-BigFish: VPS-26(zz1418M1432R98dN179dN1442Jzz1202hzzz32i6bh43j61h) X-Spam-TCS-SCL: 0:0 X-WSS-ID: 0KSN1EA-03-4BS-02 X-M-MSG: Date: Thu, 5 Nov 2009 14:27:58 +0100 From: Borislav Petkov To: "H. Peter Anvin" CC: Pavel Machek , Doug Thompson , Ingo Molnar , Thomas Gleixner , x86 , LKML Subject: Re: [RFC] amd64_edac: syndromes loading Message-ID: <20091105132758.GC17984@aftab> References: <20091028163534.GA625@aftab> <143841.81095.qm@web50110.mail.re2.yahoo.com> <20091028172853.GE625@aftab> <20091101211305.GB2085@ucw.cz> <4AEE0CAA.4070403@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline In-Reply-To: <4AEE0CAA.4070403@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: 8BIT X-OriginalArrivalTime: 05 Nov 2009 13:27:42.0470 (UTC) FILETIME=[C0C45260:01CA5E1B] X-Reverse-DNS: unknown Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2904 Lines: 69 Hi, sorry for the delay, I had to talk to the hardware guys about those tables. On Mon, Nov 02, 2009 at 07:33:14AM +0900, H. Peter Anvin wrote: > >>Alternatively, we could make the syndromes builtin thus removing the > >>requirement to go to userspace for the loading. For that we'll need > >>two new .c files in drivers/edac/ which represent the x4 and x8 tables > >>respectively: > >> > >>unsigned short x8_raw_data[] = { > >> 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > >> 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, > >> 0x0000, 0x0100, 0x0001, 0x0101, 0x01B8, 0x015C, 0x012E, 0x01C6, 0x0163, > >> 0x01FD, 0x0189, 0x019D, 0xB801, 0x5C01, 0x2E01, 0xC601, 0x6301, 0xFD01, > >> 0x8901, 0x9D01, 0x0200, 0x0002, 0x0202, 0x0201, 0x02B8, 0x025C, 0x02FD, > >> .... > >> > >>The drawback with these is that they'll always be builtin, enlarging > >>kernel code by 10-15K although only one of them is in use. > > > >I believe that 15K is reasonable price to pay for not having to > >install another 'firmware' file. > > a) aren't these computable somehow? If so, it's probably easier to > include the algorithm in the kernel rather than a table. That's a no-go since it would involve IP disclosure. > b) "I believe that 15K is reasonable price to pay for not having to > install another 'firmware' file." I think that's a tradeoff a lot > of people would *not* choose to make. This is of course why we have > (or at least, should have) to either compile in firmware blobs or > not. The good news is they've come up with a modified algorithm which will require a smaller table, roughly 1/4th the size of the current 10K one. Now, on a second thought and IMHO, we should simply add another .c file instantiating those two x4 and x8 tables statically and linking them into the edac code. This way you 1) don't have the additional complexity of adding firmware handling code and thus don't add a dependency on the firmware API 2) don't have to actually carry two firmware images with the kernel See, the natural use case for those tables are big machines which do not care about 4K memory wasted in ECC decoding tables when the recovery from the missed early warnings of a failing DIMM module is much more expensive. Hmm... ? -- Regards/Gruss, Boris. Operating | Advanced Micro Devices GmbH System | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. M?nchen, Germany Research | Gesch?ftsf?hrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis M?nchen (OSRC) | Registergericht M?nchen, HRB Nr. 43632 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/