Message-ID: <4DFFID$DO2@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 68, Issue 33
Date: Thu, 15 Jul 2004 19:26:37 +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!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!pd7cy1no!shaw.ca!sjc1.usenetserver.com!news.usenetserver.com!news.bylinux.net!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1089919597.A
Lines: 2177
Xref: 74.82.202.154 cn.bbs.comp.unix:1336


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. cua port locking (Kim Culhan)
   2. Re: cua port locking (Jim Zajkowski)
   3. Re: cua port locking (Kim Culhan)
   4. install crashes on ThinkPad T41 (Dan Langille)
   5. Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
      (Greg J.)
   6. tcpdump: PPPoE or 3Com PPPoE (Gleb Smirnoff)
   7. Re: 5.2-CURRENT still not working on my mitac 8080
      (David W. Chapman Jr.)
   8. 5.3-RELEASE TODO (Robert Watson)
   9. Re: hm, how to recover from a fscked-up device.hints?
      (Marcel Moolenaar)
  10. Re: CVSUP and 5.2.1 RELEASE (Kirk Strauser)
  11. parallel port *slow* (Palle Girgensohn)
  12. Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
      (Brian Fundakowski Feldman)
  13. ACPI degrading.. ? (Eric Anderson)
  14. Re: -current mysql error (Chris Vance)
  15. Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
      (Greg J.)
  16. pccbb crashes when detaching (unsafe interrupt handler)
      (Brian Fundakowski Feldman)
  17. Re: parallel port *slow* (Antony T Curtis)
  18. tuning hints for PAE (Daniel Lang)


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

Message: 1
Date: Thu, 15 Jul 2004 05:45:07 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: cua port locking
To: freebsd-current@FreeBSD.org
Message-ID: <20040715124507.32564.qmail@web50704.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Trying to tip out to a port we see:

%tip sio0
/var/spool/lock/LCK..cuaa0: No such file or directory
Can't open lock file.
all ports busy

Become root and try it:
tip sio0
It returns:

connected

Hit ~! to disconnect
It returns:

~[sh]

Now try it again
tip sio0

And it returns:

all ports busy

The only solution is to manually remove the lockfile.

BTW, also have a working ASR33 in the garage :)

-kim



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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

Message: 2
Date: Thu, 15 Jul 2004 08:54:43 -0400
From: Jim Zajkowski <jim@jimz.net>
Subject: Re: cua port locking
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: freebsd-current@FreeBSD.org
Message-ID: <248D5C72-D65E-11D8-BD62-000A95DA58FE@jimz.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On Jul 15, 2004, at 8:45 AM, Kim Culhan wrote:

> Hit ~! to disconnect
> It returns:
>
> ~[sh]
>
> Now try it again
> tip sio0
>
> And it returns:
>
> all ports busy

~! means "escape to subshell" while ~. is terminate connection.  You 
need ~. not ~!, or, instead of trying to tip sio0 again, exit the 
subshell.

The tip manpage has all the ~ commands.

--Jim

-- 
Jim Zajkowski          OpenPGP 0x21135C3    http://www.jimz.net/pgp.asc
System Administrator  8A9E 1DDF 944D 83C3 AEAB  8F74 8697 A823 2113 5C53
UM Life Sciences Institute

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

Message: 3
Date: Thu, 15 Jul 2004 06:13:35 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: Re: cua port locking
To: freebsd-current@FreeBSD.org
Message-ID: <20040715131335.39235.qmail@web50704.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

> --- "Brandon S. Allbery KF8NH" <allbery@ece.cmu.edu> wrote:

> ~. is disconnect.  ~! starts a subshell; you're still connected
> and will return to the connection when you exit the subshell.
> Therefore the lockfile remains.
 
Argh.. right. Thanks, its been too long since I used tip.

tnx
-kim



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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

Message: 4
Date: Thu, 15 Jul 2004 09:20:43 -0400
From: "Dan Langille" <dan@langille.org>
Subject: install crashes on ThinkPad T41
To: freebsd-current@freebsd.org
Message-ID: <40F64C6B.21603.B2F4F5E@localhost>
Content-Type: text/plain; charset="us-ascii"

Gidday,

I've tried several -current snapshots on this IBM ThinkPad T41 
(2004.05.24, 2004.06.11, 2004.07.07, and 2004.07.14).  All fail, but 
at different steps.  I'll report upon 2004.07.14 but will provide 
information for the others if requested.


5.2.1-RELEASE is installed on this laptop.  It runs fine.  I have 
attached the output of /var/run/dmesg.boot from that.

I have also included the output of dmidecode.

2004.07.14 crashes during probing.  Details of the traceback are at: 
http://www.langille.org/IBM-ThinkPad-T41-current-2004.07.14-trace.jpg

Anything else I can do to help, please let me know.  If anyone wants 
a login to the box to diagnose the issue, please ask.  I need to get 
a USB-Serial adaptor.

Attachments:
  I:\dmesg.boot
  I:\dmidecode
-- 
Dan Langille : http://www.langille.org/

-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  dmesg.boot
     Date:  15 Jul 2004, 8:58
     Size:  6307 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg.boot
Type: application/octet-stream
Size: 6307 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040715/
f42c5a2f/dmesg-0001.obj
-------------- next part --------------
# dmidecode 2.4
SMBIOS 2.33 present.
61 structures occupying 2127 bytes.
Table at 0x000E0010.
Handle 0x0000
	DMI type 0, 20 bytes.
	BIOS Information
		Vendor: IBM
		Version: 1RETC6WW (3.05a)
		Release Date: 05/14/2004
		Address: 0xDC000
		Runtime Size: 144 kB
		ROM Size: 1024 kB
		Characteristics:
			PCI is supported
			PC Card (PCMCIA) is supported
			PNP is supported
			APM is supported
			BIOS is upgradeable
			BIOS shadowing is allowed
			ESCD support is available
			Boot from CD is supported
			Selectable boot is supported
			EDD is supported
			3.5"/720 KB floppy services are supported (int 13h)
			Print screen service is supported (int 5h)
			8042 keyboard services are supported (int 9h)
			Serial services are supported (int 14h)
			Printer services are supported (int 17h)
			CGA/mono video services are supported (int 10h)
			ACPI is supported
			USB legacy is supported
			AGP is supported
			BIOS boot specification is supported
Handle 0x0001
	DMI type 1, 25 bytes.
	System Information
		Manufacturer: IBM
		Product Name: 2378DMU
		Version: ThinkPad T41 
		Serial Number: 99F0532
		UUID: 98447E01-4673-11CB-A60F-B9F75801E315
		Wake-up Type: Power Switch
Handle 0x0002
	DMI type 2, 8 bytes.
	Base Board Information
		Manufacturer: IBM
		Product Name: 2378DMU
		Version: Not Available
		Serial Number: J1UY74451G8
Handle 0x0003
	DMI type 3, 17 bytes.
	Chassis Information
		Manufacturer: IBM
		Type: Notebook
		Lock: Not Present
		Version: Not Available
		Serial Number: Not Available
		Asset Tag: No Asset Information
		Boot-up State: Unknown
		Power Supply State: Unknown
		Thermal State: Unknown
		Security Status: Unknown
		OEM Information: 0x00000000
Handle 0x0004
	DMI type 126, 17 bytes.
	Inactive
Handle 0x0005
	DMI type 126, 17 bytes.
	Inactive
Handle 0x0006
	DMI type 4, 35 bytes.
	Processor Information
		Socket Designation: None
		Type: Central Processor
		Family: Pentium M
		Manufacturer: GenuineIntel
		ID: 95 06 00 00 BF F9 E9 A7
		Signature: Type 0, Family 6, Model 9, Stepping 5
		Flags:
			FPU (Floating-point unit on-chip)
			VME (Virtual mode extension)
			DE (Debugging extension)
			PSE (Page size extension)
			TSC (Time stamp counter)
			MSR (Model specific registers)
			MCE (Machine check exception)
			CX8 (CMPXCHG8 instruction supported)
			SEP (Fast system call)
			MTRR (Memory type range registers)
			PGE (Page global enable)
			MCA (Machine check architecture)
			CMOV (Conditional move instruction supported)
			PAT (Page attribute table)
			CLFSH (CLFLUSH instruction supported)
			DS (Debug store)
			ACPI (ACPI supported)
			MMX (MMX technology supported)
			FXSR (Fast floating-point save and restore)
			SSE (Streaming SIMD extensions)
			SSE2 (Streaming SIMD extensions 2)
			TM (Thermal monitor supported)
			SBF (Signal break on FERR)
		Version: Intel(R) Pentium(R) M processor
		Voltage: 1.5 V
		External Clock: 400 MHz
		Max Speed: 1400 MHz
		Current Speed: 1400 MHz
		Status: Populated, Enabled
		Upgrade: None
		L1 Cache Handle: 0x000A
		L2 Cache Handle: 0x000B
		L3 Cache Handle: Not Provided
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x0007
	DMI type 5, 20 bytes.
	Memory Controller Information
		Error Detecting Method: None
		Error Correcting Capabilities:
			None
		Supported Interleave: One-way Interleave
		Current Interleave: One-way Interleave
		Maximum Memory Module Size: 1024 MB
		Maximum Total Memory Size: 2048 MB
		Supported Speeds:
			Other
		Supported Memory Types:
			DIMM
			SDRAM
		Memory Module Voltage: 2.9 V
		Associated Memory Slots: 2
			0x0008
			0x0009
		Enabled Error Correcting Capabilities:
			None
Handle 0x0008
	DMI type 6, 12 bytes.
	Memory Module Information
		Socket Designation: DIMM Slot 1
		Bank Connections: 0 1
		Current Speed: Unknown
		Type: DIMM SDRAM
		Installed Size: 256 MB (Double-bank Connection)
		Enabled Size: 256 MB (Double-bank Connection)
		Error Status: OK
Handle 0x0009
	DMI type 6, 12 bytes.
	Memory Module Information
		Socket Designation: DIMM Slot 2
		Bank Connections: 2 3
		Current Speed: Unknown
		Type: DIMM SDRAM
		Installed Size: Not Installed (Single-bank Connection)
		Enabled Size: Not Installed (Single-bank Connection)
		Error Status: OK
Handle 0x000A
	DMI type 7, 19 bytes.
	Cache Information
		Socket Designation: Internal L1 Cache
		Configuration: Enabled, Socketed, Level 1
		Operational Mode: Write Back
		Location: Internal
		Installed Size: 32 KB
		Maximum Size: 32 KB
		Supported SRAM Types:
			Synchronous
		Installed SRAM Type: Synchronous
		Speed: Unknown
		Error Correction Type: Unknown
		System Type: Other
		Associativity: 8-way Set-associative
Handle 0x000B
	DMI type 7, 19 bytes.
	Cache Information
		Socket Designation: Internal L2 Cache
		Configuration: Enabled, Socketed, Level 2
		Operational Mode: Write Back
		Location: Internal
		Installed Size: 1024 KB
		Maximum Size: 1024 KB
		Supported SRAM Types:
			Burst
		Installed SRAM Type: Burst
		Speed: Unknown
		Error Correction Type: Multi-bit ECC
		System Type: Unified
		Associativity: 8-way Set-associative
Handle 0x000C
	DMI type 126, 9 bytes.
	Inactive
Handle 0x000D
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Infrared
		External Connector Type: Infrared
		Port Type: Other
Handle 0x000E
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Parallel
		External Connector Type: DB-25 female
		Port Type: Parallel Port ECP/EPP
Handle 0x000F
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: External Monitor
		External Connector Type: DB-15 female
		Port Type: Video Port
Handle 0x0010
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0011
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0012
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0013
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0014
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0015
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Microphone Jack
		External Connector Type: Mini Jack (headphones)
		Port Type: Audio Port
Handle 0x0016
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Headphone Jack
		External Connector Type: Mini Jack (headphones)
		Port Type: Audio Port
Handle 0x0017
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: S-Video-Out
		External Connector Type: Other
		Port Type: Video Port
Handle 0x0018
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0019
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Modem
		External Connector Type: RJ-11
		Port Type: Modem Port
Handle 0x001A
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: Ethernet
		External Connector Type: RJ-45
		Port Type: Network Port
Handle 0x001B
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: USB 1
		External Connector Type: Access Bus (USB)
		Port Type: USB
Handle 0x001C
	DMI type 8, 9 bytes.
	Port Connector Information
		Internal Reference Designator: Not Available
		Internal Connector Type: None
		External Reference Designator: USB 2
		External Connector Type: Access Bus (USB)
		Port Type: USB
Handle 0x001D
	DMI type 126, 9 bytes.
	Inactive
Handle 0x001E
	DMI type 126, 9 bytes.
	Inactive
Handle 0x001F
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0020
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0021
	DMI type 126, 9 bytes.
	Inactive
Handle 0x0022
	DMI type 9, 13 bytes.
	System Slot Information
		Designation: CardBus Slot 1
		Type: 32-bit PC Card (PCMCIA)
		Current Usage: Available
		Length: Other
		ID: Adapter 0, Socket 0
		Characteristics:
			5.0 V is provided
			3.3 V is provided
			PC Card-16 is supported
			Cardbus is supported
			Zoom Video is supported
			Modem ring resume is supported
			PME signal is supported
			Hot-plug devices are supported
Handle 0x0023
	DMI type 9, 13 bytes.
	System Slot Information
		Designation: CardBus Slot 2
		Type: 32-bit PC Card (PCMCIA)
		Current Usage: Available
		Length: Other
		ID: Adapter 1, Socket 0
		Characteristics:
			5.0 V is provided
			3.3 V is provided
			PC Card-16 is supported
			Cardbus is supported
			Zoom Video is supported
			Modem ring resume is supported
			PME signal is supported
			Hot-plug devices are supported
Handle 0x0024
	DMI type 126, 13 bytes.
	Inactive
Handle 0x0025
	DMI type 126, 13 bytes.
	Inactive
Handle 0x0026
	DMI type 9, 13 bytes.
	System Slot Information
		Designation: Mini-PCI Slot 1
		Type: 32-bit PCI
		Current Usage: Available
		Length: Other
		ID: 1
		Characteristics:
			5.0 V is provided
			3.3 V is provided
			PME signal is supported
			SMBus signal is supported
Handle 0x0027
	DMI type 126, 13 bytes.
	Inactive
Handle 0x0028
	DMI type 10, 6 bytes.
	On Board Device Information
		Type: Other
		Status: Enabled
		Description: IBM Embedded Security hardware
Handle 0x0029
	DMI type 11, 5 bytes.
	OEM Strings
		String 1: IBM ThinkPad Embedded Controller -[1RHT68WW-3.01a   ]-
Handle 0x002A
	DMI type 13, 22 bytes.
	BIOS Language Information
		Installable Languages: 1
			enUS
		Currently Installed Language: enUS
Handle 0x002B
	DMI type 15, 25 bytes.
	System Event Log
		Area Length: 0 bytes
		Header Start Offset: 0x0000
		Header Length: 16 bytes
		Data Start Offset: 0x0010
		Access Method: General-purpose non-volatile data functions
		Access Address: 0x0000
		Status: Invalid, Not Full
		Change Token: 0x00000028
		Header Format: Type 1
		Supported Log Type Descriptors: 1
		Descriptor 1: POST error
		Data Format 1: POST results bitmap
Handle 0x002C
	DMI type 16, 15 bytes.
	Physical Memory Array
		Location: System Board Or Motherboard
		Use: System Memory
		Error Correction Type: None
		Maximum Capacity: 1 GB
		Error Information Handle: Not Provided
		Number Of Devices: 2
Handle 0x002D
	DMI type 17, 27 bytes.
	Memory Device
		Array Handle: 0x002C
		Error Information Handle: No Error
		Total Width: 64 bits
		Data Width: 64 bits
		Size: 256 MB
		Form Factor: SODIMM
		Set: None
		Locator: DIMM 1
		Bank Locator: Bank 0/1
		Type: DDR
		Type Detail: Synchronous
		Speed: Unknown
		Manufacturer: Not Specified
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x002E
	DMI type 17, 27 bytes.
	Memory Device
		Array Handle: 0x002C
		Error Information Handle: No Error
		Total Width: Unknown
		Data Width: Unknown
		Size: No Module Installed
		Form Factor: SODIMM
		Set: None
		Locator: DIMM 2
		Bank Locator: Bank 2/3
		Type: DDR
		Type Detail: Synchronous
		Speed: Unknown
		Manufacturer: Not Specified
		Serial Number: Not Specified
		Asset Tag: Not Specified
		Part Number: Not Specified
Handle 0x002F
	DMI type 18, 23 bytes.
	32-bit Memory Error Information
		Type: OKBad Read
		Granularity: Unknown
		Operation: Unknown
		Vendor Syndrome: Unknown
		Memory Array Address: Unknown
		Device Address: Unknown
		Resolution: Unknown
Handle 0x0030
	DMI type 19, 15 bytes.
	Memory Array Mapped Address
		Starting Address: 0x00000000000
		Ending Address: 0x0000FFFFFFF
		Range Size: 256 MB
		Physical Array Handle: 0x002C
		Partition Width: 0
Handle 0x0031
	DMI type 20, 19 bytes.
	Memory Device Mapped Address
		Starting Address: 0x00000000000
		Ending Address: 0x0000FFFFFFF
		Range Size: 256 MB
		Physical Device Handle: 0x002D
		Memory Array Mapped Address Handle: 0x0030
		Partition Row Position: 1
Handle 0x0032
	DMI type 126, 19 bytes.
	Inactive
Handle 0x0033
	DMI type 21, 7 bytes.
	Built-in Pointing Device
		Type: Track Point
		Interface: PS/2
		Buttons: 3
Handle 0x0034
	DMI type 21, 7 bytes.
	Built-in Pointing Device
		Type: Touch Pad
		Interface: PS/2
		Buttons: 0
Handle 0x0035
	DMI type 24, 5 bytes.
	Hardware Security
		Power-On Password Status: Disabled
		Keyboard Password Status: Disabled
		Administrator Password Status: Disabled
		Front Panel Reset Status: Unknown
Handle 0x0036
	DMI type 32, 11 bytes.
	System Boot Information
		Status: No errors detected
Handle 0x0037
	DMI type 131, 102 bytes.
	OEM-specific Type
		Header and Data:
			83 66 37 00 01 00 00 00 00 01 72 03 40 00 AE 80
			00 02 00 00 00 00 00 2A 00 40 2A 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00 00 00 00 00 16 00 80 16 00 00
			00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
			00 00 00 00 00 00
		Strings:
			IBMCFGDATA
Handle 0x0038
	DMI type 131, 17 bytes.
	OEM-specific Type
		Header and Data:
			83 11 38 00 01 02 03 FF FF 1F 00 00 00 00 00 02
			00
		Strings:
			BOOTINF 20h
			BOOTDEV 21h
			KEYPTRS 23h
Handle 0x0039
	DMI type 132, 7 bytes.
	OEM-specific Type
		Header and Data:
			84 07 39 00 01 D8 36
Handle 0x003A
	DMI type 133, 5 bytes.
	OEM-specific Type
		Header and Data:
			85 05 3A 00 01
		Strings:
			KHOIHGIUCCHHII
Handle 0x003B
	DMI type 126, 13 bytes.
	Inactive
Handle 0x003C
	DMI type 127, 4 bytes.
	End Of Table

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

Message: 5
Date: Thu, 15 Jul 2004 06:33:53 -0700
From: "Greg J." <xcas@cox.net>
Subject: Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715063353.58db5cb5.xcas@cox.net>
Content-Type: text/plain; charset=US-ASCII

On Tue, 13 Jul 2004 19:56:09 -0400
Brian Fundakowski Feldman <green@freebsd.org> 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.
> 
They didn't work for me.. I tried it before & after Soren's recent
commits to ata-all.c & ata-disk.c
I had to remove the first part of the ata-all patch because that had
already been changed.. and removed ata-disk patch because the files were
the same.

cas:~> uname -a
FreeBSD localhost.bsd-unix.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed
Jul 14 20:41:40 MST 2004    
cas@localhost.bsd-unix.org:/usr/obj/usr/src/sys/CASX32  i386
#################################
cas:~> pciconf -l
agp0@pci0:0:0:  class=0x060000 card=0x31881106 chip=0x31881106 rev=0x01
hdr=0x00
pcib1@pci0:1:0: class=0x060400 card=0x00000080 chip=0xb1881106 rev=0x00
hdr=0x01
pcm0@pci0:6:0:  class=0x040100 card=0x10021102 chip=0x00041102 rev=0x04
hdr=0x00
emujoy0@pci0:6:1:       class=0x098000 card=0x00601102 chip=0x70031102
rev=0x04 hdr=0x00
fwohci0@pci0:6:2:       class=0x0c0010 card=0x00101102 chip=0x40011102
rev=0x04 hdr=0x00
re0@pci0:11:0:  class=0x020000 card=0x702c1462 chip=0x816910ec rev=0x10
hdr=0x00
fwohci1@pci0:14:0:      class=0x0c0010 card=0x702d1462 chip=0x30441106
rev=0x80 hdr=0x00
atapci0@pci0:15:0:      class=0x01018a card=0x70201462 chip=0x05711106
rev=0x06 hdr=0x00
uhci0@pci0:16:0:        class=0x0c0300 card=0x70201462 chip=0x30381106
rev=0x81 hdr=0x00
uhci1@pci0:16:1:        class=0x0c0300 card=0x70201462 chip=0x30381106
rev=0x81 hdr=0x00
uhci2@pci0:16:2:        class=0x0c0300 card=0x70201462 chip=0x30381106
rev=0x81 hdr=0x00
uhci3@pci0:16:3:        class=0x0c0300 card=0x70201462 chip=0x30381106
rev=0x81 hdr=0x00
ehci0@pci0:16:4:        class=0x0c0320 card=0x70201462 chip=0x31041106
rev=0x86 hdr=0x00
isab0@pci0:17:0:        class=0x060100 card=0x32271106 chip=0x32271106
rev=0x00 hdr=0x00
hostb0@pci0:24:0:       class=0x060000 card=0x00000000 chip=0x11001022
rev=0x00 hdr=0x00
hostb1@pci0:24:1:       class=0x060000 card=0x00000000 chip=0x11011022
rev=0x00 hdr=0x00
hostb2@pci0:24:2:       class=0x060000 card=0x00000000 chip=0x11021022
rev=0x00 hdr=0x00
hostb3@pci0:24:3:       class=0x060000 card=0x00000000 chip=0x11031022
rev=0x00 hdr=0x00
none0@pci1:0:0: class=0x030000 card=0x00021002 chip=0x4e481002 rev=0x00
hdr=0x00
none1@pci1:0:1: class=0x038000 card=0x00031002 chip=0x4e681002 rev=0x00
hdr=0x00
#################################
cas:~> dmesg
Copyright (c) 1992-2004 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 5.2-CURRENT #0: Wed Jul 14 20:41:40 MST 2004
    cas@localhost.bsd-unix.org:/usr/obj/usr/src/sys/CASX32
ACPI APIC Table: <AMIINT VIA_K8  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (2000.08-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf48  Stepping = 8
 
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE
,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500000<NX,AMIE,LM,DSP,3DNow!>
real memory  = 1073676288 (1023 MB)
avail memory = 1045344256 (996 MB)
ioapic0 <Version 0.3> irqs 0-23 on motherboard
acpi0: <AMIINT VIA_K8> on motherboard
acpi0: [GIANT-LOCKED]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8385 host to PCI bridge> mem 0xd0000000-0xd7ffffff at device
0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pci1: <display> at device 0.1 (no driver attached)
pcm0: <Creative Audigy 2 (EMU10K2)> port 0xe800-0xe83f irq 17 at device
6.0 on pci0
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
fwohci0: <1394 Open Host Controller Interface> mem
0xcfff4000-0xcfff7fff,0xcfffe800-0xcfffefff irq 18 at device 6.2 on pci0
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:02:3c:00:91:01:1e:f6
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
re0: <RealTek 8110S Single-chip Gigabit Ethernet> port 0xe400-0xe4ff mem
0xcfffff00-0xcfffffff irq 16 at device 11.0 on pci0
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
re0: Ethernet address: 00:0c:76:6a:e7:07
re0: [GIANT-LOCKED]
fwohci1: <VIA VT6306> port 0xe000-0xe07f mem 0xcfffd800-0xcfffdfff irq
19 at device 14.0 on pci0
fwohci1: [GIANT-LOCKED]
fwohci1: OHCI version 1.0 (ROM=1)
fwohci1: No. of Isochronous channels is 4.
fwohci1: EUI64 00:10:dc:00:00:2c:43:73
fwohci1: Phy 1394a available S400, 2 ports.
fwohci1: Link S400, max_rec 2048 bytes.
firewire1: <IEEE1394(FireWire) bus> on fwohci1
fwohci1: Initiate bus reset
fwohci1: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire1: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire1: bus manager 0 (me)
atapci0: <VIA 8237 UDMA133 controller> port
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 21 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 21 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass
3/1
ums0: 3 buttons and Z dir.
uhci2: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 21 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device
16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xcffffd00-0xcffffdff irq
21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
ehci_pci_attach: companion usb0
ehci_pci_attach: companion usb1
ehci_pci_attach: companion usb2
ehci_pci_attach: companion usb3
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <EHCI (generic) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: (0x1106) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
orm0: <ISA Option ROMs> at iomem
0xe0000-0xe0fff,0xcd000-0xcdfff,0xc0000-0xccfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 2000081767 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 114440MB <WDC WD1200JB-75CRA0> [232514/16/63] at ata0-master
UDMA100
ums0: at uhub1 port 2 (addr 2) disconnected
ums0: detached
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass
3/1
ums0: 3 buttons and Z dir.
ata1-slave: FAILURE - ATAPI_RESET no interrupt
ata1-master: FAILURE - ATAPI_RESET no interrupt
acd0: FAILURE - ATAPI_RESET no interrupt
acd0: CDRW <SAMSUNG CD-R/RW SW-232B> at ata1-master WDMA2
acd1: FAILURE - ATAPI_RESET no interrupt
acd1: DVDROM <HL-DT-STDVD-ROM GDR8160B> at ata1-slave UDMA33
Mounting root from ufs:/dev/ad0s2a

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

Message: 6
Date: Thu, 15 Jul 2004 17:31:47 +0400
From: Gleb Smirnoff <glebius@freebsd.org>
Subject: tcpdump: PPPoE or 3Com PPPoE
To: fenner@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040715133147.GA19644@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

  Bill,

  you are our tcpdump maintainer, aren't you?

  Working with ng_pppoe support for two PPPoE modes I have encountered
a problem, that new version of tcpdump always prints "PPPoE" no matter what
kind of PPPoE it is. This lead me to a confusion and I've spent half an hour
looking for a clue (the older version of tcpdump printed 3Com PPPoE as hex 
values).

 Please take a look at this hack and commit it if possible, or fix it
in other way. Thanks in advance.

diff -u -r1.14 print-ether.c
--- print-ether.c       31 Mar 2004 14:57:24 -0000      1.14
+++ print-ether.c       15 Jul 2004 13:20:44 -0000
@@ -250,10 +250,11 @@
 
                return (1);
 
-       case ETHERTYPE_PPPOED:
-       case ETHERTYPE_PPPOES:
        case ETHERTYPE_PPPOED2:
        case ETHERTYPE_PPPOES2:
+               printf("3Com ");        /* pass through */
+       case ETHERTYPE_PPPOED:
+       case ETHERTYPE_PPPOES:
                pppoe_print(p, length);
                return (1);
 
-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

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

Message: 7
Date: Thu, 15 Jul 2004 09:08:44 -0500
From: "David W. Chapman Jr." <dwcjr@inethouston.net>
Subject: Re: 5.2-CURRENT still not working on my mitac 8080
To: John Baldwin <jhb@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <40F68FEC.4080507@inethouston.net>
Content-Type: text/plain; charset="us-ascii"



John Baldwin wrote:

>On Wednesday 14 July 2004 02:57 pm, David W. Chapman Jr. wrote:
>  
>
>>John Baldwin wrote:
>>    
>>
>>>On Wednesday 14 July 2004 09:25 am, David W. Chapman Jr. wrote:
>>>      
>>>
>>>>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
>>>>        
>>>>
>>>Look for a BIOS upgrade.  It sounds like your BIOS has badly busted
>>>interrupt routing.
>>>      
>>>
>>I think I can get one, I don't have a problem running 4.X though, would
>>that be consistent with the problem you described?
>>    
>>
>
>4.x isn't smart enough to ask the BIOS how to route interrupts from the BIOS 

>tables, it just assumes that the way it booted is ok.
>
>  
>
Unfortunately I have just upgraded to the latest BIOS revision and the 
problem still exists.  I guess I'm dead in the water as far as 5.x goes?

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

Message: 8
Date: Thu, 15 Jul 2004 10:24:39 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: 5.3-RELEASE TODO
To: current@FreeBSD.org
Message-ID: <200407151424.i6FEOdoq060881@fledge.watson.org>

This is an automated bi-weekly mailing of the FreeBSD 5.3 open issues list.
The live version of this list is available at:

    http://www.FreeBSD.org/releases/5.3R/todo.html

Automated mailing of this list will continue through the release of
FreeBSD 5.3.

NOTE: This is the first such mailing for 5.3, and this task list will
inevitably contain errors, omissions, and other sorts of inaccuracies.  If
you see something that makes you panic, it could well be incorrect.  Please
contact the release engineering team for any modifications.


                          FreeBSD 5.3 Open Issues

                                Open Issues

 This is a list of open issues that need to be resolved for FreeBSD 5.3. If
 you have any updates for this list, please e-mail re@FreeBSD.org.

Show stopper defects for 5.3-RELEASE

 +------------------------------------------------------------------------+
 |     Issue      |  Status  | Responsible  |         Description         |
 |----------------+----------+--------------+-----------------------------|
 |                |          |              | The kernel random number    |
 |                |          |              | generator requires either   |
 |                |          |              | the yarrow subsystem to     |
 |                |          |              | start or the user to tap on |
 | /dev/random    |          |              | the keyboard before it will |
 | stalls single  |          |              | deliver data to             |
 | user and       | Unknown  | Mark Murray  | /dev/random. This results   |
 | sysinstall     |          |              | in confusing behavior and   |
 |                |          |              | strange messages when in    |
 |                |          |              | single user mode, and makes |
 |                |          |              | sysinstall stall.           |
 |                |          |              | Non-blocking behavior must  |
 |                |          |              | be restored for 5.3.        |
 |----------------+----------+--------------+-----------------------------|
 |                |          |              | The current gcc snapshot    |
 |                |          |              | includes regressions in     |
 |                |          |              | alignment of floating point |
 |                |          |              | arguments, resulting in a   |
 | gcc 3.3        |          |              | substantial performance     |
 | floating point | Not done |              | degradation. Newer gcc      |
 | alignment      |          |              | 3.3.3 snapshots fix this,   |
 | regression     |          |              | and must be imported before |
 |                |          |              | 5.3-RELEASE. If gcc-3.4 is  |
 |                |          |              | imported instead, it must   |
 |                |          |              | be checked for this         |
 |                |          |              | regression.                 |
 |----------------+----------+--------------+-----------------------------|
 |                |          |              | Recent re-introduction of   |
 |                |          |              | PREEMPTION has resulted in  |
 |                |          |              | reports of frequent hangs.  |
 |                |          |              | This may be a combination   |
 | PREEMPTION     |          |              | of bugs in scheduling and   |
 | triggers       | Not done | John Baldwin | context switching, as well  |
 | frequent hangs |          |              | as existing bugs triggered  |
 |                |          |              | by preemption. These        |
 |                |          |              | problems must be corrected  |
 |                |          |              | for 5.3-RELEASE (and        |
 |                |          |              | ideally long before).       |
 +------------------------------------------------------------------------+

Required features for 5.3-RELEASE

 +------------------------------------------------------------------------+
 |     Issue      |   Status    | Responsible |      Description      |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | GCC 3.4 is needed to  |   |
 |                |             |             | support TLS on all    |   |
 |                |             |             | our our Tier-1        |   |
 | GCC 3.4 for    |             | Alexander   | platforms. It also is |   |
 | all platforms  | In progress | Kabaev      | likely to be better   |   |
 |                |             |             | maintained by the FSF |   |
 |                |             |             | during the lifespan   |   |
 |                |             |             | on 5.x than GCC 3.3   |   |
 |                |             |             | is.                   |   |
 |----------------+-------------+-------------+-----------------------|   |
 | GDB 6.1 kernel |             |             | GDB 6.1.1 import does |   |
 | debugging      | In progress | Marcel      | not include FreeBSD   |   |
 | support        |             | Moolenaar   | kernel debugging      |   |
 |                |             |             | support.              |   |
 |----------------+-------------+-------------+-----------------------|   |
 | BIND9 import   |             |             | BIND9 must be         |   |
 | into 5-CURRENT | In progress | Doug Barton | imported for          |   |
 |                |             |             | 5.3-RELEASE.          |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | Kernel bits           |   |
 | KSE support    |             |             | implemented, userland |   |
 | for sparc64    | --          | --          | not implemented.      |   |
 |                |             |             | Required for          |   |
 |                |             |             | 5.3-RELEASE.          |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | Significant parts of  |   |
 |                |             |             | the network stack     |   |
 |                |             |             | (especially IPv4,     |   |
 |                |             |             | UNIX domain IPC, and  |   |
 |                |             |             | sockets) now have     |   |
 |                |             |             | fine-grained locking  |   |
 |                |             |             | of their data         |   |
 |                |             |             | structures. It's      |   |
 |                |             |             | possible to run many  |   |
 |                |             |             | common network        |   |
 |                |             |             | subsystems and        |   |
 |                |             |             | services without the  |   |
 | Fine-grained   |             |             | Giant lock. However,  |   |
 | network stack  | In progress | Robert      | a number of device    |   |
 | locking        |             | Watson      | drivers and less      |   |
 | without Giant  |             |             | mainstream network    |   |
 |                |             |             | subsystems are        |   |
 |                |             |             | currently not MPSAFE. |   |
 |                |             |             | By 5.3-RELEASE, it is |   |
 |                |             |             | necessary to have the |   |
 |                |             |             | vast majority of      |   |
 |                |             |             | network code running  |   |
 |                |             |             | without Giant,        |   |
 |                |             |             | including sockets,    |   |
 |                |             |             | permitting complete   |   |
 |                |             |             | local<->remote        |   |
 |                |             |             | delivery without      |   |
 |                |             |             | grabbing Giant.       |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | KLDs work when loaded |   |
 |                |             |             | from userland, but    |   |
 |                |             | David       | not from the loader.  |   |
 | kld support    | In progress | O'Brien     | kldxref might also    |   |
 | for amd64      |             | Peter Wemm  | need work. Required   |   |
 |                |             |             | for amd64 to be       |   |
 |                |             |             | promoted to tier-1    |   |
 |                |             |             | status.               |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | With improved support |   |
 |                |             |             | for threading         |   |
 |                |             |             | primitives, support   |   |
 |                |             |             | is now required to    |   |
 | GDB thread     |             | David       | ease debugging of     |   |
 | support        | In progress | Xu,Marcel   | threaded              |   |
 |                |             | Moolenaar   | applications.         |   |
 |                |             |             | Ideally, this support |   |
 |                |             |             | will work for both    |   |
 |                |             |             | libthr and libkse     |   |
 |                |             |             | threading models.     |   |
 |----------------+-------------+-------------+-----------------------|   |
 |                |             |             | Currently, two        |   |
 |                |             |             | schedulers are        |   |
 |                |             |             | present: SCHED_ULE    |   |
 |                |             |             | (default), an         |   |
 |                |             |             | SMP-optimized         |   |
 |                |             |             | scheduler created as  |   |
 |                |             |             | part of SMPng, and    |   |
 |                |             |             | SCHED_4BSD, an        |   |
 |                |             |             | SMP-adapted version   |   |
 |                |             |             | of the original 4BSD  |   |
 |                |             |             | scheduler. They have  |   |
 |                |             |             | quite different       |   |
 |                |             |             | performance           |   |
 |                |             |             | properties, with ULE  |   |
 |                |             |             | providing strong      |   |
 |                |             |             | interactivity         |   |
 | Scheduler      |             |             | characteristics, and  |   |
 | cleanup and    | In progress | --          | performing quite well |   |
 | resolution     |             |             | in a number of        |   |
 |                |             |             | benchmarks, and 4BSD  |   |
 |                |             |             | showing greater       |   |
 |                |             |             | strength in IPC       |   |
 |                |             |             | intensive user space  |   |
 |                |             |             | benchmarks, such as   |   |
 |                |             |             | databases. One of     |   |
 |                |             |             | these schedulers must |   |
 |                |             |             | be the default for    |   |
 |                |             |             | 5.3, and whichever    |   |
 |                |             |             | one it is, it         |   |
 |                |             |             | requires careful      |   |
 |                |             |             | measurement,          |   |
 |                |             |             | analysis, and         |   |
 |                |             |             | optimization before   |   |
 |                |             |             | the release in order  |   |
 |                |             |             | to address its        |   |
 |                |             |             | defficiences.         |   |
 |----------------+-------------+-------------+-----------------------+---|
 |                |             |             | There have been       |   |
 |                |             |             | several reports that  |   |
 |                |             |             | growfs(8) works       |   |
 |                |             |             | improperly with large |   |
 | Reports of     |             |             | disk sizes, and other |   |
 | UFS2 "large    | In progress | Scott Long  | size-related nits in  | > |
 | disk" problems |             |             | the current disk and  |   |
 |                |             |             | label management tool |   |
 |                |             |             | set. These must be    |   |
 |                |             |             | resolved for          |   |
 |                |             |             | 5.3-RELEASE.          |   |
 +------------------------------------------------------------------------+

Desired features for 5.3-RELEASE

 +------------------------------------------------------------------------+
 |      Issue      |   Status    |  Responsible   |      Description      |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | All platforms but     |
 |                 |             |                | IA64 have             |
 |                 |             |                | modifications to      |
 |                 |             |                | support               |
 |                 |             |                | /libexec/ld.so in the |
 | Completed       |             |                | gcc base source tree; |
 | compiler        |             | Alexander      | changes for all       |
 | support for     | --          | Kabaev and     | FreeBSD platforms     |
 | dynamic root    |             | David O'Brien  | have been merged back |
 |                 |             |                | into the FSF 3.4      |
 |                 |             |                | tree. They should be  |
 |                 |             |                | brought into FreeBSD  |
 |                 |             |                | on the vendor branch  |
 |                 |             |                | with a 3.4 import for |
 |                 |             |                | 5.3-RELEASE.          |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Almost all process    |
 |                 |             |                | debugging tools have  |
 |                 |             |                | been updated to use   |
 |                 |             |                | non-procfs kernel     |
 |                 |             |                | primitives, with the  |
 |                 |             |                | exception of          |
 |                 |             |                | truss(1). As procfs   |
 |                 |             |                | is considered         |
 |                 |             |                | deprecated due to its |
 |                 |             |                | inherent security     |
 | truss support   |             |                | risks, it is highly   |
 | for ptrace      | --          | --             | desirable to update   |
 |                 |             |                | truss to operate in a |
 |                 |             |                | post-procfs world.    |
 |                 |             |                | Dag-Erling Smorgrav   |
 |                 |             |                | had prototype         |
 |                 |             |                | patches;              |
 |                 |             |                | Robert Drehmel is     |
 |                 |             |                | developing and        |
 |                 |             |                | testing patches now.  |
 |                 |             |                | Support for system    |
 |                 |             |                | call tracing has been |
 |                 |             |                | added to ptrace().    |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | To complete support   |
 |                 |             |                | for thread-local      |
 |                 |             |                | storage on FreeBSD,   |
 | Per-platform    |             | Doug Rabson,   | per-architecture      |
 | Thread-Local    | In progress | Marcel         | changes must be made. |
 | Storage         |             | Moolenaar      | Currently pending     |
 |                 |             |                | platforms are amd64,  |
 |                 |             |                | alpha, ia64, i386,    |
 |                 |             |                | sparc64, and powerpc. |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | FAST_IPSEC currently  |
 |                 |             |                | cannot be used        |
 |                 |             |                | directly with the     |
 |                 |             |                | KAME IPv6             |
 |                 |             |                | implementation,       |
 |                 |             |                | requiring an          |
 |                 |             |                | additional level of   |
 |                 |             |                | IP tunnel indirection |
 |                 |             |                | to protect IPv6       |
 |                 |             |                | packets when using    |
 | FAST_IPSEC and  |             |                | hardware crypto       |
 | KAME            | Not done    | --             | acceleration. This    |
 | compatibility   |             |                | issue must be         |
 |                 |             |                | resolved so that the  |
 |                 |             |                | two services may more |
 |                 |             |                | easily be used        |
 |                 |             |                | together. Among other |
 |                 |             |                | things, this will     |
 |                 |             |                | require a careful     |
 |                 |             |                | review of the         |
 |                 |             |                | handling of mbuf      |
 |                 |             |                | header copying and    |
 |                 |             |                | m_tag support in the  |
 |                 |             |                | KAME IPv6 code.       |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | A process cannot be   |
 |                 |             |                | interrupted while     |
 |                 |             |                | waiting on a lock.    |
 | rpc.lockd(8)    |             |                | Fixing this requires  |
 | stability       | --          | --             | that the RPC code be  |
 |                 |             |                | taught how to deal    |
 |                 |             |                | with lock             |
 |                 |             |                | cancellation and      |
 |                 |             |                | interruption events.  |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Kernel modules are    |
 |                 |             |                | currently built       |
 |                 |             |                | independently from a  |
 |                 |             |                | kernel configuration, |
 |                 |             |                | and independently     |
 |                 |             |                | from one another,     |
 |                 |             |                | resulting in          |
 |                 |             |                | substantially         |
 |                 |             |                | redundant compilation |
 |                 |             |                | of objects, as well   |
 |                 |             |                | as the inability to   |
 |                 |             |                | easily manage         |
 |                 |             |                | compile-time options  |
 |                 |             |                | for kernel objects    |
 | Revised kld     |             |                | (such as MAC, PAE,    |
 | build           | Not done    | Peter Wemm     | etc) that may require |
 | infrastructure  |             |                | conditional           |
 |                 |             |                | compilation in the    |
 |                 |             |                | kernel modules. In    |
 |                 |             |                | order to improve      |
 |                 |             |                | build performance and |
 |                 |             |                | better support        |
 |                 |             |                | options of this sort, |
 |                 |             |                | the KLD build         |
 |                 |             |                | infrastructure needs  |
 |                 |             |                | to be revamped. Peter |
 |                 |             |                | Wemm has done some    |
 |                 |             |                | initial prototyping,  |
 |                 |             |                | and should be         |
 |                 |             |                | contacted before      |
 |                 |             |                | starting on this      |
 |                 |             |                | work.                 |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Apple's Darwin        |
 |                 |             |                | operating system has  |
 |                 |             |                | fairly extensive      |
 | Merge of Darwin |             |                | improvements to       |
 | msdosfs, other  | Not done    | --             | msdosfs and other     |
 | fixes           |             |                | kernel services;      |
 |                 |             |                | these fixes must be   |
 |                 |             |                | reviewed and merged   |
 |                 |             |                | to the FreeBSD tree.  |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Truss appears to      |
 |                 |             |                | contain a race        |
 |                 |             |                | condition during the  |
 |                 |             |                | start-up of           |
 |                 |             |                | debugging, which can  |
 |                 |             |                | result in truss       |
 |                 |             |                | failing to attach to  |
 |                 |             |                | the process before it |
 |                 |             |                | exits. The symptom is |
 |                 |             |                | that truss reports    |
 |                 |             |                | that it cannot open   |
 |                 |             |                | the procfs node       |
 |                 |             |                | supporting the        |
 |                 |             |                | process being         |
 |                 |             |                | debugged. A bug also  |
 | Race conditions | Errata      |                | appears to exist      |
 | in truss        | candidate   | Robert Drehmel | where in truss will   |
 |                 |             |                | hang if execve()      |
 |                 |             |                | returns ENOENT. A     |
 |                 |             |                | further race appears  |
 |                 |             |                | to exist in which     |
 |                 |             |                | truss will return     |
 |                 |             |                | "PIOCWAIT:            |
 |                 |             |                | Input/output error"   |
 |                 |             |                | occasionally on       |
 |                 |             |                | startup. The fix for  |
 |                 |             |                | this sufficiently     |
 |                 |             |                | changes process       |
 |                 |             |                | execution handling    |
 |                 |             |                | that we will defer    |
 |                 |             |                | the fix to post-5.0   |
 |                 |             |                | and consider this     |
 |                 |             |                | errata.               |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Many systems          |
 |                 |             |                | supporting POSIX.1e   |
 |                 |             |                | ACLs permit a minor   |
 |                 |             |                | violation to that     |
 |                 |             |                | specification, in     |
 |                 |             |                | which the ACL_MASK    |
 | ACL_MASK        |             |                | entry overrides the   |
 | override of     | Not done    | Robert Watson  | umask, rather than    |
 | umask support   |             |                | being intersected     |
 | in UFS          |             |                | with it. The          |
 |                 |             |                | resulting semantics   |
 |                 |             |                | can be useful in      |
 |                 |             |                | group-oriented        |
 |                 |             |                | environments, and as  |
 |                 |             |                | such would be very    |
 |                 |             |                | helpful on FreeBSD.   |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | The LOR reported in   |
 |                 |             |                | PR kern/55175 needs   |
 | filedesc LOR    | Not done    | --             | to be fixed. Filedesc |
 |                 |             |                | locking needs to be   |
 |                 |             |                | heavily reviewed in   |
 |                 |             |                | general.              |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | Currently, MAC        |
 |                 |             |                | protections are       |
 |                 |             |                | enforced only on      |
 |                 |             |                | locally originated    |
 |                 |             |                | file system           |
 |                 |             |                | operations (VOPs),    |
 |                 |             |                | and not on RPCs       |
 |                 |             |                | generated via the NFS |
 |                 |             |                | server. Improvements  |
 | MAC support for | Not done    | Robert Watson  | in NFS server         |
 | NFS Server      |             |                | credential handling   |
 |                 |             |                | are required to       |
 |                 |             |                | correct this problem, |
 |                 |             |                | as well as the        |
 |                 |             |                | introduction of new   |
 |                 |             |                | entry points to       |
 |                 |             |                | properly label NFS    |
 |                 |             |                | credentials and       |
 |                 |             |                | perform enforcement   |
 |                 |             |                | properly.             |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | All PCI drivers must  |
 |                 |             |                | use busdma for DMA;   |
 | busdma in all   |             |                | no use of vtophys()   |
 | PCI drivers     | In progress | --             | will be permitted for |
 |                 |             |                | any recent device     |
 |                 |             |                | driver. ISA drivers   |
 |                 |             |                | may be exempt.        |
 |-----------------+-------------+----------------+-----------------------|
 | KSE support for |             | Marcel         | Userland bits         |
 | alpha           | In progress | Moolenaar      | implemented, kernel   |
 |                 |             |                | bits not implemented. |
 |-----------------+-------------+----------------+-----------------------|
 |                 |             |                | For kernel API/ABI    |
 |                 |             |                | compatibility         |
 |                 |             |                | reasons, it would be  |
 | CAM locking     | In progress | Scott Long     | desirable to have the |
 |                 |             |                | CAM locking strategy  |
 |                 |             |                | determined and        |
 |                 |             |                | loosely implemented   |
 |                 |             |                | for 5.3.              |
 +------------------------------------------------------------------------+

Documentation items that must be resolved for 5.3

 +------------------------------------------------------------------------+
 |       Issue       |   Status    | Responsible |      Description       |
 |-------------------+-------------+-------------+------------------------|
 |                   |             |             | The installation       |
 |                   |             |             | documentation doesn't  |
 |                   |             |             | take into account the  |
 | i386 Floppy       | Not done    | --          | new floppy images      |
 | Installation Docs |             |             | (with a full kernel    |
 |                   |             |             | split across multiple  |
 |                   |             |             | disks). This should be |
 |                   |             |             | updated.               |
 |-------------------+-------------+-------------+------------------------|
 |                   |             |             | Finish removing        |
 |                   |             |             | mention of individual  |
 |                   |             |             | devices in the         |
 | Finish hardware   |             |             | hardware notes;        |
 | notes trimming    | In progress | --          | hardware notes         |
 |                   |             |             | listings should refer  |
 |                   |             |             | to device listings in  |
 |                   |             |             | individual manual      |
 |                   |             |             | pages.                 |
 +------------------------------------------------------------------------+

Testing focuses for 5.3-RELEASE

 +------------------------------------------------------------------------+
 |      Issue      |    Status     |  Responsible  |     Description      |
 |-----------------+---------------+---------------+----------------------|
 |                 |               |               | SCHED_ULE provides   |
 |                 |               |               | better               |
 |                 |               |               | interactivity,       |
 | SCHED_ULE as    |               |               | higher performance,  |
 | the default     | Needs testing | Jeff Roberson | and the ability to   |
 | scheduler       |               |               | support pinning and  |
 |                 |               |               | affinity. Basic HTT  |
 |                 |               |               | scheduling policies  |
 |                 |               |               | should be in place   |
 |                 |               |               | for 5.3 also.        |
 |-----------------+---------------+---------------+----------------------|
 |                 |               |               | Attempts to use      |
 |                 |               |               | make(1) with KQueues |
 |                 |               |               | appears to result in |
 |                 |               |               | a kernel hang under  |
 |                 |               |               | "heavy load". It     |
 |                 |               |               | would be desirable   |
 |                 |               |               | to fix this both     |
 |                 |               |               | from the perspective |
 |                 |               |               | of building FreeBSD  |
 | make            |               |               | quickly as a         |
 | -DUSE_KQUEUE    |               | Brian         | developer, but also  |
 | causes lockup   | Needs testing | Feldman,      | because it's an      |
 | with buildworld |               | John-Mark     | instability that     |
 | -jBIGNUM        |               | Gurney        | could show up under  |
 |                 |               |               | other high load and  |
 |                 |               |               | heavy use of         |
 |                 |               |               | KQueues. See PR      |
 |                 |               |               | kern/57945 for a     |
 |                 |               |               | proposed patch and   |
 |                 |               |               | details. This appear |
 |                 |               |               | to be the product of |
 |                 |               |               | a locking problem,   |
 |                 |               |               | and must be fixed    |
 |                 |               |               | for 5.3.             |
 |-----------------+---------------+---------------+----------------------|
 |                 |               |               | KSE has matured to   |
 |                 |               |               | the point of being   |
 |                 |               |               | more stable and      |
 |                 |               |               | POSIX-compliant than |
 |                 |               |               | the traditional      |
 |                 |               |               | libc_r. All Tier-1   |
 |                 |               |               | platforms MUST have  |
 | KSE as the      |               | David Xu,     | stable KSE support   |
 | default threads | Needs testing | Daniel        | for 5.3 in order to  |
 | library         |               | Eischen       | support a consistent |
 |                 |               |               | transition.          |
 |                 |               |               | Additionally, all    |
 |                 |               |               | ports that depend on |
 |                 |               |               | the pthreads API     |
 |                 |               |               | must be modified to  |
 |                 |               |               | properly detect and  |
 |                 |               |               | support the default  |
 |                 |               |               | threading library.   |
 |-----------------+---------------+---------------+----------------------|
 |                 |               |               | Binutils needs       |
 | Updated         |               |               | updating in order to |
 | binutils for    | Needs testing | David O'Brien | support new          |
 | all platforms   |               |               | platforms, newer GDB |
 |                 |               |               | versions, and Thread |
 |                 |               |               | Local Storage.       |
 +------------------------------------------------------------------------+

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

  home   |   contact   |   legal   |   (c) 1995-2004 The FreeBSD Project.
  All rights reserved.
  Last modified: 2004/07/15 13:26:38

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

Message: 9
Date: Thu, 15 Jul 2004 06:55:49 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
Subject: Re: hm, how to recover from a fscked-up device.hints?
To: Wilko Bulte <wb@freebie.xs4all.nl>
Cc: current@freebsd.org
Message-ID: <20040715135549.GA633@dhcp50.pn.xcllnt.net>
Content-Type: text/plain; charset=us-ascii

On Wed, Jul 14, 2004 at 10:36:42PM +0200, Wilko Bulte wrote:
> I just created myself an interesting challenge:
> 
>  - I basically replaced my /boot/device.hints with a nonsensical one (don't

>    ask), it is not a device.hints file at all.
> 
> How does one recover from that?  Booting kernel.old does not fix it for
> obvious reasons..

The device hints show up as environment variables in the loader (use
show). You can remove the ones that conflict (use unset) and add the
ones that are missing (use set).

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

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

Message: 10
Date: Thu, 15 Jul 2004 09:38:26 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: CVSUP and 5.2.1 RELEASE
To: freebsd-current@freebsd.org
Message-ID: <200407150938.32553.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"

On Wednesday 2004-07-14 06:23 pm, Garance A Drosihn wrote:

> You might want to build a jail, for instance, which *looks* like it is
> FreeBSD 3.x to the user, even though your machine is really running the
> kernel from FreeBSD 4.10.  This is very useful for some kinds of testing,
> for instance.  (although for testing, this is usually done as a plain
> 'chroot' environment, and not a full-blown jail...).

Seems reasonable enough.  Thanks for the answer!
-- 
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/20040715/
5c7695ef/attachment-0001.bin

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

Message: 11
Date: Thu, 15 Jul 2004 17:42:44 +0200
From: Palle Girgensohn <girgen@pingpong.net>
Subject: parallel port *slow*
To: current@freebsd.org
Message-ID: <2A1A414BD992B32464CA6FF3@palle.girgensohn.se>
Content-Type: text/plain; charset=us-ascii; format=flowed

Hi!


For a while now my parallel port (with printer hooked up) has been *really 
SLOW*. Takes several minutes to print a single very simple page.

Any idea how to debug or what to try/fix?

All I see in the log is:

Jul 15 17:28:50 palle kernel: stray irq7

$ dmesg | grep "irq 7"
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0

and

relevant dmesg lines are:
..
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
Timecounter "TSC" frequency 2088083711 Hz quality 800
Timecounters tick every 0.801 msec
..

uname -a
FreeBSD palle.girgensohn.se 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Mon Jul 12 
01:59:18 CEST 2004 
root@palle.girgensohn.se:/usr/obj/4/usr/5src/sys/PALLE  i386

but I think I cvs:ed it about four weeks ago, kern.osreldate: 502119


/Palle


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

Message: 12
Date: Thu, 15 Jul 2004 11:55:21 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
To: "Greg J." <xcas@cox.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715155520.GY1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 15, 2004 at 06:33:53AM -0700, Greg J. wrote:
> On Tue, 13 Jul 2004 19:56:09 -0400
> Brian Fundakowski Feldman <green@freebsd.org> 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.
> > 
> They didn't work for me.. I tried it before & after Soren's recent
> commits to ata-all.c & ata-disk.c
> I had to remove the first part of the ata-all patch because that had
> already been changed.. and removed ata-disk patch because the files were
> the same.

Have you tried not making CD drives masters for other CD drives?

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

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


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

Message: 13
Date: Thu, 15 Jul 2004 11:08:22 -0500
From: Eric Anderson <anderson@centtech.com>
Subject: ACPI degrading.. ?
To: freebsd-current@freebsd.org
Message-ID: <40F6ABF6.3000807@centtech.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Ok - On May13th, I was the happiest FreeBSD user on the planet.. All the 
ACPI stuff worked (the acpi_video stuff worked for my laptop, I had 
several 'cx_supported' modes, etc..), but then I cvsup'ed on July 8th 
(around there), and the acpi_video was broken, and no more cx modes 
(besides c1).  I backed up to 06/15 and the acpi_video magically came 
back, but still no cx modes.. 

Is there a configuration option I need to adjust now, or is it just 
broken? Is there anything I can do to help?


Eric


-- 
------------------------------------------------------------------
Eric Anderson     Sr. Systems Administrator    Centaur Technology
Talk sense to a fool and he calls you foolish.
------------------------------------------------------------------


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

Message: 14
Date: Thu, 15 Jul 2004 13:46:56 -0400 (EDT)
From: Chris Vance <cvance@chrisandkaren.net>
Subject: Re: -current mysql error
To: Harald Schmalzbauer <h@schmalzbauer.de>
Cc: freebsd-current@freebsd.org
Message-ID:
	<Pine.BSF.4.44.0407151344440.51369-100000@chrisandkaren.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII


Is this the problem:
	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/62845

"update of mysql40-server causes mysqld to segfault on remote connection"

I've been following this specific issue and don't think it's fixed yet.
If you are having exactly these symptoms, my temporary solution was to
remove libwrap from the compilation of mysql-server.

chris.

On Thu, 8 Jul 2004, Harald Schmalzbauer wrote:

> Hi all,
>
> is it possible that a -current bug causes 'mysql -h this.host.tld' to fail?

> On a 5.2.1-p6 system it's working with mysql40.
> On my -current from 26. May it fails with mysql40 and mysql41.
>
> Both run inside jails!
>
> Is it possible that it has something todo with pthread made the standard
> threading library and the port must be fixed?
>
> Thanks,
>
> -Harry
>


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

Message: 15
Date: Thu, 15 Jul 2004 11:05:31 -0700
From: "Greg J." <xcas@cox.net>
Subject: Re: Hang on boot - "ATAPI_RESET no interrupt" with DVD+RW
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715110531.726963de.xcas@cox.net>
Content-Type: text/plain; charset=US-ASCII

On Thu, 15 Jul 2004 11:55:21 -0400
Brian Fundakowski Feldman <green@freebsd.org> wrote:

> Have you tried not making CD drives masters for other CD drives?

Yeh.. I just tried that.. didn't work either. :(

I tried..
HD -> Pri Master
DVD -> Pri Slave
CDRW -> Sec Master

HD -> Pri Master
CDRW -> Pri Slave
DVD -> Sec Master

HD -> Pri Master
CDRW -> Sec Master (then tried the DVD by itself also)

It works fine with 5.2.1.. and -current from June 28th.

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

Message: 16
Date: Thu, 15 Jul 2004 14:08:54 -0400
From: Brian Fundakowski Feldman <green@FreeBSD.org>
Subject: pccbb crashes when detaching (unsafe interrupt handler)
To: current@FreeBSD.org
Message-ID: <20040715180854.GZ1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

Devices that attach to a pccbb end up getting screwed if they share
interrupt handlers with anything else and one comes in at such time
that the interrupt handler has been deallocated but not torn down.
There is no interrupt protection for the pccbb interrupt handler,
and the cleanest method I can think of is add a "don't run" count to
the real ithread interrupt handler (parent); however, this is a fair
bit of infrastructure if it's not something very useful, and in SMP,
concurrent accesses of the local interrupt handler list in pccbb do
need to be protected, not just preventing interrupt handlers.

This is what I have so far, but I'm not happy with it because it
seems like it would be so much nicer to increment a count on the
ithread's intrhand and drain any current interrupt out of the
ithread, but possibly making each interrupt a lot more expensive.

Index: pccbb.c
===================================================================
RCS file: /usr/ncvs/src/sys/dev/pccbb/pccbb.c,v
retrieving revision 1.114
diff -u -r1.114 pccbb.c
--- pccbb.c	23 Jun 2004 13:49:46 -0000	1.114
+++ pccbb.c	14 Jul 2004 21:59:49 -0000
@@ -85,6 +85,7 @@
 #include <sys/lock.h>
 #include <sys/malloc.h>
 #include <sys/mutex.h>
+#include <sys/sx.h>
 #include <sys/sysctl.h>
 #include <sys/kthread.h>
 #include <sys/bus.h>
@@ -696,6 +697,7 @@
 	parent = device_get_parent(brdev);
 	mtx_init(&sc->mtx, device_get_nameunit(brdev), "cbb", MTX_DEF);
 	cv_init(&sc->cv, "cbb cv");
+	sx_init(&sc->intrsx, "cbb intr sx");
 	sc->chipset = cbb_chipset(pci_get_devid(brdev), NULL);
 	sc->dev = brdev;
 	sc->cbdev = NULL;
@@ -715,6 +717,7 @@
 		device_printf(brdev, "Could not map register memory\n");
 		mtx_destroy(&sc->mtx);
 		cv_destroy(&sc->cv);
+		sx_destroy(&sc->intrsx);
 		return (ENOMEM);
 	} else {
 		DEVPRINTF((brdev, "Found memory at %08lx\n",
@@ -813,6 +816,7 @@
 	}
 	mtx_destroy(&sc->mtx);
 	cv_destroy(&sc->cv);
+	sx_destroy(&sc->intrsx);
 	return (ENOMEM);
 }
 
@@ -852,6 +856,7 @@
 	    sc->base_res);
 	mtx_destroy(&sc->mtx);
 	cv_destroy(&sc->cv);
+	sx_destroy(&sc->intrsx);
 	return (0);
 }
 
@@ -903,7 +908,9 @@
 	ih->intr = intr;
 	ih->arg = arg;
 	ih->flags = flags & INTR_MPSAFE;
+	sx_xlock(&sc->intrsx);
 	STAILQ_INSERT_TAIL(&sc->intr_handlers, ih, entries);
+	sx_xunlock(&sc->intrsx);
 	cbb_enable_func_intr(sc);
 	/*
 	 * XXX need to turn on ISA interrupts, if we ever support them, but
@@ -921,7 +928,9 @@
 
 	/* XXX Need to do different things for ISA interrupts. */
 	ih = (struct cbb_intrhand *) cookie;
+	sx_xlock(&sc->intrsx);
 	STAILQ_REMOVE(&sc->intr_handlers, ih, cbb_intrhand, entries);
+	sx_xunlock(&sc->intrsx);
 	free(ih, M_DEVBUF);
 	return (0);
 }
@@ -1147,13 +1156,28 @@
 	 * If the card is OK, call all the interrupt handlers.
  	 */
 	if (sc->flags & CBB_CARD_OK) {
+		int needgiant = 0;
+
+		sx_slock(&sc->intrsx);
 		STAILQ_FOREACH(ih, &sc->intr_handlers, entries) {
-			if ((ih->flags & INTR_MPSAFE) == 0)
-				mtx_lock(&Giant);
-			(*ih->intr)(ih->arg);
-			if ((ih->flags & INTR_MPSAFE) == 0)
-				mtx_unlock(&Giant);
+			if ((ih->flags & INTR_MPSAFE) == 0) {
+				needgiant = 1;
+				break;
+			}
+		}
+		if (!needgiant) {
+			STAILQ_FOREACH(ih, &sc->intr_handlers, entries)
+				(*ih->intr)(ih->arg);
+			sx_sunlock(&sc->intrsx);
+			return;
 		}
+		sx_sunlock(&sc->intrsx);
+		mtx_lock(&Giant);
+		sx_slock(&sc->intrsx);
+		STAILQ_FOREACH(ih, &sc->intr_handlers, entries)
+			(*ih->intr)(ih->arg);
+		sx_sunlock(&sc->intrsx);
+		mtx_unlock(&Giant);
 	}
 }
 
Index: pccbbvar.h
===================================================================
RCS file: /usr/ncvs/src/sys/dev/pccbb/pccbbvar.h,v
retrieving revision 1.20
diff -u -r1.20 pccbbvar.h
--- pccbbvar.h	21 May 2004 06:10:13 -0000	1.20
+++ pccbbvar.h	14 Jul 2004 21:58:22 -0000
@@ -65,6 +65,7 @@
 	u_int8_t	subbus;
 	struct mtx	mtx;
 	struct cv	cv;
+	struct sx	intrsx;
 	u_int32_t	flags;
 #define CBB_CARD_OK		0x08000000
 #define	CBB_16BIT_CARD		0x20000000


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

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


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

Message: 17
Date: Thu, 15 Jul 2004 19:00:18 +0100
From: Antony T Curtis <antony.t.curtis@ntlworld.com>
Subject: Re: parallel port *slow*
To: Palle Girgensohn <girgen@pingpong.net>
Cc: current@freebsd.org
Message-ID: <1089914418.54518.7.camel@pcgem.rdg.cyberkinetica.com>
Content-Type: text/plain

On Thu, 2004-07-15 at 16:42, Palle Girgensohn wrote:
> Hi!
> 
> 
> For a while now my parallel port (with printer hooked up) has been *really 

> SLOW*. Takes several minutes to print a single very simple page.
> 
> Any idea how to debug or what to try/fix?
> 
> All I see in the log is:

<snip>

> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> ppc0: FIFO with 16/16/16 bytes threshold

if you do a "man ppc" there are flags settable on the ppc device.
If you set the flags so that it is in ECP mode, it will be much faster.
Even EPP mode works faster. 

IIRC Compatible mode uses an interrupt for every character. EPP can
handle a burst of characters while ECP uses DMA so can transfer a large
block per interrupt.

-- 
Antony T Curtis <antony.t.curtis@ntlworld.com>


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

Message: 18
Date: Thu, 15 Jul 2004 20:34:15 +0200
From: Daniel Lang <dl@leo.org>
Subject: tuning hints for PAE
To: current@freebsd.org
Message-ID: <20040715183415.GA7804@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii

Hi,

I've re-activated PAE for our server which has now 6 GB of RAM.

Thanks to a hint from Peter and basic knowledge about KVA, I have
included

options         KVA_PAGES=768

in the kernel config. This should yield 2GB of KVA if I have
understood Peter correctly.


Now a panic has happened, I have a ddb trace:

[..]
page_alloc(a81e46e0,1000,cf6f07ab,102,a04f4cd4) at 0xa045e4a2 = page_alloc+0x1
a
slab_zalloc(a81e46e0,2,a81e4728,a81e46e0,b1de7624) at 0xa045e14b = slab_zalloc
+0x9f
uma_zone_slab(a81e46e0,2,80,46e0,a81e4728) at 0xa045f3c0 = uma_zone_slab+0xb0

uma_zalloc_bucket(a81e46e0,2) at 0xa045f5ac = uma_zalloc_bucket+0x124
uma_zalloc_arg(a81e46e0,0,2) at 0xa045f2c3 = uma_zalloc_arg+0x25f
ffs_vget(a8200c00,1823ed,2,cf6f08ec,200) at 0xa043d1be = ffs_vget+0x2ea
ffs_valloc(aa07a000,81b6,b113a280,cf6f08ec) at 0xa0426519 = ffs_valloc+0xe5
ufs_makeinode(81b6,aa07a000,cf6f0bf8,cf6f0c0c) at 0xa0449539 = ufs_makeinode+0
x59
ufs_create(cf6f0a6c,cf6f0b28,a03a515b,cf6f0a6c,678) at 0xa04461e6 = ufs_create
+0x26
ufs_vnoperate(cf6f0a6c) at 0xa0449b4f = ufs_vnoperate+0x13
vn_open_cred(cf6f0be4,cf6f0ce4,1b6,b113a280,a) at 0xa03a515b = vn_open_cred+0x
177
vn_open(cf6f0be4,cf6f0ce4,1b6,a,a0543620) at 0xa03a4fe2 = vn_open+0x1e
kern_open(b2955000,80a7911,0,20a,1b6) at 0xa039f474 = kern_open+0xd8
open(b2955000,cf6f0d14,3,105ed,292) at 0xa039f398 = open+0x18
syscall(80c002f,810002f,9f7f002f,8,283536d8) at 0xa049f6c3 = syscall+0x217
Xint0x80_syscall() at 0xa048ce0f = Xint0x80_syscall+0x1f
--- syscall (5, FreeBSD ELF32, open), eip = 0x282ce093, esp = 0x9f7fe30c, ebp 
= 0x9f7fe338 ---
[..]

trace may be truncated, I could not save everything including
the panic message itself, alas. 

I don't have a crashdump (the dump-device was less than 6 GB, I have
fixed this meanwhile, but it reminds me of Solaris which can dump
only kernel and curproc pages if requested), but I suspect this panic
is due to kernel-address space exhaustion. So maybe the KVA_PAGES
was still wrong.

I also get the following message:

kern.ipc.maxpipekva exceeded; see tuning(7)

The hint is rather useless, since the tuning manpage does
not cover a lot of aspects, including this parameter.

Hmmm, I think I used to have set

kern.maxusers=768 (I have cleared this now, to utilize the autotuning
of this parameter). Maybe this was a problem as well.

In the past I used to have also set kern.ipc.nmbcluster, but IIRC
this is now tuned automatically as well.

I have bumped kern.ipc.somaxconn to 1024 of course.

Anything other parameters I should look out for tuning?
If there is some more comprehensive documentation than tuning(7)
and the Handbook section (yes, I have read it), please let me know.

Cheers,
 Daniel
-- 
IRCnet: Mr-Spock         - ceterum censeo Microsoftinem esse delendam -  
 Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/

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

_______________________________________________
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 33
***********************************************


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


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