From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756454AbXFLA3T (ORCPT ); Mon, 11 Jun 2007 20:29:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752866AbXFLA3K (ORCPT ); Mon, 11 Jun 2007 20:29:10 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:54682 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752512AbXFLA3I (ORCPT ); Mon, 11 Jun 2007 20:29:08 -0400 Date: Mon, 11 Jun 2007 17:27:47 -0700 From: Chris Wright To: Thomas Gleixner Cc: LKML , Andrew Morton , Greg KH , Dmitry Torokhov , Andi Kleen , Ralf Baechle , Benjamin Herrenschmidt , Ingo Molnar , Stable Team , Richard Henderson Subject: Re: [stable] [PATCH] INPUT: Sanitize PIT locking in pcspkr Message-ID: <20070612002747.GJ3723@sequoia.sous-sol.org> References: <1179408962.3764.72.camel@chaos> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1179408962.3764.72.camel@chaos> User-Agent: Mutt/1.5.14 (2007-02-12) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner (tglx@linutronix.de) wrote: > The PC-speaker code has a quite creative method to serialize access to > the PIT: It uses a local lock. > > On i386 and x86_64 the access to the PIT is serialized by a lock in the > architecture code. The separate locking in the PC-speaker code ignores > the global lock and creates a nasty race between the PC-speaker and the > PIT clock source / events code on SMP machines. > > Use the global i8253_lock instead of the local i8253_beep_lock, when > compiled for i386/x86_64. Seems this one got lost? thanks, -chris