Message-ID: <4DEPgF$Cy1@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 68, Issue 30
Date: Wed, 14 Jul 2004 19:26:39 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!phobos.visi.com!priapus.visi.com!orange.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!news.bylinux.net!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1089833199.A
Lines: 1977
Xref: 74.82.202.154 cn.bbs.comp.unix:1333


Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. [PATCH] Remove obsolete reference to <sys/_posix.h>
      (Garrett Wollman)
   2. off-topic political opinions (Kim Culhan)
   3. dns problems with recent current (Divacky Roman)
   4. Re: dns problems with recent current (Divacky Roman)
   5. Re: Some netgraph node global locking patches (Gleb Smirnoff)
   6. ktrace of pdnsd attached (Divacky Roman)
   7. 5.2-CURRENT still not working on my mitac 8080
      (David W. Chapman Jr.)
   8. Re: 5.2-CURRENT still not working on my mitac 8080
      (David W. Chapman Jr.)
   9. [current tinderbox] failure on i386/pc98 (FreeBSD Tinderbox)
  10. Re: Some netgraph node global locking patches (Robert Watson)
  11. Re: CVSUP and 5.2.1 RELEASE  (M. Warner Losh)
  12. Re: CVSUP and 5.2.1 RELEASE  (Poul-Henning Kamp)
  13. Re: CVSUP and 5.2.1 RELEASE (Kirk Strauser)
  14. Re: off-topic political opinions (Peter Schultz)
  15. Re: off-topic political opinions (Marc UBM Bocklet)
  16. Re: Some netgraph node global locking patches (Gleb Smirnoff)
  17. Re: NFS over IPv6 (Alfred Perlstein)
  18. Re: Some netgraph node global locking patches (Robert Watson)
  19. [REMINDER] Call for FreeBSD status reports (Scott Long)
  20. Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
      (Brian Fundakowski Feldman)
  21. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
  22. calcru: runtime went backwards (Daniel Lang)
  23. Re: calcru: runtime went backwards (Doug White)
  24. Re: Some netgraph node global locking patches (Julian Elischer)
  25. Re: Stack backtrace: how can I help? (Sven Willenberger)
  26. Re: CVSUP and 5.2.1 RELEASE (Scot Hetzel)
  27. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
      (Marcel Moolenaar)
  28. Re: CVSUP and 5.2.1 RELEASE (Kirk Strauser)
  29. Re: Some netgraph node global locking patches  (Poul-Henning Kamp)
  30. Re: CVSUP and 5.2.1 RELEASE (Garance A Drosihn)
  31. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (Don Lewis)
  32. Re: Some netgraph node global locking patches (Gleb Smirnoff)


----------------------------------------------------------------------

Message: 1
Date: Tue, 13 Jul 2004 22:33:41 -0400 (EDT)
From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Subject: [PATCH] Remove obsolete reference to <sys/_posix.h>
To: Panagiotis Astithas <past@ebs.gr>
Cc: FreeBSD Current <freebsd-current@FreeBSD.ORG>
Message-ID: <200407140233.i6E2XfIU011999@khavrinen.lcs.mit.edu>

<<On Tue, 13 Jul 2004 16:03:28 +0300, Panagiotis Astithas <past@ebs.gr> said:


> while doing some porting work I found that in src/sys/posix4/mqueue.h we 
> still include sys/_posix.h, despite having removed the relevant file in 
> 2002. This tiny patch should fix this:

Not really.  A better patch would apparently be to remove the file,
since the function is not implemented; if it were implemented, more
changes to the header than this would be required.

-GAWollman


------------------------------

Message: 2
Date: Wed, 14 Jul 2004 05:48:03 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: off-topic political opinions
To: freebsd-current@FreeBSD.org
Message-ID: <20040714124803.27874.qmail@web50705.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

On Tue, 13 Jul 2004, Randy Bush wrote:

> so is george bush, but i am hoping we don't keep him

Why don't you keep your off-topic political opinions
off the FreeBSD-current list

-kim




		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

------------------------------

Message: 3
Date: Wed, 14 Jul 2004 14:51:27 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: dns problems with recent current
To: current@freebsd.org
Message-ID: <20040714125127.GA59066@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii

Hi,

I use pdnsd cache daemon. With a few days (5?) old kernel it works as itended

but with yesterdays current it doesnt work at all...

I have all set correctly it really the kernel. I might provide all info you as
k
for...

thnx

Roman Divacky


------------------------------

Message: 4
Date: Wed, 14 Jul 2004 14:53:35 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: Re: dns problems with recent current
To: current@freebsd.org
Message-ID: <20040714125335.GA58992@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii

I forgot to mention it- normal resolving (via some non-pdnsd machine) work
normally.


On Wed, Jul 14, 2004 at 02:51:27PM +0200, Divacky Roman wrote:
> Hi,
> 
> I use pdnsd cache daemon. With a few days (5?) old kernel it works as itende
d
> but with yesterdays current it doesnt work at all...
> 
> I have all set correctly it really the kernel. I might provide all info you 
ask
> for...
> 
> thnx
> 
> Roman Divacky
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

------------------------------

Message: 5
Date: Wed, 14 Jul 2004 17:01:20 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Robert Watson <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040714130120.GA7897@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

On Wed, Jul 14, 2004 at 12:30:40AM -0400, Robert Watson wrote:
R>   //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
R>   //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
R>   //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c

Well, these three are quite straightforward and identical. Look fine.

R>   //depot/vendor/freebsd/src/sys/netgraph/ng_ppp.c

Is there any hidden obstacles for merging qsort_r() from libc to libkern?
It will help to remove this ugly hack.

R>   //depot/vendor/freebsd/src/sys/netgraph/ng_pppoe.c

Agreed with comment. Anyway, I'm planning to move this configuration
trigger to private data. sysctl's are not very elegant way to set
configaration of netgraph node. Moreover, I can imagine setup when you
need to serve non-standard PPPoE only on one interface, and normal PPPoE
on other interfaces: for example two different networks merged to use
one AC.

R>   //depot/vendor/freebsd/src/sys/netgraph/ng_tty.c
R> +/*
R> + * XXXRW: ngt_unit is protected by ng_tty_mtx.  ngt_ldisc is constant once

R> + * ng_tty is initialized.  ngt_nodeop_ok is untouched, and might want to b
e a
R> + * sleep lock in the future?
R> + */

One question: are any locks held when linesw callbacks (ngt_open, ngt_close,
etc..) are called?

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 6
Date: Wed, 14 Jul 2004 15:03:31 +0200
From: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Subject: ktrace of pdnsd attached
To: current@freebsd.org
Message-ID: <20040714130331.GB58992@stud.fit.vutbr.cz>
Content-Type: text/plain; charset=us-ascii


While resolving
dig @127.0.0.1 and ktracing pdnsd proces I get this (4rd run in row):
necrophilia src# kdump -l
372 pdnsd    GIO   fd 5 read 31 bytes
          0x0000 20a7 0100 0001 0000 0000 0000 0377 7777  | ............www|
	         0x0010 0673 657a 6e61 6d02 637a 0000 0100 01
		 |.seznam.cz.....|

372 pdnsd    RET   kse_release 0
372 pdnsd    CALL  kse_release(0x806cfb4)
372 pdnsd    RET   kse_release 0
372 pdnsd    CALL  recvmsg(0x5,0xbfacbf94,0)
372 pdnsd    RET   fork 0
372 pdnsd    CALL  kse_release(0x806cfac)

then it waits for several seconds, whole ktrace looks like this:

   372 pdnsd    GIO   fd 5 read 31 bytes
       0x0000 c4d2 0100 0001 0000 0000 0000 0377 7777  |.............www|
       0x0010 0673 657a 6e61 6d02 637a 0000 0100 01    |.seznam.cz.....|

   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  kse_release(0x806cfb4)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  recvmsg(0x5,0xbfacbf94,0)
   372 pdnsd    RET   fork 0
   372 pdnsd    CALL  kse_release(0x806cfac)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  kse_release(0xbfafef5c)
   372 pdnsd    GIO   fd 5 read 31 bytes
       0x0000 c4d2 0100 0001 0000 0000 0000 0377 7777  |.............www|
       0x0010 0673 657a 6e61 6d02 637a 0000 0100 01    |.seznam.cz.....|

   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  kse_release(0x806cfb4)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  recvmsg(0x5,0xbfacbf94,0)
   372 pdnsd    RET   fork 0
   372 pdnsd    CALL  kse_release(0x806cfac)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  gettimeofday(0xbfaedf68,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  gettimeofday(0xbfaedf40,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  open(0x28174a38,0,0x1b6)
   372 pdnsd    NAMI  "/etc/protocols"
   372 pdnsd    RET   open 7
   372 pdnsd    CALL  fstat(0x7,0xbfaed8e8)
   372 pdnsd    RET   fstat 0
   372 pdnsd    CALL  read(0x7,0x808b000,0x4000)
   372 pdnsd    GIO   fd 7 read 4096 bytes
       "#
	# Internet protocols
	#
	# $FreeBSD: src/etc/protocols,v 1.19 2004/03/08 22:03:27 mlaier Exp $
	#	from: @(#)protocols	5.1 (Berkeley) 4/17/89
	#
	# See also http://www.iana.org/assignments/protocol-numbers
	#
	ip	0	IP		# internet protocol, pseudo protocol n\
	umber
	#hopopt	0	HOPOPT		# hop-by-hop options for ipv6
	icmp	1	ICMP		# internet control message protocol
	igmp	2	IGMP		# internet group management protocol
	ggp	3	GGP		# gateway-gateway protocol
	ipencap	4	IP-ENCAP	# IP encapsulated in IP (officially ``\
	IP'')
	st2	5	ST2		# ST2 datagram mode (RFC 1819)
	tcp	6	TCP		# transmission control protocol
	cbt	7	CBT		# CBT, Tony Ballardie <A.Ballardie@cs.\
	ucl.ac.uk>
	egp	8	EGP		# exterior gateway protocol
	igp	9	IGP		# any private interior gateway (Cisco:\
	 for IGRP)
	bbn-rcc	10	BBN-RCC-MON	# BBN RCC Monitoring
	nvp	11	NVP-II		# Network Voice Protocol
	pup	12	PUP		# PARC universal packet protocol
	argus	13	ARGUS		# ARGUS
	emcon	14	EMCON		# EMCON
	xnet	15	XNET		# Cross Net Debugger
	chaos	16	CHAOS		# Chaos
	udp	17	UDP		# user datagram protocol
	mux	18	MUX		# Multiplexing protocol
	dcn	19	DCN-MEAS	# DCN Measurement Subsystems
	hmp	20	HMP		# host monitoring protocol
	prm	21	PRM		# packet radio measurement protocol
	xns-idp	22	XNS-IDP		# Xerox NS IDP
	trunk-1	23	TRUNK-1		# Trunk-1
	trunk-2	24	TRUNK-2		# Trunk-2
	leaf-1	25	LEAF-1		# Leaf-1
	leaf-2	26	LEAF-2		# Leaf-2
	rdp	27	RDP		# "reliable datagram" protocol
	irtp	28	IRTP		# Internet Reliable Transaction Protoc\
	ol
	iso-tp4	29	ISO-TP4		# ISO Transport Protocol Class 4
	netblt	30	NETBLT		# Bulk Data Transfer Protocol
	mfe-nsp	31	MFE-NSP		# MFE Network Services Protocol
	merit-inp	32	MERIT-INP	# MERIT Internodal Protocol
	sep	33	SEP		# Sequential Exchange Protocol
	3pc	34	3PC		# Third Party Connect Protocol
	idpr	35	IDPR		# Inter-Domain Policy Routing Protocol
	xtp	36	XTP		# Xpress Tranfer Protocol
	ddp	37	DDP		# Datagram Delivery Protocol
	idpr-cmtp	38	IDPR-CMTP	# IDPR Control Message Transpo\
	rt Proto
	tp++	39	TP++		# TP++ Transport Protocol
	il	40	IL		# IL Transport Protocol
	ipv6	41	IPV6		# ipv6
	sdrp	42	SDRP		# Source Demand Routing Protocol
	ipv6-route	43	IPV6-ROUTE	# routing header for ipv6
	ipv6-frag	44	IPV6-FRAG	# fragment header for ipv6
	idrp	45	IDRP		# Inter-Domain Routing Protocol
	rsvp	46	RSVP		# Resource ReSerVation Protocol
	gre	47	GRE		# Generic Routing Encapsulation
	mhrp	48	MHRP		# Mobile Host Routing Protocol
	bna	49	BNA		# BNA
	esp	50	ESP		# encapsulating security payload
	ah	51	AH		# authentication header
	i-nlsp	52	I-NLSP		# Integrated Net Layer Security TUBA
	swipe	53	SWIPE		# IP with Encryption
	narp	54	NARP		# NBMA Address Resolution Protocol
	mobile	55	MOBILE		# IP Mobility
	tlsp	56	TLSP		# Transport Layer Security Protocol
	skip	57	SKIP		# SKIP
	ipv6-icmp	58	IPV6-ICMP	icmp6	# ICMP for IPv6
	ipv6-nonxt	59	IPV6-NONXT	# no next header for ipv6
	ipv6-opts	60	IPV6-OPTS	# destination options for ipv6
	#	61			# any host internal protocol
	cftp	62	CFTP		# CFTP
	#	63			# any local network
	sat-expak	64	SAT-EXPAK	# SATNET and Backroom EXPAK
	kryptolan	65	KRYPTOLAN	# Kryptolan
	rvd	66	RVD		# MIT Remote Virtual Disk Protocol
	ippc	67	IPPC		# Internet Pluribus Packet Core
	#	68			# any distributed filesystem
	sat-mon	69	SAT-MON		# SATNET Monitoring
	visa	70	VISA		# VISA Protocol
	ipcv	71	IPCV		# Internet Packet Core Utility
	cpnx	72	CPNX		# Computer Protocol Network Executive
	cphb	73	CPHB		# Computer Protocol Heart Beat
	wsn	74	WSN		# Wang Span Network
	pvp	75	PVP		# Packet Video Protocol
	br-sat-mon	76	BR-SAT-MON	# Backroom SATNET Monitoring
	sun-nd	77	SUN-ND		# SUN ND PROTOCOL-Temporary
	wb-mon	78	WB-MON		# WIDEBAND Monitoring
	wb-expak	79	WB-EXPAK	# WIDEBAND EXPAK
	iso-ip	80	ISO-IP		# ISO Internet Protocol
	vmtp	81	VMTP		# Versatile Message Transport
	secure-vmtp	82	SECURE-VMTP	# SECURE-VMTP
	vines	83	VINES		# VINES
	ttp	84	TTP		# TTP
	nsfnet-igp	85	NSFNET-IGP	# NSFNET-IGP
	dgp	86	DGP		# Dissimilar Gateway Protocol
	tcf	87	TCF		# TCF
	eigrp	88	EIGRP		# Enhanced Interior Routing Protocol (\
	Cisco)
	ospf	89	OSPFIGP		# Open Shortest Path First IGP
	sprite-rpc	90	Sprite-RPC	# Sprite RPC Protocol
	larp	91	LARP		# Locus Address Resolution Protocol
	mtp	92	MTP		# Multicast Transp"
   372 pdnsd    RET   read 5757/0x167d
   372 pdnsd    CALL  close(0x7)
   372 pdnsd    RET   close 0
   372 pdnsd    CALL  sendto(0x3,0xbfaede98,0x8,0,0xbfaedeb8,0x10)
   372 pdnsd    GIO   fd 3 wrote 8 bytes
       0x0000 0800 4147 b6b8 0000                      |..AG....|

   372 pdnsd    RET   sendto 8
   372 pdnsd    CALL  gettimeofday(0xbfaeda20,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  poll(0xbfaeda50,0x1,0xbb8)
   372 pdnsd    RET   fork 0
   372 pdnsd    CALL  kse_release(0x806cfac)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  recvfrom(0x3,0xbfaeda98,0x400,0,0xbfaedec8,0xbfaeda4c)
   372 pdnsd    GIO   fd 3 read 28 bytes
       0x0000 4500 0800 a8b6 0000 3901 7af5 c371 90c2  |E.......9.z..q..|
       0x0010 0a00 0002 0000 4947 b6b8 0000            |......IG....|

   372 pdnsd    RET   recvfrom 28/0x1c
   372 pdnsd    CALL  gettimeofday(0xbfaeda20,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  gettimeofday(0xbfaedfac,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  kse_release(0x806cfb4)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  kse_release(0xbfafef5c)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  gettimeofday(0xbfaedf68,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  gettimeofday(0xbfaedfac,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  kse_release(0x806cfb4)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  gettimeofday(0xbfaedf68,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  gettimeofday(0xbfaedf40,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  open(0x28174a38,0,0x1b6)
   372 pdnsd    NAMI  "/etc/protocols"
   372 pdnsd    RET   open 7
   372 pdnsd    CALL  fstat(0x7,0xbfaed8e8)
   372 pdnsd    RET   fstat 0
   372 pdnsd    CALL  read(0x7,0x808b000,0x4000)
   372 pdnsd    GIO   fd 7 read 4096 bytes
       "#
	# Internet protocols
	#
	# $FreeBSD: src/etc/protocols,v 1.19 2004/03/08 22:03:27 mlaier Exp $
	#	from: @(#)protocols	5.1 (Berkeley) 4/17/89
	#
	# See also http://www.iana.org/assignments/protocol-numbers
	#
	ip	0	IP		# internet protocol, pseudo protocol n\
	umber
	#hopopt	0	HOPOPT		# hop-by-hop options for ipv6
	icmp	1	ICMP		# internet control message protocol
	igmp	2	IGMP		# internet group management protocol
	ggp	3	GGP		# gateway-gateway protocol
	ipencap	4	IP-ENCAP	# IP encapsulated in IP (officially ``\
	IP'')
	st2	5	ST2		# ST2 datagram mode (RFC 1819)
	tcp	6	TCP		# transmission control protocol
	cbt	7	CBT		# CBT, Tony Ballardie <A.Ballardie@cs.\
	ucl.ac.uk>
	egp	8	EGP		# exterior gateway protocol
	igp	9	IGP		# any private interior gateway (Cisco:\
	 for IGRP)
	bbn-rcc	10	BBN-RCC-MON	# BBN RCC Monitoring
	nvp	11	NVP-II		# Network Voice Protocol
	pup	12	PUP		# PARC universal packet protocol
	argus	13	ARGUS		# ARGUS
	emcon	14	EMCON		# EMCON
	xnet	15	XNET		# Cross Net Debugger
	chaos	16	CHAOS		# Chaos
	udp	17	UDP		# user datagram protocol
	mux	18	MUX		# Multiplexing protocol
	dcn	19	DCN-MEAS	# DCN Measurement Subsystems
	hmp	20	HMP		# host monitoring protocol
	prm	21	PRM		# packet radio measurement protocol
	xns-idp	22	XNS-IDP		# Xerox NS IDP
	trunk-1	23	TRUNK-1		# Trunk-1
	trunk-2	24	TRUNK-2		# Trunk-2
	leaf-1	25	LEAF-1		# Leaf-1
	leaf-2	26	LEAF-2		# Leaf-2
	rdp	27	RDP		# "reliable datagram" protocol
	irtp	28	IRTP		# Internet Reliable Transaction Protoc\
	ol
	iso-tp4	29	ISO-TP4		# ISO Transport Protocol Class 4
	netblt	30	NETBLT		# Bulk Data Transfer Protocol
	mfe-nsp	31	MFE-NSP		# MFE Network Services Protocol
	merit-inp	32	MERIT-INP	# MERIT Internodal Protocol
	sep	33	SEP		# Sequential Exchange Protocol
	3pc	34	3PC		# Third Party Connect Protocol
	idpr	35	IDPR		# Inter-Domain Policy Routing Protocol
	xtp	36	XTP		# Xpress Tranfer Protocol
	ddp	37	DDP		# Datagram Delivery Protocol
	idpr-cmtp	38	IDPR-CMTP	# IDPR Control Message Transpo\
	rt Proto
	tp++	39	TP++		# TP++ Transport Protocol
	il	40	IL		# IL Transport Protocol
	ipv6	41	IPV6		# ipv6
	sdrp	42	SDRP		# Source Demand Routing Protocol
	ipv6-route	43	IPV6-ROUTE	# routing header for ipv6
	ipv6-frag	44	IPV6-FRAG	# fragment header for ipv6
	idrp	45	IDRP		# Inter-Domain Routing Protocol
	rsvp	46	RSVP		# Resource ReSerVation Protocol
	gre	47	GRE		# Generic Routing Encapsulation
	mhrp	48	MHRP		# Mobile Host Routing Protocol
	bna	49	BNA		# BNA
	esp	50	ESP		# encapsulating security payload
	ah	51	AH		# authentication header
	i-nlsp	52	I-NLSP		# Integrated Net Layer Security TUBA
	swipe	53	SWIPE		# IP with Encryption
	narp	54	NARP		# NBMA Address Resolution Protocol
	mobile	55	MOBILE		# IP Mobility
	tlsp	56	TLSP		# Transport Layer Security Protocol
	skip	57	SKIP		# SKIP
	ipv6-icmp	58	IPV6-ICMP	icmp6	# ICMP for IPv6
	ipv6-nonxt	59	IPV6-NONXT	# no next header for ipv6
	ipv6-opts	60	IPV6-OPTS	# destination options for ipv6
	#	61			# any host internal protocol
	cftp	62	CFTP		# CFTP
	#	63			# any local network
	sat-expak	64	SAT-EXPAK	# SATNET and Backroom EXPAK
	kryptolan	65	KRYPTOLAN	# Kryptolan
	rvd	66	RVD		# MIT Remote Virtual Disk Protocol
	ippc	67	IPPC		# Internet Pluribus Packet Core
	#	68			# any distributed filesystem
	sat-mon	69	SAT-MON		# SATNET Monitoring
	visa	70	VISA		# VISA Protocol
	ipcv	71	IPCV		# Internet Packet Core Utility
	cpnx	72	CPNX		# Computer Protocol Network Executive
	cphb	73	CPHB		# Computer Protocol Heart Beat
	wsn	74	WSN		# Wang Span Network
	pvp	75	PVP		# Packet Video Protocol
	br-sat-mon	76	BR-SAT-MON	# Backroom SATNET Monitoring
	sun-nd	77	SUN-ND		# SUN ND PROTOCOL-Temporary
	wb-mon	78	WB-MON		# WIDEBAND Monitoring
	wb-expak	79	WB-EXPAK	# WIDEBAND EXPAK
	iso-ip	80	ISO-IP		# ISO Internet Protocol
	vmtp	81	VMTP		# Versatile Message Transport
	secure-vmtp	82	SECURE-VMTP	# SECURE-VMTP
	vines	83	VINES		# VINES
	ttp	84	TTP		# TTP
	nsfnet-igp	85	NSFNET-IGP	# NSFNET-IGP
	dgp	86	DGP		# Dissimilar Gateway Protocol
	tcf	87	TCF		# TCF
	eigrp	88	EIGRP		# Enhanced Interior Routing Protocol (\
	Cisco)
	ospf	89	OSPFIGP		# Open Shortest Path First IGP
	sprite-rpc	90	Sprite-RPC	# Sprite RPC Protocol
	larp	91	LARP		# Locus Address Resolution Protocol
	mtp	92	MTP		# Multicast Transp"
   372 pdnsd    RET   read 5757/0x167d
   372 pdnsd    CALL  close(0x7)
   372 pdnsd    RET   close 0
   372 pdnsd    CALL  sendto(0x3,0xbfaede98,0x8,0,0xbfaedeb8,0x10)
   372 pdnsd    GIO   fd 3 wrote 8 bytes
       0x0000 0800 0799 f066 0000                      |.....f..|

   372 pdnsd    RET   sendto 8
   372 pdnsd    CALL  gettimeofday(0xbfaeda20,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  poll(0xbfaeda50,0x1,0xbb8)
   372 pdnsd    RET   fork 0
   372 pdnsd    CALL  kse_release(0x806cfac)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  recvfrom(0x3,0xbfaeda98,0x400,0,0xbfaedec8,0xbfaeda4c)
   372 pdnsd    GIO   fd 3 read 28 bytes
       0x0000 4500 0800 a8b8 0000 3901 7af3 c371 90c2  |E.......9.z..q..|
       0x0010 0a00 0002 0000 0f99 f066 0000            |.........f..|

   372 pdnsd    RET   recvfrom 28/0x1c
   372 pdnsd    CALL  gettimeofday(0xbfaeda20,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  gettimeofday(0xbfaedfac,0)
   372 pdnsd    RET   gettimeofday 0
   372 pdnsd    CALL  kse_release(0x806cfb4)
   372 pdnsd    RET   kse_release 0
   372 pdnsd    CALL  kse_release(0xbfafef5c)

------------------------------

Message: 7
Date: Wed, 14 Jul 2004 08:21:20 -0500
From: "David W. Chapman Jr." <dwcjr@inethouston.net>
Subject: 5.2-CURRENT still not working on my mitac 8080
To: current@freebsd.org
Cc: mobile@freebsd.org
Message-ID: <20040714132120.GA69937@minubian.inethouston.net>
Content-Type: text/plain; charset=us-ascii

5.x(any version) has never worked on my mitac 8080

I've tried booting with and without acpi and even in safe mode, still 
no luck.  I've tried every release version and many different 
snapshots of -CURRENT, including one a few days ago.

if I boot verbose I get the following

$PIR: 0:2 INTA routed to irq 10
found-> vendor=0x8086, dev=0x3582, revid=0x02
	bus=0, slot=2, func=0
	class=03-00-00, hdrtype=0x00, mfdev=1
	cmdreg=0x0007, statreg=0x0090, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x00 (0ns), maxlat=0x00 (0 ns)
	intpin=a, irq=10
	powerspec 1  supports D0 D1 D3  current D0
	map[10]: type 3, range 32, base 00000000, size 27, memory disabled

at this point I'm at a hard lock.  The laptop does not have a serial 
port but I've heard I may be able to remotely debug it with the 
firewire port.  Could anyone provide any information on this 
including what type of cable/hardware I would need for this?
-- 
David W. Chapman Jr.
dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>

------------------------------

Message: 8
Date: Wed, 14 Jul 2004 08:25:27 -0500
From: "David W. Chapman Jr." <dwcjr@inethouston.net>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: current@freebsd.org, mobile@freebsd.org
Message-ID: <20040714132527.GB69937@minubian.inethouston.net>
Content-Type: text/plain; charset=us-ascii

When I boot in safe mode here is the console output

pir0: <PCI Interrupt Routing Table: 9 Entries> on motherboard
$PIR: BIOS IRQ 10 for 1.4.INTA does not match link 0x61 irq 5
pci0: <PCI bus> on pcib0
~

-- 
David W. Chapman Jr.
dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>

------------------------------

Message: 9
Date: Wed, 14 Jul 2004 10:15:17 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/pc98
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<i386@freebsd.org>
Message-ID: <20040714141517.229B37303F@freebsd-current.sentex.ca>

TB --- 2004-07-14 12:59:26 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-14 12:59:26 - starting CURRENT tinderbox run for i386/pc98
TB --- 2004-07-14 12:59:26 - checking out the source tree
TB --- 2004-07-14 12:59:26 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98
TB --- 2004-07-14 12:59:26 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-07-14 13:04:38 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-07-14 13:04:38 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-07-14 13:04:38 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
TB --- 2004-07-14 14:01:33 - building generic kernel (COPTFLAGS=-O2 -pipe)
TB --- 2004-07-14 14:01:33 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-07-14 14:01:33 - /usr/bin/make buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Wed Jul 14 14:01:33 UTC 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
>>> Kernel build for GENERIC completed on Wed Jul 14 14:15:15 UTC 2004
TB --- 2004-07-14 14:15:15 - generating LINT kernel config
TB --- 2004-07-14 14:15:15 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src/
sys/pc98/conf
TB --- 2004-07-14 14:15:15 - /usr/bin/make -B LINT
TB --- 2004-07-14 14:15:15 - building LINT kernel (COPTFLAGS=-O2 -pipe)
TB --- 2004-07-14 14:15:15 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-07-14 14:15:15 - /usr/bin/make buildkernel KERNCONF=LINT
>>> Kernel build for LINT started on Wed Jul 14 14:15:15 UTC 2004
>>> stage 1: configuring the kernel
[...]
FYI: static unit limits for i4btel are set: NI4BTEL=2
FYI: static unit limits for i4bipr are set: NI4BIPR=4
FYI: static unit limits for i4bing are set: NI4BING=2
FYI: static unit limits for i4bisppp are set: NI4BISPPP=4
config: Error: device "card" does not take a count
config: 1 errors
WARNING: kernel contains GPL contaminated ext2fs filesystem
WARNING: COMPAT_SVR4 is broken and should be avoided
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src.
TB --- 2004-07-14 14:15:16 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-14 14:15:16 - ERROR: failed to build lint kernel
TB --- 2004-07-14 14:15:16 - tinderbox aborted


------------------------------

Message: 10
Date: Wed, 14 Jul 2004 10:25:31 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: current@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040714101817.83353G-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Wed, 14 Jul 2004, Gleb Smirnoff wrote:

> On Wed, Jul 14, 2004 at 12:30:40AM -0400, Robert Watson wrote:
> R>   //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
> R>   //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
> R>   //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c
> 
> Well, these three are quite straightforward and identical. Look fine. 

I was somewhat hoping someone would actually give them a try and
demonstrate that practice matches the theory. :-)

> R> //depot/vendor/freebsd/src/sys/netgraph/ng_ppp.c
> 
> Is there any hidden obstacles for merging qsort_r() from libc to
> libkern?  It will help to remove this ugly hack. 

My recollection of the quicksort algorithm is extremely vague, but I
recall that it involves recursion, and recursion is generally bad in the
kernel due to stack depth.

> R>   //depot/vendor/freebsd/src/sys/netgraph/ng_pppoe.c
> 
> Agreed with comment. Anyway, I'm planning to move this configuration
> trigger to private data. sysctl's are not very elegant way to set
> configaration of netgraph node. Moreover, I can imagine setup when you
> need to serve non-standard PPPoE only on one interface, and normal PPPoE
> on other interfaces: for example two different networks merged to use
> one AC.

This sounds good.  I've chatted some with Julian about locking down access
to private data, but I've not had a chance to really digest and think
through it yet.  Is this something you're interested in looking at? :-)

> R>   //depot/vendor/freebsd/src/sys/netgraph/ng_tty.c
> R> +/*
> R> + * XXXRW: ngt_unit is protected by ng_tty_mtx.  ngt_ldisc is constant on
ce
> R> + * ng_tty is initialized.  ngt_nodeop_ok is untouched, and might want to
 be a
> R> + * sleep lock in the future?
> R> + */
> 
> One question: are any locks held when linesw callbacks (ngt_open,
> ngt_close, etc..) are called? 

Hmm.  That is an interesting problem indeed.  The tty code currently
requires Giant, although Poul-Henning is doing cleanup that will hopefully
lead to locking at some point.  In the SLIP code, I currently use a
taskqueue to defer calls into the tty code so that Giant is not grabbed at
arbitrary points in the SLIP processing, which may be called into while
holding protocol layer locks.  It looks like a lot of the tty access in
ng_tty.c is done from the device node calls associated with the tty
subsystem, and therefore Giant will already be held (which is fine,
although not 100% desirable).  The problematic bit is the call to
ngt_start() in ngt_rcvdata(), and synchronizing the mbuf queue in the node
between various consumers.  We could very easily use the same trick here I
use in SLIP by deferring ngt_start() to a Giant-holding task queue.  We
could add a 'struct task' to the node softc and just use that, for
example. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research




------------------------------

Message: 11
Date: Wed, 14 Jul 2004 08:27:29 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: CVSUP and 5.2.1 RELEASE 
To: phk@phk.freebsd.dk
Cc: barney@databus.com
Message-ID: <20040714.082729.127098598.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii

In message: <36509.1089791989@critter.freebsd.dk>
            "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
: In message <20040713.235559.103735764.imp@bsdimp.com>, "M. Warner Losh" wr..
: >In message: <27296.1089757404@critter.freebsd.dk>
: >            "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
: >: The correct solution is the add whatever it takes to make the world
: >: target fail if it is unsafe.
: >
: >I've thought about only allowing it to work if kern.osreldate ==
: >__FreeBSD_version from src/sys/sys/param.h
: 
: Right, that was what I was thinking about too, but it would require
: us to redefine when to bump __FreeBSD_version slightly.

99.99% of the time, we bump the __FreeBSD_version often enough that
'world' will work when they are the same.  It is a lot better than we
have today.

Warner

------------------------------

Message: 12
Date: Wed, 14 Jul 2004 16:32:29 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: CVSUP and 5.2.1 RELEASE 
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: barney@databus.com
Message-ID: <8787.1089815549@critter.freebsd.dk>

In message <20040714.082729.127098598.imp@bsdimp.com>, "M. Warner Losh" writes
:
>In message: <36509.1089791989@critter.freebsd.dk>
>            "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
>: In message <20040713.235559.103735764.imp@bsdimp.com>, "M. Warner Losh" wri
tes:
>: >In message: <27296.1089757404@critter.freebsd.dk>
>: >            "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
>: >: The correct solution is the add whatever it takes to make the world
>: >: target fail if it is unsafe.
>: >
>: >I've thought about only allowing it to work if kern.osreldate ==
>: >__FreeBSD_version from src/sys/sys/param.h
>: 
>: Right, that was what I was thinking about too, but it would require
>: us to redefine when to bump __FreeBSD_version slightly.
>
>99.99% of the time, we bump the __FreeBSD_version often enough that
>'world' will work when they are the same.  It is a lot better than we
>have today.

Absolutely.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 13
Date: Wed, 14 Jul 2004 09:45:48 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@freebsd.org
Message-ID: <200407140945.49085.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"

On Tuesday 2004-07-13 05:23 pm, Garance A Drosihn wrote:

> a) how about if we print a warning and exit if DESTDIR is
>     not defined?  Are there "important" uses of `make world'
>     which do not use DESTDIR?

And again, how does "make world DESTDIR=/foo" differ from "make buildworld 
DESTDIR=/foo"?

I've been getting several hundred hits per month to:

    http://subwiki.honeypot.net/cgi-bin/view/Freebsd/BuildAndUpdateJails

Have I been giving the wrong advice?
-- 
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
e0eb8e6f/attachment-0001.bin

------------------------------

Message: 14
Date: Wed, 14 Jul 2004 10:03:40 -0500
From: Peter Schultz <pmes@bis.midco.net>
Subject: Re: off-topic political opinions
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: freebsd-current@FreeBSD.org
Message-ID: <40F54B4C.9080201@bis.midco.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kim Culhan wrote:
> On Tue, 13 Jul 2004, Randy Bush wrote:
> 
> 
>>so is george bush, but i am hoping we don't keep him
> 
> 
> Why don't you keep your off-topic political opinions
> off the FreeBSD-current list
> 
> -kim
> 
> 

Yeah?  Well, GWB is an out of control leader.  Why not
hope we don't keep him?  I don't care who you vote for,
just don't pick Bush, or anyone associated with him if
you're not an American voter.  To begin with, I would
suggest someone pro-BSD.  :-D

Pete...

------------------------------

Message: 15
Date: Wed, 14 Jul 2004 17:23:28 +0200
From: Marc "UBM" Bocklet <ubm@u-boot-man.de>
Subject: Re: off-topic political opinions
To: current@freebsd.org
Message-ID: <20040714172328.53ffcf8d.ubm@u-boot-man.de>
Content-Type: text/plain; charset=US-ASCII

On Wed, 14 Jul 2004 10:03:40 -0500
Peter Schultz <pmes@bis.midco.net> wrote:

> Kim Culhan wrote:
> > On Tue, 13 Jul 2004, Randy Bush wrote:
> > 
> > 
> >>so is george bush, but i am hoping we don't keep him
> > 
> > 
> > Why don't you keep your off-topic political opinions
> > off the FreeBSD-current list
> > 
> > -kim
> > 
> > 
> 
> Yeah?  Well, GWB is an out of control leader.  Why not
> hope we don't keep him?  I don't care who you vote for,
> just don't pick Bush, or anyone associated with him if
> you're not an American voter.  To begin with, I would
> suggest someone pro-BSD.  :-D

Arggg, could you move this to chat or something please, before it starts
into a huge discussion cluttering the -current list.

Thanks ;-)

Bye
Marc

-- 
"A sudden blow: the great wings beating still
Above the staggering girl, her thighs caressed
By the dark webs, her nape caught in his bill,
He holds her helpless breast upon his breast."

W.B. Yeats, Lena and the Swan

------------------------------

Message: 16
Date: Wed, 14 Jul 2004 19:42:54 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Robert Watson <rwatson@freebsd.org>, phk@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040714154254.GB9999@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

On Wed, Jul 14, 2004 at 10:25:31AM -0400, Robert Watson wrote:
R> > On Wed, Jul 14, 2004 at 12:30:40AM -0400, Robert Watson wrote:
R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c
R> > 
R> > Well, these three are quite straightforward and identical. Look fine. 
R> 
R> I was somewhat hoping someone would actually give them a try and
R> demonstrate that practice matches the theory. :-)

I can test ng_iface. Since change is similar we could assume ng_eiface, ng_fec

tested, then. Would it be enough to test on UP hardware?

R> > R> //depot/vendor/freebsd/src/sys/netgraph/ng_ppp.c
R> > 
R> > Is there any hidden obstacles for merging qsort_r() from libc to
R> > libkern?  It will help to remove this ugly hack. 
R> 
R> My recollection of the quicksort algorithm is extremely vague, but I
R> recall that it involves recursion, and recursion is generally bad in the
R> kernel due to stack depth.

Yes it does. But qsort() already used in ng_ppp is as much recursive as
qsort_r() is. It will help us to get rid of global variable.
I Cc phk@ to this mail, because he copied qsort() to libkern from libc.

R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_pppoe.c
R> > 
R> > Agreed with comment. Anyway, I'm planning to move this configuration
R> > trigger to private data. sysctl's are not very elegant way to set
R> > configaration of netgraph node. Moreover, I can imagine setup when you
R> > need to serve non-standard PPPoE only on one interface, and normal PPPoE

R> > on other interfaces: for example two different networks merged to use
R> > one AC.
R> 
R> This sounds good.  I've chatted some with Julian about locking down access

R> to private data, but I've not had a chance to really digest and think
R> through it yet.  Is this something you're interested in looking at? :-)

Yes, it is. AFAIU, at this moment netgraph locks node in way that only one
netgraph callback can run at a time. It means one thread per node. So there is

no need to lock private data separately. Do I miss smth?

R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_tty.c
R> > R> +/*
R> > R> + * XXXRW: ngt_unit is protected by ng_tty_mtx.  ngt_ldisc is constant
 once
R> > R> + * ng_tty is initialized.  ngt_nodeop_ok is untouched, and might want
 to be a
R> > R> + * sleep lock in the future?
R> > R> + */
R> > 
R> > One question: are any locks held when linesw callbacks (ngt_open,
R> > ngt_close, etc..) are called? 
R> 
R> Hmm.  That is an interesting problem indeed.  The tty code currently
R> requires Giant, although Poul-Henning is doing cleanup that will hopefully

R> lead to locking at some point.  In the SLIP code, I currently use a
R> taskqueue to defer calls into the tty code so that Giant is not grabbed at

R> arbitrary points in the SLIP processing, which may be called into while
R> holding protocol layer locks.  It looks like a lot of the tty access in
R> ng_tty.c is done from the device node calls associated with the tty
R> subsystem, and therefore Giant will already be held (which is fine,
R> although not 100% desirable).  The problematic bit is the call to
R> ngt_start() in ngt_rcvdata(), and synchronizing the mbuf queue in the node

R> between various consumers.  We could very easily use the same trick here I

R> use in SLIP by deferring ngt_start() to a Giant-holding task queue.  We
R> could add a 'struct task' to the node softc and just use that, for
R> example. 

I have to get better understanding of tty code, then make comments :)
May be Poul-Henning has some ideas.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 17
Date: Wed, 14 Jul 2004 08:46:47 -0700
From: Alfred Perlstein <alfred@freebsd.org>
Subject: Re: NFS over IPv6
To: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Cc: Current <freebsd-current@FreeBSD.org>
Message-ID: <20040714154647.GA95729@elvis.mu.org>
Content-Type: text/plain; charset=us-ascii

* Jun Kuriyama <kuriyama@imgsrc.co.jp> [040714 02:44] wrote:
> At Tue, 13 Jul 2004 14:10:29 -0700,
> Alfred Perlstein wrote:
> > Are you still experiencing this problem with today's kernel?
> 
> I've checked with 2004.07.13.07.10.00 kernel (with simokawa's dcons
> fix), but problem is still exist.
> 
> I tried with your vfs.nfs.reconnects sysctl statistics, and it's value
> is incremented in every seconds during trying to save a file on NFS.

Ok, I'll have a patch for you soon.  I don't understand why an NFS
RPC is taking forever though.

-- 
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright@mu.org cell: 408-480-4684

------------------------------

Message: 18
Date: Wed, 14 Jul 2004 12:03:57 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: current@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040714120028.83353O-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Wed, 14 Jul 2004, Gleb Smirnoff wrote:

> On Wed, Jul 14, 2004 at 10:25:31AM -0400, Robert Watson wrote:
> R> > On Wed, Jul 14, 2004 at 12:30:40AM -0400, Robert Watson wrote:
> R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_eiface.c
> R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_fec.c
> R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_iface.c
> R> > 
> R> > Well, these three are quite straightforward and identical. Look fine. 

> R> 
> R> I was somewhat hoping someone would actually give them a try and
> R> demonstrate that practice matches the theory. :-)
> 
> I can test ng_iface. Since change is similar we could assume ng_eiface,
> ng_fec tested, then. Would it be enough to test on UP hardware? 

Yes, as long as you're running with witness and invariants, and can
exercise each of the code paths that hits mutexes (and return paths) it
should be sufficient to merge the changes. 

> R> My recollection of the quicksort algorithm is extremely vague, but I
> R> recall that it involves recursion, and recursion is generally bad in the

> R> kernel due to stack depth.
> 
> Yes it does. But qsort() already used in ng_ppp is as much recursive as
> qsort_r() is. It will help us to get rid of global variable.  I Cc phk@
> to this mail, because he copied qsort() to libkern from libc. 

I think this sounds reasonable to me.  I'm not objecting, just making a
cautionary note :-).

> R> This sounds good.  I've chatted some with Julian about locking down acces
s
> R> to private data, but I've not had a chance to really digest and think
> R> through it yet.  Is this something you're interested in looking at? :-)
> 
> Yes, it is. AFAIU, at this moment netgraph locks node in way that only
> one netgraph callback can run at a time. It means one thread per node.
> So there is no need to lock private data separately. Do I miss smth? 

I think you are correct, but I need to reread his e-mail about node
locking before agreeing. :-)

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research


------------------------------

Message: 19
Date: Wed, 14 Jul 2004 10:03:07 -0600
From: Scott Long <scottl@freebsd.org>
Subject: [REMINDER] Call for FreeBSD status reports
To: current@freebsd.org, stable@freebsd.org
Message-ID: <40F5593B.6080802@freebsd.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

All,

This is a reminder that status reports are due on July 15.  We've almost
reached the goal of 25 reports, but we still need more.  A few like
'netperf' are conspicuously absent ;-)

It's time again for the bi-monthly FreeBSD status reports.  We're on an
upward trend in numbers of reports that are submitted, and I'm hoping to
get 25 this time.  As always, reports are encouraged for anything that
relates to FreeBSD development, documentation, independent projects, or
anything else that might be interesting to the community as a whole.
Reports should be one to two paragraphs in length.  The template can be
found at http://www.freebsd.org/news/status/report-sample.xml

Submissions are due to monthly@freebsd.org by July 15.

Thanks,

Scott





------------------------------

Message: 20
Date: Wed, 14 Jul 2004 12:38:46 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
To: Brian Rogers <burpmaster@truffula.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040714163845.GS1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Wed, Jul 14, 2004 at 04:57:03AM -0700, Brian Rogers wrote:
> Brian Fundakowski Feldman wrote:
> 
> >On Tue, Jul 13, 2004 at 03:19:51PM -0700, Brian Rogers wrote:
> > 
> >
> >>Since last night and continuing today, the kernel from -CURRENT usually 
> >>hangs during boot.  Safe mode worked once, but the second time it didn't 

> >>work.  I now got in through single-user mode, so it appears to just work 

> >>every once in a while, randomly.
> >>
> >>I have a dmesg from the booted system below.  When it hangs, it stops 
> >>one line after "ata1-slave: FAILURE - ATAPI_RESET no interrupt", in 
> >>other words it hangs after detecting ata1-master but before detecting 
> >>ata1-slave, my DVD+RW drive.
> >>   
> >>
> >Try using these diffs to src/sys/dev/ata; they fixed it for me.
> > 
> >
> I think I stayed a bit too current.  That didn't apply cleanly.

There should be very few changes; it should be relatively easy to
fix the few conflicts.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


------------------------------

Message: 21
Date: Wed, 14 Jul 2004 13:03:40 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: "Steve O'Hara-Smith" <steve@sohara.org>,	Michael Nottebrock
	<michaelnottebrock@gmx.net>
Cc: freebsd-current@freebsd.org
Message-ID: <p0611041cbd1b14c0592a@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 11:30 AM +0100 7/14/04, Steve O'Hara-Smith wrote:
>On Wed, 14 Jul 2004 11:03:10 +0200
>Michael Nottebrock <michaelnottebrock@gmx.net> wrote:
>
>  > mergemaster -p needs to happen before installworld, earlier than
>  > that is not required.
>
>	From man mergemaster:
>
>      -p     Pre-buildworld mode.  Compares only files known to
>             be essential to the success of {build|install}world,
>             including /etc/make.conf.
>
>	I rest my case.

Someday we have to clean these instructions up, and make sure we
have a short, consistent set of instructions.  And that we are
saying the same thing everywhere we say anything about updating
the system.  So far, we have never *needed* `mergemaster -p'
before buildworld, and I think it is confusing to tell users it
should be done then.

Why?  Because we claim to support:
       Non-root user, on some machine does:
           buildworld
           buildkernel
       Then go to many different machines, and as root do:
           installkernel
           mergemaster -p
           reboot
           installworld
           mergemaster

If `mergemaster -p' is done before *buildworld*, then that implies
it only has to be done once -- even when installing on multiple
machines.

And the fact of the matter is that any checks which *do* have to
happen before buildworld, are done *in* /usr/src/Makefile by
the target 'upgrade_checks'.  mergemaster -p is not needed before
buildworld.

Also note that in /usr/src/Makefile itself, we explicitly state
that the correct order is:

# For individuals wanting to upgrade their sources (even if only a
# delta of a few days):
#
# 1.  `cd /usr/src'       (or to the directory containing your source tree).
# 2.  `make buildworld'
# 3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE'     (default is GENERIC).
# 4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is GENERIC).
# 5.  `reboot'        (in single user mode: boot -s from the loader prompt).
# 6.  `mergemaster -p'
# 7.  `make installworld'
# 8.  `mergemaster'
# 9.  `reboot'

In some sense I don't care what the order is, but we should not
be claiming one order in /usr/src/Makefile, and have a different
order implied by the man page for mergemaster.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

------------------------------

Message: 22
Date: Wed, 14 Jul 2004 19:05:19 +0200
From: Daniel Lang <dl@leo.org>
Subject: calcru: runtime went backwards
To: current@freebsd.org
Message-ID: <20040714170519.GA4100@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii

Hi,

since my most severe problems appear to be resolved, no more
panics so far (*knock on wood*), I would like to ask about
some other matters which are occurring on this host (see now
resolved and closed PR kern/68779 for machine details).

1. I get tons of messages like this on the console:

calcru: runtime went backwards from 31915600 usec to 31915590 usec for pid 126
5 (httpd)

It always seems to be a httpd process. httpd is apache2 linked with
"libthr". It especially happens if I use the 'ps' and the 'top'
command. If this happens, the controlling terminal where the 
command (e.g. ps) was issued, hangs for a while. Everything else
seems to be fine, though.

I recall that there was a thread in -current about this matter, 
but I couldn't find any solution right now... 

2. I also get lots of the following messages:

[..]
Jul 14 18:02:08 atleo6 ftpd[81983]: getsockname (/usr/libexec/ftpd): Socket op
eration on non-socket
Jul 14 18:02:26 atleo6 ftpd[81992]: getsockname (/usr/libexec/ftpd): Socket op
eration on non-socket
Jul 14 18:03:56 atleo6 ftpd[82043]: getsockname (/usr/libexec/ftpd): Socket op
eration on non-socket
Jul 14 18:04:23 atleo6 ftpd[82055]: getsockname (/usr/libexec/ftpd): Socket op
eration on non-socket
[..]

What could be wrong with ftpd here? I thought about ktracing ftpd, but
there are 200-300 concurrent ftpd processes active and the messages
appear very irregulary. If I could ktrace the parent ftpd and all
its childen, I'm afraid the trace-log would fill up all disk-space
before the problem even appears... Suggestions are appreciated
though.

3. I had a LOR in syslog, but it's rotated away (several 100ks of 
   calcru messages), alas. I have reconfigured newsyslog to keep
   more logs around.
   However, I recall, that it must be LOR no 009 on Bjoern's
   page:

   http://sources.zabbadoz.net/freebsd/lor.html

   I guess there is no solution to this, yet?

Cheers,
 Daniel
-- 
IRCnet: Mr-Spock                      - May His Shadow fall upon thee - 
 Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

------------------------------

Message: 23
Date: Wed, 14 Jul 2004 10:24:54 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: calcru: runtime went backwards
To: Daniel Lang <dl@leo.org>
Cc: current@freebsd.org
Message-ID: <20040714102226.B7621@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 14 Jul 2004, Daniel Lang wrote:

> since my most severe problems appear to be resolved, no more
> panics so far (*knock on wood*), I would like to ask about
> some other matters which are occurring on this host (see now
> resolved and closed PR kern/68779 for machine details).
>
> 1. I get tons of messages like this on the console:
>
> calcru: runtime went backwards from 31915600 usec to 31915590 usec for pid 1
265 (httpd)

FreeBSD version or source update time would be nice.

Do you have WITNESS and/or INVARIANTS enabled?

> It always seems to be a httpd process. httpd is apache2 linked with
> "libthr". It especially happens if I use the 'ps' and the 'top'
> command. If this happens, the controlling terminal where the
> command (e.g. ps) was issued, hangs for a while. Everything else
> seems to be fine, though.
>
> I recall that there was a thread in -current about this matter,
> but I couldn't find any solution right now...

There aren't a lot of libthr uses... thought of trying libpthread?

> 2. I also get lots of the following messages:
>
> [..]
> Jul 14 18:02:08 atleo6 ftpd[81983]: getsockname (/usr/libexec/ftpd): Socket 
operation on non-socket
> Jul 14 18:02:26 atleo6 ftpd[81992]: getsockname (/usr/libexec/ftpd): Socket 
operation on non-socket
> Jul 14 18:03:56 atleo6 ftpd[82043]: getsockname (/usr/libexec/ftpd): Socket 
operation on non-socket
> Jul 14 18:04:23 atleo6 ftpd[82055]: getsockname (/usr/libexec/ftpd): Socket 
operation on non-socket
> [..]
>
> What could be wrong with ftpd here? I thought about ktracing ftpd, but
> there are 200-300 concurrent ftpd processes active and the messages
> appear very irregulary. If I could ktrace the parent ftpd and all
> its childen, I'm afraid the trace-log would fill up all disk-space
> before the problem even appears... Suggestions are appreciated
> though.

Is this the stock ftpd?


-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 24
Date: Wed, 14 Jul 2004 10:31:29 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: Some netgraph node global locking patches
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <40F56DF1.7060107@elischer.org>
Content-Type: text/plain; charset=KOI8-R; format=flowed

Gleb Smirnoff wrote:

>R> > one AC.
>R> 
>R> This sounds good.  I've chatted some with Julian about locking down access

>R> to private data, but I've not had a chance to really digest and think
>R> through it yet.  Is this something you're interested in looking at? :-)
>
>Yes, it is. AFAIU, at this moment netgraph locks node in way that only one
>netgraph callback can run at a time. It means one thread per node. So there i
s
>no need to lock private data separately. Do I miss smth?
>

there are ways to enter the node that bypass the locks..
 for example in the ng_tty node, the calls by the tty line disciplin
do not go through a lock..
I am thinking about adding a method to node that has a standard default,
that is for direct callers.. it would be similar to calling
ng_send_fn() with your data rather than
just jumping in and doing your stuff.

Basically the problem only exists in nodes that are
part netgraph and part "something else".
the "something else" code can access teh internal structures etc.
without getting any locks.


>
>R> > R>   //depot/vendor/freebsd/src/sys/netgraph/ng_tty.c
>R> > R> +/*
>R> > R> + * XXXRW: ngt_unit is protected by ng_tty_mtx.  ngt_ldisc is constan
t once
>R> > R> + * ng_tty is initialized.  ngt_nodeop_ok is untouched, and might wan
t to be a
>R> > R> + * sleep lock in the future?
>R> > R> + */
>R> > 
>R> > One question: are any locks held when linesw callbacks (ngt_open,
>R> > ngt_close, etc..) are called? 
>R> 
>R> Hmm.  That is an interesting problem indeed.  The tty code currently
>R> requires Giant, although Poul-Henning is doing cleanup that will hopefully

>R> lead to locking at some point.  In the SLIP code, I currently use a
>R> taskqueue to defer calls into the tty code so that Giant is not grabbed at

>R> arbitrary points in the SLIP processing, which may be called into while
>R> holding protocol layer locks.  It looks like a lot of the tty access in
>R> ng_tty.c is done from the device node calls associated with the tty
>R> subsystem, and therefore Giant will already be held (which is fine,
>R> although not 100% desirable).  The problematic bit is the call to
>R> ngt_start() in ngt_rcvdata(), and synchronizing the mbuf queue in the node

>R> between various consumers.  We could very easily use the same trick here I

>R> use in SLIP by deferring ngt_start() to a Giant-holding task queue.  We
>R> could add a 'struct task' to the node softc and just use that, for
>R> example. 
>


possibly the answer is to make the tty disciplin code call
ng_send_fn() with it's data, and just leave it queued if it can't
get the lock.

>
>I have to get better understanding of tty code, then make comments :)
>May be Poul-Henning has some ideas.
>
>  
>



------------------------------

Message: 25
Date: Wed, 14 Jul 2004 13:30:56 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: Stack backtrace: how can I help?
To: Mark Santcroos <marks@ripe.net>
Cc: current@freebsd.org
Message-ID: <1089826256.21709.14.camel@lanshark.dmv.com>
Content-Type: text/plain

On Thu, 2004-07-01 at 01:30 +0200, Mark Santcroos wrote:
> Hi,
> 
> On Wed, Jun 30, 2004 at 03:34:05PM -0400, Sven Willenberger wrote:
> > Under heavy loads, on 5.2.1-P8 systems, I get a Stack backtrace relating
> > to flushing dirty buffers (ffs_fsync).
> 
> Best would be if you first try to reproduce it on another machine.
> 
> If you are able to reproduce it on another machine using the same freebsd
> version, next what you should do is upgrade that machine to the latest 
> -current and try to reproduce it again.
> 
> If you then still get the panic I will look at it on my own machine.
> 
> Thanks
> 
FreeBSD -current July 1, 2004 :00:00:00 (prior to the whole preemption
deal)

Stack backtrace:
backtrace(c4155300,1,f2b01c14,f2b01c00,c05f0dec) at backtrace+0x12
getdirtybuf(f2b01bf0,0,1,e18437b0,1) at getdirtybuf+0x2c
flush_deplist(c41559cc,1,f2b01c14) at flush_deplist+0x30
flush_inodedep_deps(c26a6000,5c0a1,c06d1bf8,f2b01c60,c050238c) at
flush_inodedep_deps+0x82
softdep_sync_metadata(f2b01cb0) at softdep_sync_metadata+0x76
ffs_fsync(f2b01cb0) at ffs_fsync+0x332
fsync(c2d0ab00,f2b01d14,1,1b1,286) at fsync+0x10b
syscall(2f,282d002f,bfbf002f,0,80e6440) at syscall+0x217
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (95), eip = 0x282726bb, esp = 0xbfbf9dcc, ebp = 0xbfbfb768
---

Again this occured during an onslaught of email and the machine did not
recover. It did backtrace after backtrace until it exhausted memory and
swap space. Latest perl (5.8.4) with all modules rebuilt against it.
Spamassassin/spamd and running spa

Top part of kernel config file:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.405 2004/05/28 00:22:59
tackerman Exp $

machine         i386
cpu             I486_CPU
cpu             I586_CPU
cpu             I686_CPU
ident           GENERIC

# To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         # Default places to look for
devices.

makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug
symbols

options         SCHED_ULE               # ULE scheduler
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates
support
options         UFS_ACL                 # Support for access control
lists
options         UFS_DIRHASH             # Improve performance on big
directories
options         MD_ROOT                 # MD is a potential root device
options         NFSCLIENT               # Network Filesystem Client
options         NFSSERVER               # Network Filesystem Server
options         NFS_ROOT                # NFS usable as /, requires
NFSCLIENT
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires
PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP
THIS!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         SCSI_DELAY=5000         # Delay (in ms) before probing
SCSI
options         KTRACE                  # ktrace(1) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in
debug
                                        # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in
debug
                                        # output.  Adds ~215k to driver.
options         PFIL_HOOKS              # pfil(9) framework

# KVM
options         VM_KMEM_SIZE_SCALE="2"
options         VM_KMEM_SIZE_MAX="(512*1024*1024)"
#options        KVA_PAGES=512

# Debugging for use in -current
options         DDB                     # Enable the kernel debugger
options         DDB_UNATTENDED
options         INVARIANTS              # Enable calls of extra sanity
checking
options         INVARIANT_SUPPORT       # Extra sanity checks of
internal structures, required by INVARIANTS
options         WITNESS                 # Enable checks to detect
deadlocks and cycles
options         WITNESS_SKIPSPIN        # Don't run witness on spinlocks
for speed

# To make an SMP kernel, the next two are needed
options         SMP             # Symmetric MultiProcessor Kernel
device          apic            # I/O APIC



Sven


------------------------------

Message: 26
Date: Wed, 14 Jul 2004 12:44:01 -0500
From: Scot Hetzel <swhetzel@gmail.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <790a9fff04071410441f675081@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

On Wed, 14 Jul 2004 09:45:48 -0500, Kirk Strauser <kirk@strauser.com> wrote:
> And again, how does "make world DESTDIR=/foo" differ from "make buildworld
> DESTDIR=/foo"?
> 
> I've been getting several hundred hits per month to:
> 
>    http://subwiki.honeypot.net/cgi-bin/view/Freebsd/BuildAndUpdateJails
> 
> Have I been giving the wrong advice?

make world DESTDIR=/foo will build and then install into ${DESTDIR}. 
But make buildworld DESTDIR=/foo will only build.  You need make
installworld DESTDIR=/foo to install into ${DESTDIR}.

------------------------------

Message: 27
Date: Wed, 14 Jul 2004 11:08:16 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: stable@freebsd.org
Message-ID: <20040714180816.GA5503@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii

On Wed, Jul 14, 2004 at 12:04:57PM +0200, Poul-Henning Kamp wrote:
> >
> >boot -s is generally broken. No characters can be typed. This is
> >with syscons(4) and uart(4) and probably any other driver. Might
> >be related to the lack of NL->CRNL
> 
> I have this fixed in a new patch I just uploaded.

Ok. I'll give it a spin.

> marcel: I don't think the kassert in uart which tripped you should
> be there any more.  Can you try to remove it and see that nothing
> bad happens ?

Will do.

> With respect to the "init"/"lock" devices:
> 
> Drivers are not forced to them, they get created if ttymakeslaves()
> is called, and the driver is free not to do that.
> 
> I added it to uart because I thought it was a sufficiently high-profile
> driver that we should have the cua/init/lock ability on it.  (as
> opposed to ptys or dcons for instance).  If you don't want it,
> I'll remove it again (but read on first).

No, the ability is good. I always wanted something like that. Just not
in the way it was done in sio(4), because it doesn't belong there.

> The traditional naming has been the inserted "i" and "l" which I
> agree is arcane.  I'm not against changing it to ".init" and ".lock"
> if we can get concensus.

We can create a simple compatibility scheme: If the out argument
to ttymakeslaves is a string of exactly 1 character, use the old
naming scheme. Otherwise, a new naming scheme is used. In the old
scheme, the slave (or out) devices are called cua*. In the new
scheme the out devices have the name given by the out argument.

Thus:
sio(4) would call ttymakeslaves with in="d", out="a". This yields
	ttyd#, ttyid#, ttyld#
	cuaa#, cuaia#, cuala#
uart(4) would call ttymakeslaves with in="u", out="uart". This could
yield something like:
	ttyu#, ttyu#.init, ttyu#.lock
	uart#, uart#.init, uart#.lock

Just a thought. See also below.

> I would prefer to stick to the "tty" and "cua" prefixes however.

I can agree on the tty prefix. I've always disliked the cua prefix,
simply because it's nonsensical. It's the kind of prefix you pick
when all the good (and bad) ones have been used and you randomly
grab 3 letters from your scrabble box, sigh, and accept that once
again luck hasn't been on your side :-) :-)

Seriously: the origin of cua is mostly lost and systems like UUCP
have already been removed from the source tree. Anybody new to
FreeBSD and who hasn't been around since the epoch will completely
fail to see why the device is called the way it is.

But anyway, if you think that all serial devices should have tty$#
and cua$#, then just implement it that way. It's better to get this
rework behind us. I can adjust. If not, then I can at least commit :-)

> The plan is to make them on-demand-devices (clonable) so that they
> do not clutter up /dev but appear if you access them.  That would
> leave only the ttyu0 and cuau0 devices.

Yes! I like the cloning.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net

------------------------------

Message: 28
Date: Wed, 14 Jul 2004 13:19:35 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@freebsd.org
Message-ID: <200407141319.38814.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"

On Wednesday 2004-07-14 12:44 pm, Scot Hetzel wrote:

> make world DESTDIR=/foo will build and then install into ${DESTDIR}.
> But make buildworld DESTDIR=/foo will only build.  You need make
> installworld DESTDIR=/foo to install into ${DESTDIR}.

D'oh!  I misstated in my email (but not on the web page).  Is "make world 
DESTDIR=/foo" better than "make buildworld; make installword DESTDIR=/foo"?

Particularly in the case of multiple jail directories, it seems like doing 
one buildworld followed by a series of installworlds would be a clear win.  
Also, given that it seems as though you'll *always* want the jail 
environments to be at the same version as the host environment, you'd 
usually be doing installworld into the jails *after* doing an installworld 
into the host system.  Does that sound right?
-- 
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040714/
0c257f0c/attachment-0001.bin

------------------------------

Message: 29
Date: Wed, 14 Jul 2004 20:36:01 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Some netgraph node global locking patches 
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <12611.1089830161@critter.freebsd.dk>

In message <20040714154254.GB9999@cell.sick.ru>, Gleb Smirnoff writes:

>Yes it does. But qsort() already used in ng_ppp is as much recursive as
>qsort_r() is. It will help us to get rid of global variable.
>I Cc phk@ to this mail, because he copied qsort() to libkern from libc.

It was put there to get rid of a couple of badly implemented bubble
sorts.

It is true that qsort() is recursive, but it is limited to log2(N)
levels and kernel programmers hopefully don't routinely sort arrays
of hundreds of things in the kernel.

>R> > One question: are any locks held when linesw callbacks (ngt_open,
>R> > ngt_close, etc..) are called? 

Not yet, and the exact semantics are not defined yet.

My current guess is that they will be called with a reference count
on struct tty but no lock held.

First I need to get over the cleanup so that I don't have so
many entrance points into the tty code to lock in the first place.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 30
Date: Wed, 14 Jul 2004 14:36:15 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: Kirk Strauser <kirk@strauser.com>, freebsd-current@freebsd.org
Message-ID: <p0611041dbd1b2c0fcfd7@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 9:45 AM -0500 7/14/04, Kirk Strauser wrote:
>On Tuesday 2004-07-13 05:23 pm, Garance A Drosihn wrote:
>
>>  a) how about if we print a warning and exit if DESTDIR is
>>      not defined?  Are there "important" uses of `make world'
>>      which do not use DESTDIR?
>
>And again, how does "make world DESTDIR=/foo" differ from
>"make buildworld DESTDIR=/foo"?
>
>I've been getting several hundred hits per month to:
>
>     http://subwiki.honeypot.net/cgi-bin/view/Freebsd/BuildAndUpdateJails
>
>Have I been giving the wrong advice?

Your instructions look fine to me, since you do also include the
`make installworld DESTDIR=/foo' as a separate step.  Some people
are just used to a single-step version, and that works fine for
them so they see no reason to change to multiple steps that (for
them) will produce no benefit.

It is not that your instructions are wrong, it is that your
instructions involve more typing, and for some people that extra
typing does not gain them anything.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

------------------------------

Message: 31
Date: Wed, 14 Jul 2004 11:38:57 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: marcel@xcllnt.net
Cc: phk@phk.freebsd.dk
Message-ID: <200407141839.i6EIcvce025710@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On 14 Jul, Marcel Moolenaar wrote:
> On Wed, Jul 14, 2004 at 12:04:57PM +0200, Poul-Henning Kamp wrote:

>> I would prefer to stick to the "tty" and "cua" prefixes however.
> 
> I can agree on the tty prefix. I've always disliked the cua prefix,
> simply because it's nonsensical. It's the kind of prefix you pick
> when all the good (and bad) ones have been used and you randomly
> grab 3 letters from your scrabble box, sigh, and accept that once
> again luck hasn't been on your side :-) :-)
> 
> Seriously: the origin of cua is mostly lost and systems like UUCP
> have already been removed from the source tree. Anybody new to
> FreeBSD and who hasn't been around since the epoch will completely
> fail to see why the device is called the way it is.

I still use cu(1), though I don't know why the man page suggests using
the /dev/ttyXX device.  The /etc/remote file uses the cua device.


------------------------------

Message: 32
Date: Wed, 14 Jul 2004 22:42:40 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: Re: Some netgraph node global locking patches
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <20040714184240.GB11214@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

On Wed, Jul 14, 2004 at 08:36:01PM +0200, Poul-Henning Kamp wrote:
P> >Yes it does. But qsort() already used in ng_ppp is as much recursive as
P> >qsort_r() is. It will help us to get rid of global variable.
P> >I Cc phk@ to this mail, because he copied qsort() to libkern from libc.
P> 
P> It was put there to get rid of a couple of badly implemented bubble
P> sorts.
P> 
P> It is true that qsort() is recursive, but it is limited to log2(N)
P> levels and kernel programmers hopefully don't routinely sort arrays
P> of hundreds of things in the kernel.

>From a snap view I see no problems copying qsort_r() to libkern. What
do you think? It will help us to get rid of global in ng_ppp.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 68, Issue 30
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]