Message-ID: <4DWdkU$CO0@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 71, Issue 18
Date: Sat, 07 Aug 2004 05:25:19 +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!news-out.visi.com!news-out.octanews.net!indigo.octanews.net!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1091856318.A
Lines: 1605
Xref: 74.82.202.154 cn.bbs.comp.unix:1431


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. Re: usb palm (Bruce A. Mah)
   2. Re: usb palm (Randy Bush)
   3. Re: Portupgrade -rf pango  re: gnome without text
      (Joe Marcus Clarke)
   4. Re: usb palm (Bruce A. Mah)
   5. Re: Giant lock issue with almost -current (Robert Watson)
   6. Re: Panic on boot with today's CURRENT, ata related (Nate Lawson)
   7. Re: Postgresql locks up server - no response at all
      (Sven Willenberger)
   8. Other unit-at-a-time issues (Re: HEADS UP! boot2 problems)
      (Matthew Dillon)
   9. world broken (Stephan van Beerschoten)
  10. Re: Panic on boot with today's CURRENT, ata related
      (Radek Kozlowski)
  11. Re: Panic on boot with today's CURRENT, ata related (Nate Lawson)
  12. Re: Panic on boot with today's CURRENT, ata related
      (S?ren Schmidt)
  13. Re: Vinum status (Craig Boston)
  14. Re: Ports broken by compiler upgrade (Michael Nottebrock)
  15. Re: Panic on boot with today's CURRENT, ata related (Nate Lawson)
  16. Re: Panic on boot with today's CURRENT, ata related (Nate Lawson)
  17. Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c
      (andrew.lankford@verizon.net)
  18. Re: Other unit-at-a-time issues (Re: HEADS UP! boot2
      problems) (Tim Robbins)
  19. newfs on partition mounted read-only (Alexandre "Sunny" Kovalenko)
  20. fxp problems (Wesley Morgan)
  21. Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c (Andrew Lankford)
  22. Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c (Andrew Lankford)
  23. Re: Other unit-at-a-time issues (Re: HEADS UP! boot2
      problems) (Matthew Dillon)


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

Message: 1
Date: Fri, 06 Aug 2004 13:05:56 -0700
From: "Bruce A. Mah" <bmah@freebsd.org>
Subject: Re: usb palm
To: Randy Bush <randy@psg.com>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <1091822755.23206.39.camel@tomcat.kitchenlab.org>
Content-Type: text/plain; charset="us-ascii"

On Thu, 2004-08-05 at 22:31, Randy Bush wrote:
> i386 -curent as of yesterday
> jpilot configured for /dev/uvisor
> 
> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
> Aug  5 19:29:36 foux kernel: ucom0: init failed, TIMEOUT
> Aug  5 19:29:36 foux kernel: device_attach: ucom0 attach returned 6
> Aug  5 19:29:36 foux kernel: uhub1: port 2, set config at addr 2 failed
> Aug  5 19:29:36 foux kernel: uhub1: device problem, disabling port 2
> 
> any clues appreciated

Is this a new CURRENT or a new PalmOS device (i.e. what changed)?  What
kind of PalmOS device is it?

(I'm fairly clueless on USB issues, but green@ and I (mostly green@) had
to hack up the uvisor driver a little bit to get it to talk to my new
Clie TJ37.  So I'm just wondering if your situation might be similar to
mine.)

Bruce.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/1edc0b6d/attachment-0001.bin

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

Message: 2
Date: Fri, 6 Aug 2004 10:10:17 -1000
From: Randy Bush <randy@psg.com>
Subject: Re: usb palm
To: "Bruce A. Mah" <bmah@freebsd.org>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <16659.58793.887526.631294@roam.psg.com>
Content-Type: text/plain; charset=us-ascii

>> i386 -curent as of yesterday
>> jpilot configured for /dev/uvisor
>> 
>> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
>> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
>> Aug  5 19:29:36 foux kernel: ucom0: init failed, TIMEOUT
>> Aug  5 19:29:36 foux kernel: device_attach: ucom0 attach returned 6
>> Aug  5 19:29:36 foux kernel: uhub1: port 2, set config at addr 2 failed
>> Aug  5 19:29:36 foux kernel: uhub1: device problem, disabling port 2
> 
> Is this a new CURRENT or a new PalmOS device (i.e. what changed)?

went from null set to this.  i.e. everything changed.

> What kind of PalmOS device is it?

palm tungsten-t

randy


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

Message: 3
Date: Fri, 06 Aug 2004 16:12:07 -0400
From: Joe Marcus Clarke <marcus@marcuscom.com>
Subject: Re: Portupgrade -rf pango  re: gnome without text
To: Tony Montana <tonymontanadea@yahoo.com>
Cc: freebsd-current@freebsd.org
Message-ID: <1091823127.745.43.camel@gyros>
Content-Type: text/plain; charset="us-ascii"

On Fri, 2004-08-06 at 09:29, Tony Montana wrote:
> I did portupgrade -rf pango as suggested for fixing
> the "no text in gnome" problem. After many many hours
> of it doing its thing, i do a startx and was initialy
> happy to see text under icons and on the taskbar.
> Tought problem was solved. To my dismay i go into some
> of the desktop preferences and several of the menus
> had no text!?!?! What in the world is going on here? I
> just did a portupgrade -rf gnome2 as was partialy
> suggested prior to the pango part and hopefully this
> will correct it but now i feel snakebitten by the
> system. Any thoughts on this?

Please give concrete, explicit, examples of what you did.  Posted
screenshots may also be helpful.

Joe

> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail
> _______________________________________________
> 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"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/903d1615/attachment-0001.bin

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

Message: 4
Date: Fri, 06 Aug 2004 13:28:48 -0700
From: "Bruce A. Mah" <bmah@freebsd.org>
Subject: Re: usb palm
To: Randy Bush <randy@psg.com>
Cc: FreeBSD Current <freebsd-current@freebsd.org>
Message-ID: <1091824128.23206.52.camel@tomcat.kitchenlab.org>
Content-Type: text/plain; charset="us-ascii"

On Fri, 2004-08-06 at 13:10, Randy Bush wrote:
> >> i386 -curent as of yesterday
> >> jpilot configured for /dev/uvisor
> >> 
> >> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
> >> Aug  5 19:29:30 foux kernel: ucom0: Palm, Inc. Palm Handheld, rev 1.10/1.00, addr 2
> >> Aug  5 19:29:36 foux kernel: ucom0: init failed, TIMEOUT
> >> Aug  5 19:29:36 foux kernel: device_attach: ucom0 attach returned 6
> >> Aug  5 19:29:36 foux kernel: uhub1: port 2, set config at addr 2 failed
> >> Aug  5 19:29:36 foux kernel: uhub1: device problem, disabling port 2
> > 
> > Is this a new CURRENT or a new PalmOS device (i.e. what changed)?
> 
> went from null set to this.  i.e. everything changed.

OK.  I'll try to give you a few things I learned while trying to get my
Clie to sync (this *does* work, after a fashion):

If you're coming from a sync-over-serial situation (or if you haven't
tried this at all) it might be natural to treat /dev/uvisor like a
serial port over which you can do a sync.  For some set of PalmOS
devices (which includes my Sony TJ37) this doesn't work.  I had to do a
whole bunch of Googling to figure out that *if* you're in this
situation, you need to make the PalmOS device speak PPP over USB to your
FreeBSD box.  Then you configure jpilot to sync with "net:any" and the
sync happens over a TCP connection over the PPP link.  Grenville
Armitage has a nice writeup of this here:

http://gja.space4me.com/things/Palm_TungstenC_FreeBSD.html

Compounding this problem for me was that the uvisor driver somehow
couldn't find the right attachment point (port?) on the TJ37.  This is
the part that green@ and I did a couple of iterations on.  (He was
trying to get a Handspring Treo to work.)  This was in a thread on
current@ that started on 1 July 2004 with this email:

Message-ID:  <20040701154429.GA3543@tomcat.kitchenlab.org>

The end result was a patch to uvisor that lets me sync.  It's not
committed to the tree yet.  Not sure what green@'s plans are for this. 
I'm happy to keep it as a local mod.

> > What kind of PalmOS device is it?
> 
> palm tungsten-t

Grenville had a Tungsten-C so this might be applicable to you.


Bruce.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/3b025219/attachment-0001.bin

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

Message: 5
Date: Fri, 6 Aug 2004 16:32:18 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Giant lock issue with almost -current
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: sam@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040806163032.47180I-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Fri, 6 Aug 2004, Poul-Henning Kamp wrote:

> Transcribed by hand:
> 
> Giant not owned
> mtx_assert()
> if_start()
> ieee80211_mgmt_output()
> ieee80211_send_mgmt()
> ieee80211_newstate()
> ath_newstate()
> ieee80211_end_scan()
> ieee80211_next_scan()
> ath_next_scan()
> softclock()

Yeah, I got another report of this this morning.  The 802.11 code is
calling into the network stack from a Giant-free timeout/callout without
first acquiring Giant, and you're running the stack with Giant required
(i.e., debug.mpsafenet=0).  Exactly where to draw the "Needs Giant" line
for debug.mpsafenet=0 is a little vague; generally, it has included the
network device drivers, which suggests that ath should use
CALLOUT_MPSAFENET only if debug.mpsafenet != 0. 

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



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

Message: 6
Date: Fri, 06 Aug 2004 13:33:46 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: Radek Kozlowski <radek@raadradd.com>,	Ceri Davies
	<ceri@submonkey.net>
Cc: current@freebsd.org
Message-ID: <4113EB2A.7060401@root.org>
Content-Type: text/plain; charset="us-ascii"

I took a quick look at this ATA panic.  The exact same one occurs for 
Ceri.  A quick dissassemble shows that the testb is the check for the 
DMA flag at the very end of ata_generic_transaction().  The bug appears 
to be that this may be a PIO request (since the DMA check is outside the 
switch() statement).  The fix is to make sure it's a DMA request before 
dereferencing an element of the DMA struct.  Try the attached patch.

-Nate
-------------- next part --------------
Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.40
diff -u -r1.40 ata-lowlevel.c
--- ata-lowlevel.c	24 Jul 2004 19:03:28 -0000	1.40
+++ ata-lowlevel.c	6 Aug 2004 20:28:15 -0000
@@ -294,7 +294,7 @@
     }
 
     /* request finish here */
-    if (ch->dma->flags & ATA_DMA_ACTIVE)
+    if ((request->flags & ATA_R_DMA) && ch->dma->flags & ATA_DMA_ACTIVE)
 	ch->dma->unload(ch);
     ch->running = NULL;
     return ATA_OP_FINISHED;

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

Message: 7
Date: Fri, 06 Aug 2004 16:36:19 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: Postgresql locks up server - no response at all
To: Scott Long <scottl@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1091824579.32749.15.camel@lanshark.dmv.com>
Content-Type: text/plain

On Wed, 2004-08-04 at 17:36 -0600, Scott Long wrote:
> Sven Willenberger wrote:
> 

<snip>

> >>>
> >>>Based on this and Jeremy C.'s response it would appear that I should
> >>>either try to upgrade my 5.2.1-P8 system to -CURRENT (which is scary
> >>>because of the vinum array - root is not mounted on a vinum device, but
> >>>the data directory is - will gvinum simply read this correctly? it is a
> >>>stripe+mirror array of 4 drives) or start from scratch and go back to
> >>>4.10 (STABLE) for a while. I am assuming that the lockups I am seeing
> >>>were exacerbated by the PREEMPTION episodes of the past couple weeks? If
> >>>I choose the upgrade to -CURRENT, are there any caveats or
> >>>recommendations? (besides reading "/usr/src/UPDATING" which I do
> >>>religiously anyway)
> >>>
> >>>_______________________________________________
> >>>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"
> >>
> >>I'm a bit nervous with asking you to upgrade to -current.  PREEMPTION is
> >>practically disabled in 5.2.1 so upgrading has a low chance of fixing
> >>the problem except maybe by sheer luck.  The best action would be to
> >>get a crashdump.  If your system has an NMI button, then there are some
> >>trivial patches that will assist with this.  If not, then you might want
> >>to look at backporting the ichwd watchdog driver and letting that do a
> >>chip-assisted NMI.
> >>
> >>In any case, finding out exactly what each CPU is doing at the time of
> >>the lockup is going to be vital.  The lockups that I've been able to
> >>reproduce happen when a TAILQ in the scheduler gets corrupted and
> >>resulting in one CPU spinning on the list forever with the scheduler
> >>lock held.  All other cpus then quickly grind to a halt while they wait
> >>for the sched lock to become free, which it never does.
> >>
> > 
> > 
> > The case unfortunately does not have a button (although the mobo does
> > have an NMI header/jumper). Backporting the watchdog driver sounds
> > doable; other than downloading the sys/dev/ichwd directory from a
> > repository and adding "options ichwd" to my kernel config file, what
> > else would be needed? I am willing to try to get at least one crashdump
> > before I have to go back to a -STABLE setup or try something so I can
> > get some uptime on this box.
> > 
> 
> I believe that the ichwd driver depends on the watchdog infrastructure 
> driver that was added back in the early spring.  I'm not 100�$��<�(@ure,
> though.
> 
> Scott

The watchdog routines were incorporated into 5.2.1 as evidenced by the
NOTES for i386, however, apparently a lot has changed with those files
at the point that the ichwd driver was added. In essence, my kernel
config additions:

options         HW_WDOG
options         WATCHDOG

(note that in -CURRENT the software watchdog option is different)

added ichwd to the i386.files file and to the /usr/src/sys/modules/
Makefile.

buildkernel fails at building the ichwd module with:
syntax error in included file ichwd.h at eventhandler_tag ev_tag;

which then causes the undefined reference to ev_tag to cause the build
to fail.

for now I have sysctl machdep.hlt_logical_cpus=1 to see if this helps
any.



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

Message: 8
Date: Fri, 6 Aug 2004 13:59:29 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Other unit-at-a-time issues (Re: HEADS UP! boot2 problems)
To: Alexander Kabaev <kan@freebsd.org>
Cc: FreeBSD Current List <current@freebsd.org>
Message-ID: <200408062059.i76KxTBW026143@apollo.backplane.com>

    I tracked down one problem with the unit-at-a-time code.... it's not
    compatible with -mrtd.  Bad code is produced, specifically a missing
    pop in a call.

    After removing -mrtd the DFly boot code progressed a bit farther before
    crashing, but unfortunately it still crashed.  -fno-unit-at-a-time is 
    still required to produce a good 'boot2' boot block even when -mrtd is
    removed.

    I was able to determine that the issue is solely with boot2... the
    /boot/loader built with the (default) unit-at-a-time feature appear
    to work just fine.

    I have not tracked down the additional bad assembly being produced,
    but it is not an impossible task.  The boot2 objdump is not
    actually all that big, but the functions are reordered and I didn't
    want to spend all day tracking down the remaining bugs.

    --

    I would appreciate it if someone in FreeBSD land would submit this bug
    to the GCC folks.

						-Matt


/*
 * X.C -	demonstrate -mrtd and unit-at-a-time conflict with gcc-3.4
 *		Note the bad assembly produced (also included below)
 *
 * Tracked down by Matthew Dillon, The DragonFly Project.
 *
 * cc -v:
 *   Using built-in specs.
 *   Configured with: ./configure --prefix=/usr --host=i386-just-dragonflybsd
 *   Thread model: posix
 *   gcc version 3.4.1 20040618 [DragonFly] (propolice, prerelease)
 *
 * Compile with:

cc -elf -Os -fno-builtin -fno-stack-protector \
        -fomit-frame-pointer -mrtd \
        -ffreestanding -mpreferred-stack-boundary=2 \
        -S x.c

 */
extern void fubar(int c);
extern void v86int(void);
extern void sio_putc(int c);
extern int opts;

#define RBF_VIDEO	0x0001
#define RBF_SERIAL	0x0002

static void xputc(int);

static struct {
    int addr;
    int eax;
    int ebx;
} v86;

static inline void
putc(int c)
{
    v86.addr = 0x10;
    v86.eax = 0xe00 | (c & 0xff);
    v86.ebx = 0x7;
    v86int();
}

static void
xputc(int c)
{
    if (opts & RBF_VIDEO)   
        putc(c);
    if (opts & RBF_SERIAL)
        sio_putc(c);
}

void
fubar(int c)
{
    if (c == '\n')
	xputc('\r');
    xputc(c);
    sio_putc(c);
    putc(c);
}




	.file	"x.c"
	.version	"01.01"
gcc2_compiled.:
.text
	.p2align 2,0x90
		.type		 xputc,@function
xputc:
	pushl 1.268054e+246bx
	movl 8(1.268054e+246sp),-1.997097e+00bx
	testb $1,opts
	je .L4
	movl $16,v86
	movl 1.268054e+246bx,-1.997097e+00ax
	andl $255,1.268054e+246ax
	orb $14,0x1.736cd080deff0p+817h
	movl 1.268054e+246ax,v86+4
	movl $7,v86+8
	call v86int
.L4:
	testb $2,opts
	je .L6
	pushl 1.268054e+246bx
	call sio_putc
			<<<<<<<<<<<<<<<<<<<< MISSING POP!!!!
.L6:
	popl 1.268054e+246bx
	ret $4
.Lfe1:
		.size		 xputc,.Lfe1-xputc
	.p2align 2,0x90
.globl fubar
		.type		 fubar,@function
fubar:
	pushl 1.268054e+246bx
	movl 8(1.268054e+246sp),-1.997097e+00bx
	cmpl $10,1.268054e+246bx
	jne .L8
	pushl $13
	call xputc
.L8:
	pushl 1.268054e+246bx
	call xputc
	pushl 1.268054e+246bx
	call sio_putc
	movl $16,v86
	movzbl %bl,1.268054e+246bx
	orb $14,%bh
	movl 1.268054e+246bx,v86+4
	movl $7,v86+8
	call v86int
	popl 1.268054e+246bx
	ret $4
.Lfe2:
		.size		 fubar,.Lfe2-fubar
	.local	v86
	.comm	v86,12,4
	.ident	"GCC: (GNU) c 2.95.4 20020320 [DragonFly]"

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

Message: 9
Date: Fri, 06 Aug 2004 23:27:13 +0200
From: Stephan van Beerschoten <stephanb@whacky.net>
Subject: world broken
To: current@freebsd.org
Message-ID: <4113F7B1.6040906@whacky.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

The following has occured I believe since yesterday or the day before. I 
just cvsupped again and the problem is still there:

<...>
mkdep -f .depend -a -DCRT_BEGIN   -DIN_GCC -DHAVE_LD_EH_FRAME_HDR 
-I/usr/src/gnu/lib/csu/../../../contrib/gcc/config 
-I/usr/src/gnu/lib/csu/../../../contrib/gcc -I. 
-I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools 
/usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c
In file included from 
/usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:60:
/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/auto-host.h:4:23: 
sys/param.h: No such file or directory
/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/auto-host.h:5:24: 
sys/endian.h: No such file or directory
In file included from 
/usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:62:
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:44:20: stddef.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:45:19: float.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:76:20: stdarg.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:79:19: stdio.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:82:23: sys/types.h: 
No such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:85:19: errno.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:92:20: string.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:93:20: stdlib.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:94:20: unistd.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:97:20: limits.h: No 
such file or directory
/usr/src/gnu/lib/csu/../../../contrib/gcc/tsystem.h:100:18: time.h: No 
such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/gnu/lib/csu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


Any clue ?

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

Message: 10
Date: Sat, 7 Aug 2004 00:11:09 +0200
From: Radek Kozlowski <radek@raadradd.com>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: Nate Lawson <nate@root.org>
Cc: Ceri Davies <ceri@submonkey.net>
Message-ID: <20040806221109.GC55186@werd>
Content-Type: text/plain; charset=iso-8859-2

On Fri, Aug 06, 2004 at 01:33:46PM -0700, Nate Lawson wrote:
> I took a quick look at this ATA panic.  The exact same one occurs for 
> Ceri.  A quick dissassemble shows that the testb is the check for the 
> DMA flag at the very end of ata_generic_transaction().  The bug appears 
> to be that this may be a PIO request (since the DMA check is outside the 
> switch() statement).  The fix is to make sure it's a DMA request before 
> dereferencing an element of the DMA struct.  Try the attached patch.

I applied your changes to ata-lowlevel.c revision 1.41 manually and they
seem to solve the issue--my system now boots succesfully, thank you.

--- ata-lowlevel.c.orig Fri Aug  6 23:02:52 2004
+++ ata-lowlevel.c      Fri Aug  6 23:03:11 2004
@@ -295,7 +295,7 @@
     }
 
     /* request finish here */
-    if (ch->dma->flags & ATA_DMA_LOADED)
+    if ((request->flags & ATA_R_DMA) && ch->dma->flags & ATA_DMA_ACTIVE)
        ch->dma->unload(ch);
     return ATA_OP_FINISHED;
 }

I would also like to point out that since around the beggining of June
the ad0 here no longer boots in UDMA100 mode but uses PIO4 instead
(http://lists.freebsd.org/pipermail/freebsd-current/2004-June/029434.html).

Trying to change the transfer mode to UDMA100 using atacontrol results
in a panic. I don't know if this backtrace will be in any way useful but
here it goes:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x48
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0449391
stack pointer           = 0x10:0xd302dba0
frame pointer           = 0x10:0xd302dbd4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 4 (g_down)

(kgdb) bt
#0  doadump () at pcpu.h:159
#1  0xc04427f5 in db_fncall (dummy1=0, dummy2=0, dummy3=3999, dummy4=0xd302d9ac " `q<C0>\f")
    at /usr/src/sys/ddb/db_command.c:531
#2  0xc0442572 in db_command (last_cmdp=0xc0715724, cmd_table=0x0, aux_cmd_tablep=0xc06e2d90,
    aux_cmd_tablep_end=0xc06e2d94) at /usr/src/sys/ddb/db_command.c:349
#3  0xc044267a in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
#4  0xc0444695 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221
#5  0xc052c057 in kdb_trap (type=0, code=0, tf=0xd302db60) at /usr/src/sys/kern/subr_kdb.c:401
#6  0xc068e5c8 in trap_fatal (frame=0xd302db60, eva=0) at /usr/src/sys/i386/i386/trap.c:807
#7  0xc068e2f3 in trap_pfault (frame=0xd302db60, usermode=0, eva=72) at /usr/src/sys/i386/i386/trap.c:730
#8  0xc068de82 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1047235072, tf_esi = -1045272284, tf_ebp = -754787372, tf_isp = -754787444, tf_ebx = -1
047235072, tf_edx = 0, tf_ecx = 9167, tf_eax = -1047234904, tf_trapno = 12, tf_err = 0, tf_eip = -1069247599, tf_cs = 8, tf_eflags = 66050,
tf_esp = -1047234904, tf_ss = -805982208}) at /usr/src/sys/i386/i386/trap.c:417
#9  0xc0449391 in ata_generic_transaction (request=0xc1b26924) at /usr/src/sys/dev/ata/ata-lowlevel.c:144
#10 0xc0448379 in ata_start (ch=0xc1947600) at /usr/src/sys/dev/ata/ata-queue.c:194
#11 0xc0447f0c in ata_queue_request (request=0xc1b26924) at /usr/src/sys/dev/ata/ata-queue.c:91
#12 0xc04595d8 in ad_start (atadev=0xc19476a8) at /usr/src/sys/dev/ata/ata-disk.c:310
#13 0xc04481c8 in ata_start (ch=0xc1947600) at /usr/src/sys/dev/ata/ata-queue.c:168
#14 0xc045922e in adstrategy (bp=0xc1e5f738) at /usr/src/sys/dev/ata/ata-disk.c:229
#15 0xc04cf8f6 in g_disk_start (bp=0xc1b29e70) at /usr/src/sys/geom/geom_disk.c:277
#16 0xc04d17c0 in g_io_schedule_down (tp=0xc188f000) at /usr/src/sys/geom/geom_io.c:365
#17 0xc04d1b1e in g_down_procbody () at /usr/src/sys/geom/geom_kern.c:113
#18 0xc04f4ed0 in fork_exit (callout=0xc04d1b00 <g_down_procbody>, arg=0x0, frame=0x0)
    at /usr/src/sys/kern/kern_fork.c:819

Thanks,

-Radek

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

Message: 11
Date: Fri, 06 Aug 2004 15:31:06 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: Radek Kozlowski <radek@raadradd.com>
Cc: current@freebsd.org
Message-ID: <411406AA.3030607@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Radek Kozlowski wrote:
> On Fri, Aug 06, 2004 at 01:33:46PM -0700, Nate Lawson wrote:
> 
>>I took a quick look at this ATA panic.  The exact same one occurs for 
>>Ceri.  A quick dissassemble shows that the testb is the check for the 
>>DMA flag at the very end of ata_generic_transaction().  The bug appears 
>>to be that this may be a PIO request (since the DMA check is outside the 
>>switch() statement).  The fix is to make sure it's a DMA request before 
>>dereferencing an element of the DMA struct.  Try the attached patch.
> 
> 
> I applied your changes to ata-lowlevel.c revision 1.41 manually and they
> seem to solve the issue--my system now boots succesfully, thank you.

You're welcome.  I committed the fix.

> I would also like to point out that since around the beggining of June
> the ad0 here no longer boots in UDMA100 mode but uses PIO4 instead
> (http://lists.freebsd.org/pipermail/freebsd-current/2004-June/029434.html).
> 
> Trying to change the transfer mode to UDMA100 using atacontrol results
> in a panic. I don't know if this backtrace will be in any way useful but
> here it goes:
> 
> Fatal trap 12: page fault while in kernel mode
> fault virtual address   = 0x48
> fault code              = supervisor read, page not present
> instruction pointer     = 0x8:0xc0449391
> stack pointer           = 0x10:0xd302dba0
> frame pointer           = 0x10:0xd302dbd4
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 4 (g_down)
> 
> (kgdb) bt
> #0  doadump () at pcpu.h:159
> #1  0xc04427f5 in db_fncall (dummy1=0, dummy2=0, dummy3=3999, dummy4=0xd302d9ac " `q<C0>\f")
>     at /usr/src/sys/ddb/db_command.c:531
> #2  0xc0442572 in db_command (last_cmdp=0xc0715724, cmd_table=0x0, aux_cmd_tablep=0xc06e2d90,
>     aux_cmd_tablep_end=0xc06e2d94) at /usr/src/sys/ddb/db_command.c:349
> #3  0xc044267a in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
> #4  0xc0444695 in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221
> #5  0xc052c057 in kdb_trap (type=0, code=0, tf=0xd302db60) at /usr/src/sys/kern/subr_kdb.c:401
> #6  0xc068e5c8 in trap_fatal (frame=0xd302db60, eva=0) at /usr/src/sys/i386/i386/trap.c:807
> #7  0xc068e2f3 in trap_pfault (frame=0xd302db60, usermode=0, eva=72) at /usr/src/sys/i386/i386/trap.c:730
> #8  0xc068de82 in trap (frame=
>       {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1047235072, tf_esi = -1045272284, tf_ebp = -754787372, tf_isp = -754787444, tf_ebx = -1
> 047235072, tf_edx = 0, tf_ecx = 9167, tf_eax = -1047234904, tf_trapno = 12, tf_err = 0, tf_eip = -1069247599, tf_cs = 8, tf_eflags = 66050,
> tf_esp = -1047234904, tf_ss = -805982208}) at /usr/src/sys/i386/i386/trap.c:417
> #9  0xc0449391 in ata_generic_transaction (request=0xc1b26924) at /usr/src/sys/dev/ata/ata-lowlevel.c:144
> #10 0xc0448379 in ata_start (ch=0xc1947600) at /usr/src/sys/dev/ata/ata-queue.c:194
> #11 0xc0447f0c in ata_queue_request (request=0xc1b26924) at /usr/src/sys/dev/ata/ata-queue.c:91
> #12 0xc04595d8 in ad_start (atadev=0xc19476a8) at /usr/src/sys/dev/ata/ata-disk.c:310
> #13 0xc04481c8 in ata_start (ch=0xc1947600) at /usr/src/sys/dev/ata/ata-queue.c:168
> #14 0xc045922e in adstrategy (bp=0xc1e5f738) at /usr/src/sys/dev/ata/ata-disk.c:229
> #15 0xc04cf8f6 in g_disk_start (bp=0xc1b29e70) at /usr/src/sys/geom/geom_disk.c:277
> #16 0xc04d17c0 in g_io_schedule_down (tp=0xc188f000) at /usr/src/sys/geom/geom_io.c:365
> #17 0xc04d1b1e in g_down_procbody () at /usr/src/sys/geom/geom_kern.c:113
> #18 0xc04f4ed0 in fork_exit (callout=0xc04d1b00 <g_down_procbody>, arg=0x0, frame=0x0)
>     at /usr/src/sys/kern/kern_fork.c:819

It looks like the DMA object for the channel is not being initialized. 
However, that is in another path (this backtrace is just a symptom 
triggered by the first DMA access to the drive).  Someone who knows more 
about the control path for going from PIO -> DMA mode will have to look 
into this.

-Nate

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

Message: 12
Date: Sat, 07 Aug 2004 00:33:06 +0200
From: S?ren Schmidt<sos@DeepCore.dk>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: Nate Lawson <nate@root.org>
Cc: Ceri Davies <ceri@submonkey.net>
Message-ID: <41140722.10807@DeepCore.dk>
Content-Type: text/plain; charset=us-ascii; format=flowed

Nate Lawson wrote:
> I took a quick look at this ATA panic.  The exact same one occurs for 
> Ceri.  A quick dissassemble shows that the testb is the check for the 
> DMA flag at the very end of ata_generic_transaction().  The bug appears 
> to be that this may be a PIO request (since the DMA check is outside the 
> switch() statement).  The fix is to make sure it's a DMA request before 
> dereferencing an element of the DMA struct.  Try the attached patch.

No, the fix is to make sure there is a valid ch->dma pointer, the below 
is the correct fix.

--- ata-lowlevel.c      5 Aug 2004 21:13:41 -0000       1.41
+++ ata-lowlevel.c      6 Aug 2004 22:31:16 -0000
@@ -295,7 +295,7 @@
      }

      /* request finish here */
-    if (ch->dma->flags & ATA_DMA_LOADED)
+    if (ch->dma && ch->dma->flags & ATA_DMA_LOADED)
         ch->dma->unload(ch);
      return ATA_OP_FINISHED;
  }

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

Message: 13
Date: Fri, 6 Aug 2004 17:34:03 -0500
From: Craig Boston <craig@xfoil.gank.org>
Subject: Re: Vinum status
To: "Axel S. Gruner" <liste@encephalon.de>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040806223403.GA33104@nowhere>
Content-Type: text/plain; charset=us-ascii

On Fri, Aug 06, 2004 at 09:13:56PM +0200, Axel S. Gruner wrote:
> But, i ihave a question about that. I cant find a howto which describes 
> to install FreeBSD+gvinum to use the / partition.
> So, how did you do that?

I can't speak for anyone else who runs it, but the couple of times I've
built root-on-vinum systems I've found the most direct way is just doing
a manual install.

Generally, that consists of booting off of a live CD or something
similar (netboot is a possibility), partitioning the disks, setting up
vinum, and unpacking the distributions by hand.  It's not as hard as it
sounds, there are install.sh files that automate the unpacking part, and
if you're building a root-on-vinum system then knowledge of using fdisk
and bsdlabel by hand is pretty much a necessity anyway.

I mostly just install bin and crypto, which is the bare minimum for a
running system, then boot the new system under its own power and
buildworld to get the rest.  An alternate method is to buildworld on
another system beforehand, and (using a livecd) installworld over the
network onto your blank vinum setup.

Hope this helps,
Craig

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

Message: 14
Date: Sat, 7 Aug 2004 01:15:01 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: Ports broken by compiler upgrade
To: freebsd-current@FreeBSD.org
Cc: Pete Carah <pete@altadena.net>
Message-ID: <200408070115.04653.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 05 August 2004 12:24, Michael Nottebrock wrote:
> I'm planning to do a real big
> commit to many KDE ports tomorrow, accompanied by new packages on
> fruitsalad - stay tuned.

Due to some unforeseen glitches with the package build on 4-STABLE, there will 
be a little delay. I hope to be able to commit tonight instead. Fruitsalad 
btw is http://rabarber.fruitsalad.org. You might also want to put 
http://freebsd.kde.org into your bookmarks.

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040807/ebd50b1a/attachment-0001.bin

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

Message: 15
Date: Fri, 06 Aug 2004 16:30:39 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: S?ren Schmidt<sos@DeepCore.dk>
Cc: Ceri Davies <ceri@submonkey.net>
Message-ID: <4114149F.50002@root.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

S�ren Schmidt wrote:
> Nate Lawson wrote:
> 
>> I took a quick look at this ATA panic.  The exact same one occurs for 
>> Ceri.  A quick dissassemble shows that the testb is the check for the 
>> DMA flag at the very end of ata_generic_transaction().  The bug 
>> appears to be that this may be a PIO request (since the DMA check is 
>> outside the switch() statement).  The fix is to make sure it's a DMA 
>> request before dereferencing an element of the DMA struct.  Try the 
>> attached patch.
> 
> 
> No, the fix is to make sure there is a valid ch->dma pointer, the below 
> is the correct fix.
> 
> --- ata-lowlevel.c      5 Aug 2004 21:13:41 -0000       1.41
> +++ ata-lowlevel.c      6 Aug 2004 22:31:16 -0000
> @@ -295,7 +295,7 @@
>      }
> 
>      /* request finish here */
> -    if (ch->dma->flags & ATA_DMA_LOADED)
> +    if (ch->dma && ch->dma->flags & ATA_DMA_LOADED)
>         ch->dma->unload(ch);
>      return ATA_OP_FINISHED;
>  }

Please commit, thanks.

-Nate

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

Message: 16
Date: Fri, 06 Aug 2004 16:35:36 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Panic on boot with today's CURRENT, ata related
To: S?ren Schmidt<sos@DeepCore.dk>
Cc: Ceri Davies <ceri@submonkey.net>
Message-ID: <411415C8.4070600@root.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

S�ren Schmidt wrote:
> Nate Lawson wrote:
> 
>> I took a quick look at this ATA panic.  The exact same one occurs for 
>> Ceri.  A quick dissassemble shows that the testb is the check for the 
>> DMA flag at the very end of ata_generic_transaction().  The bug 
>> appears to be that this may be a PIO request (since the DMA check is 
>> outside the switch() statement).  The fix is to make sure it's a DMA 
>> request before dereferencing an element of the DMA struct.  Try the 
>> attached patch.
> 
> No, the fix is to make sure there is a valid ch->dma pointer, the below 
> is the correct fix.
> 
> --- ata-lowlevel.c      5 Aug 2004 21:13:41 -0000       1.41
> +++ ata-lowlevel.c      6 Aug 2004 22:31:16 -0000
> @@ -295,7 +295,7 @@
>      }
> 
>      /* request finish here */
> -    if (ch->dma->flags & ATA_DMA_LOADED)
> +    if (ch->dma && ch->dma->flags & ATA_DMA_LOADED)
>         ch->dma->unload(ch);
>      return ATA_OP_FINISHED;
>  }

Thanks.  Under what circumstances is a request generated with ATA_R_DMA 
set in the flags but where the channel's dma struct has not been allocated?

-Nate

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

Message: 17
Date: Fri, 6 Aug 2004 19:54:21 -0500
From: <andrew.lankford@verizon.net>
Subject: Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c
To: <current@FreeBSD.org>
Message-ID:
	<20040807005421.MMF28868.out004.verizon.net@outgoing.verizon.net>
Content-Type: text/plain; charset="iso-8859-1"

> Grrr.

My sentiments exactly.  Here's the latest way my kernel build
fails:
amd64_mem.o(.text+0xa8a): In function `amd64_mrinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to `M_MEMDESC'
*** Error code 1

Stop in /usr/obj/usr/src/sys/ARL_AMD64.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Just to make sure we're on the same page, here's the contents of my config file (attachment).  You'll notice I've commented out the mem and io devices in the hopes of using device modules instead.

Andrew Lankford



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ARL_AMD64
Type: application/octet-stream
Size: 7475 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/ae849b6a/ARL_AMD64-0001.obj

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

Message: 18
Date: Sat, 7 Aug 2004 11:14:51 +1000
From: Tim Robbins <tjr@freebsd.org>
Subject: Re: Other unit-at-a-time issues (Re: HEADS UP! boot2
	problems)
To: Matthew Dillon <dillon@apollo.backplane.com>
Cc: Alexander Kabaev <kan@freebsd.org>
Message-ID: <20040807011451.GA51119@cat.robbins.dropbear.id.au>
Content-Type: text/plain; charset=us-ascii

On Fri, Aug 06, 2004 at 01:59:29PM -0700, Matthew Dillon wrote:
>     I tracked down one problem with the unit-at-a-time code.... it's not
>     compatible with -mrtd.  Bad code is produced, specifically a missing
>     pop in a call.
> 
>     After removing -mrtd the DFly boot code progressed a bit farther before
>     crashing, but unfortunately it still crashed.  -fno-unit-at-a-time is 
>     still required to produce a good 'boot2' boot block even when -mrtd is
>     removed.
> 
>     I was able to determine that the issue is solely with boot2... the
>     /boot/loader built with the (default) unit-at-a-time feature appear
>     to work just fine.
> 
>     I have not tracked down the additional bad assembly being produced,
>     but it is not an impossible task.  The boot2 objdump is not
>     actually all that big, but the functions are reordered and I didn't
>     want to spend all day tracking down the remaining bugs.
> 
>     --
> 
>     I would appreciate it if someone in FreeBSD land would submit this bug
>     to the GCC folks.

Bad things happen if unit-at-a-time optimization causes memcpy() to use a
non-standard calling convention, since gcc -Os generates calls to memcpy()
for struct assignments (I believe there is only one of these in boot2, in
fsread()). Try making memcpy() non-static, using __attribute__((__used__)),
or __attribute__((__stdcall__)) (assuming you re-enable -mrtd). Any of these
will thwart the calling convention change.


Tim

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

Message: 19
Date: Fri, 06 Aug 2004 21:38:27 -0400
From: "Alexandre \"Sunny\" Kovalenko" <Alex.Kovalenko@verizon.net>
Subject: newfs on partition mounted read-only
To: freebsd-current@freebsd.org
Message-ID: <1091842707.719.20.camel@RabbitsDen>
Content-Type: text/plain

Good people,

due to my own fatfingerness, I have managed to run newfs on mounted NTFS
partition and, to my surprise, discovered that newfs went ahead and
initialized partition without as much as giving me a warning. At first I
thought that to be specific to NTFS, but experiments have shown that
UFS2 filesystem, if mounted read-only, would meet the same fate. UFS2
mounted read/write would stop 'newfs' in its tracks.

My system is current as of August 3, 22:47 EST. Since it is not frequent
task, I unfortunately, could not point to the working version. If there
are patches to be tested, I will be glad to oblige -- I do not think one
extra newfs will hurt my NTFS partition any ;)

I have included session transcripts for both newfs's just in case there
is something obvious I am missing. I am not sure kernel config or dmesg
are relevant to the problem, but they could be provided if needed. Both
NTFS and umass (device I was playing with UFS2 on) are built as modules.
Softupdates are enabled.

RabbitsDen# mount
/dev/ad0s2a on / (ufs, NFS exported, local)
devfs on /dev (devfs, local)
/dev/ad0s1 on /C (ntfs, local, read-only)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)
RabbitsDen# newfs /dev/ad0s1
/dev/ad0s1: 10236.7MB (20964760 sectors) block size 16384, fragment size
2048
        using 56 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624,
3010976,
3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792,
6398144, 6774496, 7150848, 7527200, 7903552, 8279904, 8656256, 9032608,
9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 11667072,
12043424,
12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 14677888,
15054240, 15430592, 15806944, 16183296, 16559648, 16936000, 17312352,
17688704, 18065056, 18441408, 18817760, 19194112, 19570464, 19946816,
20323168, 20699520

RabbitsDen# mount
/dev/ad0s2a on / (ufs, NFS exported, local)
devfs on /dev (devfs, local)
/dev/ad0s1 on /C (ntfs, local, read-only)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
procfs on /proc (procfs, local)
/dev/da0s1 on /mnt (ufs, local, read-only)
RabbitsDen# newfs /dev/da0s1
/dev/da0s1: 250.0MB (511968 sectors) block size 16384, fragment size
2048
        using 4 cylinder groups of 62.50MB, 4000 blks, 8000 inodes.
super-block backups (for fsck -b #) at:
 160, 128160, 256160, 384160
RabbitsDen#

---
Alexandre "Sunny" Kovalenko.






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

Message: 20
Date: Fri, 6 Aug 2004 21:53:37 -0400 (EDT)
From: Wesley Morgan <morganw@chemikals.org>
Subject: fxp problems
To: current@freebsd.org
Message-ID: <20040806214351.Y14680@volatile.chemikals.org>
Content-Type: text/plain; charset="us-ascii"

I've got a box running 5.2.1-R p8 that has several times caught itself in 
a fit of errors on both fxp devices, alternating between the two. A little 
searching through PR's shows it reported back in 2003 and possibly again 
in 2004, but always on -stable. Some posts to -stable seem to think it's 
an interaction with the PCI and SCSI layers, but I'm not sure if this 
applies to -current. Anyone have any experience with these type of errors? 
I've got the kernel conf and dmesg attached.


Aug  6 00:00:14 tiamat kernel: fxp1: device timeout
Aug  6 00:00:14 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:14 tiamat kernel: fxp1: DMA timeout
Aug  6 00:00:14 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:14 tiamat kernel: fxp1: DMA timeout
Aug  6 00:00:14 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:14 tiamat kernel: fxp1: DMA timeout
Aug  6 00:00:14 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:14 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff

Aug  6 00:00:29 tiamat kernel: fxp0: device timeout
Aug  6 00:00:29 tiamat kernel: fxp0: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:29 tiamat kernel: fxp0: DMA timeout
Aug  6 00:00:29 tiamat kernel: fxp0: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:29 tiamat kernel: fxp0: DMA timeout
Aug  6 00:00:29 tiamat kernel: fxp0: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:29 tiamat kernel: fxp0: DMA timeout
Aug  6 00:00:29 tiamat kernel: fxp0: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:29 tiamat kernel: fxp0: SCB timeout: 0xff 0xff 0xff 0xffff
Aug  6 00:00:29 tiamat kernel: fxp1: SCB timeout: 0xff 0xff 0xff 0xffff




-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
-------------- next part --------------
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.1-RELEASE-p8 #0: Wed Jun 23 10:23:04 EDT 2004
    root@tiamat.relinetworks.com:/usr/obj/usr/src/sys/TIAMAT
Preloaded elf kernel "/boot/kernel/kernel" at 0xc083f000.
MPTable: <AMI      CNB30LE     >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (996.69-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 536870912 (512 MB)
avail memory = 511709184 (488 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Assuming intbase of 0
ioapic1: Assuming intbase of 16
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00f4b70
pcib0: <MPTable Host-PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib0: slot 1 INTA routed to irq 22
pcib0: slot 4 INTA routed to irq 20
pcib0: slot 5 INTA routed to irq 21
pci0: <display, VGA> at device 1.0 (no driver attached)
fxp0: <Intel 82550 Pro/100 Ethernet> port 0xd400-0xd43f mem 0xfeaa0000-0xfeabffff,0xfeafe000-0xfeafefff irq 20 at device 4.0 on pci0
fxp0: Ethernet address 00:e0:81:20:aa:72
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: <Intel 82550 Pro/100 Ethernet> port 0xd000-0xd03f mem 0xfea80000-0xfea9ffff,0xfeafd000-0xfeafdfff irq 21 at device 5.0 on pci0
fxp1: Ethernet address 00:e0:81:20:aa:73
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI-ISA bridge> port 0x580-0x58f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks ROSB4 UDMA33 controller> port 0xffa0-0xffaf at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcib1: <MPTable Host-PCI bridge> at pcibus 1 on motherboard
pci1: <PCI bus> on pcib1
pcib1: slot 6 INTA routed to irq 25
pcib1: slot 6 INTB routed to irq 26
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xe400-0xe4ff mem 0xfebfe000-0xfebfefff irq 25 at device 6.0 on pci1
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff irq 26 at device 6.1 on pci1
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
orm0: <Option ROMs> at iomem 0xce800-0xcf7ff,0xcd800-0xce7ff,0xc0000-0xc7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model VersaPad, device ID 0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
Timecounters tick every 1.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 20 packets/entry by default
IPv6 packet filtering initialized, default to accept, logging limited to 20 packets/entry
IPsec: Initialized Security Association Processing.
acd0: CDROM <TOSHIBA CD-ROM XM-7002B> at ata0-slave PIO4
GEOM: create disk ad2 dp=0xc48ff260
ad2: 114473MB <ST3120026A> [232581/16/63] at ata1-master UDMA33
GEOM: create disk da0 dp=0xc4916450
SMP: AP CPU #1 Launched!
da0 at ahc1 bus 0 target 0 lun 0
da0: <SEAGATE ST373405LC 0003> Fixed Direct Access SCSI-3 device 
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 70007MB (143374741 512 byte sectors: 255H 63S/T 8924C)
Mounting root from ufs:/dev/da0s1a
-------------- next part --------------
machine		i386
cpu		I686_CPU
ident		TIAMAT

#options 	SCHED_4BSD		#4BSD scheduler
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 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	COMPAT_FREEBSD4		#Compatible with FreeBSD4
options 	SCSI_DELAY=15000	#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

options         INCLUDE_CONFIG_FILE
options         QUOTA
options         PQ_CACHESIZE=1024

# We don't touch this because Rob gets pissed off..
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         MROUTING                # Multicast routing
options         IPV6FIREWALL            #firewall for IPv6
options         IPV6FIREWALL_VERBOSE
options                IPV6FIREWALL_DEFAULT_TO_ACCEPT
options         IPV6FIREWALL_VERBOSE_LIMIT=20
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=20
options                IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT
#options                IPFILTER_LOG
#options                IPFILTER
options         IPSTEALTH               #support for stealth forwarding
options         INET                    #Internet communications protocols
options         INET6                   #IPv6 communications protocols
options         IPSEC                   #IP security
options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)
options         TCP_DROP_SYNFIN
# Statically Link in accept filters
options            ACCEPT_FILTER_DATA
options            ACCEPT_FILTER_HTTP
# End don't touch!

options         PERFMON
options         RANDOM_IP_ID
options         SHOW_BUSYBUFS

# OTHER
options         MAXDSIZ="(256*1024*1024)"
options         MAXSSIZ="(256*1024*1024)"
options         DFLDSIZ="(256*1024*1024)"
options         PANIC_REBOOT_WAIT_TIME=16
options         SC_HISTORY_SIZE=1500    # number of history buffer lines
options         HZ=5000

options         SYSVSHM                 #SYSV-style shared memory
options         SYSVSEM                 #SYSV-style semaphores
options         SYSVMSG                 #SYSV-style message queues

options         SEMMNS=512
options         SEMMNU=256
options         SHMMAXPGS=65536
options         SHMALL=16384
options         SHMMNI=394
options         SHMSEG=512


# CPU SMP
options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# ATA/ISA/PCI
device		isa
device		eisa
device		pci
device		fdc
device		ata
device		atadisk			# ATA disk drives
device		ataraid			# ATA RAID drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# SCSI
device		ahc		# AHA2940 and onboard AIC7xxx devices
device		aic		# Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device		scbus		# SCSI bus (required for SCSI)
device		ch		# SCSI media changers
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
device		ses		# SCSI Environmental Services (and SAF-TE)

# DEVICES
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse
device		vga		# VGA video card driver
device		splash		# Splash screen and screen saver support
device		sc
device		agp		# support several AGP chipsets
# Floating point support - do not disable.
device		npx
# Serial (COM) ports
device		sio		# 8250, 16[45]50 based serial ports

# ETHERNET
device		miibus		# MII bus support
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices
device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		urio		# Diamond Rio 500 MP3 player
device		uscanner	# Scanners



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

Message: 21
Date: Fri, 6 Aug 2004 22:22:56 -0500
From: Andrew Lankford <andrew.lankford@verizon.net>
Subject: Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c
To: Mark Murray <markm@FreeBSD.org>
Cc: amd64@freebsd.org
Message-ID:
	<20040807032256.JOSB24490.out014.verizon.net@outgoing.verizon.net>
Content-Type: text/plain; charset=ISO-8859-1

After searching around through and memrange.h and amd64_mem.c
for obvious problems and finding nothing, it occurred to me that I should have included more of the text from buildkernel
where it fubar'd, just to make sure everyone knows exactly where during the build that the error occurred:

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  vers.c
linking kernel.debug
amd64_mem.o(.text+0xa8a): In function `amd64_mrinit':
/usr/src/sys/amd64/amd64/amd64_mem.c:562: undefined reference to `M_MEMDESC'
*** Error code 1

Stop in /usr/obj/usr/src/sys/ARL_AMD64.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Is _KERNEL supposed to be defined in a Makefile somewhere in the /usr/src/sys heirarchy or in a header file?  What in the kernel does this object link to if device mem/device io isn't in the kernel configuration?

Andrew Lankford


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

Message: 22
Date: Fri, 6 Aug 2004 23:16:21 -0500
From: Andrew Lankford <andrew.lankford@verizon.net>
Subject: Re:cvs commit: src/sys/amd64/amd64 mp_machdep.c
To: Robert Watson <rwatson@FreeBSD.org>
Cc: amd64@freebsd.org
Message-ID:
	<20040807041621.JWTS24490.out014.verizon.net@outgoing.verizon.net>
Content-Type: text/plain; charset="iso-8859-1"

>Hmm.  I was able to build an amd64 SMP kernel and an amd64
> UP kernel on sledge.freebsd.org following the last batch 
>of commits.  Could you confirm your source is in sync: in
> particular, sys/amd64/amd64/mem.c is revision
>1.120, and sys/conf/files.amd64 is revision 1.44?  In my >local source snapshot, M_DECLARE(M_MEMDESC) appears in 
>memrange.h, and the M_DEFINE(M_MEMDESC, ...) is in mem.c.

Yes, yes, and yes, assuming you meant "MALLOC_DEFINE" 
instead of "M_DEFINE",etc .  I just uncommented "device mem" 
and "device io" from my kernel config and the kernel built 
and installed ok, along with mem.ko (even though I can't see
 what purpose itt would serve when it's already compiled in
 statically).

Once again, I'll attach the kernel config file that caused
buildkernel to stop and complain.

Andrew Lankford


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ARL_AMD64
Type: application/octet-stream
Size: 7475 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/93436304/ARL_AMD64-0001.obj

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

Message: 23
Date: Fri, 6 Aug 2004 21:44:53 -0700 (PDT)
From: Matthew Dillon <dillon@apollo.backplane.com>
Subject: Re: Other unit-at-a-time issues (Re: HEADS UP! boot2
	problems)
To: Tim Robbins <tjr@freebsd.org>
Cc: Alexander Kabaev <kan@freebsd.org>
Message-ID: <200408070444.i774irlm027808@apollo.backplane.com>

:Bad things happen if unit-at-a-time optimization causes memcpy() to use a
:non-standard calling convention, since gcc -Os generates calls to memcpy()
:for struct assignments (I believe there is only one of these in boot2, in
:fsread()). Try making memcpy() non-static, using __attribute__((__used__)),
:or __attribute__((__stdcall__)) (assuming you re-enable -mrtd). Any of these
:will thwart the calling convention change.
:
:
:Tim

    Well, unit-at-a-time and -mrtd don't work together, period.  Bad code is
    generated when complex inlining occurs (for things other then memcpy).

    I tracked down the structural copies in fsread with the (default)
    unit-at-a-time and WITHOUT -mrtd and they appear to generate bad 
    code for their memcpy calls.  The unit-at-a-time memcpy expects two
    arguments in registers and one on the stack, and the memcpy code 
    fsread() calls for the structural copy appears to be supplying 
    three arguments in registers and nothing on the stack.

    If I make memcpy() non-static, simply by removing 'static', all the
    calls to memcpy() appear to be generated properly, but boot2 still
    crashes so there must be other things that unit-at-a-time is still
    breaking.

    It's not even funny how broken unit-at-a-time is, how the GCC folks 
    could turn it on by default in a release is beyond me.  You know, when
    I wrote DICE we had similar issues with multiple calling conventions,
    but the Amiga had a function naming standard that prevented the sorts
    of blowups we are seeing here... functions would be prefixed differently
    depending on the calling convention used.  It worked great 10+ years ago
    and it would work great now.  Sigh.  oh well.

					    -Matt
					    Matthew Dillon 
					    <dillon@backplane.com>

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

_______________________________________________
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 71, Issue 18
***********************************************


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


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