From owner-cvs-all@FreeBSD.ORG Wed Sep 13 15:48:19 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4C4B16A4C9; Wed, 13 Sep 2006 15:48:19 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01B2843D5C; Wed, 13 Sep 2006 15:48:16 +0000 (GMT) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8DFmFin013003; Wed, 13 Sep 2006 15:48:15 GMT (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8DFmFQS013002; Wed, 13 Sep 2006 15:48:15 GMT (envelope-from scottl) Message-Id: <200609131548.k8DFmFQS013002@repoman.freebsd.org> From: Scott Long Date: Wed, 13 Sep 2006 15:48:15 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern subr_witness.c src/sys/dev/syscons scmouse.c syscons.c syscons.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2006 15:48:20 -0000 scottl 2006-09-13 15:48:15 UTC FreeBSD src repository Modified files: sys/kern subr_witness.c sys/dev/syscons scmouse.c syscons.c syscons.h Log: Introduce a spinlock for synchronizing access to the video output hardware in syscons. This replaces a simple access semaphore that was assumed to be protected by Giant but often was not. If two threads that were otherwise SMP-safe called printf at the same time, there was a high likelyhood that the semaphore would get corrupted and result in a permanently frozen video console. This is similar to what is already done in the serial console drivers. Revision Changes Path 1.41 +4 -4 src/sys/dev/syscons/scmouse.c 1.446 +17 -14 src/sys/dev/syscons/syscons.c 1.87 +17 -1 src/sys/dev/syscons/syscons.h 1.218 +1 -0 src/sys/kern/subr_witness.c