Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758533AbZFOIko (ORCPT ); Mon, 15 Jun 2009 04:40:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751694AbZFOIkh (ORCPT ); Mon, 15 Jun 2009 04:40:37 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:54354 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbZFOIkg (ORCPT ); Mon, 15 Jun 2009 04:40:36 -0400 Message-ID: <4A3608F9.20203@jp.fujitsu.com> Date: Mon, 15 Jun 2009 17:40:25 +0900 From: Hidetoshi Seto User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: huang ying CC: linux-kernel@vger.kernel.org, Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Andi Kleen , Huang Ying Subject: Re: [PATCH 02/16] x86, mce: call-in should be after updating global_nwo References: <4A3601BF.2000201@jp.fujitsu.com> <4A36041C.9050202@jp.fujitsu.com> <851fc09e0906150126x4bb003flbf099aff0eed2a66@mail.gmail.com> In-Reply-To: <851fc09e0906150126x4bb003flbf099aff0eed2a66@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 34 huang ying wrote: > 2009/6/15 Hidetoshi Seto : >> At the beginning of Monarch synchronization, processors wait until >> all of them have entered the exception handler and then check the >> global_nwo to determine if any of them saw a fatal event. >> >> However since current code does call-in before updating global_nwo, >> it might happen that the global_nwo does not reflect some of local >> nwo at the time. This might break printing corrected errors not >> handled yet on panic. > > This is almost same as the patch that I just posted. I think this is > because it trigger a failure in mce-test suite, and we both find the > failure. That's right. > But your patch lacks memory barrier between mce_callin and global_nwo > updating/reading. Atomic operations does not imply memory barrier. You are right. I agree that your patch is better fix. It seems my patch includes cleanup for mce_start(), so I'll extract it and make another patch soon. Thanks, H.Seto -- 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/