From owner-freebsd-current@FreeBSD.ORG Fri Oct 14 07:00:14 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4774816A420 for ; Fri, 14 Oct 2005 07:00:14 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E6A43D48 for ; Fri, 14 Oct 2005 07:00:13 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from herbelot.dyndns.org (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp2-g19.free.fr (Postfix) with ESMTP id 754BB4C68F for ; Fri, 14 Oct 2005 09:00:12 +0200 (CEST) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.13.3/8.13.3) with ESMTP id j9E6xnXs021985; Fri, 14 Oct 2005 08:59:54 +0200 (CEST) From: Thierry Herbelot To: freebsd-current@freebsd.org Date: Fri, 14 Oct 2005 08:59:40 +0200 User-Agent: KMail/1.8.2 References: <200510131859.03307.thierry@herbelot.com> <200510132251.00632.thierry@herbelot.com> <20051013.151436.85394837.imp@bsdimp.com> In-Reply-To: <20051013.151436.85394837.imp@bsdimp.com> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200510140859.42748.thierry@herbelot.com> Cc: "M. Warner Losh" Subject: Re: Loss of ed(4) in a RC1 booted in qemu X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: thierry@herbelot.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 07:00:14 -0000 Le Thursday 13 October 2005 23:14, M. Warner Losh a écrit : > > Looks like it is a combination of problems. The PCI registers claim > to be a 8029, but it doesn't emulate the 8029 specific registers. I > have a patch for this. In addition, the ed driver has a mistake in > its 8029 support. I've fixed this as well and am testing the result. Hello, Here are the results : (with a kernel including your latest patches and an un-patched qemu) $FreeBSD: src/sys/dev/ed/if_ed.c,v 1.265 2005/09/26 18:22:24 imp Exp $ $FreeBSD: src/sys/dev/ed/if_ed_novell.c,v 1.8 2005/09/07 03:20:33 imp Exp $ $FreeBSD: src/sys/dev/ed/if_ed_rtl80x9.c,v 1.2 2005/10/13 22:06:02 imp Exp $ $FreeBSD: src/sys/dev/ed/if_ed_pci.c,v 1.48 2005/10/13 22:12:34 imp Exp $ $FreeBSD: src/sys/dev/ed/if_ed_isa.c,v 1.25 2005/10/05 05:21:07 imp Exp $ $FreeBSD: src/sys/dev/ed/if_ed_wd80x3.c,v 1.5 2005/08/28 23:56:25 imp Exp $ % qemu -snapshot -serial stdio newm-wd1.img OK unload OK load /boot/kernel-current /boot/kernel-current text=0x490bf0 data=0x82340+0x9ac6c syms=[0x4+0x690f0+0x4+0x7e65d] OK boot -s -v GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb SMAP type=01 base=0000000000000000 len=000000000009fc00 SMAP type=01 base=0000000000100000 len=0000000007f00000 Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #9: Fri Oct 14 08:36:40 CEST 2005 XXX@YYY:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. [SNIP device spam] pci0: at device 2.0 (no driver attached) ed0: port 0xc100-0xc1ff irq 11 at device 3.0 on pci0 ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 ed0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc100 ed0: [MPSAFE] ed0: bpf attached ed0: Ethernet address: 52:54:00:12:34:56 ed0: type NE2000 (16 bit) ex_isa_identify() Summary : The new ed(4) works as advertised with this new kernel inside a qemu Thanks TfH