i386 tinderbox failure

2003-01-28 Thread Dag-Erling Smorgrav
/home/des/tinderbox/tinderbox.sh: /home/des/tinderbox/whereintheworld: not found

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: I've just had a massive file system crash

2003-01-28 Thread Daniel O'Connor
On Sun, 2003-01-26 at 18:38, Greg Lehey wrote:
 Did you use shutdown -p?  If my hypothesis is correct, it's possible
 to get this result with shutdown -h if you press the power switch as
 soon as the System halted message appears, but normally you'd give
 it a few seconds longer.  With shutdown -p, it's immediate, modulo
 delay.

Not certain if I did, but it's likely.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



This LOR is getting old fast...

2003-01-28 Thread Poul-Henning Kamp

Entropy harvesting: interrupts ethernet point_to_point.
lock order reversal
 1st 0xc4123858 process lock (process lock) @ ../../../kern/kern_descrip.c:2104
 2nd 0xc411ee34 filedesc structure (filedesc structure) @ ../../../kern/kern_des
crip.c:2111
Debugger(witness_lock)
Stopped at  Debugger+0x7e:  xchgl   %ebx,in_Debugger.0
db trace
Debugger(c0440775,c411ee34,c0455327,c0455327,c0455897) at Debugger+0x7e
witness_lock(c411ee34,8,c0455897,83f,c023d17d) at witness_lock+0xaff
_mtx_lock_flags(c411ee34,0,c0455897,83f,0) at _mtx_lock_flags+0x11a
sysctl_kern_file(c047f040,0,0,d7ad2c0c,d7ad2c0c) at sysctl_kern_file+0x221
sysctl_root(0,d7ad2ca8,2,d7ad2c0c,c41243c0) at sysctl_root+0x259
userland_sysctl(c41243c0,d7ad2ca8,2,bfbfe578,bfbff3f8) at userland_sysctl+0x20d
__sysctl(c41243c0,d7ad2d10,c046b22b,407,6) at __sysctl+0xe9
syscall(2f,2f,2f,2,bfbfe578) at syscall+0x412
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (202, FreeBSD ELF32, __sysctl), eip = 0x805a8e7, esp = 0xbfbfe52c, e
bp = 0xbfbfe558 ---
db

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

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: VOP_STRATEGY on VCHR

2003-01-28 Thread phk
In message [EMAIL PROTECTED], Enache Adrian writes:
I get this when I try to access for the first time a file on an ext2fs
filesystem.

VOP_STRATEGY on VCHR

Please try this patch and let me know if it helps ?

Index: ext2_vnops.c
===
RCS file: /home/ncvs/src/sys/gnu/ext2fs/ext2_vnops.c,v
retrieving revision 1.75
diff -u -r1.75 ext2_vnops.c
--- ext2_vnops.c4 Jan 2003 08:47:19 -   1.75
+++ ext2_vnops.c28 Jan 2003 08:37:50 -
@@ -1528,7 +1528,7 @@
}
vp = ip-i_devvp;
bp-b_dev = vp-v_rdev;
-   VOP_STRATEGY(vp, bp);
+   VOP_SPECSTRATEGY(vp, bp);
return (0);
 }
 
-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



LOR fix.

2003-01-28 Thread Alfred Perlstein
Since the locking is wrong anyhow...


Index: kern_descrip.c
===
RCS file: /home/ncvs/src/sys/kern/kern_descrip.c,v
retrieving revision 1.183
diff -u -r1.183 kern_descrip.c
--- kern_descrip.c  21 Jan 2003 20:20:48 -  1.183
+++ kern_descrip.c  28 Jan 2003 09:02:56 -
@@ -2104,8 +2104,8 @@
PROC_LOCK(p);
xf.xf_pid = p-p_pid;
xf.xf_uid = p-p_ucred-cr_uid;
+   PROC_UNLOCK(p);
if ((fdp = p-p_fd) == NULL) {
-   PROC_UNLOCK(p);
continue;
}
FILEDESC_LOCK(fdp);
@@ -2125,7 +2125,6 @@
break;
}
FILEDESC_UNLOCK(fdp);
-   PROC_UNLOCK(p);
if (error)
break;
}


-- 
-Alfred Perlstein [[EMAIL PROTECTED]]
'Instead of asking why a piece of software is using 1970s technology,
 start asking why software is ignoring 30 years of accumulated wisdom.'

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Ceri Davies
On Mon, Jan 27, 2003 at 11:33:02PM -0500, Adam Migus wrote:
 Hi,
 I'm doing some performance analysis on FreeBSD.  I would like to
 be able to make an SMP kernel use only one CPU.  Of course I
 realize running GENERIC would only use 1 CPU but the concern is
 that the overhead assoicated with SMP will skew the statistics. 
 So my question is what would be the 'best' way to make an SMP
 kernel only start/use CPU0?

Yank the others ?

Ceri
-- 
Happiness is having a scratch for every itch.
-- Ogden Nash

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Odhiambo Washington
* Ceri Davies [EMAIL PROTECTED] [20030128 12:50]: wrote:
 On Mon, Jan 27, 2003 at 11:33:02PM -0500, Adam Migus wrote:
  Hi,
  I'm doing some performance analysis on FreeBSD.  I would like to
  be able to make an SMP kernel use only one CPU.  Of course I
  realize running GENERIC would only use 1 CPU but the concern is
  that the overhead assoicated with SMP will skew the statistics. 
  So my question is what would be the 'best' way to make an SMP
  kernel only start/use CPU0?
 
 Yank the others ?
 

What about building two kernels, one SMP, the other non-SMP, then
just boot wheichever kernel you want? Doesn't it server same purpose?
Better than Ceri's idea ;)


-Wash

-- 
Odhiambo Washington   [EMAIL PROTECTED]  The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com  Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922 so I installed FreeBSD.   
GSM: +254 72 743223   +254 733 744121   This sig is McQ!  :-)


I'd love to go out with you, but I'm converting my calendar watch from
Julian to Gregorian.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread leafy
On Tue, Jan 28, 2003 at 12:53:49PM +0300, Odhiambo Washington wrote:
   that the overhead assoicated with SMP will skew the statistics. 
   So my question is what would be the 'best' way to make an SMP
   kernel only start/use CPU0?
  
  Yank the others ?
  
 
 What about building two kernels, one SMP, the other non-SMP, then
 just boot wheichever kernel you want? Doesn't it server same purpose?
 Better than Ceri's idea ;)
 
 
 -Wash
Unless I read him wrong, but I think he wants a SMP kernel to run on a single CPU. 
Besides pulling the thing out of the box, is it possible to disable one of them via 
BIOS?

Jiawei Ye  

-- 
Without the userland, the kernel is useless.
 --inspired by The Tao of Programming

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Attila Nagy
Hello,

 I've just installed my first 5.0-rel system and did some
 torture-testing. When resetting the machine to test the backgrounded
 fsck I experienced the following problem: All filesystems came back
 quickly and bg fsck worked fine, except for one. I had created a large
 (50GB) /export filesystem on with fsck reproducively hang.
See PR kern/47105.
Although it speaks of much larger filesystems, than your, the problem is
there.

I've already written to Kirk McKusick, but it seems that he has a lot of
work, because I didn't get answer.

If anybody wants to look into this problem, I can give access to the
machine (even serial console)...

--[ Free Software ISOs - http://www.fsn.hu/?f=download ]--
Attila Nagy e-mail: [EMAIL PROTECTED]
Free Software Network (FSN.HU)phone @work: +361 210 1415 (194)
cell.: +3630 306 6758

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Juli Mallett
* De: Odhiambo Washington [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Force 1 CPU on SMP kernel? ]
 * Ceri Davies [EMAIL PROTECTED] [20030128 12:50]: wrote:
  On Mon, Jan 27, 2003 at 11:33:02PM -0500, Adam Migus wrote:
   Hi,
   I'm doing some performance analysis on FreeBSD.  I would like to
   be able to make an SMP kernel use only one CPU.  Of course I
   realize running GENERIC would only use 1 CPU but the concern is
   that the overhead assoicated with SMP will skew the statistics. 
   So my question is what would be the 'best' way to make an SMP
   kernel only start/use CPU0?
  
  Yank the others ?
  
 
 What about building two kernels, one SMP, the other non-SMP, then
 just boot wheichever kernel you want? Doesn't it server same purpose?
 Better than Ceri's idea ;)

You're missing the point.  He wants to boot only the bootstrap processor,
none of the APs, but still be running an SMP kernel.  I think checking how
much overhead SMP and APIC_IO add is a noble goal, and throwing real
SMP into the mix would be dumb.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



5.0-RELEASE panics during the floppies boot

2003-01-28 Thread Rostislav Krasny
Hello

FreeBSD 5.0-RELEASE panics during the floppies boot with following
messages:

panic: inthand_add: Can't initialize ICU
syncing disks, buffers remaining... panic: bdwrite: buffer is not busy

The box have two ISA PnP cards - a NIC based on UMC UM9008/F chip and
Creative SB16 based on ViBRA16 chip. There are no PCI cards although
there are 4 PCI slots. The video card is ATI XPERT 98 AGP based on ATI
RAGE XL chip. There is also one non-PnP ISA card - a hardware 33600bps
modem based on Rockwell chip.

The BIOS have PnP OS option that can be set to No or Yes. If it
set to No the BIOS initialize all PnP devices, including ISA PnP
devices. Before the MBR loading (boot0) BIOS prints on the screen a
diagnostic information about all initialized PnP devices, including
choosen to them resurces (IRQs, DMA channels). In my case it choose IRQ
10 for my ISA PnP NIC and IRQ 5 with DMA channel 0 and 1 for my ISA PnP
Creative SB16. Currently installed OS-es are FreeBSD 4.7-RELEASE and
Win98SE.

Win98SE get to know that BIOS already initialized all ISA PnP devices.
Win98SE use the same resurces that BIOS choose. The resurces are IRQ 10
and I/O port range 0x0240-0x025F for the NIC and IRQ 5 with DMA
channels 0 and 1 for the SB16. Port ranges of SB16 are not so
interesting for us, so I don't tell they.

FreeBSD 4.7-RELEASE don't know that or don't use PnP BIOS features.
Instead 4.7 re-initialize all of my ISA PnP devices with different
resurces' parameters. For example, it use IRQ 5 and I/O port range
0x0200-0x021F for the NIC.

FreeBSD 5.0-RELEASE (when I do floppies boot) try to use IRQ 2 and same
I/O port range for the NIC. It prints following line just before the
panic:

ed1: ISA PLUG  PLAY  Ethernet Card at port 0x200-0x21f irq 2 on isa0

If I set in my BIOS the PnP OS option to Yes I don't get this line
but FreeBSD 5.0-RELEASE still panics during the boot. The panic
messages are exactly the same.

So, we have two problems:
1. FreeBSD (all versions) do not know about BIOS's PnP devices
   configuration support (at least for ISA PnP devices).
2. When FreeBSD 5.0 try to configure PnP devices (at least ISA PnP
   devices) it do it wrong way. FreeBSD 4.7 do it better but
   not perfect.

I think that future FreeBSD releases must be able to work better with
PnP BIOS features. Plug and Play configuration capability must be
improved too, especially in 5.X.

P.S. The same panic was already discussed about a year and half before.
This is the link to archived copy of one that discussion member:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=471741+0+archive/2001/freebsd-current/20010930.freebsd-current

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Vallo Kallaste
On Tue, Jan 28, 2003 at 11:44:03AM +0100, Attila Nagy [EMAIL PROTECTED] wrote:

  I've just installed my first 5.0-rel system and did some
  torture-testing. When resetting the machine to test the backgrounded
  fsck I experienced the following problem: All filesystems came back
  quickly and bg fsck worked fine, except for one. I had created a large
  (50GB) /export filesystem on with fsck reproducively hang.
 See PR kern/47105.
 Although it speaks of much larger filesystems, than your, the problem is
 there.
 
 I've already written to Kirk McKusick, but it seems that he has a lot of
 work, because I didn't get answer.
 
 If anybody wants to look into this problem, I can give access to the
 machine (even serial console)...

I don't see it listed in 5.0-RELEASE ERRATA. Several people have now
reported problems with background fsck and in the case Kirk as
original author is loaded with other work I see no justification to
not mention the brokenness of bgfsck.
-- 

Vallo Kallaste
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



alpha tinderbox failure

2003-01-28 Thread Dag-Erling Smorgrav
--
 Rebuilding the temporary build tree
--
 stage 1: bootstrap tools
--
 stage 2: cleaning up the object tree
--
 stage 2: rebuilding the object tree
--
 stage 2: build tools
--
 stage 3: cross tools
--
 stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include
--
 stage 4: building libraries
--
 stage 4: make dependencies
--
 stage 4: building everything..
--
 Kernel build for GENERIC started on Tue Jan 28 03:05:21 PST 2003
--
 Kernel build for GENERIC completed on Tue Jan 28 03:38:16 PST 2003
--
 Kernel build for LINT started on Tue Jan 28 03:38:17 PST 2003
--
=== vinum
Makefile, line 4440: warning: duplicate script for target geom_bsd.o ignored
cc1: warnings being treated as errors
/h/des/src/sys/dev/firewire/fwohci.c: In function `fwohci_init':
/h/des/src/sys/dev/firewire/fwohci.c:665: warning: cast from pointer to integer of 
different size
*** Error code 1

Stop in /h/des/obj/h/des/src/sys/LINT.
*** Error code 1

Stop in /h/des/src.
*** Error code 1

Stop in /h/des/src.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: xl thinkpad 600x watchdog timeout

2003-01-28 Thread Toni Schmidbauer
On Tue, Jan 28, 2003 at 01:02:22AM +0300, Sergey A. Osokin wrote:
 Try to add hw.pci.allow_unsupported_io_range=1 in your
 /boot/loader.conf.local and reboot your machine.

sorry, that didn't help. same effect as before.

is there anything i can do / help with to get this card running?

thanx

toni
-- 
Terror ist der Krieg der Armen,   | [EMAIL PROTECTED]
Krieg ist der Terror der Reichen. | Toni Schmidbauer
- Sir Peter Ustinov   |



msg51102/pgp0.pgp
Description: PGP signature


Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Gerrit Kühn
On Tue, Jan 28, 2003 at 11:44:03AM +0100, Attila Nagy wrote:

  I've just installed my first 5.0-rel system and did some
  torture-testing. When resetting the machine to test the backgrounded
  fsck I experienced the following problem: All filesystems came back
  quickly and bg fsck worked fine, except for one. I had created a large
  (50GB) /export filesystem on with fsck reproducively hang.

 See PR kern/47105.
 Although it speaks of much larger filesystems, than your, the problem is
 there.

47105 seems to be slightly different from what I saw, because my
machine never paniced; the fsck just hung forever.

 I've already written to Kirk McKusick, but it seems that he has a lot of
 work, because I didn't get answer.

Ok, then things are already on their way, I guess.

 If anybody wants to look into this problem, I can give access to the
 machine (even serial console)...

I wonder if it's only the large filesystem that triggers this problem.
Actually I think that my 50GB are not /that/ large, and someone else
should have noticed the problem before.
BTW: As mentioned in the PR one workaround is to turn off bg fsck. On
the other hand bg fsck is working fine on smaller filesystems. Is
there a way to turn bg fsck off for just one partition?


cu
  Gerrit
-- 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: problem with X

2003-01-28 Thread joseph
Try a make build world and see if that version of libc_r works.
It should fix the problem. joseph

On Mon, 2003-01-27 at 13:07, Alexander Pohoyda wrote:
 Charlie ROOT [EMAIL PROTECTED] writes:
 
  root, nor a regular user. Is this a font path problem?
 
 No, it is not.
 
 
  /usr/libexec/ld-elf.so.1: /usr/lib/libc_r.so.5: Undefined symbol
  __thr_jtable
 
 This is a problem. Version numbers are OK, though.
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Takahashi Yoshihiro
In article [EMAIL PROTECTED]
Juli Mallett [EMAIL PROTECTED] writes:

 For example platform sgimips implies
 options SGIMIPS.  Below are patches to makefile glue and config(8)
 itself.

I think that using '#ifdef machine' (like #ifdef PC98) is not a good
idea.  If it requires, the file should be splited into sys/machine.
I'll split some files in sys/i386 into sys/pc98.


 For clarity, this is used in cases where the platform may define its
 own values that a header needs, and as such, you might see something
 in machine/endian.h like:
 #include platform/endian.h

How about next way?

- Install sys/${MACHINE}/include into /usr/include/${MACHINE}
- Symlink /usr/include/machine - /usr/include/${MACHINE}
- If ${MACHINE} != ${MACHINE_ARCH},
  install sys/${MACHINE_ARCH}/include into /usr/include/${MACHINE_ARCH}

For example, sys/pc98/include/endian.h is '#include i386/endian.h'
only.

---
TAKAHASHI Yoshihiro [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



RE: Performance problems with 5.0-RELEASE

2003-01-28 Thread Cagle, John (ISS-Houston)
 From: Atte Peltomaki [mailto:[EMAIL PROTECTED]] 
 
   If it's long enough to pause the console noticibly, the 
 next thing 
   to try is breaking to the debugger -- which might require an NMI 
   card -- to see what code it's stuck in during the pause.
  
  It's noticeable - if you type under heavy load in console, you 
  experience similar to ssh lag - you can't see what you type, but it 
  appears a second later to the screen.
 
 Just as an update: I've been listening to quite a lot of 
 techno/trance music lately, and it scares me - every now and 
 then xmms loses the beat when playing, even if there was 
 absolutely no other load. The pause is so quick you can't 
 really notice it elsewhere, but it's definetely there. 
 
 Continuing investigations.

Has anyone tried disabling ACPI to see if it's the culprit?


John Cagle [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: LOR on current as of last Friday

2003-01-28 Thread Matthew N. Dodd
On Tue, 28 Jan 2003, Alexander Pohoyda wrote:
   ps2 ? audio
 Enabled, Address 530, IRQ 5, DMA 3, SBAddress 220
...
 Anything else I may try?
 Thanks to all who replied!

Yes, there should be 2 DMA addresses assigned to the 'audio' device.

{0x0001630e, CS423x-PCI}, /* CSC0100 */

This is the PNP ID that should show up.

pcm0: CS423x-PCI at port 0x220-0x233,0x388-0x38b,0x530-0x537 irq 5 drq 3,1 on isa0

This uses the 'mss' PCM driver (which is enabled with 'device pcm' in your
config file.)

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Attila Nagy
Hello,

 47105 seems to be slightly different from what I saw, because my machine
 never paniced; the fsck just hung forever.
It depends. My machine hangs, there's no panic.

  I've already written to Kirk McKusick, but it seems that he has a lot
  of work, because I didn't get answer.
 Ok, then things are already on their way, I guess.
Don't know, but I hope :)

 I wonder if it's only the large filesystem that triggers this problem.
 Actually I think that my 50GB are not /that/ large, and someone else
 should have noticed the problem before.
I wonder what's the common in our case, then.

 BTW: As mentioned in the PR one workaround is to turn off bg fsck. On
 the other hand bg fsck is working fine on smaller filesystems. Is there
 a way to turn bg fsck off for just one partition?
I don't know any. BTW, the big partitions are those which needs the extra
time, so it is very likely that you won't benefit too much from this...

--[ Free Software ISOs - http://www.fsn.hu/?f=download ]--
Attila Nagy e-mail: [EMAIL PROTECTED]
Free Software Network (FSN.HU)phone @work: +361 210 1415 (194)
cell.: +3630 306 6758

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: tunefs using libufs.

2003-01-28 Thread Conrad Sabatier

On 28-Jan-2003 Juli Mallett wrote:
 * De: Conrad Sabatier [EMAIL PROTECTED] [ Data: 2003-01-27 ]
   [ Subjecte: Re: tunefs using libufs. ]
 I'm getting some odd behavior with tunefs (5.0-CURRENT cvsupped and built
 Sunday, Jan 26).  If a filesystem, rather than an actual device, is
 specified, it spits out a weird error message regarding my linproc mount:
 
 # tunefs -p /tmp
 tunefs: linproc: could not find special device
 
 Is anyone else seeing this?  Could it just be the result of the gcc
 optimizations I'm using (an admittedly heavy set of flags)?  Or might it be
 related to the recent changes the OP mentioned?
 
 Now that libufs will hunt for the disk, tunefs shouldn't, that's all.
 Doing it both shouldn't have caused a problem, I don't think, but it
 does for me, too.  This is caused by more-recent changes to libufs.
 I'll commit a fix shortly, once I verify the behaviour is correct.

Yep, that seems to have fixed it.  Thanks!

-- 
Conrad Sabatier [EMAIL PROTECTED] - In Unix veritas


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



ACPI and suspend problems ...

2003-01-28 Thread Martin Blapp

Hi,

I've got ACPI problems. First I've got a little note:

acpi0: AcpiGetSleepTypeData failed - AE_NOT_FOUND

Wouldn't it be a lot more userfriendly to display:

acpi0: Sleep mode type 1 not supported, available modes are: 0 3 4 5

or a similar error. Is such a patch trivial to do ? If so, I'll do
it.


Second, my display doesn't get waked up again. I just get a black
screen. I read somewhere about setting:

hw.syscons.sc_no_suspend_vtswitch=1

but it doesn't work. The screen stays black. And if I start X, I crash
instantly.


Then, the soundcard has no wakeup code:

pcm0@pci0:2:7:  class=0x040100 card=0x200017c0 chip=0x70121039 rev=0xa0 hdr=0x00
vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

Jan 28 16:28:13  kernel: pcm0: ac97 codec failed to reset extended mode (1, got
0)
Jan 28 16:28:13  kernel: pcm0: CODEC semaphore timeout
Jan 28 16:28:13  kernel: pcm0: ac97 codec reports dac not ready
Jan 28 16:28:13  kernel: pcm0: CODEC semaphore timeout
Jan 28 16:29:35  kernel: pcm0: Unhandled interrupt, gs_intr = 86

Martin

Martin Blapp, [EMAIL PROTECTED] [EMAIL PROTECTED]
--
ImproWare AG, UNIXSP  ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: finger -l [EMAIL PROTECTED]
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
--

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: LOR on current as of last Friday

2003-01-28 Thread Matthew N. Dodd
On Tue, 28 Jan 2003, Alexander Pohoyda wrote:
  {0x0001630e, CS423x-PCI}, /* CSC0100 */

unknown: CSC0100 can't assign resources

You've got LOTS of ISA hints specified and they're conflicting with
PNPBIOS devices.

These are the only ones that don't get setup on my system:

unknown: PNP0c02 can't assign resources (port) /* System Resource */
unknown: PNP0e03 can't assign resources (port) /* PCIC i82365 */
unknown: PNP0680 can't assign resources (port) /* IDE controller */
unknown: PNP0680 can't assign resources (port) /* IDE controller */

Since we're using the PCI attachments for the PCIC (cardbus) and IDE
controllers these 'unknown' devices aren't unexpected.

If you boot verbose you can see what each 'unknown' device is looking for
in the way of resources.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Adam Migus

quote who=Juli Mallett
 * De: Odhiambo Washington [EMAIL PROTECTED] [ Data:
 2003-01-28 ]
   [ Subjecte: Re: Force 1 CPU on SMP kernel? ]
 * Ceri Davies [EMAIL PROTECTED] [20030128 12:50]:
 wrote:
  On Mon, Jan 27, 2003 at 11:33:02PM -0500, Adam Migus
 wrote:
   Hi,
   I'm doing some performance analysis on FreeBSD.  I would
 like to be able to make an SMP kernel use only one CPU.
 Of course I realize running GENERIC would only use 1 CPU
 but the concern is that the overhead assoicated with SMP
 will skew the statistics.  So my question is what would
 be the 'best' way to make an SMP kernel only start/use
 CPU0?
 
  Yank the others ?
 

 What about building two kernels, one SMP, the other non-SMP,
 then just boot wheichever kernel you want? Doesn't it server
 same purpose? Better than Ceri's idea ;)

 You're missing the point.  He wants to boot only the bootstrap
 processor, none of the APs, but still be running an SMP
 kernel.  I think checking how much overhead SMP and
 APIC_IO add is a noble goal, and throwing real SMP into the
 mix would be dumb.

Yes, just to be more explicit.  What I want to do is get the
'real' difference a second processor makes.  ie. If I run
GENERIC I'm not incurring the overhead associated with SMP/APIC.
 I want to use the same kernel making as small a change as
nessessary to have the machine start/use just one CPU.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Andre Guibert de Bruet


On Tue, 28 Jan 2003, Vallo Kallaste wrote:

 On Tue, Jan 28, 2003 at 11:44:03AM +0100, Attila Nagy [EMAIL PROTECTED] wrote:

   I've just installed my first 5.0-rel system and did some
   torture-testing. When resetting the machine to test the backgrounded
   fsck I experienced the following problem: All filesystems came back
   quickly and bg fsck worked fine, except for one. I had created a large
   (50GB) /export filesystem on with fsck reproducively hang.
  See PR kern/47105.
  Although it speaks of much larger filesystems, than your, the problem is
  there.
 
  I've already written to Kirk McKusick, but it seems that he has a lot of
  work, because I didn't get answer.

 I don't see it listed in 5.0-RELEASE ERRATA. Several people have now
 reported problems with background fsck and in the case Kirk as
 original author is loaded with other work I see no justification to
 not mention the brokenness of bgfsck.

I've been trying to reproduce this bug on my desktop. This machine has 2
80gb disks, one of which is dedicated with one slice. So far, after 8 hard
resets, I haven't had any problem with either the machine or bgfsck
hanging. Here's what df's output looks like:

Filesystem  1K-blocks UsedAvail Capacity  Mounted on
/dev/ad0s1a128990834083526470%/
devfs   110   100%/dev
/dev/ad0s1f257998  404   236956 0%/tmp
/dev/ad0s1g  74757832  5774972 63002234 8%/usr
/dev/ad0s1e25799821122   216238 9%/var
procfs  440   100%/proc
/dev/ad1s1e  76955976 49105248 2169425069%/export

Regards,

 Andre Guibert de Bruet | Enterprise Software Consultant 
 Silicon Landmark, LLC. | http://siliconlandmark.com/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Andre Guibert de Bruet


On Tue, 28 Jan 2003, Adam Migus wrote:

 Yes, just to be more explicit.  What I want to do is get the
 'real' difference a second processor makes.  ie. If I run
 GENERIC I'm not incurring the overhead associated with SMP/APIC.
  I want to use the same kernel making as small a change as
 nessessary to have the machine start/use just one CPU.

I'm not aware of any hacks to disable APs through loader.conf. If you're
trying to benchmark the system's performance with 1 vs N CPUs, you're best
off pulling all but the BSP CPU out of the machine. For such a benchmark
to be accurate, you shouldn't make any software changes (kernel, daemons
or startup configs).

Regards,

 Andre Guibert de Bruet | Enterprise Software Consultant 
 Silicon Landmark, LLC. | http://siliconlandmark.com/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Robert Watson

On Tue, 28 Jan 2003, Andre Guibert de Bruet wrote:

  I don't see it listed in 5.0-RELEASE ERRATA. Several people have now
  reported problems with background fsck and in the case Kirk as
  original author is loaded with other work I see no justification to
  not mention the brokenness of bgfsck.
 
 I've been trying to reproduce this bug on my desktop. This machine has 2
 80gb disks, one of which is dedicated with one slice. So far, after 8
 hard resets, I haven't had any problem with either the machine or bgfsck
 hanging. Here's what df's output looks like: 

Following reports of problems with bgfsck during the 5.0-RC series, and
prior to the release, I spent some time adding hard disks to machines,
resetting without clean shutdowns, and then interrupting background fscks,
piles of builds going, etc. When I started, it was fairly problematic, but
after Kirk's last batch of buffer fixes, etc, it was pretty much 100%
reliable on the boxes I was testing on.  However, all those boxes used
40gb drives or smaller.  I'll see if I can't dig up some larger drives in
the next week or two and try doing that again. 

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Network Associates Laboratories



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Craig Rodrigues
Hi,

Does FreeBSD-SMP have anything equivalent to the processor_bind(2) call
on Solaris, which binds a process to a specific processor?

http://docs.sun.com/db/doc/816-0212/6m6nd4nci?a=view

-- 
Craig Rodrigues
http://home.attbi.com/~rodrigc
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Gerrit Kühn
On Tue, Jan 28, 2003 at 12:22:10PM -0500, Andre Guibert de Bruet wrote:


 I've been trying to reproduce this bug on my desktop. This machine has 2
 80gb disks, one of which is dedicated with one slice. So far, after 8 hard
 resets, I haven't had any problem with either the machine or bgfsck
 hanging. 

I'll try to reproduce the thing on my machine as soon as possible.
Perhaps it was just because it was Monday, who knows...


cu
  Gerrit
-- 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Gerrit Kühn
On Tue, Jan 28, 2003 at 04:23:08PM +0100, Attila Nagy wrote:

  47105 seems to be slightly different from what I saw, because my machine
  never paniced; the fsck just hung forever.

 It depends. My machine hangs, there's no panic.

Yes, I overlooked that in the PR when I read it first. Mine was still
usable: I could switch VTs and even log in, but I couldn't do anything
about the hanging fsck processes.

   I've already written to Kirk McKusick, but it seems that he has a lot
   of work, because I didn't get answer.
  Ok, then things are already on their way, I guess.
 Don't know, but I hope :)

That makes two of us. :)

  I wonder if it's only the large filesystem that triggers this problem.
  Actually I think that my 50GB are not /that/ large, and someone else
  should have noticed the problem before.
 I wonder what's the common in our case, then.

I really don't know. I have a SV25 barebone system from Shuttle (VIA
Twister Chipset) and an IBM deskstar 80GB IDE HD. Does that sound
familiar to you?

  BTW: As mentioned in the PR one workaround is to turn off bg fsck. On
  the other hand bg fsck is working fine on smaller filesystems. Is there
  a way to turn bg fsck off for just one partition?

 I don't know any. BTW, the big partitions are those which needs the extra
 time, so it is very likely that you won't benefit too much from this...

Well, the drive has 80GB, the big partition is 50GB, so I would save
something like 3/8 of the time. Not too much, but better than nothing,
I thought. ;)


cu
  Gerrit
-- 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Gerrit Kühn
On Tue, Jan 28, 2003 at 12:34:25PM -0500, Robert Watson wrote:


 Following reports of problems with bgfsck during the 5.0-RC series, and
 prior to the release, I spent some time adding hard disks to machines,
 resetting without clean shutdowns, and then interrupting background fscks,
 piles of builds going, etc. When I started, it was fairly problematic, but
 after Kirk's last batch of buffer fixes, etc, it was pretty much 100%
 reliable on the boxes I was testing on.  

Have these fixes been applied to 5.0-rel, too? If not, I'm considering
updating to -current.


cu
  Gerrit
-- 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: [5.0-RELEASE] uid option in ipfw

2003-01-28 Thread Daniel C. Sobral
Oleg Baranov wrote:

It looks like firewall in 5.0-RELEASE doesn't respect uid option.
I migrated from 4.7 where the following lines worked fine:

allow tcp from me to any uid 500 setup
allow udp from me to any uid 500 keep-state

I couldn't get these lines working on 5.0 (packets don't match these 
rules).
it's a little strange thing - the following lines DO work, but they 
match for ANY user on the system:

allow tcp from me to any uid 0 setup
allow udp from me to any uid 0 keep-state

also the counters are updated in a mysterious way...
it's a very confusing thing for me. can anyone help to solve the problem 
plz?

It might be a network order bug. ipfw2 had lots of these.

At any rate, do read the man page. 5.0's ipfw is different from 4.7's ipfw.


--
Daniel C. Sobral   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
TCO
Fones: 55-61-313-7654/Cel: 55-61-9618-0904
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Outros:
	[EMAIL PROTECTED]
	[EMAIL PROTECTED]
	[EMAIL PROTECTED]

Sturgeon's Law:
	90% of everything is crud.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Attila Nagy
Hello,

 I really don't know. I have a SV25 barebone system from Shuttle (VIA
 Twister Chipset) and an IBM deskstar 80GB IDE HD. Does that sound
 familiar to you?
Nope, mine is completely different.
It is a HP tc4100 (I think it has an Intel MOBO, but I'm not sure) with an
AHA-2940 controller and a Promise RM-8000 attached to it with 8 pieces of
WD-2000JB disks.

 Well, the drive has 80GB, the big partition is 50GB, so I would save
 something like 3/8 of the time. Not too much, but better than nothing, I
 thought. ;)
Just try to fsck 1.2 TB and you will be very-very patient :)

--[ Free Software ISOs - http://www.fsn.hu/?f=download ]--
Attila Nagy e-mail: [EMAIL PROTECTED]
Free Software Network (FSN.HU)phone @work: +361 210 1415 (194)
cell.: +3630 306 6758

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Wilko Bulte
On Tue, Jan 28, 2003 at 12:33:32PM -0500, Andre Guibert de Bruet wrote:
 
 
 On Tue, 28 Jan 2003, Adam Migus wrote:
 
  Yes, just to be more explicit.  What I want to do is get the
  'real' difference a second processor makes.  ie. If I run
  GENERIC I'm not incurring the overhead associated with SMP/APIC.
   I want to use the same kernel making as small a change as
  nessessary to have the machine start/use just one CPU.
 
 I'm not aware of any hacks to disable APs through loader.conf. If you're
 trying to benchmark the system's performance with 1 vs N CPUs, you're best
 off pulling all but the BSP CPU out of the machine. For such a benchmark
 to be accurate, you shouldn't make any software changes (kernel, daemons
 or startup configs).

VOlunteers to implement psradm maybe?

W/

-- 
|   / o / /_  _ [EMAIL PROTECTED]
|/|/ / / /(  (_)  Bulte 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Does bg fsck have problems with large filesystems?

2003-01-28 Thread Robert Watson

On Tue, 28 Jan 2003, Gerrit Kühn wrote:

 On Tue, Jan 28, 2003 at 12:34:25PM -0500, Robert Watson wrote:
 
  Following reports of problems with bgfsck during the 5.0-RC series, and
  prior to the release, I spent some time adding hard disks to machines,
  resetting without clean shutdowns, and then interrupting background fscks,
  piles of builds going, etc. When I started, it was fairly problematic, but
  after Kirk's last batch of buffer fixes, etc, it was pretty much 100%
  reliable on the boxes I was testing on.  
 
 Have these fixes been applied to 5.0-rel, too? If not, I'm considering
 updating to -current. 

I believe all of the fixes were applied prior to the release, and that
they were all merged into the release branch, and hence should be present
in the final cut of 5.0.  The bugfixes were largely in the area of
snapshot handling, and so can be picked out of the CVS logs largely on the
file ffs_snapshot.c.  Most were for resource or locking deadlock issues. 

Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]  Network Associates Laboratories



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Performance problems with 5.0-RELEASE

2003-01-28 Thread D. Rock
Dan Nelson schrieb:

In the last episode (Jan 23), Rahul Siddharthan said:


Kenneth Culver wrote:


Did you by any chance build your own kernel? If so did you leave
things like this in:

options INVARIANTS  #Enable calls of extra sanity
options INVARIANT_SUPPORT   #Extra sanity checks of internal
options WITNESS #Enable checks to detect deadlocks
options WITNESS_SKIPSPIN#Don't run witness on spinlocks


I'd like to add that even with these removed, I was experiencing
terrible performance in building ports, etc (anything involving heavy
filesystem activity or memory usage).  Setting up an /etc/malloc.conf
fixed this (this is also briefly noted in UPDATING).  Specifically I
use (don't know whether it's optimal, but it works):

# ls -l /etc/malloc.conf 
lrwxr-xr-x  1 root  wheel  4 Jan 23 11:52 /etc/malloc.conf - HR


H and  should only make a difference if you are low on memory. R is on
by default in 5.0 anyway, due to A and J being on by default.  Setting
malloc.conf to aj makes it work like it does in 4.*.



Ahh, thanks for the info. Just a notice. With malloc.conf pointing to aj
I got a speedup of over 85% for a specific test program for Perl 5.8.0:

To reproduce:
cd /usr/ports/lang/perl
make
cd work/perl-5.8.0
time ./perl t/op/pat.t

Results:
no /etc/malloc.conf		125 seconds user time
/etc/malloc.conf - aj		18 seconds user time

on an AMD K6-2 300. I'd say this is a significant difference...


Daniel


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Force 1 CPU on SMP kernel?

2003-01-28 Thread Adam Migus
quote who=Andre Guibert de Bruet


 On Tue, 28 Jan 2003, Adam Migus wrote:

 Yes, just to be more explicit.  What I want to do is get
 the
 'real' difference a second processor makes.  ie. If I run
 GENERIC I'm not incurring the overhead associated with
 SMP/APIC.
  I want to use the same kernel making as small a change as
 nessessary to have the machine start/use just one CPU.

 I'm not aware of any hacks to disable APs through
 loader.conf.
 If you're trying to benchmark the system's performance with
 1
 vs N CPUs, you're best off pulling all but the BSP CPU out
 of
 the machine. For such a benchmark to be accurate, you
 shouldn't make any software changes (kernel, daemons or
 startup configs).

I tend to agree but things like warrenties and flakey boards
preclude removal of CPU(s).  All the same I think the ability
to turn on/off AP's at boot would be useful in general.

-- 
Adam Migus - Research Scientist
Network Associates Laboratories (http://www.nailabs.com)
TrustedBSD (http://www.trustedbsd.org)
FreeBSD (http://www.freebsd.org)




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



last KSE changes

2003-01-28 Thread Julian Elischer

Unfortunatly, due to a misunderstanding, the last KSE changes were
committed prematurely. Not prtematurely from a functional Point of View,
but prematurely from a perspective of 'checking other architectures'.

The rumour mill has been running wild on this but **AS FAR AS I KNOW**
the breakages have been fixed, since no-one has told me directl of any
current breakages. If you have any breakage from this commit, 
PLEASE TELL ME!

If I don't hear any complaints I will assume there are no more
problems in this commit and will go on to further work.

BTW I am about to launch a small discussion re: schedulers and threads
in -arch..  sscheduler guys.. see you there..


Julian




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: last KSE changes

2003-01-28 Thread phk
In message [EMAIL PROTECTED], Jul
ian Elischer writes:

The rumour mill has been running wild on this but **AS FAR AS I KNOW**
the breakages have been fixed, since no-one has told me directl of any
current breakages. If you have any breakage from this commit, 
PLEASE TELL ME!

I think you should read your mailbox carefully, I remember a number of
objections being raised against other parts of this patch.

As for cross-arch breakage I suggest you run make universe before
committing in the future.


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

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



-current, IBM A30p 2 external FW-disks

2003-01-28 Thread Michael Reifenberger
Hi,
I have the following scenario:

A30p == disk1 == disk2

disk1 and disk2 are identical 200GB disks in an extarnal ICE-cube case.
My dmesg output is attached.

After creating and mounting them as UFS2 filesystems under /mnt/a /mnt/b
and starting a `iozone -s 102400m -r 1024k` in parallel under each FS I get
very quickly:
...
No ocb on the queue for target 0.
sbp0:0:0 request timeout ... requeue
sbp0:0:0 request timeout ... requeue
sbp0:0:0 request timeout ... requeue
sbp0:0:0 request timeout ... requeue
No ocb on the queue for target 0.
No ocb on the queue for target 0.
No ocb on the queue for target 0.
No ocb on the queue for target 0.
...

The only way to get out is `fwcontrol -r`.

BUT:
If starting only one `iozone -s 102400m -r 1024k` in either /mnt/a or /mnt/b
the command runs for several hours without problems.

Do we have a problem with concurrent accesses or do I just have a HW problem.

Any tips for further debugging BTW?

Bye!

Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS
cam: invalid value for tunable kern.cam.scsi_delay
Copyright (c) 1992-2003 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.0-CURRENT #0: Tue Jan 28 08:17:11 CET 2003
root@nihil:/usr/src/sys/i386/compile/nihil
Preloaded elf kernel /boot/kernel/kernel at 0xc054e000.
Preloaded userconfig_script /boot/kernel.conf at 0xc054e0a8.
Preloaded elf module /boot/kernel/procfs.ko at 0xc054e0f8.
Preloaded elf module /boot/kernel/pseudofs.ko at 0xc054e1a4.
Preloaded elf module /boot/kernel/md.ko at 0xc054e254.
Preloaded elf module /boot/kernel/linux.ko at 0xc054e2fc.
Preloaded elf module /boot/kernel/sysvshm.ko at 0xc054e3a8.
Preloaded elf module /boot/kernel/sysvsem.ko at 0xc054e454.
Preloaded elf module /boot/kernel/sysvmsg.ko at 0xc054e500.
Preloaded elf module /boot/kernel/miibus.ko at 0xc054e5ac.
Preloaded elf module /boot/kernel/if_dc.ko at 0xc054e658.
Preloaded elf module /boot/kernel/if_ed.ko at 0xc054e704.
Preloaded elf module /boot/kernel/if_ep.ko at 0xc054e7b0.
Preloaded elf module /boot/kernel/if_fxp.ko at 0xc054e85c.
Preloaded elf module /boot/kernel/snd_ich.ko at 0xc054e908.
Preloaded elf module /boot/kernel/snd_pcm.ko at 0xc054e9b4.
Preloaded elf module /boot/kernel/usb.ko at 0xc054ea60.
Preloaded elf module /boot/kernel/ums.ko at 0xc054eb08.
Preloaded elf module /boot/kernel/umass.ko at 0xc054ebb0.
Preloaded elf module /boot/kernel/linprocfs.ko at 0xc054ec5c.
Preloaded elf module /boot/kernel/radeon.ko at 0xc054ed0c.
Preloaded elf module /boot/kernel/aic.ko at 0xc054edb8.
Preloaded elf module /boot/kernel/nfsserver.ko at 0xc054ee60.
Preloaded elf module /boot/kernel/nfsclient.ko at 0xc054ef10.
Preloaded elf module /boot/kernel/firewire.ko at 0xc054efc0.
Preloaded elf module /boot/kernel/sbp.ko at 0xc054f070.
Preloaded elf module /boot/kernel/acpi.ko at 0xc054f118.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 1198986039 Hz
CPU: Intel(R) Pentium(R) III Mobile CPU  1200MHz (1198.99-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6b1  Stepping = 1
  
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real memory  = 1073086464 (1023 MB)
avail memory = 1037750272 (989 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
VESA: v2.0, 32704k memory, flags:0x1, mode table:0xc03500a2 (122)
VESA: ATI MOBILITY RADEON
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: IBMTP-1Eon motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
ACPI-0625: *** Info: GPE Block1 defined as GPE16 to GPE31
Using $PIR table, 14 entries at 0xc00fdeb0
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed, AE_NOT_EXIST
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  

Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Takahashi Yoshihiro [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 In article [EMAIL PROTECTED]
 Juli Mallett [EMAIL PROTECTED] writes:
 
  For example platform sgimips implies
  options SGIMIPS.  Below are patches to makefile glue and config(8)
  itself.
 
 I think that using '#ifdef machine' (like #ifdef PC98) is not a good
 idea.  If it requires, the file should be splited into sys/machine.
 I'll split some files in sys/i386 into sys/pc98.
 
 
  For clarity, this is used in cases where the platform may define its
  own values that a header needs, and as such, you might see something
  in machine/endian.h like:
  #include platform/endian.h
 
 How about next way?
 
 - Install sys/${MACHINE}/include into /usr/include/${MACHINE}
 - Symlink /usr/include/machine - /usr/include/${MACHINE}
 - If ${MACHINE} != ${MACHINE_ARCH},
   install sys/${MACHINE_ARCH}/include into /usr/include/${MACHINE_ARCH}
 
 For example, sys/pc98/include/endian.h is '#include i386/endian.h'
 only.

This approach is a really bad one architecturally, in my opinion.  It means
there is a lot of duplication of what may all be VERY similar, and it means
that if we had say 5 platforms supported by the MIPS port (certainly this is
not a high number at all) that means there would be 5 directories under
src/sys...  And none of them would be mips since we wouldn't be supporting
any hardware called mips, that's just the general architecture.

Or maybe we'd have mips and it would just be the first machine we ported
to, and so that would be even more confusing for people trying to do a clean
port to *just* support their architecture.  They would have to know the other
hardware very well also, not just the MIPS stuff, so they would know what to
remove, what was something FreeBSD needed on MIPS, etc.

I just really would like things to be clean, and abstracted, and not waste
anyone's time.  Why should we have to duplicate so much code?

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: FreeBSD panic with umass

2003-01-28 Thread Kenneth Culver
I've only had time to do minimal testing, but no panics anymore with this
patch.

Ken

On Mon, 27 Jan 2003, MIHIRA Sanpei Yoshiro wrote:

 I forgot to add below changes.

 Please apply this patch and
   # make -f Makefile.usbdevs

 Cheers

 - sanpei


 Index: sys/dev/usb/usbdevs
 ===
 RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v
 retrieving revision 1.106
 diff -u -r1.106 usbdevs
 --- sys/dev/usb/usbdevs   21 Jan 2003 11:37:54 -  1.106
 +++ sys/dev/usb/usbdevs   26 Jan 2003 21:48:19 -
 @@ -626,6 +626,11 @@
  /* Fuji photo products */
  product FUJIPHOTO MASS0100   0x0100  Mass Storage

 +/* Genesys Logic products */
 +product  GENESYS GL650   0x0604  GL650 Hub
 +product  GENESYS GL641USB0x0700  GL641USB CompactFlash Card Reader
 +product  GENESYS GL641USB2IDE0x0702  GL641USB USB-IDE Bridge
 +
  /* Hagiwara products */
  product HAGIWARA FGSM0x0002  FlashGate SmartMedia Card Reader
  product HAGIWARA FGCF0x0003  FlashGate CompactFlash Card Reader



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: 4.7-amd cannot mount exports from 5.0-RELEASE

2003-01-28 Thread Michael Nottebrock
Can this please be committed to or at least prepared as a patch for 
RELENG_5_0? I myself consider fixing automount access to 5.0-RELEASE nfs 
servers a critical bugfix, but should RE's mileage vary, I'd really like 
a patch that I can apply on my server. There is also a PR open about 
this which could be closed, it's bin/47496.

--
Regards,
	Michael Nottebrock


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: 4.7-amd cannot mount exports from 5.0-RELEASE

2003-01-28 Thread Martin Blapp

Hi,

 Can this please be committed to or at least prepared as a patch for
 RELENG_5_0? I myself consider fixing automount access to 5.0-RELEASE nfs

Feel free to add this patch:

http://people.freebsd.org/~mbr/patches/committed/patch-rpc_oldreply.diff

 servers a critical bugfix, but should RE's mileage vary, I'd really like
 a patch that I can apply on my server. There is also a PR open about
 this which could be closed, it's bin/47496.

Thanks for the pointer, I'll close it.

martin

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: VOP_STRATEGY on VCHR

2003-01-28 Thread Enache Adrian
On Tue, Jan 28, 2003 at 09:38:19AM +0100, [EMAIL PROTECTED] wrote:
 In message [EMAIL PROTECTED], Enache Adrian writes:
 I get this when I try to access for the first time a file on an ext2fs
 filesystem.
 
 VOP_STRATEGY on VCHR
 
 Please try this patch and let me know if it helps ?

Of course, it fixes it.
Thanks
Adi

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: 4.7-amd cannot mount exports from 5.0-RELEASE

2003-01-28 Thread Michael Nottebrock
Martin Blapp wrote:

Hi,



Can this please be committed to or at least prepared as a patch for
RELENG_5_0? I myself consider fixing automount access to 5.0-RELEASE nfs



Feel free to add this patch:

http://people.freebsd.org/~mbr/patches/committed/patch-rpc_oldreply.diff


Ah, thank you ever so much, a quick recompile of libc and things are 
working again! :)

--
Regards,
	Michael Nottebrock



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: I want a sysctl kern.allow_shooting_into_my_foot!

2003-01-28 Thread Joerg Wunsch
As Matthew N. Dodd wrote:

 On Tue, 21 Jan 2003, Joerg Wunsch wrote:
  It already stopped me when accessing /dev/da0, so why try something
  more obscure?  Sorry, you've lost me.
 
 ftp://ftp.jurai.net/users/winter/patches/geom-foot.patch
 
 Just apply it to your local source tree and get on with life.

That just saved my day!

I've got a disk with some flakey blocks on it that i neede to rewrite.
Impossible with GEOM, possible with kern.geom.allow_foot_shooting=1.

I really think something like that should be provided by default.  It
should be the sysadmin who decides what to do, not the kernel.  (Note,
i don't vote for having the above /enabled by default/, and security
paranoid people will bump their securelevel anyway, thus preventing
any and all raw disk access.)
-- 
cheers, Jorg   .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



net-snmp errors

2003-01-28 Thread Nick H. -- Technical Support Engineer
Sorry about emailing both lists, as Im not sure which one this falls under.
It's a current machine (5.0-CURRENT) and it's a problem with a port
(net-snmp).  Below is what happens:

`VM_METER' undeclared (first use in this function)


Anyone know how to fix this or a way around it?



Regards,
Nick H.
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: where is MAKEDEV

2003-01-28 Thread Adam Migus

quote who=Toni Schmidbauer
 On Mon, Jan 27, 2003 at 09:14:36PM +0100, FredBriand wrote:
 everything seems OK, but my sound card. In the handbook they
 say I must use the MAKEDEV script (as in Linux) but I can't
 find it on my disk.

 freebsd 5.0 is using devfs(5). so device inodes are created
 automatically.

 for your soundcard be sure to enable pcm(4) in your kernel.

 for info on compiling a new kernel see the freebsd handbook:

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html


It may be easier to just load the module.  Try adding it to your
/boot/loader.conf.  For a list of available sound modules try
grep ^snd /boot/defaults/loader.conf.  If you don't know what
your card is just type kldload snd
That will load all sound drivers and dmesg will show you which
one actually supports your card.  Once you know, put that one in
your /boot/loader.conf.  If your driver requires pcm, the loader
will load it as a dependancy.

Adam

-- 
Adam Migus - Research Scientist
Network Associates Laboratories (http://www.nailabs.com)
TrustedBSD (http://www.trustedbsd.org)
FreeBSD (http://www.freebsd.org)



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
[sorry -- dropping in the middle of the thread]

On Tue, Jan 28, 2003 at 12:08:30PM -0800, Juli Mallett wrote:
 
 This approach is a really bad one architecturally, in my opinion.  It means
 there is a lot of duplication of what may all be VERY similar, and it means
 that if we had say 5 platforms supported by the MIPS port (certainly this is
 not a high number at all) that means there would be 5 directories under
 src/sys...  And none of them would be mips since we wouldn't be supporting
 any hardware called mips, that's just the general architecture.

I tend to agree.

 I just really would like things to be clean, and abstracted, and not waste
 anyone's time.  Why should we have to duplicate so much code?

I'm not sure platform is the answer. We already have the distinction
between MACHINE_ARCH and MACHINE and it looks to me that MACHINE can
do what you try to achieve with platform. Why add a platform
keyword to config(8) if we already have the machine keyword?

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
  I just really would like things to be clean, and abstracted, and not waste
  anyone's time.  Why should we have to duplicate so much code?
 
 I'm not sure platform is the answer. We already have the distinction
 between MACHINE_ARCH and MACHINE and it looks to me that MACHINE can
 do what you try to achieve with platform. Why add a platform
 keyword to config(8) if we already have the machine keyword?

Because that requires us to do what pc98 does, which is to have the
meta-port be the master port, and include up into the arch-port, and
that means that either you have every header in the arch-port be
wrapped by the meta-port, as machine is the meta-port, or you just
copy everything and make local changes.  IMHO the right thing to do
is have a meta-port be meta-data under the master (arch) port, as
opposed to having a hell of a lot of meta-ports driving and duplicating
a lot from the arch-port, at least in the files list, if not in a
gamillion other places.

Generic endianness related information.
sys/endian.h --
Implementations of swapping routines, etc., for this
architecture, among other things.
machine/endian.h --
Defines the endianness of this platform.
platform/endian.h

Early cpu startup
machine_arch::locore.s::_start --
Set up things in C that are early.
machine_arch::machdep.c::mach_init --
Set up hardware for this platform we need
early (e.g. console, bootstrap vector, etc.)
machine::machdep_machine.c::platform_init
--
Continue with slightly later CPU startup...
--
Call out to MI startup...
--
Do that thing you do.
kern::kern_main.c::mi_startup

config GENERIC --
files.machine_arch --
enable standard things
enable platform things
--
--
make platform symlink
build

Etc.  Follow my logic?

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



i386 SCHED_ULE buildkernel error

2003-01-28 Thread Peter Schultz
cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I. 
-I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica 
-I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h 
-fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2 
-ffreestanding -Werror  /usr/src/sys/kern/sched_ule.c
cc1: warnings being treated as errors
/usr/src/sys/kern/sched_ule.c: In function `sched_check_runqs':
/usr/src/sys/kern/sched_ule.c:624: warning: implicit declaration of 
function `runq_depth'
*** Error code 1

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

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

Stop in /usr/src.


With -Wno-error:
linking kernel
sched_ule.o: In function `sched_check_runqs':
sched_ule.o(.text+0x99f): undefined reference to `runq_depth'
sched_ule.o(.text+0x9af): undefined reference to `runq_depth'
sched_ule.o(.text+0x9c8): undefined reference to `runq_depth'
sched_ule.o(.text+0x9d8): undefined reference to `runq_depth'
*** Error code 1

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

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

Stop in /usr/src.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


alpha tinderbox failure

2003-01-28 Thread Dag-Erling Smorgrav
--
 Rebuilding the temporary build tree
--
 stage 1: bootstrap tools
--
 stage 2: cleaning up the object tree
--
 stage 2: rebuilding the object tree
--
 stage 2: build tools
--
 stage 3: cross tools
--
 stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include
--
 stage 4: building libraries
--
 stage 4: make dependencies
--
 stage 4: building everything..
--
 Kernel build for GENERIC started on Tue Jan 28 15:08:22 PST 2003
--
 Kernel build for GENERIC completed on Tue Jan 28 15:43:20 PST 2003
--
 Kernel build for LINT started on Tue Jan 28 15:43:21 PST 2003
--
=== vinum
Makefile, line 4440: warning: duplicate script for target geom_bsd.o ignored
cc1: warnings being treated as errors
/h/des/src/sys/dev/firewire/fwohci.c: In function `fwohci_init':
/h/des/src/sys/dev/firewire/fwohci.c:665: warning: cast from pointer to integer of 
different size
*** Error code 1

Stop in /h/des/obj/h/des/src/sys/LINT.
*** Error code 1

Stop in /h/des/src.
*** Error code 1

Stop in /h/des/src.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote:
 * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
   I just really would like things to be clean, and abstracted, and not waste
   anyone's time.  Why should we have to duplicate so much code?
  
  I'm not sure platform is the answer. We already have the distinction
  between MACHINE_ARCH and MACHINE and it looks to me that MACHINE can
  do what you try to achieve with platform. Why add a platform
  keyword to config(8) if we already have the machine keyword?
 
 Because that requires us to do what pc98 does, which is to have the
 meta-port be the master port, and include up into the arch-port, and
 that means that either you have every header in the arch-port be
 wrapped by the meta-port, as machine is the meta-port, or you just
 copy everything and make local changes.

I'm sorry, you use implications I don't see to come to a conclusion
I don't get:

Start with the beginning: We have MACHINE_ARCH and MACHINE. Can you
represent the problem you're seeing with MIPS with two entities,
namely MACHINE_ARCH and MACHINE?

If yes, how exactly do these entities need to be defined in that case
and how do they relate to each other.
If no, explain why you need more entities to capture the problem.

No implementation details please.

Subsequent questions (if required) will be posted based on the
answer given to this one.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote:
  * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
  [ Subjecte: Re: Patch to teach config(8) about platforms. ]
I just really would like things to be clean, and abstracted, and not waste
anyone's time.  Why should we have to duplicate so much code?
   
   I'm not sure platform is the answer. We already have the distinction
   between MACHINE_ARCH and MACHINE and it looks to me that MACHINE can
   do what you try to achieve with platform. Why add a platform
   keyword to config(8) if we already have the machine keyword?
  
  Because that requires us to do what pc98 does, which is to have the
  meta-port be the master port, and include up into the arch-port, and
  that means that either you have every header in the arch-port be
  wrapped by the meta-port, as machine is the meta-port, or you just
  copy everything and make local changes.
 
 I'm sorry, you use implications I don't see to come to a conclusion
 I don't get:
 
 Start with the beginning: We have MACHINE_ARCH and MACHINE. Can you
 represent the problem you're seeing with MIPS with two entities,
 namely MACHINE_ARCH and MACHINE?
 If yes, how exactly do these entities need to be defined in that case
 and how do they relate to each other.
 If no, explain why you need more entities to capture the problem.

Sure, say we support sgimips and algor MACHINE's on the mips MACHINE_ARCH.
That's SGI workstations, which are big-endian and have ARCBIOS stuff,
and Algorithmics development boards, which support little-endian and
big-endian configurations.  Obviously we have machine mips, right?  But
that determines what machine is a link to, and files.machine that is
read.  So that means that we need to have machine/*.h stubbed in both
algor/ and sgimips/.  Each of those defines the things they need to
be defined, and then includes mips/\.h.  Even if we know that we never
need to have any changes, or otherwise have the abstraction the wrong way
around.  It also means that you have to pull in the mips options and files
list for both of those ports, and so on.  So you end up having machine
$(MACHINE) and having to explicitly inherit bit by bit everything that
you may need into the meta-port (algor or sgimips -- $(MACHINE)), in an
explicit manner.

My way, machine is mips and the headers which provide tunables include
platform/\.h.  Optional hardware for a given platform is pulled in via
files.mips optional directives.  Everything is less convoluted, IMHO.

 No implementation details please.

I did my best, but I still have to show that there are two explicit
meta-ports.  My previous email had no implementation details, just
general structure, and you rejected it, so I hope this is better.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Juli Mallett [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]

In short, platform provides machinery for a single port of FreeBSD
which represents exactly one MACHINE_ARCH to support a numbe of
different hardware platforms - MACHINE - under a unified system,
without interfering with how anything works, and without doing it in
a convoluted/imho-backwards way.  There is not a way to mix MACHINE
and MACHINE_ARCH within a single port, as it is now.  You have to
duplicate things like pc98 does.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 11:18, Juli Mallett wrote:
 * De: Juli Mallett [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
 
 In short, platform provides machinery for a single port of FreeBSD
 which represents exactly one MACHINE_ARCH to support a numbe of
 different hardware platforms - MACHINE - under a unified system,
 without interfering with how anything works, and without doing it in
 a convoluted/imho-backwards way.  There is not a way to mix MACHINE
 and MACHINE_ARCH within a single port, as it is now.  You have to
 duplicate things like pc98 does.

I'd also like to point out that PowerPC will benefit greatly from this. 
PowerPC platforms vary wildly in how they do various things (incl.
endianness in some cases) and so this provides a much cleaner mechanism
to select a set of platform quirks than trying to do what i386/pc98
do.

-- 
Benno Rice [EMAIL PROTECTED]



signature.asc
Description: This is a digitally signed message part


Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 04:09:36PM -0800, Juli Mallett wrote:
 * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
  On Tue, Jan 28, 2003 at 03:17:49PM -0800, Juli Mallett wrote:
   * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
 [ Subjecte: Re: Patch to teach config(8) about platforms. ]
 I just really would like things to be clean, and abstracted, and not waste
 anyone's time.  Why should we have to duplicate so much code?

I'm not sure platform is the answer. We already have the distinction
between MACHINE_ARCH and MACHINE and it looks to me that MACHINE can
do what you try to achieve with platform. Why add a platform
keyword to config(8) if we already have the machine keyword?
   
   Because that requires us to do what pc98 does, which is to have the
   meta-port be the master port, and include up into the arch-port, and
   that means that either you have every header in the arch-port be
   wrapped by the meta-port, as machine is the meta-port, or you just
   copy everything and make local changes.
  
  I'm sorry, you use implications I don't see to come to a conclusion
  I don't get:
  
  Start with the beginning: We have MACHINE_ARCH and MACHINE. Can you
  represent the problem you're seeing with MIPS with two entities,
  namely MACHINE_ARCH and MACHINE?
  If yes, how exactly do these entities need to be defined in that case
  and how do they relate to each other.
  If no, explain why you need more entities to capture the problem.
 
 Sure, say we support sgimips and algor MACHINE's on the mips MACHINE_ARCH.
 That's SGI workstations, which are big-endian and have ARCBIOS stuff,
 and Algorithmics development boards, which support little-endian and
 big-endian configurations.  Obviously we have machine mips, right?

Hmmm... No so obvious. I would expect MACHINE_ARCH to be MIPS, which
is implied by the implementation (ie /sys/mips; /sys/conf/files.mips)
This leaves the machine keyword in the kernel config file free to
be used for the platform/implementation.

 But
 that determines what machine is a link to, and files.machine that is
 read.  So that means that we need to have machine/*.h stubbed in both
 algor/ and sgimips/. Each of those defines the things they need to
 be defined, and then includes mips/\.h.  Even if we know that we never
 need to have any changes, or otherwise have the abstraction the wrong way
 around.  It also means that you have to pull in the mips options and files
 list for both of those ports, and so on.  So you end up having machine
 $(MACHINE) and having to explicitly inherit bit by bit everything that
 you may need into the meta-port (algor or sgimips -- $(MACHINE)), in an
 explicit manner.
 My way, machine is mips and the headers which provide tunables include
 platform/\.h.  Optional hardware for a given platform is pulled in via
 files.mips optional directives.  Everything is less convoluted, IMHO.
 
  No implementation details please.
 
 I did my best, but I still have to show that there are two explicit
 meta-ports.  My previous email had no implementation details, just
 general structure, and you rejected it, so I hope this is better.

It's different :-)

What I'm trying to get at is how sgimips is the same as algor and
likewise how it is different, independent as to how this would
be handled in our source tree.
For example: if they both use the same processor and instruction
set and have the same runtime specification, you can say that they
are both MIPS. The endianness is just a slight variation of the
general theme. Thus (in this case), ARCH=mips and MACH=algor or
MACH=sgimips...

We have something like this for ia64. The processor can operate
in BE and LE and emulates i386. Nonetheless, it's still the ia64
architecture. Hence, MACHINE_ARCH is ia64. Currently there are
only 2 implementations of the processor and we don't care, but
more are on their way. The architecture allows that. I would
expect us to use the machine keyword in the kernel config file
if we cannot capture all variations at the same time and are
forced to make different machine targets.

So, given that we have MACHINE_ARCH and MACHINE already to our
disposal, I don't get the feeling that we are in need to add
something else because the problem space appears 2D, not 3D.

Right?

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
  But
  that determines what machine is a link to, and files.machine that is
  read.  So that means that we need to have machine/*.h stubbed in both
  algor/ and sgimips/. Each of those defines the things they need to
  be defined, and then includes mips/\.h.  Even if we know that we never
  need to have any changes, or otherwise have the abstraction the wrong way
  around.  It also means that you have to pull in the mips options and files
  list for both of those ports, and so on.  So you end up having machine
  $(MACHINE) and having to explicitly inherit bit by bit everything that
  you may need into the meta-port (algor or sgimips -- $(MACHINE)), in an
  explicit manner.
  My way, machine is mips and the headers which provide tunables include
  platform/\.h.  Optional hardware for a given platform is pulled in via
  files.mips optional directives.  Everything is less convoluted, IMHO.
  
   No implementation details please.
  
  I did my best, but I still have to show that there are two explicit
  meta-ports.  My previous email had no implementation details, just
  general structure, and you rejected it, so I hope this is better.
 
 It's different :-)
 
 What I'm trying to get at is how sgimips is the same as algor and
 likewise how it is different, independent as to how this would
 be handled in our source tree.
 For example: if they both use the same processor and instruction
 set and have the same runtime specification, you can say that they
 are both MIPS. The endianness is just a slight variation of the
 general theme. Thus (in this case), ARCH=mips and MACH=algor or
 MACH=sgimips...

That's what I'm saying, yes.

 So, given that we have MACHINE_ARCH and MACHINE already to our
 disposal, I don't get the feeling that we are in need to add
 something else because the problem space appears 2D, not 3D.
 
 Right?

That's what I'm trying to do, in a clean way.  See my short version
message, if you like.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Lock order reversal

2003-01-28 Thread Sean Kelly
I just noticed this during bootup. It is repeatable.

FreeBSD 5.0-CURRENT #1: Mon Jan 27 14:00:00 CST 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/EDGEMASTER
...
Mounting root from ufs:/dev/ad1s1a
cd0 at ata0 bus 0 target 1 lun 0
cd0: PLEXTOR CD-R   PX-W4012A 1.01 Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray open
lock order reversal
 1st 0xc6998a54 process lock (process lock) @ /usr/src/sys/kern/kern_descrip.c:2104
 2nd 0xc6944234 filedesc structure (filedesc structure) @ 
/usr/src/sys/kern/kern_descrip.c:2111

sysctl_kern_file(SYSCTL_HANDLER_ARGS)
{
...
LIST_FOREACH(p, allproc, p_list) {
2104---PROC_LOCK(p);
xf.xf_pid = p-p_pid;
xf.xf_uid = p-p_ucred-cr_uid;
if ((fdp = p-p_fd) == NULL) {
PROC_UNLOCK(p);
continue;
}
2111---FILEDESC_LOCK(fdp);
for (n = 0; n  fdp-fd_nfiles; ++n) {
if ((fp = fdp-fd_ofiles[n]) == NULL)
continue;


-- 
Sean Kelly | PGP KeyID: D2E5E296
[EMAIL PROTECTED] | http://www.zombie.org



msg51149/pgp0.pgp
Description: PGP signature


Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Mike Barcroft
Benno Rice [EMAIL PROTECTED] writes:
 On Wed, 2003-01-29 at 11:18, Juli Mallett wrote:
  * De: Juli Mallett [EMAIL PROTECTED] [ Data: 2003-01-28 ]
  [ Subjecte: Re: Patch to teach config(8) about platforms. ]
  
  In short, platform provides machinery for a single port of FreeBSD
  which represents exactly one MACHINE_ARCH to support a numbe of
  different hardware platforms - MACHINE - under a unified system,
  without interfering with how anything works, and without doing it in
  a convoluted/imho-backwards way.  There is not a way to mix MACHINE
  and MACHINE_ARCH within a single port, as it is now.  You have to
  duplicate things like pc98 does.
 
 I'd also like to point out that PowerPC will benefit greatly from this. 
 PowerPC platforms vary wildly in how they do various things (incl.
 endianness in some cases) and so this provides a much cleaner mechanism
 to select a set of platform quirks than trying to do what i386/pc98
 do.

Perhaps if we could see PC98 converted to this design the advantages
would become obvious.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote:
 
  So, given that we have MACHINE_ARCH and MACHINE already to our
  disposal, I don't get the feeling that we are in need to add
  something else because the problem space appears 2D, not 3D.
  
  Right?
 
 That's what I'm trying to do, in a clean way.  See my short version
 message, if you like.

Ok. Now that we've established that the platform keyword is not
needed, is there any meaning we attach to MACHINE that conflicts
with the meaning it must have in order to solve the mips/powerpc
problem? Or do we not attach a certain meaning to MACHINE that we
should attach to it?

For example: When building world, we can test for MACHINE_ARCH and
MACHINE. Do you need to select a (default) compiler target based on
MACHINE or not?

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote:
  
   So, given that we have MACHINE_ARCH and MACHINE already to our
   disposal, I don't get the feeling that we are in need to add
   something else because the problem space appears 2D, not 3D.
   
   Right?
  
  That's what I'm trying to do, in a clean way.  See my short version
  message, if you like.
 
 Ok. Now that we've established that the platform keyword is not
 needed, is there any meaning we attach to MACHINE that conflicts
 with the meaning it must have in order to solve the mips/powerpc
 problem? Or do we not attach a certain meaning to MACHINE that we
 should attach to it?

No, we have not established that.  Using machine still does not fix the
machine issues.  If we keep everything under mips for the mchine
architecture (/sys/mips) then we need platform to get stuff from the
per-$MACHINE directories in a generic way, or every $MACHINE needs to
be known to the upper-level, exposing implementation details along the
lines of every machine header (those are under MACHINE_ARCH _not_
MACHINE's domain, given how config works).  If we keep all the meta-
ports under /sys/mips then machine is /sys/mips/include, NOT e.g.
/sys/mips/sgimips or /sys/mips/sgimips/include with a machine sgimips
and neither is an option set to turn on optional SGIMIPS hardware.

The machine keyword has NOTHING to do with the machine directory,
except in the case where /sys/$MACHINE/compile/$KERNCONF is where
the port ends up being built, and where the machine setting is
equal to $MACHINE above.  Such as pc98.  I'm not talking about how
pc98 works, with platform.  That way is dumb and braindead and does
not work.  As Benno said, platform is for per-platform quirks.

We attach lots of meaning to MACHINE.  You keep missing that that
is NOT the same as the machine keyword.  It is, however, the same
as the platform keyword.

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Lock order reversal

2003-01-28 Thread Craig Rodrigues
On Tue, Jan 28, 2003 at 07:04:07PM -0600, Sean Kelly wrote:
 I just noticed this during bootup. It is repeatable.

See:
http://news.gw.com/freebsd.current/30547

-- 
Craig Rodrigues
http://home.attbi.com/~rodrigc
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



make buildworld failure

2003-01-28 Thread Nick H. -- Technical Support Engineer
Got this today... src is fresh from cvsup2




mkdep -f
pend -a-I/usr/src/lib/libpam/modules/pam_ssh/../../../../crypto/openssh 
-I/usr/src/lib/libpam/modules/pam_ssh/../../../../contrib/openpam/include -I
/usr/src/lib/libpam/modules/pam_ssh/../../libpam
/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c
In file included from /usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c:59:
/usr/obj/usr/src/i386/usr/include/openssl/evp.h:111:26: openssl/idea.h: No
such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/lib/libpam/modules/pam_ssh.
*** Error code 1

Stop in /usr/src/lib/libpam/modules.
*** Error code 1

Stop in /usr/src/lib/libpam.
*** 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.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 05:42:59PM -0800, Juli Mallett wrote:
 * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
  On Tue, Jan 28, 2003 at 04:49:55PM -0800, Juli Mallett wrote:
   
So, given that we have MACHINE_ARCH and MACHINE already to our
disposal, I don't get the feeling that we are in need to add
something else because the problem space appears 2D, not 3D.

Right?
   
   That's what I'm trying to do, in a clean way.  See my short version
   message, if you like.
  
  Ok. Now that we've established that the platform keyword is not
  needed, is there any meaning we attach to MACHINE that conflicts
  with the meaning it must have in order to solve the mips/powerpc
  problem? Or do we not attach a certain meaning to MACHINE that we
  should attach to it?
 
 No, we have not established that.

*sigh*

Is the problem space 2D or 3D?

 We attach lots of meaning to MACHINE.  You keep missing that that
 is NOT the same as the machine keyword.

And you keep missing that I don't assume that it cannot be made the
same. That's why I ask about meaning and that's why I want things
to be discussed on an abstract level.

  It is, however, the same
 as the platform keyword.

You also fail to see that the consequence of adding platform is
beyond the mere recognition of the keyword. Only when the
problem space is 3D, do you need to add a new entity for sure.
If the problem space is 2D, you may be able to solve it with
the existing knobs. Yes, this may mean that you may have to
stop using it for whatever purpose (right or wrong) it's used
now.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
  No, we have not established that.
 
 *sigh*
 
 Is the problem space 2D or 3D?

Define your terms better.  I could argue the number of axes very
easily, and you could come back and argue against them.

  We attach lots of meaning to MACHINE.  You keep missing that that
  is NOT the same as the machine keyword.
 
 And you keep missing that I don't assume that it cannot be made the
 same. That's why I ask about meaning and that's why I want things
 to be discussed on an abstract level.

OK.  Well, if you make them the same, you are hacking up an existing
thing to mean something vastly different, which IMO is ugly and
full of repetition, and wholly un-flesible.  Unless you propose to
create platform based on MACHINE in the MACHINE_ARCH != MACHINE
case anyway, and use that, there is now even more duplication and
obfuscation that must be done to e.g. the headers.

   It is, however, the same
  as the platform keyword.
 
 You also fail to see that the consequence of adding platform is
 beyond the mere recognition of the keyword. Only when the
 problem space is 3D, do you need to add a new entity for sure.
 If the problem space is 2D, you may be able to solve it with
 the existing knobs. Yes, this may mean that you may have to
 stop using it for whatever purpose (right or wrong) it's used
 now.

I don't want to change the meaning of machine, the two things are
orthogonal, but because the name is similar you want to callesce
them.  I want to add a new paradigm of FreeBSD ports, as well as
the mechanism to do this, based on what I want to do, and the fact
that it makes sense to Benno.  We're just providing a set of quirks,
and that should be something that fits in nicely as an addition.
And it does, and it stays out of the way of things that do not need
it, and provides IMO the cleanest design.

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Panic copying many files from UFS to UFS2 partition

2003-01-28 Thread Garance A Drosihn
Hmm, well, I finally got my first actual system panic which wasn't
obviously caused by my own screwing around.  On the console I have:

  free inode /usr/cvs/net/64 had 0 blocks
  panic: Negative bio_offset (-19038208) on bio 0xce51be28
  cpuid = 0; lapic.id = 0100
  Debugger(panic)
  Stopped atDebugger+0x55:  xchgl  %ebx,in_Debugger.0

If I type 'trace' at that point, i get a long traceback which is
more than I can stand to type in right now (I'm typing this on
my Mac, while looking at the console of my FreeBSD machine).  But
based on that, it looks like it just did a syscall(136) - mkdir -
kern_mkdir - ufs_vnoperate - ufs_mkdir - vput - ufs_inactive -
ffs_truncate - softdep_setup_freeblocks -
handle_workitem_freeblocks - ffs_blkfree - bread - breadn -
spec_vnoperate - spec_specstrategy - spec_xstrategy -
g_dev_strategy(ce51be28,0,c139258,4,ce51be28) at g_dev_strategy+0x87

I then typed 'panic', thinking that should get me a dump somewhere.
But, well, I don't see it...

This may be easy for me to recreate.  What I did was I had just
deleted three UFS partitions and replaced them with two UFS2
partitions.  One of the two UFS2 partitions was mounted at
/usr/cvs/net, and I had done a tar-pipe to copy all of
/usr/cvs/net-old (a directory) to /usr/cvs/net.  After the
reboot I had:

(257) cd /usr/cvs
(358) du -sk net*
1415362 net
2225480 net-old

(note: I have   background_fsck=NO  in /etc/rc.conf)

This probably isn't as helpful as it could be, but of course this
happened just went I wanted to rush out the door.  Let me know if
I should try to recreate it, and what to do if I get another panic.

This is on a dual-processor machine, -current as of Jan 27th.
Dual Althon 2000.  512meg RAM.  For some reason, /var/run/dmesg.boot
is just a single line right now:
d2s3d: SIZE=512 MTIME=Jan  2 19:34 2003  (CLEARED)

but presumably I can get a more useful one by rebooting again...

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 06:20:13PM -0800, Juli Mallett wrote:
 * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
   No, we have not established that.
  
  *sigh*
  
  Is the problem space 2D or 3D?
 
 Define your terms better.  I could argue the number of axes very
 easily, and you could come back and argue against them.

So far you have defined the problem as a 2D problem and I have not
argued with that. You're getting extremely incomprehensible...

   We attach lots of meaning to MACHINE.  You keep missing that that
   is NOT the same as the machine keyword.
  
  And you keep missing that I don't assume that it cannot be made the
  same. That's why I ask about meaning and that's why I want things
  to be discussed on an abstract level.
 
 OK.  Well, if you make them the same, you are hacking up an existing
 thing to mean something vastly different, which IMO is ugly and
 full of repetition, and wholly un-flesible.

Ok, if making them the same means that we're changing the meaning of
machine, then clearly you know what the meaning is now. Please
tell me.

 Unless you propose to
 create platform based on MACHINE in the MACHINE_ARCH != MACHINE
 case anyway, and use that, there is now even more duplication and
 obfuscation that must be done to e.g. the headers.

I did not propose anything yet. I'm trying to understand what it
is you're talking about. At the same time I'm trying to avoid
defining the problem in terms of the proposed solution so that
I can validate that there is a problem, whether the solution you
proposes addresses that problem and see if other solutions exist
that solve the problem so that we can find the best alternative.

It is, however, the same
   as the platform keyword.
  
  You also fail to see that the consequence of adding platform is
  beyond the mere recognition of the keyword. Only when the
  problem space is 3D, do you need to add a new entity for sure.
  If the problem space is 2D, you may be able to solve it with
  the existing knobs. Yes, this may mean that you may have to
  stop using it for whatever purpose (right or wrong) it's used
  now.
 
 I don't want to change the meaning of machine, the two things are
 orthogonal, but because the name is similar you want to callesce
 them.

Again: what does machine mean to you. To what is it othogonal and
with what do you think I want to coalesce it that has a similar
name?

 I want to add a new paradigm of FreeBSD ports, as well as
 the mechanism to do this, based on what I want to do, and the fact
 that it makes sense to Benno.

Good. What is the new paradigm?

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
We attach lots of meaning to MACHINE.  You keep missing that that
is NOT the same as the machine keyword.
   
   And you keep missing that I don't assume that it cannot be made the
   same. That's why I ask about meaning and that's why I want things
   to be discussed on an abstract level.
  
  OK.  Well, if you make them the same, you are hacking up an existing
  thing to mean something vastly different, which IMO is ugly and
  full of repetition, and wholly un-flesible.
 
 Ok, if making them the same means that we're changing the meaning of
 machine, then clearly you know what the meaning is now. Please
 tell me.

Right now, it says where to get files, options, and Makefile.  In
the paradigm I chose to use, these are all part of the master port,
rather than the meta-port.  Each machine is actually closer to
MACHINE_ARCH in intended meaning from config(8), as it is intended to
be related to the cpu directive, e.g. machine defines the architecture,
say, mips, and to go with it, you define a specific CPU, e.g. R4400.

  Unless you propose to
  create platform based on MACHINE in the MACHINE_ARCH != MACHINE
  case anyway, and use that, there is now even more duplication and
  obfuscation that must be done to e.g. the headers.
 
 I did not propose anything yet. I'm trying to understand what it
 is you're talking about. At the same time I'm trying to avoid
 defining the problem in terms of the proposed solution so that
 I can validate that there is a problem, whether the solution you
 proposes addresses that problem and see if other solutions exist
 that solve the problem so that we can find the best alternative.

Okay, but understand I'm doing it this way as opposed to using the
existing mechanism as a kludge, as that is roughly what NetBSD does,
and other systems, and also similar to how we do pc98, and while that
is vaguely meaningful, it ends up being messy like pc98, or like the
system NetBSD has.  I want to shift to a different paradigm, as discussed,
and see below.

 It is, however, the same
as the platform keyword.
   
   You also fail to see that the consequence of adding platform is
   beyond the mere recognition of the keyword. Only when the
   problem space is 3D, do you need to add a new entity for sure.
   If the problem space is 2D, you may be able to solve it with
   the existing knobs. Yes, this may mean that you may have to
   stop using it for whatever purpose (right or wrong) it's used
   now.
  
  I don't want to change the meaning of machine, the two things are
  orthogonal, but because the name is similar you want to callesce
  them.
 
 Again: what does machine mean to you. To what is it othogonal and
 with what do you think I want to coalesce it that has a similar
 name?

It provides something orthogonal to what platform does, and I want
it to stay that way, so that things fit below.

  I want to add a new paradigm of FreeBSD ports, as well as
  the mechanism to do this, based on what I want to do, and the fact
  that it makes sense to Benno.
 
 Good. What is the new paradigm?

As explained, you have a master port, to the architecture, assume that
it is mips ok?  That's /sys/mips on FreeBSD.  Each architecture port
may have a number of specific platforms it supports.  These map to the
definitions of MACHINE_ARCH and MACHINE respectively.  An architecture
port then pulls in, based off the platform directive, appropriate
options to have MACHINE-specific code.  If we assume that is sgimips
then it is headers and code in /sys/mips/sgimips.  Based on the option
defined in options.mips and files.mips.  The build glue sees that our
MACHINE_ARCH directory contains a MACHINE equivalent directory, and it
sets up the platform directory, the meta-port headers, which is then
used by the architecture port to tune the meta-data of the port.

Like Benno put it (probably better than I did) you have an architecture,
and you have MACHINE-specific quirks.  Those define a platform.  And a
platform is meta-port data to the architecture.

I feel very good about that definition, does that work for you?

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Mike Barcroft [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 Benno Rice [EMAIL PROTECTED] writes:
  On Wed, 2003-01-29 at 11:18, Juli Mallett wrote:
   * De: Juli Mallett [EMAIL PROTECTED] [ Data: 2003-01-28 ]
 [ Subjecte: Re: Patch to teach config(8) about platforms. ]
   
   In short, platform provides machinery for a single port of FreeBSD
   which represents exactly one MACHINE_ARCH to support a numbe of
   different hardware platforms - MACHINE - under a unified system,
   without interfering with how anything works, and without doing it in
   a convoluted/imho-backwards way.  There is not a way to mix MACHINE
   and MACHINE_ARCH within a single port, as it is now.  You have to
   duplicate things like pc98 does.
  
  I'd also like to point out that PowerPC will benefit greatly from this. 
  PowerPC platforms vary wildly in how they do various things (incl.
  endianness in some cases) and so this provides a much cleaner mechanism
  to select a set of platform quirks than trying to do what i386/pc98
  do.
 
 Perhaps if we could see PC98 converted to this design the advantages
 would become obvious.

That would be an interesting idea, but I don't know if the pc98 people feel
like it.  One of them voiced dislike for having lots of #ifdef code, as
you may have seen, so I don't know.  Unless we can convince them that that
is cleaner and that pc98 is not a first-class port itself, which I doubt
is very likely.  Note that when I say first-class, I mean wholly unique
architecture which should define everything, e.g. sparc64 or alpha.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: make buildworld failure

2003-01-28 Thread Nick H. -- Technical Support Engineer
Anyone know of a way to fix this?  A lot of programs will not install (IE:
net-snmp) with the current status.  I have yet to find where the location of
the file should be... =\  I have tried a couple of spots for the file to go,
yet it still fails in the same spot.  =(



Regards,
Nick H.
[EMAIL PROTECTED]


- Original Message -
From: Jeff Utter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 7:47 PM
Subject: Re: make buildworld failure


 I'm having the same results here... i've been trying to figure out what
the problem is for a while.. i think it's just not finding idea.h... idea.h
exists in some (other) directory.. i can't tell where it WANTS to find it
though, so i coudl copy it there.

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-current in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: make buildworld failure

2003-01-28 Thread Jeff Utter
i think my system is building successfully now.. i did 2 things:

1.) deleted my whole src tree, and re-downloaded it

2.) cp /usr/src/crypto/openssl/crypto/idea/idea.h /usr/src/crypto/openssh/

not sure which one fixed it, but it's been building for about 20 minutes, and i think 
it's past the point where it was dying before.

hope it continus to build, and i hope it works for you too.

enjoy,
jeff Utter

 Anyone know of a way to fix this?  A lot of programs will not install (IE:
 net-snmp) with the current status.  I have yet to find where the location of
 the file should be... =\  I have tried a couple of spots for the file to go,
 yet it still fails in the same spot.  =(


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Terry Lambert
Mike Barcroft wrote:
 Benno Rice [EMAIL PROTECTED] writes:
  I'd also like to point out that PowerPC will benefit greatly from this.
  PowerPC platforms vary wildly in how they do various things (incl.
  endianness in some cases) and so this provides a much cleaner mechanism
  to select a set of platform quirks than trying to do what i386/pc98
  do.
 
 Perhaps if we could see PC98 converted to this design the advantages
 would become obvious.


That's quite the likeable idea.  The alternative is that we end
up with mixed legacy code and new code, as people don't care
about bringing the PC98 up to date so long as it still works.

It's always better to have one true way to do things: it makes
it easier to document.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Lock order reversal

2003-01-28 Thread Terry Lambert
Craig Rodrigues wrote:
 On Tue, Jan 28, 2003 at 07:04:07PM -0600, Sean Kelly wrote:
  I just noticed this during bootup. It is repeatable.
 
 See:
 http://news.gw.com/freebsd.current/30547

That's a turn your head and cough patch.  It admits the code
is broken, and leaves it broken.  It also leaves the p-p_fd
dereference for assignment unprotected, where at least with the
reversal, it's protected.

Probably the correct thing to do is to move the assignment out
of the if statement, and then put a reference counter on the
fdp, which, so long as you are not the sole reference, you are
not allowed to delete it (similar to VREF in SVR4/Solaris).

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: make buildworld failure

2003-01-28 Thread Nick H. -- Technical Support Engineer
Let me know how it goes... I may wanna try that



Regards,
Nick H.
Technical Support Engineer
[EMAIL PROTECTED]

Please rate my performance! http://www.supportteam.net/rate.php3
Please submit all new support requests to
http://ticketmonster.hostingsupport.com/

---
Privileged/Confidential Information may be contained in this message.  If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone.  In such case, you should destroy this message and kindly
notify the sender by reply email.  Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.

- Original Message -
From: Jeff Utter [EMAIL PROTECTED]
To: Nick H. -- Technical Support Engineer [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 9:32 PM
Subject: Re: make buildworld failure


 i think my system is building successfully now.. i did 2 things:

 1.) deleted my whole src tree, and re-downloaded it

 2.) cp /usr/src/crypto/openssl/crypto/idea/idea.h /usr/src/crypto/openssh/

 not sure which one fixed it, but it's been building for about 20 minutes,
and i think it's past the point where it was dying before.

 hope it continus to build, and i hope it works for you too.

 enjoy,
 jeff Utter

  Anyone know of a way to fix this?  A lot of programs will not install
(IE:
  net-snmp) with the current status.  I have yet to find where the
location of
  the file should be... =\  I have tried a couple of spots for the file to
go,
  yet it still fails in the same spot.  =(


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



sparc64 tinderbox failure

2003-01-28 Thread Mike Barcroft
Tinderbox FAQ: http://people.FreeBSD.org/~mike/tinderbox.html

--
 Rebuilding the temporary build tree
--
 stage 1: bootstrap tools
--
 stage 2: cleaning up the object tree
--
 stage 2: rebuilding the object tree
--
 stage 2: build tools
--
 stage 3: cross tools
--
 stage 4: populating 
/tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include
--
 stage 4: building libraries
--
=== lib/libpam/modules/pam_ssh
In file included from /tinderbox/sparc64/src/lib/libpam/modules/pam_ssh/pam_ssh.c:59:
/tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include/openssl/evp.h:111:26: 
openssl/idea.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /tinderbox/sparc64/src/lib/libpam/modules/pam_ssh.
*** Error code 1

Stop in /tinderbox/sparc64/src/lib/libpam/modules.
*** Error code 1

Stop in /tinderbox/sparc64/src/lib/libpam.
*** Error code 1

Stop in /tinderbox/sparc64/src.
*** Error code 1

Stop in /tinderbox/sparc64/src.
*** Error code 1

Stop in /tinderbox/sparc64/src.
*** Error code 1

Stop in /tinderbox/sparc64/src.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 07:01:58PM -0800, Juli Mallett wrote:
 * De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
   [ Subjecte: Re: Patch to teach config(8) about platforms. ]
 We attach lots of meaning to MACHINE.  You keep missing that that
 is NOT the same as the machine keyword.

And you keep missing that I don't assume that it cannot be made the
same. That's why I ask about meaning and that's why I want things
to be discussed on an abstract level.
   
   OK.  Well, if you make them the same, you are hacking up an existing
   thing to mean something vastly different, which IMO is ugly and
   full of repetition, and wholly un-flesible.
  
  Ok, if making them the same means that we're changing the meaning of
  machine, then clearly you know what the meaning is now. Please
  tell me.
 
 Right now, it says where to get files, options, and Makefile.

But is that the meaning or just the implementation?

For pc98, machine is set to pc98 and what we build is a system
that has MACHINE_ARCH=i386 and MACHINE=pc98. Right?
For i386, machine is set to i386 and what we build is a system
that has MACHINE_ARCH=i386 and MACHINE=i386. Right?

Thus: machine identifies a variant for a particular architecture,
right?

The implementation is messy and I can understand that you don't
want to do it the same way. See below.

 In
 the paradigm I chose to use, these are all part of the master port,
 rather than the meta-port.  Each machine is actually closer to
 MACHINE_ARCH in intended meaning from config(8), as it is intended to
 be related to the cpu directive, e.g. machine defines the architecture,
 say, mips, and to go with it, you define a specific CPU, e.g. R4400.

But isn't this is a change in meaning of machine?
Put differently, aren't we forced to change the value for machine
for pc98 if we want it to work with your paradigm?

  I did not propose anything yet. I'm trying to understand what it
  is you're talking about. At the same time I'm trying to avoid
  defining the problem in terms of the proposed solution so that
  I can validate that there is a problem, whether the solution you
  proposes addresses that problem and see if other solutions exist
  that solve the problem so that we can find the best alternative.
 
 Okay, but understand I'm doing it this way as opposed to using the
 existing mechanism as a kludge, as that is roughly what NetBSD does,
 and other systems, and also similar to how we do pc98, and while that
 is vaguely meaningful, it ends up being messy like pc98, or like the
 system NetBSD has.  I want to shift to a different paradigm, as discussed,
 and see below.

NetBSD has MACHINE_ARCH=mipsel and MACHINE_ARCH=mipseb. They choose
to make them different architectures. I understand you are not going
to do that, right?

  Good. What is the new paradigm?
 
 As explained, you have a master port, to the architecture, assume that
 it is mips ok?  That's /sys/mips on FreeBSD.  Each architecture port
 may have a number of specific platforms it supports.  These map to the
 definitions of MACHINE_ARCH and MACHINE respectively.  An architecture
 port then pulls in, based off the platform directive, appropriate
 options to have MACHINE-specific code.  If we assume that is sgimips
 then it is headers and code in /sys/mips/sgimips.  Based on the option
 defined in options.mips and files.mips.  The build glue sees that our
 MACHINE_ARCH directory contains a MACHINE equivalent directory, and it
 sets up the platform directory, the meta-port headers, which is then
 used by the architecture port to tune the meta-data of the port.
 
 Like Benno put it (probably better than I did) you have an architecture,
 and you have MACHINE-specific quirks.  Those define a platform.  And a
 platform is meta-port data to the architecture.
 
 I feel very good about that definition, does that work for you?

Yes. It's what I've been saying all along, except that I use existing
variables/keywords and you don't :-)

I used MACHINE_ARCH to hold the identification of the master
port (mips in this case) and used MACHINE to hold the identification
of the platform/implementation (sgimips in this example). So do
you, except you map platform onto MACHINE, whereas I map
machine onto MACHINE.

Now, where I think this went wrong is that you linked this to
how it is done with pc98 and how config has it implemented and
that is what you don't want. You want a better (directory)
structure. My explicit request to not talk in terms of
implementation, but instead to keep it abstract failed to
prevent that. To be perfectly clear: I think your directory
structure makes sense and is better than what we do for pc98.
This has on an abstract level nothing toi do with the keyword
we use in config.

Are we in sync?

If we are in sync, we can discuss the ups and down and see what
we think works best. Clearly, if we make machine equivalent to
MACHINE and we want to have a directory structure as you
describe, things need to 

Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
   Good. What is the new paradigm?
  
  As explained, you have a master port, to the architecture, assume that
  it is mips ok?  That's /sys/mips on FreeBSD.  Each architecture port
  may have a number of specific platforms it supports.  These map to the
  definitions of MACHINE_ARCH and MACHINE respectively.  An architecture
  port then pulls in, based off the platform directive, appropriate
  options to have MACHINE-specific code.  If we assume that is sgimips
  then it is headers and code in /sys/mips/sgimips.  Based on the option
  defined in options.mips and files.mips.  The build glue sees that our
  MACHINE_ARCH directory contains a MACHINE equivalent directory, and it
  sets up the platform directory, the meta-port headers, which is then
  used by the architecture port to tune the meta-data of the port.
  
  Like Benno put it (probably better than I did) you have an architecture,
  and you have MACHINE-specific quirks.  Those define a platform.  And a
  platform is meta-port data to the architecture.
  
  I feel very good about that definition, does that work for you?
 
 Yes. It's what I've been saying all along, except that I use existing
 variables/keywords and you don't :-)
 
 I used MACHINE_ARCH to hold the identification of the master
 port (mips in this case) and used MACHINE to hold the identification
 of the platform/implementation (sgimips in this example). So do
 you, except you map platform onto MACHINE, whereas I map
 machine onto MACHINE.
 
 Now, where I think this went wrong is that you linked this to
 how it is done with pc98 and how config has it implemented and
 that is what you don't want. You want a better (directory)
 structure. My explicit request to not talk in terms of
 implementation, but instead to keep it abstract failed to
 prevent that. To be perfectly clear: I think your directory
 structure makes sense and is better than what we do for pc98.
 This has on an abstract level nothing toi do with the keyword
 we use in config.
 
 Are we in sync?
 
 If we are in sync, we can discuss the ups and down and see what
 we think works best. Clearly, if we make machine equivalent to
 MACHINE and we want to have a directory structure as you
 describe, things need to change. Do we want that, is it doable.
 One thing is for sure: we don't need both machine and platform
 in a single kernel config file to do what we want. But is what
 we want doable with just machine?

Yes, you are following me.  But also, you mention that machine
as implemented means what I said it means, but there is other
precident for using it as I say.  For example, BSD/OS uses
machine sparc and options SUN4M.  NetBSD uses machine in a
way more similar to what you want, but like machine sgimips mips
for example.  What we want...  Could be done with machine, if we
allow there to be no files.XXX for a given machine XXX and so
on, but I think this is less clear.  How would you propose to write
the following:

%%%
machine mips
platformsgimips
%%%

Would you write it as:

%%%
machine mips sgimips
%%%

If so, how do you know which is MACHINE and which is MACHINE_ARCH?
How do you accurately get a platform include directory?

Certainly we don't want to make i386 do this:

%%%
architecturei386
machine i386
%%%

Because that would be backwards...

But an addition of something like platform would allow it to be
orthogonal to existing structure, it would not mandate its use,
of course...  And so on.

There's more at stake than just what we need, it also has to make
sense when we don't need it, and so on.  The above two things I
have suggested break in dumb ways...  If you just figure out the
MACHINE_ARCH based on /sys/XXX/conf's XXX bit, then you could
define MACHINE based on the machine directive, and as such, on
i386 and sparc64 and ... it would do the right thing, and it
would allow the MIPS stuff to be done, but it breaks the existing
pc98 stuff, because it resides in /sys/$MACHINE.

I really think we need platform, and I really think it needs to
come in as part of new infrastructure, as it provides something
totally new which breaks in interesting ways if you don't make
it optional and cleanly seperated as I've tried to do.  Again,
this is based off experience with a number of build systems, and
the needs of PowerPC and MIPS, and also is something I run on
my laptop, which is i386.  It stays out of the way and only
affects those explicit consumers of it.  The more we discuss
making machine act like platform, the more concerns that come
to my head for that, and the more platform seems right to me.

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe 

Re: help: can't boot 5.0 diskless

2003-01-28 Thread Doug Ambrisko
Dong Lin writes:
| 
| Hi, I have been running etherboot/diskless machines successfully with
| several 4.x releases. Now I have trouble bringing up 5.0 diskless x86
| machines. The same dhcp/nfs/etherboot setup works for 4.x. But the 5.0
| kernel freezes and eventually crashes without printing anything on the
| console. I am pretty sure it has passed the etherboot stage, network
| traces showed that init was loaded via NFS. If I replace the 5.0
| kernel with a 4.7 image, it simply works.
| 
| Can someone tell me what different things I have to do in a diskless
| 5.0 kernel? I do have the BOOTP, BOOTP_* and NFS_ROOT options enabled.
| 
| Thanks for your help,

Remember to compile in the hints into the 5.X kernel.  The loader PXE/disk
loaders do that for you but Etherboot doesn't.

Doug A.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote:
 
 Yes, you are following me.  But also, you mention that machine
 as implemented means what I said it means, but there is other
 precident for using it as I say.  For example, BSD/OS uses
 machine sparc and options SUN4M.  NetBSD uses machine in a
 way more similar to what you want, but like machine sgimips mips
 for example.  What we want...  Could be done with machine, if we
 allow there to be no files.XXX for a given machine XXX and so
 on, but I think this is less clear.  How would you propose to write
 the following:
 
 %%%
 machine   mips
 platform  sgimips
 %%%
 
 Would you write it as:
 
 %%%
 machine   mips sgimips
 %%%

No, I see MACHINE_ARCH implied by where you run config. This seems
strange and I'm not completely sure it's a good thing, but
MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and
defining the architecture in the kernel config file only allows
a limited freedom; namely the freedom to have the config file
outside the source tree. It basicly only defines a directory,
nothing else. See also below for pc98.

Thus, MACHINE_ARCH is not specified and machine holds the
implementation (ie platform). This is exactly what we have
now, so you don't change the meaning.

 There's more at stake than just what we need, it also has to make
 sense when we don't need it, and so on.  The above two things I
 have suggested break in dumb ways...  If you just figure out the
 MACHINE_ARCH based on /sys/XXX/conf's XXX bit, then you could
 define MACHINE based on the machine directive, and as such, on
 i386 and sparc64 and ... it would do the right thing, and it
 would allow the MIPS stuff to be done, but it breaks the existing
 pc98 stuff, because it resides in /sys/$MACHINE.

Correct. I either want pc98 transformed or if that's not possible
or feasible, a keyword root, tree, directory or 
nonstandardlocation to tell config(8) that the (sub-)port is
not where we normally have it. We then create a new keyword,
but it explcitly means a location, a path. The introduction of
platform is more confusing. First of all it maps to MACHINE,
while we have the machine keyword mapping to something else.
This is illogical. The machine keyword basicly controls
source layout and has nothing to do with the machine you're
building for. Again, illogical.

So, I'm not opposed to having a new variable if it's too hard to
do it without, but I think there's a more logical/optimal scheme
of naming and attaching meaning that does not affect the common
case (it only affects pc98).

 affects those explicit consumers of it.  The more we discuss
 making machine act like platform, the more concerns that come
 to my head for that, and the more platform seems right to me.

Ok, what are those exactly.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote:
  
  Yes, you are following me.  But also, you mention that machine
  as implemented means what I said it means, but there is other
  precident for using it as I say.  For example, BSD/OS uses
  machine sparc and options SUN4M.  NetBSD uses machine in a
  way more similar to what you want, but like machine sgimips mips
  for example.  What we want...  Could be done with machine, if we
  allow there to be no files.XXX for a given machine XXX and so
  on, but I think this is less clear.  How would you propose to write
  the following:
  
  %%%
  machine mips
  platformsgimips
  %%%
  
  Would you write it as:
  
  %%%
  machine mips sgimips
  %%%
 
 No, I see MACHINE_ARCH implied by where you run config. This seems
 strange and I'm not completely sure it's a good thing, but
 MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and
 defining the architecture in the kernel config file only allows
 a limited freedom; namely the freedom to have the config file
 outside the source tree. It basicly only defines a directory,
 nothing else. See also below for pc98.
 
 Thus, MACHINE_ARCH is not specified and machine holds the
 implementation (ie platform). This is exactly what we have
 now, so you don't change the meaning.

I'm not talking only about MACHINE_ARCH, but also where the MD files
and so on are.  If we moved to sys/ARCH/conf/files and so on, I'd
be more supportive of such an approach.  And if we made pc98 not
dumb in this regard (with consent of their maintainers).

  There's more at stake than just what we need, it also has to make
  sense when we don't need it, and so on.  The above two things I
  have suggested break in dumb ways...  If you just figure out the
  MACHINE_ARCH based on /sys/XXX/conf's XXX bit, then you could
  define MACHINE based on the machine directive, and as such, on
  i386 and sparc64 and ... it would do the right thing, and it
  would allow the MIPS stuff to be done, but it breaks the existing
  pc98 stuff, because it resides in /sys/$MACHINE.
 
 Correct. I either want pc98 transformed or if that's not possible
 or feasible, a keyword root, tree, directory or 
 nonstandardlocation to tell config(8) that the (sub-)port is
 not where we normally have it. We then create a new keyword,

That sort of keyword is even more convoluted than platform.

 but it explcitly means a location, a path. The introduction of
 platform is more confusing. First of all it maps to MACHINE,
 while we have the machine keyword mapping to something else.

MACHINE is a cpp define and (relatedly) is defined by make(1),
it isn't a config file element.  Why do they have to be related
just because they by coincidence have the same name?

 This is illogical. The machine keyword basicly controls
 source layout and has nothing to do with the machine you're
 building for. Again, illogical.

Yes it does, in a traditional meaning of machine.  This is being
built for the MIPS machine, with support for the sgimips platform.
Or This is being built for the VAX [machine].

 So, I'm not opposed to having a new variable if it's too hard to
 do it without, but I think there's a more logical/optimal scheme
 of naming and attaching meaning that does not affect the common
 case (it only affects pc98).

My case affects nothing, therefore, since yours is good for only
affecting one, mine is better for only affecting none, and for working
right in every case.  You don't like my choice of how, that's fine,
you don't have to maintain a port which uses it.  All the more reason
for it to not be one that is even used by you at all.

I've made a note that you don't think my way is optimal.  I do, and
that's that, at this point.  No black magic, no convoluted config
files, etc.  Go deal with the ODE config and Mach's configuration
files, I have.  Or NetBSD's.  Or OpenBSD's.  At this point, I am
convinced that the platform keyword is the least offensive and most
productive way of doing all of this, and so on, being someone who
has worked with more backwards methods, and being the person who
had to deal with this first, and came up with something that suits
the two groups who need it most (the pc98 mistake is probably near
impossible to correct, due to the historical nature), MIPS, and
PowerPC.

If you can convince the PowerPC folks to go with what you suggest,
then I'll be glad to also push for files, etc., to be in the proper
place, as the significance of the configuration file's contents
becoems even less important (except for the option of having a
directive point to the meta-port, which is horrid, and which I'd
really dislike seeing go in as a solution to part of these issues).
Or I suppose, since you seem to have more of a desire to re-spend
the time I spent planning this out, you could take it up with the
technical 

Re: add ext2fs to the module list in modules/Makefile

2003-01-28 Thread David O'Brien
On Mon, Jan 27, 2003 at 11:14:41PM +0200, Enache Adrian wrote:
 please add ext2fs to the modules list in src/sys/modules/Makefile.

It is already there.  :-)

Just wrapped by WANT_EXT2FS_MODULE.  So you need to add that to your
/etc/make.conf.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 16:18, Marcel Moolenaar wrote:
 On Tue, Jan 28, 2003 at 08:57:38PM -0800, Juli Mallett wrote:
  
  Yes, you are following me.  But also, you mention that machine
  as implemented means what I said it means, but there is other
  precident for using it as I say.  For example, BSD/OS uses
  machine sparc and options SUN4M.  NetBSD uses machine in a
  way more similar to what you want, but like machine sgimips mips
  for example.  What we want...  Could be done with machine, if we
  allow there to be no files.XXX for a given machine XXX and so
  on, but I think this is less clear.  How would you propose to write
  the following:
  
  %%%
  machine mips
  platformsgimips
  %%%
  
  Would you write it as:
  
  %%%
  machine mips sgimips
  %%%
 
 No, I see MACHINE_ARCH implied by where you run config. This seems
 strange and I'm not completely sure it's a good thing, but
 MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and
 defining the architecture in the kernel config file only allows
 a limited freedom; namely the freedom to have the config file
 outside the source tree. It basicly only defines a directory,
 nothing else. See also below for pc98.
 
 Thus, MACHINE_ARCH is not specified and machine holds the
 implementation (ie platform). This is exactly what we have
 now, so you don't change the meaning.

This is just confusing.  Having just played with this, if I specify
machine i386 while in the sys/powerpc/conf directory, I end up with an
unbuildable configuration as it sucks in the i386 Makefile but assumes
that it's arch-specific files are in ../../include.

This means that we would need to use:

machine powermac

in the config file while being in the powerpc directory, and then have a
sys/conf/*.powermac (along with all the other ones).  This to me is
backwards.

If we follow Juli's suggestion, we have:

machine powerpc
platformpowermac

and this uses the standard sys/conf/*.powerpc and simply pick up a set
of platform-dependant includes from sys/powerpc/powermac.  The options
logic handles the rest as we already have lines in
sys/conf/files.powerpc like:

powerpc/powermac/uninorth.c optionalpowermac pci
powerpc/powermac/macio.coptionalpowermac pci
powerpc/powermac/ata_macio.coptionalpowermac ata

Then when we head off to implement a little-endian powerpc platform we
can use:

machine powerpc
platformlittle-endian-platform

and it'll grab it's includes out of sys/powerpc/little-endian-platform
and we can do the same sort of files.powerpc magic as above.

Juli's form is also more explicit, which I find appealing.

  There's more at stake than just what we need, it also has to make
  sense when we don't need it, and so on.  The above two things I
  have suggested break in dumb ways...  If you just figure out the
  MACHINE_ARCH based on /sys/XXX/conf's XXX bit, then you could
  define MACHINE based on the machine directive, and as such, on
  i386 and sparc64 and ... it would do the right thing, and it
  would allow the MIPS stuff to be done, but it breaks the existing
  pc98 stuff, because it resides in /sys/$MACHINE.
 
 Correct. I either want pc98 transformed or if that's not possible
 or feasible, a keyword root, tree, directory or 
 nonstandardlocation to tell config(8) that the (sub-)port is
 not where we normally have it. We then create a new keyword,
 but it explcitly means a location, a path. The introduction of
 platform is more confusing. First of all it maps to MACHINE,
 while we have the machine keyword mapping to something else.
 This is illogical. The machine keyword basicly controls
 source layout and has nothing to do with the machine you're
 building for. Again, illogical.
 
 So, I'm not opposed to having a new variable if it's too hard to
 do it without, but I think there's a more logical/optimal scheme
 of naming and attaching meaning that does not affect the common
 case (it only affects pc98).

Juli's patches don't touch the common case.  If you don't specify a
platform then you don't get that extra logic.  Easy.  I agree that
moving pc98 over to whatever system we want to use is a good idea, but
for the moment I'd be happy with not forcing mips and powerpc down the
same road as pc98 which I see as being overly painful and confusing.

-- 
Benno Rice [EMAIL PROTECTED]



signature.asc
Description: This is a digitally signed message part


Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote:
 
  but it explcitly means a location, a path. The introduction of
  platform is more confusing. First of all it maps to MACHINE,
  while we have the machine keyword mapping to something else.
 
 MACHINE is a cpp define and (relatedly) is defined by make(1),
 it isn't a config file element.  Why do they have to be related
 just because they by coincidence have the same name?

No, because using machine in your proposal would then be more
like what MACHINE_ARCH means everywhere else. There already is
confusion about the difference between MACHINE and MACHINE_ARCH
and you're only adding to that confusion by using machine in
the same way MACHINE_ARCH is used everywhere else.

 You don't like my choice of how, that's fine,
 you don't have to maintain a port which uses it.  All the more reason
 for it to not be one that is even used by you at all.

Blablabla.

Your proposal affects FreeBSD. I'm having a constructive discussion
about your proposal because I like to understand your point of
view and tell you mine. Childish behaviour does not impress me.
In fact it only tells me that you're incapable of convincing me
and that you're incapable of looking at it from my point of view
and tell me where I'm missing something. No, you're fixated and
it took a lot of effort from my end to get to a point where we
understood each other. If you're tired of it, try an open mind
next time.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: add ext2fs to the module list in modules/Makefile

2003-01-28 Thread leafy
On Tue, Jan 28, 2003 at 09:54:30PM -0800, David O'Brien wrote:
 It is already there.  :-)
 
 Just wrapped by WANT_EXT2FS_MODULE.  So you need to add that to your
 /etc/make.conf.
 
It's not the make.conf man page, where can we find these options?

Jiawei Ye

-- 
Without the userland, the kernel is useless.
 --inspired by The Tao of Programming

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 On Tue, Jan 28, 2003 at 09:37:16PM -0800, Juli Mallett wrote:
  
   but it explcitly means a location, a path. The introduction of
   platform is more confusing. First of all it maps to MACHINE,
   while we have the machine keyword mapping to something else.
  
  MACHINE is a cpp define and (relatedly) is defined by make(1),
  it isn't a config file element.  Why do they have to be related
  just because they by coincidence have the same name?
 
 No, because using machine in your proposal would then be more
 like what MACHINE_ARCH means everywhere else. There already is
 confusion about the difference between MACHINE and MACHINE_ARCH
 and you're only adding to that confusion by using machine in
 the same way MACHINE_ARCH is used everywhere else.

And by using machine in the same way it is used everywhere else.

  You don't like my choice of how, that's fine,
  you don't have to maintain a port which uses it.  All the more reason
  for it to not be one that is even used by you at all.
 
 Blablabla.
 
 Your proposal affects FreeBSD. I'm having a constructive discussion
 about your proposal because I like to understand your point of
 view and tell you mine. Childish behaviour does not impress me.
 In fact it only tells me that you're incapable of convincing me
 and that you're incapable of looking at it from my point of view
 and tell me where I'm missing something. No, you're fixated and
 it took a lot of effort from my end to get to a point where we
 understood each other. If you're tired of it, try an open mind
 next time.

No Marcel, I've been through your discussion already, with myself,
when I first did this.  I came up with the optimal way of doing it
in my head, and considered all the possibilities.  I also have to
use it.  What I was saying is that I have the need for it, and so I
have had to deal with the implementation details.  I've compared to
every config utility I've worked with, and I've worked with the
build systems of * that uses a similar mechanism, that I can get
my hands on, and I prefer my way.  I don't have the energy to go
nowhere with you for a long time.  I already went nowhere with me
for a long time.  I looked at it from your point of view months
ago, and to make sure I didn't miss something, I looked at it from
your point of view today, even made the necessary changes to the
config(8) program to do it that way again, and tested it and so
on.  I did everything but draw out a map on a whiteboard (again).

I used a piece of paper.

Sorry if you find it childish to want to move on from that sort
of rehashing.  Not my intention, and I had no problem with our
discussion.  Only when I realised that you kept coming back to
things I'd already been through, and I began to feel a bit over
whelmed by the nature of the conversation, which was leaning
towards bikeshedding, did I try to back out of it.

I didn't go and give up when you were rehashing all this.
When I gave up, I advised you to use your energy to come up
with a working solution for this, and make it suit all the
people who need it and will be affected by it, as I did.  I
don't doubt you could come up with something better over time,
but I don't see why?  If you happen to have something much,
much better, please just get people to agree to it.  As I have
said, I already satisfied those affected (those who want to
be affected), and I'm apparently not the only one who has an
explicit preference of one way to the other (see what Benno
has posted)...  This isn't a matter of who's more childish
or something, it's code, it's getting the job done, and making
it possible to do the right thing.

I'm sorry if that was how it seemed...  And yes, I am incapable
of convincing you, for now.  Maybe if you spent the time on
this problem I did, I could, or maybe if you had to deal with
it, I could.

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: add ext2fs to the module list in modules/Makefile

2003-01-28 Thread David O'Brien
On Wed, Jan 29, 2003 at 02:06:11PM +0800, leafy wrote:
 On Tue, Jan 28, 2003 at 09:54:30PM -0800, David O'Brien wrote:
  It is already there.  :-)
  
  Just wrapped by WANT_EXT2FS_MODULE.  So you need to add that to your
  /etc/make.conf.
  
 It's not the make.conf man page, where can we find these options?

documented now.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 04:56:10PM +1100, Benno Rice wrote:
  
  No, I see MACHINE_ARCH implied by where you run config. This seems
  strange and I'm not completely sure it's a good thing, but
  MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and
  defining the architecture in the kernel config file only allows
  a limited freedom; namely the freedom to have the config file
  outside the source tree. It basicly only defines a directory,
  nothing else. See also below for pc98.
  
  Thus, MACHINE_ARCH is not specified and machine holds the
  implementation (ie platform). This is exactly what we have
  now, so you don't change the meaning.
 
 This is just confusing.  Having just played with this, if I specify
 machine i386 while in the sys/powerpc/conf directory, I end up with an
 unbuildable configuration as it sucks in the i386 Makefile but assumes
 that it's arch-specific files are in ../../include.

Yes. We now have config(8) interpret machine in such a way that
it works for pc98 and therefore does not work right iwith what we
like to achieve. That needs to change for it to work.

 Juli's form is also more explicit, which I find appealing.

Agreed. There's an advantage there, but see also my reply to
Juli about the use of machine to mean MACHINE_ARCH and the
use of platform to mean MACHINE. This I don't find appealing.

 Juli's patches don't touch the common case.

We have 3 architectures that have multiple machines or platforms
(mips, powerpc and i386). Setting platform for mips and powerpc
and not i386 means that you're setting it for the common case,
because you could have nonstandardlocation defined for only pc98.
Again, this is just looking at it from a different point of view,
but a point of view we all have in a year from now when we moved
there.

 platform then you don't get that extra logic.  Easy.  I agree that
 moving pc98 over to whatever system we want to use is a good idea, but
 for the moment I'd be happy with not forcing mips and powerpc down the
 same road as pc98 which I see as being overly painful and confusing.

Agreed. We should not do the same, but instead of saying that we
do mips and powerpc different, I think we should say that mips and
powerpc do it the normal way and pc98 does it differently. I like
to use an extra keyword for the weird case (pc98) and not the normal
(common) case. See also above, this is looking at it from a point
of view we'll going to have in the future, not a point of view
we all have now.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Benno Rice
On Wed, 2003-01-29 at 17:25, Marcel Moolenaar wrote:
 On Wed, Jan 29, 2003 at 04:56:10PM +1100, Benno Rice wrote:
   
   No, I see MACHINE_ARCH implied by where you run config. This seems
   strange and I'm not completely sure it's a good thing, but
   MACHINE_ARCH is defined in /sys/${ARCH}/include/param.h and
   defining the architecture in the kernel config file only allows
   a limited freedom; namely the freedom to have the config file
   outside the source tree. It basicly only defines a directory,
   nothing else. See also below for pc98.
   
   Thus, MACHINE_ARCH is not specified and machine holds the
   implementation (ie platform). This is exactly what we have
   now, so you don't change the meaning.
  
  This is just confusing.  Having just played with this, if I specify
  machine i386 while in the sys/powerpc/conf directory, I end up with an
  unbuildable configuration as it sucks in the i386 Makefile but assumes
  that it's arch-specific files are in ../../include.
 
 Yes. We now have config(8) interpret machine in such a way that
 it works for pc98 and therefore does not work right iwith what we
 like to achieve. That needs to change for it to work.

Agreed.

  Juli's form is also more explicit, which I find appealing.
 
 Agreed. There's an advantage there, but see also my reply to
 Juli about the use of machine to mean MACHINE_ARCH and the
 use of platform to mean MACHINE. This I don't find appealing.

I can see your point here, but if needed I'd rather see them renamed to
MACHINE (which maps to the current MACHINE_ARCH) and PLATFORM as MACHINE
and MACHINE_ARCH are confusingly similar.

  Juli's patches don't touch the common case.
 
 We have 3 architectures that have multiple machines or platforms
 (mips, powerpc and i386). Setting platform for mips and powerpc
 and not i386 means that you're setting it for the common case,
 because you could have nonstandardlocation defined for only pc98.
 Again, this is just looking at it from a different point of view,
 but a point of view we all have in a year from now when we moved
 there.

True.  This is fixable though.

  platform then you don't get that extra logic.  Easy.  I agree that
  moving pc98 over to whatever system we want to use is a good idea, but
  for the moment I'd be happy with not forcing mips and powerpc down the
  same road as pc98 which I see as being overly painful and confusing.
 
 Agreed. We should not do the same, but instead of saying that we
 do mips and powerpc different, I think we should say that mips and
 powerpc do it the normal way and pc98 does it differently. I like
 to use an extra keyword for the weird case (pc98) and not the normal
 (common) case. See also above, this is looking at it from a point
 of view we'll going to have in the future, not a point of view
 we all have now.

Ok, so are you saying here that Juli's patch is ok but we need to look
at how we deal with pc98?

Or are you saying that you would prefer to change how the machine
directive works in config(8) and introduce a new non-standard
directive for pc98?

If the former, I agree totally.  If the latter, I'm not so sure.  I'd
rather see the directive be platform as that is a much more accurate
name for it IMO.  If this means we kill off the machine directive, then
that may be how it works.

-- 
Benno Rice [EMAIL PROTECTED]



signature.asc
Description: This is a digitally signed message part


Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 10:20:52PM -0800, Juli Mallett wrote:
  
  Your proposal affects FreeBSD. I'm having a constructive discussion
  about your proposal because I like to understand your point of
  view and tell you mine. Childish behaviour does not impress me.
  In fact it only tells me that you're incapable of convincing me
  and that you're incapable of looking at it from my point of view
  and tell me where I'm missing something. No, you're fixated and
  it took a lot of effort from my end to get to a point where we
  understood each other. If you're tired of it, try an open mind
  next time.
 
 No Marcel, I've been through your discussion already, with myself,
 when I first did this.

Then my point of view must have triggered recognition. It didn't.

 I came up with the optimal way of doing it
 in my head, and considered all the possibilities.

Great! Then you should have had no problem convincing me.

 I don't have the energy to go
 nowhere with you for a long time.

That's not my fault.

 I already went nowhere with me
 for a long time.

Yeah, my bad ;-)

 Sorry if you find it childish to want to move on from that sort
 of rehashing.

No, I find it childish that you revert to childish arguments when
you could have said that you've gone over this before already
with multiple people and that this was intended as a formality
only and that you didn't want to rehash it. In fact, you could
just as well have committed this :-)

 I'm sorry if that was how it seemed...  And yes, I am incapable
 of convincing you, for now.  Maybe if you spent the time on
 this problem I did, I could, or maybe if you had to deal with
 it, I could.

I have no problem accepting this. Maybe if I spend as much time
on it as you apparently did I would have come to the same
conclusion as you. It's possible that my point of view is the
direct result of not having thought it through.  The point is
that I didn't spend the time and that I have in my head this
notion that it makes sense in some other way. I think I did
my best to get us in line in an attempt to find mutual
understanding. I don't feel responsible for you perceiving it
as bikeshedding. If it was, please tell me next time when I
do it again.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 On Tue, Jan 28, 2003 at 10:20:52PM -0800, Juli Mallett wrote:
  Sorry if you find it childish to want to move on from that sort
  of rehashing.
 
 No, I find it childish that you revert to childish arguments when
 you could have said that you've gone over this before already
 with multiple people and that this was intended as a formality
 only and that you didn't want to rehash it. In fact, you could
 just as well have committed this :-)

You're right.  And I suppose it's just as well that everything is
out there, and so on.  Sorry it got a bit frustrating for both of
us at times.

  I'm sorry if that was how it seemed...  And yes, I am incapable
  of convincing you, for now.  Maybe if you spent the time on
  this problem I did, I could, or maybe if you had to deal with
  it, I could.
 
 I have no problem accepting this. Maybe if I spend as much time
 on it as you apparently did I would have come to the same
 conclusion as you. It's possible that my point of view is the
 direct result of not having thought it through.  The point is
 that I didn't spend the time and that I have in my head this
 notion that it makes sense in some other way. I think I did
 my best to get us in line in an attempt to find mutual
 understanding. I don't feel responsible for you perceiving it
 as bikeshedding. If it was, please tell me next time when I
 do it again.

Thank you for trying harder to get it to the point of mutual
understanding.  That should have been my job, but I wasn't sure
how to get you there.  And you understand it your way, and maybe
your understanding will lead to something better out of this,
in the long run.

And no, it wasn't really bikeshedding, it just began to feel that
it was just a matter of but I think we should go at it from this
angle when really all I intended to get was whether or not my
code was OK.  I fell short there, in what sort of review I wanted,
or saught, or dealing with what I got.

Thanx,
juli.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Wed, Jan 29, 2003 at 05:32:51PM +1100, Benno Rice wrote:
  
  Agreed. There's an advantage there, but see also my reply to
  Juli about the use of machine to mean MACHINE_ARCH and the
  use of platform to mean MACHINE. This I don't find appealing.
 
 I can see your point here, but if needed I'd rather see them renamed to
 MACHINE (which maps to the current MACHINE_ARCH) and PLATFORM as MACHINE
 and MACHINE_ARCH are confusingly similar.

I'm not sure I understand you. I don't mind the capitalization,
just that we have MACHINE_ARCH and MACHINE defined on the hand
and machine and platform on the other. If you would ask a
person how they should be related, I can imagine that the
logical should would be to relate machine to MACHINE and
platform to MACHINE_ARCH. Which is opposite to what Juli
proposed. That's the unappealing part. Not a biggy, but
something that's better avoided now than fixed later.

   Juli's patches don't touch the common case.
  
  We have 3 architectures that have multiple machines or platforms
  (mips, powerpc and i386). Setting platform for mips and powerpc
  and not i386 means that you're setting it for the common case,
  because you could have nonstandardlocation defined for only pc98.
  Again, this is just looking at it from a different point of view,
  but a point of view we all have in a year from now when we moved
  there.
 
 True.  This is fixable though.

Yes. This would be enough to not worry about it now and I would
be fine with it.

  Agreed. We should not do the same, but instead of saying that we
  do mips and powerpc different, I think we should say that mips and
  powerpc do it the normal way and pc98 does it differently. I like
  to use an extra keyword for the weird case (pc98) and not the normal
  (common) case. See also above, this is looking at it from a point
  of view we'll going to have in the future, not a point of view
  we all have now.
 
 Ok, so are you saying here that Juli's patch is ok but we need to look
 at how we deal with pc98?

I would not introduce a platform/foo.h, but rather
machine/${variant}/foo.h. The reason for this is that the
/usr/include/platform directory is only needed on powerpc and mips,
which seems to indicate that it should be under machine. Also,
the use of machine/${variant} allows us to install the headers for
all variants, which may improve cross-building. Note that I haven't
tried it on for size, so I'm not fixated on it. I was hoping this
would fall out of the discussion.

You see how the current approach affects other architectures if you
look at the diff for src/sys/conf/kmod.mk. All architectures,
including those that don't have multiple variants will have a link
added that mirrors the machine link. I find that aestheticly
displeasing. If you have the variants under machine, you don't
have to create more links.

The change to src/include/Makefile also seems to have a bug in
that it depends in /usr/include/platform to be created by
mtree, but I don't see and diff for that. Adding platform to
BSD.include.dist means that every architecture gets the
directory. Otherwise it has to be created by hand for those
platforms that have it.

The same happens in config(8) where we create a platform link
in all cases, not just for powerpc and mips.

 Or are you saying that you would prefer to change how the machine  
 directive works in config(8) and introduce a new non-standard
 directive for pc98?

That was the thought I was playing with.

 If the former, I agree totally.  If the latter, I'm not so sure.  I'd
 rather see the directive be platform as that is a much more accurate
 name for it IMO.  If this means we kill off the machine directive, then
 that may be how it works.

I don't have a problem with the name platform, although I avoid it
for now to avoid confusion.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Marcel Moolenaar
On Tue, Jan 28, 2003 at 10:58:53PM -0800, Juli Mallett wrote:
 
 And no, it wasn't really bikeshedding, it just began to feel that
 it was just a matter of but I think we should go at it from this
 angle when really all I intended to get was whether or not my
 code was OK.  I fell short there, in what sort of review I wanted,
 or saught, or dealing with what I got.

I may have started wrong. Sorry. I fell in the middle of the thread
and that may have resulted in us spiralling down on these nits without
us getting to the points I had about the patch. I sent that in my
reply to Benno.

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Patch to teach config(8) about platforms.

2003-01-28 Thread Juli Mallett
* De: Marcel Moolenaar [EMAIL PROTECTED] [ Data: 2003-01-28 ]
[ Subjecte: Re: Patch to teach config(8) about platforms. ]
 You see how the current approach affects other architectures if you
 look at the diff for src/sys/conf/kmod.mk. All architectures,
 including those that don't have multiple variants will have a link
 added that mirrors the machine link. I find that aestheticly
 displeasing. If you have the variants under machine, you don't
 have to create more links.

Only within the kernel build directory.  That's at Peter's request.
Doing it for the installed version breaks mkioctl.

 The change to src/include/Makefile also seems to have a bug in
 that it depends in /usr/include/platform to be created by
 mtree, but I don't see and diff for that. Adding platform to
 BSD.include.dist means that every architecture gets the
 directory. Otherwise it has to be created by hand for those
 platforms that have it.

I forgot to make the BSD.include.dist change.  D'oh.

 The same happens in config(8) where we create a platform link
 in all cases, not just for powerpc and mips.

See the comment for kmod.mk.  It doesn't affect anything.  It
can be changed, if you like.
-- 
Juli Mallett [EMAIL PROTECTED]
AIM: BSDFlata -- IRC: juli on EFnet
OpenDarwin, Mono, FreeBSD Developer
ircd-hybrid Developer, EFnet addict
FreeBSD on MIPS-Anything on FreeBSD

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message