From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by kanga.kvack.org (Postfix) with ESMTP id EB904828F3 for ; Sun, 10 Jan 2016 06:26:45 -0500 (EST) Received: by mail-wm0-f50.google.com with SMTP id b14so229897337wmb.1 for ; Sun, 10 Jan 2016 03:26:45 -0800 (PST) Received: from mail.skyhub.de (mail.skyhub.de. [2a01:4f8:120:8448::d00d]) by mx.google.com with ESMTP id p126si14052446wmg.99.2016.01.10.03.26.44 for ; Sun, 10 Jan 2016 03:26:44 -0800 (PST) Date: Sun, 10 Jan 2016 12:26:35 +0100 From: Borislav Petkov Subject: Re: [PATCH v8 3/3] x86, mce: Add __mcsafe_copy() Message-ID: <20160110112635.GC22896@pd.tnic> References: <19f6403f2b04d3448ed2ac958e656645d8b6e70c.1452297867.git.tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Tony Luck Cc: Dan Williams , Andy Lutomirski , linux-nvdimm , "linux-kernel@vger.kernel.org" , Andrew Morton , Robert , Ingo Molnar , "linux-mm@kvack.org" , X86 ML On Sat, Jan 09, 2016 at 05:40:05PM -0800, Tony Luck wrote: > BUT ... it's all going to be very messy. We don't have any CPUID > capability bits to say whether we support recovery, or which instructions > are good/bad choices for recovery. We can always define synthetic ones and set them after having checked MCA capability bits, f/m/s, etc., maybe even based on the list you're supplying... > Linux code recently got some recovery bits for AMD cpus ... I don't > know what the story is on which models support this, You mean this? /* * overflow_recov is supported for F15h Models 00h-0fh * even though we don't have a CPUID bit for it. */ if (c->x86 == 0x15 && c->x86_model <= 0xf) mce_flags.overflow_recov = 1; If so, that's just an improvement which makes MCi_STATUS[Overflow] MCEs non-fatal. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org