From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 28 02:58:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0578C106566C for ; Tue, 28 Oct 2008 02:58:42 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7E09D8FC1C for ; Tue, 28 Oct 2008 02:58:41 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so2070590mue.3 for ; Mon, 27 Oct 2008 19:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Cy4SnqHmpVlQp3f8TM+NnceYnpq8bfo4AABRNYtTv2g=; b=H6N1VtXAE7oeD+tUUq9c3RGa3IVIfMpoyRa0Qu7o4gSpgMHaEsypgvlMFAGQ1nSdwY Ops/nRC7/Ucm3zgAEmChjl1sGYdjTZotjQPVEHFJQ8PJx/9yEOVRivdIA1wZfwTfVFui 2rW2XHRkDhiutMr0lpwhkKPQXvW4hU4gF8f3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=cdSvz4LYc/nEASauj69tb3je+Xiu7DHwpCocJIXkubmpzxAmPg4xGe6n2OrK+PnpP9 AtDfBiA8oGDwDQZOVMZCBfEmV/szn/K2sD3LAeI1T5ZtpT498/C3EV+Y9jSiq/Bt1g20 zO/7TgX11KBfv9YhMA3GSu3/3IRzeTp1oi1rc= Received: by 10.103.221.5 with SMTP id y5mr3127459muq.0.1225161398579; Mon, 27 Oct 2008 19:36:38 -0700 (PDT) Received: by 10.103.231.14 with HTTP; Mon, 27 Oct 2008 19:36:38 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 00:36:38 -0200 From: "Carlos A. M. dos Santos" To: "Ed Schouten" In-Reply-To: <20081026152707.GJ6808@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081026152707.GJ6808@hoeg.nl> Cc: FreeBSD Hackers Subject: Re: [Testers wanted] /dev/console cleanups X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 02:58:42 -0000 On Sun, Oct 26, 2008 at 1:27 PM, Ed Schouten wrote: > Hello everyone, > > Most of you probably already know that I've been very busy improving our > kernel's TTY implementation. I've committed the new MPSAFE TTY layer > back in August. So far most of the things seem to work properly as far > as I can see. There are always some small bugs, but I'm confident we'll > get them fixed before 8.0. > > One of the things that I dislike about the code we have right now, is > the way /dev/console is implemented. There is a small amount of > complexity there, which is mainly because of the fact that our console > code actually works on two different levels: > > - We've got kernel messages that are printed using very low-level > routines and communicate directly with the drivers. > > - We've got user messages that are printed through /dev/console, which > actually work on the TTY level, but make use of a similar device > selection as the first set of routines. > > In an attempt to make /dev/console MPSAFE, I moved /dev/console into the > TTY layer itself, which makes it a lot more simple than it is now. > > Well, to keep a long story short, it would be wonderful if some people > could test the latest MPSAFE TTY patchset, just to make sure it doesn't > wreck people's setups after I commit this. So just apply the patch and > see if you can still boot your system, go into single user and multi > user mode, use conscontrol(8), etc. > > I've stored the latest MPSAFE TTY patchsets at the usual location. Make > sure you download the latest version. > > http://people.FreeBSD.org/~ed/mpsafetty/ > > The patchset also includes some other nice things, like some manual > pages (not finished) and a port of snp(4) to the new TTY layer (also not > finished). > > Thank you for your attention! The patched source builds and installs flawlessy. However I observed something that seems to be a regression. If I run either xconsole or xterm -C I only see kernel messages, even though my X startup (via XDM) changes the owner of /dev/console to the logged-in user. I mean, if I do some timg like "echo OK > /dev/console", the message is echoed on /dev/ttyv0, not by xconsole This is the same problem reported by Jeff Blank on RELENG_7: http://lists.freebsd.org/pipermail/freebsd-stable/2008-September/044949.html http://lists.freebsd.org/pipermail/freebsd-stable/2008-October/045885.html -- cd /usr/ports/sysutils/life make clean