Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 26 Jul 2002 00:38:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 26 Jul 2002 00:38:53 -0400 Received: from www.sgg.ru ([217.23.135.2]:39950 "EHLO mail.sgg.ru") by vger.kernel.org with ESMTP id ; Fri, 26 Jul 2002 00:38:52 -0400 Message-ID: <3D40D3DD.2242B3F6@tv-sign.ru> Date: Fri, 26 Jul 2002 08:45:17 +0400 From: Oleg Nesterov X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.20 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: Ingo Molnar Subject: Re: [patch] irqlock patch 2.5.27-H4 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1187 Lines: 42 Hello. arch/i386/kernel/microcode.c:do_microcode_update() calls smp_call_function(do_update_one). do_update_one() does spin_lock/unlock. So smp_call_function_interrupt() needs irq_enter(). entry.S has unneeded GET_THREAD_INFO(%ebx) in device_not_available() trap. Patch against 2.5.28. --- arch/i386/kernel/smp.c~ Fri Jul 26 07:49:03 2002 +++ arch/i386/kernel/smp.c Fri Jul 26 07:53:45 2002 @@ -646,7 +646,10 @@ /* * At this point the info structure may be out of scope unless wait==1 */ + irq_enter(); (*func)(info); + irq_exit(); + if (wait) { mb(); atomic_inc(&call_data->finished); --- arch/i386/kernel/entry.S~ Fri Jul 26 07:49:03 2002 +++ arch/i386/kernel/entry.S Fri Jul 26 07:57:48 2002 @@ -417,7 +417,6 @@ ENTRY(device_not_available) pushl $-1 # mark this as an int SAVE_ALL - GET_THREAD_INFO(%ebx) movl %cr0, %eax testl $0x4, %eax # EM (math emulation bit) jne device_not_available_emulate Oleg. - 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/