Re: New architecture support

2006-06-29 Thread John Baldwin
a minimal kernel filling in missing bits in sys/arch as you go. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Return value of malloc(0)

2006-07-05 Thread John Baldwin
NOT be dereferenced. ptr = ( size == 0 ) ? NULL : malloc( size ) ; Safest (avoiding null derefence) would instead be: ptr = malloc(size ? size : 1); BTW: // is not a valid C89 comment, but a GCC-ism. It's valid in C99 though. :) -- John Baldwin

Re: NVIDIA FreeBSD kernel feature requests

2006-07-05 Thread John Baldwin
-Combining) mappings. :) Other OS's such as Windows and OS X allow you to explicitly specify what type of cache mode you want for a mapping. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: NVIDIA FreeBSD kernel feature requests

2006-07-05 Thread John Baldwin
On Wednesday 05 July 2006 19:30, Sam Leffler wrote: John Baldwin wrote: On Monday 03 July 2006 00:02, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Christian Zander [EMAIL PROTECTED] writes: : This summary makes an attempt to describe the kernel interfaces needed

Re: kern/99979: Get Ready for Kernel Module in C++

2006-07-11 Thread John Baldwin
require device driver writers to go through a lot more hoops to do certain things like allocate resources. At the very least there is much that can be improved in our driver model. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: kern/99979: Get Ready for Kernel Module in C++

2006-07-11 Thread John Baldwin
On Tuesday 11 July 2006 12:33, M. Warner Losh wrote: In message: [EMAIL PROTECTED] John Baldwin [EMAIL PROTECTED] writes: : and OS X both of which I've written a PCI driver for) we require device : driver writers to go through a lot more hoops to do certain things like

Re: kern/99979: Get Ready for Kernel Module in C++

2006-07-11 Thread John Baldwin
On Tuesday 11 July 2006 15:21, [EMAIL PROTECTED] wrote: John Baldwin wrote: On Tuesday 11 July 2006 12:33, M. Warner Losh wrote: In message: [EMAIL PROTECTED] John Baldwin [EMAIL PROTECTED] writes: : and OS X both of which I've written a PCI driver for) we require device

Re: kern/99979: Get Ready for Kernel Module in C++

2006-07-11 Thread John Baldwin
On Tuesday 11 July 2006 14:48, M. Warner Losh wrote: In message: [EMAIL PROTECTED] John Baldwin [EMAIL PROTECTED] writes: : On Tuesday 11 July 2006 12:33, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : John Baldwin [EMAIL PROTECTED] writes: : : and OS X

Re: [Fwd: Interrupts question]

2006-07-17 Thread John Baldwin
. Relevant bits from the dmesg are: FAQ. It's due to brain damage in the Intel PCIX hubs and can't be fixed directly. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: [Fwd: Interrupts question]

2006-07-17 Thread John Baldwin
On Monday 17 July 2006 12:41, Alex Zbyslaw wrote: John Baldwin wrote: On Monday 17 July 2006 10:22, Alex Zbyslaw wrote: No responses from [EMAIL PROTECTED] Anyone here understand what's going on? Thanks]. __ I was monitoring a machine with systat -vmstat and noticed something

Re: swiN: clock sio process taking 75% CPU

2006-07-18 Thread John Baldwin
to debug this. :-P You can try turning on the DIGANOSTIC check in kern_timeout.c to catch long-running timeouts, and you can try adding some KTR traces to softclock() to see which timeout functions are running and try to do some analysis on that. -- John Baldwin

Re: swiN: clock sio process taking 75% CPU

2006-07-19 Thread John Baldwin
is (syscons vs. the specific screen saver). -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: swiN: clock sio process taking 75% CPU

2006-07-21 Thread John Baldwin
On Friday 21 July 2006 10:07, Gareth McCaughan wrote: On Wednesday 2006-07-19 18:36, John Baldwin wrote: On Wednesday 19 July 2006 12:11, Gareth McCaughan wrote: (The particular screen saver I turned on was the one called warp; I haven't checked yet whether others have the same CPU

Re: WINE vs. FreeBSD

2006-07-27 Thread John Baldwin
%fs across syscalls, traps, and faults. Can you point to a specific case where %fs is not preserved? It sounds like %fs is never set to a value in Wine. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: A question about ipcperm() call?

2006-07-27 Thread John Baldwin
in lines 116-119 which could result in allowing access to an IPC object when it should be restricted. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: A bug in semctl()

2006-07-27 Thread John Baldwin
a kernel semid rather than a user one for this specific request. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: [PATCH] adding two new options to 'cp'

2006-07-27 Thread John Baldwin
of another system. Maybe I'm just stodgy b/c I never use cpio(8) (it seems to be one of the more cryptic programs). -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: disklabel differences FreeBSD, DragonFly

2006-07-27 Thread John Baldwin
it takes to fsck when I crash my test machines. This is peculiar to an environ where one expects to crash a lot though. :) Even so, I would be looking at /, /usr, /var, /tmp, /home, and swap. Still under 7 ('c' is reserved). -- John Baldwin ___ freebsd

Re: How to Use ddb(4)?

2006-07-27 Thread John Baldwin
in debugging. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: [PATCH] adding two new options to 'cp'

2006-07-31 Thread John Baldwin
. In this case I think you might be overly paranoid. :) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: VM question related to faults

2006-07-31 Thread John Baldwin
); } It prevents to virtual pages to be passed through queues. Erm, but if fubyte() had to page the file in from disk you would have to sleep while holding the vm_page_queue_mtx, and that's not allowed. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing

Re: ural(4) and panic on sleeping thread (6.1-R)

2006-08-01 Thread John Baldwin
thread In kgdb, do 'proc 783', and then 'where' to get a stack trace of the thread that did the wrong thing. (The thread that panics is just an innocent victim that bumped into the miscreant.) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing

Re: absolute vs. relative offsets in disklabel

2006-08-07 Thread John Baldwin
stored as absolute to preserve compatiblity. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: jkh weird problem (reading pci device memory)

2006-08-07 Thread John Baldwin
); } count++; /* Wait 10 ms. */ DELAY(1); } -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: absolute vs. relative offsets in disklabel

2006-08-07 Thread John Baldwin
On Monday 07 August 2006 17:05, Roman Kurakin wrote: John Baldwin: On Sunday 06 August 2006 10:59, Dmitry Marakasov wrote: * Dag-Erling Sm?rgrav ([EMAIL PROTECTED]) wrote: Recent `disklabel differences FreeBSD, DragonFly' thread gave me a thought - why do we have absolute

Re: jkh weird problem (reading pci device memory)

2006-08-08 Thread John Baldwin
On Monday 07 August 2006 18:05, John-Mark Gurney wrote: John Baldwin wrote this message on Mon, Aug 07, 2006 at 15:27 -0400: sc-cfg_table.signature = letoh32(bus_read_4(sc-bar.res, 0)); sc-cfg_table.version = letoh16(bus_read_2(sc-bar.res, 4)); sc-cfg_table.dummy = bus_read_1(sc

Re: miibus + USB = problem

2006-08-09 Thread John Baldwin
that yet, but eventually it will, and other drivers depend on it to do so.. that is a problem to be solved in the ifnet layer, not in your driver.) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: make(1) is broken?

2006-08-10 Thread John Baldwin
you end up with is this: VAR2='${COMPS:M${AA}'} That is, it tries to match the substring '${AA' in ${COMPS} and then appends a '}' character to that, which gives the '}' result you saw. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: SoC: help with LISTs and killing procs

2006-08-10 Thread John Baldwin
)) msleep(td_em, emul_lock, PWAIT, foo, 0); EMUL_UNLOCK(); Then in your exit_hook you should do this: em = em_find(p-p_pid, EMUL_UNLOCKED); LIST_REMOVE(...); SLIST_REMOVE(...); wakeup(em); EMUL_UNLOCK(); -- John Baldwin

Re: exception handling in kernel code

2006-08-14 Thread John Baldwin
such mechanism exists in freebsd? Thanks! You can make use of pcb_onfault to recover from a page fault, but that's about it. Kernel code is expected to not generate exceptions. :) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: amd64 port on Prescott 2M?

2006-08-14 Thread John Baldwin
build of FreeBSD - which runs on Nocona - will run on this. If someone knows for sure it won't run, they'll save me the time of trying it. If it has EM64T it should run FreeBSD/amd64. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: exception handling in kernel code

2006-08-14 Thread John Baldwin
On Monday 14 August 2006 09:47, Stanislav Sedov wrote: On Mon, 14 Aug 2006 09:32:57 -0400 John Baldwin [EMAIL PROTECTED] mentioned: You can make use of pcb_onfault to recover from a page fault, but that's about it. Kernel code is expected to not generate exceptions. :) Thanks a lot

Re: exception handling in kernel code

2006-08-15 Thread John Baldwin
and CURRENT. And this is true for amd64 as well. Look at the code at the arch/arch/trap.c, for arch in i386, amd64. Hmm, well that's handy then. Learn something new everyday. :) You can see how to use pcb_onfault in some of the routines in i386/i386/support.s. -- John Baldwin

Re: struct dirent question

2006-08-21 Thread John Baldwin
, it isn't a big deal, I'm just curious what I'm missing in the reasoning for doing such a thing. It's a hack because MAXNAMLEN isn't POSIX, so for the pure-POSIX case, _BSD_VISIBLE isn't defined, so we hardcode the length. -- John Baldwin ___ freebsd

Re: 6-STABLE snapshot (background fsck) lock-up

2006-08-21 Thread John Baldwin
And see if that spits out a cycle. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: LSI-MegaRAID 150-4 BTX Halted on 5.4, 5.5, 6.1

2006-08-22 Thread John Baldwin
(not amr(4) I don't think, maybe mlx(4)) that was somehow corrupting the TSS. I don't know if he ever managed to solve it. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: LSI-MegaRAID 150-4 BTX Halted on 5.4, 5.5, 6.1

2006-08-22 Thread John Baldwin
On Tuesday 22 August 2006 16:44, Carroll Kong wrote: -Original Message- From: John Baldwin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 3:07 PM To: freebsd-hackers@freebsd.org Cc: Carroll Kong Subject: Re: LSI-MegaRAID 150-4 BTX Halted on 5.4, 5.5, 6.1

Re: [PATCH] adding two new options to 'cp'

2006-08-25 Thread John Baldwin
to allow copying of a hierarchy while linking he regular files. Bikeshedded to death on: hackers Submitted by:andersonatcenttech.com MFC in: 1 month It was on my todo list as well. I think I'll still add the -a option. -- John Baldwin ___ freebsd

Re: A Bug in linker_reference_module() ?

2006-09-22 Thread John Baldwin
On Thursday 21 September 2006 21:57, Intron is my alias on the Internet wrote: John Baldwin wrote: On Thursday 21 September 2006 14:12, Intron is my alias on the Internet wrote: Please have a look at the function linker_reference_module() in /sys/kern/kern_linker.c of 7.0-CURRENT

Re: devfs deadlock

2006-10-19 Thread John Baldwin
) Revision ChangesPath 1.135 +1 -1 src/sys/fs/devfs/devfs_vnops.c -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: Panic caused by bad memory?

2006-10-25 Thread John Baldwin
kldunload a module before it crashed? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: NFS on 6.1 limits at 4 Gig

2006-11-02 Thread John Baldwin
/jhs/bin/public/cmpd/cmpd.c ) cmp -z junk /host/laps/usr/tmp/junk # junk /host/laps/usr/tmp/junk differ: size Is send-pr appropriate ? Are you using NFS v2 or v3? v2 doesn't support large files. -- John Baldwin ___ freebsd-hackers@freebsd.org

Re: NFS on 6.1 limits at 4 Gig

2006-11-02 Thread John Baldwin
On Thursday 02 November 2006 15:10, Julian H. Stacey wrote: John Baldwin wrote: On Thursday 02 November 2006 05:50, Julian Stacey wrote: NFS fails on files = 4 GigCan someone confirm please. uname -r # 6.1-RELEASE (both hosts) # echo 1024 1024 * 4 * 1 + p | dc

Re: Panic on 6.1-RELEASE-p3

2006-11-02 Thread John Baldwin
with this. Have you ran a memory checker or other diags to check for failing hardware? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: [Patch] sys/kern/kern_descrip.c: remove double limit check in fcntl()

2006-11-14 Thread John Baldwin
the patch below. I actually the resulting changes obfuscate the code more than the current code, so I'd prefer to just leave it as it is. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Driver not unset properly after kldunload

2006-12-06 Thread John Baldwin
state will still be DS_ATTACHED when you call device_set_driver() now. So, I guess your patch actually makes the device _not_ be detached from the driver. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: shmmax tops out at 2G?

2006-12-13 Thread John Baldwin
to use uid_t which breaks the ABI, and if we're going to break the ABI, we should do it all at once. :) -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: Kernel hang on 6.x

2006-12-27 Thread John Baldwin
this happens? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Doubts with scheduler code

2007-01-03 Thread John Baldwin
a lot) versus compute-bound processes. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: WITNESS RELENG_6

2007-01-03 Thread John Baldwin
://www.freebsd.org/cgi/query-pr.cgi?pr=kern/107455 Perhaps, I should not use these options for everyday STABLE use? Eugene I think you are running into devfs bugs actually. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: Filesystem layering

2007-01-03 Thread John Baldwin
the vnode pointers in ap. error = VCALL(ap); /* dds: ap-a_desc == vop_read_desc */ } -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: Init.c, making it chroot

2007-01-04 Thread John Baldwin
as appropriate and get rid of the global runcom_script variable? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: hptmv not compatible with WITNESS / INVARIANTS pointers required

2007-01-04 Thread John Baldwin
-pcbVersion; @@ -1411,7 +1406,6 @@ #endif mvSataUnmaskAdapterInterrupt(pMvSataAdapter); - unlock_driver(oldspl); return 0; } -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: WITNESS RELENG_6

2007-01-04 Thread John Baldwin
On Wednesday 03 January 2007 23:07, Kostik Belousov wrote: On Wed, Jan 03, 2007 at 04:01:04PM -0500, John Baldwin wrote: On Wednesday 03 January 2007 09:18, Eugene Grosbein wrote: Hi! I try to find bugs in 6.2-PRERELEASE by using it (q) :-) The question is: are kernel options

Re: Kernel hang on 6.x

2007-01-04 Thread John Baldwin
On Thursday 04 January 2007 10:27, Brian Dean wrote: On Wed, Dec 27, 2006 at 11:50:43PM -0500, John Baldwin wrote: The 'traceall' seemed to miss several threads actually (like pid 18). Can you get a 'ps'? Also, are you able to get a kernel dump when this happens? I can't ps

Re: Init.c, making it chroot

2007-01-04 Thread John Baldwin
On Thursday 04 January 2007 13:03, Oliver Fromme wrote: John Baldwin wrote: Oliver Fromme wrote: I've created (and tested!) a new patch. I've tested on RELENG_6, but I think init(8) isn't very different on HEAD, so it should work there, too. Any comments are welcome. I

Re: SMP initialisation changes 6.1-PRERELEASE and 6.1-RELEASE?

2007-01-05 Thread John Baldwin
try using cvsup or cvs to step back to a RELENG_6 kernel that works and then using the binary date trick to figure out which commit breaks your box? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: kern/89528: [jail] impossible to kill a jail

2007-01-05 Thread John Baldwin
. Is the pty somehow stuck on the dead_cdevsw? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Init.c, making it chroot

2007-01-08 Thread John Baldwin
would save 7 characters per call. I don't think it's really worth it. But if you insist, I can update the patch with such a function. I think just using kenv() is fine. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: sbrk vs mmap

2007-01-10 Thread John Baldwin
from assembly and vice versa. You also forgot to include one of MAP_SHARED or MAP_PRIVATE in your flags. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: Kernel hang on 6.x

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 16:52, Brad L. Chisholm wrote: On Thu, 4 Jan 2007 12:53:47 -0500, John Baldwin wrote: On Thursday 04 January 2007 10:27, Brian Dean wrote: I believe that I can generate a kernel dump. We tried this yesterday but didn't have a dump device configured

Re: Kernel hang on 6.x

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 19:15, Brad L. Chisholm wrote: On Wed, Jan 10, 2007 at 05:53:24PM -0500, John Baldwin wrote: On Wednesday 10 January 2007 16:52, Brad L. Chisholm wrote: I work with Brian, and have been helping him analyze this problem. We have been able to generate

Re: Kernel hang on 6.x

2007-01-11 Thread John Baldwin
On Thursday 11 January 2007 04:21, Peter Jeremy wrote: On Wed, 2007-Jan-10 22:11:38 -0500, John Baldwin wrote: 64 / 14. That gives a result of 153405586. However, you really want to round this up to a multiple of 288 (because the kernel rounds it down to a multiple of 288), so I'd use

Re: Kernel hang on 6.x

2007-01-11 Thread John Baldwin
On Thursday 11 January 2007 02:04, Brad L. Chisholm wrote: On Wed, Jan 10, 2007 at 10:11:38PM -0500, John Baldwin wrote: On Wednesday 10 January 2007 19:15, Brad L. Chisholm wrote: I notice the following in the vm.zone output captured just prior to a hang. Does this value correspond

Re: ptrace equivalents between freebsd and linux?

2007-02-07 Thread John Baldwin
and PTRACE_DETACH are equilavent to out PT_ATTACH and PT_DETACH. The build dies later with a problem with PTRACE_PEEKDATA. Is our PT_READ_D the right equivalent? Most likely. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: unique hardware identification

2007-02-07 Thread John Baldwin
doesn't expose them. This is done via /boot/loader. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: SMP initialisation changes 6.1-PRERELEASE and 6.1-RELEASE?

2007-02-23 Thread John Baldwin
to PRELREASE source failed to produce a stable kernel. That's really odd. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: PING: Someone on the core team. (Modem Problem)

2007-02-23 Thread John Baldwin
the 8259As, but IRQ 17 isn't routed via those, so sio complains about a missing interrupt even though it is working fine. Also, in 6.2, SIO should always be able to probe a FAST since 6.1 and later have the changes that let FAST and non-FAST share IRQs. -- John Baldwin

Re: 32/64bit KSE issues?

2007-03-31 Thread John Baldwin
this reason. I plan on making sure full 32-bit compat exists for both libthr and libpthread and backporting it to 6.x for work. Very few things are too hard to wrap with a 32-bit shim. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: FW: IBM / FreeBSD - Install Update - Seems to be ACPI

2007-04-23 Thread John Baldwin
use 'set hint.apic.0.disabled=1' for now to keep ACPI and just disable SMP for now. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: IBM / FreeBSD Install problem

2007-04-23 Thread John Baldwin
@ about the details. APIC IDs are not programmable (well, they are on I/O APICs, but not local APICs). However, I am working on patches to support all valid APIC IDs for both mptable and MADT. Bumping up NLAPICS as a temporary workaround should suffice for now. -- John Baldwin

Re: IBM / FreeBSD Install problem

2007-04-23 Thread John Baldwin
On Monday 23 April 2007 02:51:19 pm Mark Tinguely wrote: John Baldwin [EMAIL PROTECTED] says: APIC IDs are not programmable (well, they are on I/O APICs, but not local=20 APICs). However, I am working on patches to support all valid APIC IDs for= =20 both mptable and MADT

Re: Usage of kern_* functions in kernel

2007-04-26 Thread John Baldwin
above? If not, can you give me some pointers on where I can find this information! kern_XXX are generally used by system calls such as alternative ABIs, etc. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: msleep() on recursivly locked mutexes

2007-04-27 Thread John Baldwin
and make sure it doesn't call mtx_sleep() or cv_wait() with a recursed lock. It's not that hard to do. The rest of the kernel manages that restriction fine. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: Usage of kern_* functions in kernel

2007-04-27 Thread John Baldwin
On Friday 27 April 2007 02:43:16 am Marc Lörner wrote: On Thursday 26 April 2007 19:49, John Baldwin wrote: On Thursday 26 April 2007 08:08:19 am Marc Lörner wrote: Hello, I googled but found nothing about the usage of the kern_* functions (kern_open, kern_close, kern_pwritev

Re: msleep() on recursivly locked mutexes

2007-04-30 Thread John Baldwin
be considered as two independent objects. For example, network drivers drop their lock when passing a packet (request) up the stack. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Debug and control registers in kdb.

2007-05-02 Thread John Baldwin
really be useful. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Experiences with 7.0-CURRENT and vmware.

2007-05-15 Thread John Baldwin
? le(4) is the newer lnc(4). -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Writing a plain text file to disk from kernel space

2007-06-05 Thread John Baldwin
) to complete. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: stopping callouts

2007-06-05 Thread John Baldwin
() { FOO_LOCK(sc); foo_stop(sc); callout_stop(sc-callout); FOO_UNLOCK(sc); bus_teardown_intr(...) bus_release_resources(...); callout_drain(sc-callout); mtx_destroy(sc-lock); } -- John Baldwin

Re: New USB stack and Zero copy.

2007-07-05 Thread John Baldwin
to solve, every other driver using bus_dma solves it. Just make sure your driver is in a sane state and drop the lock while you let bus_dmamap_load() map/copy things for you. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: New USB stack and Zero copy.

2007-07-05 Thread John Baldwin
On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote: Hans Petter Selasky wrote this message on Wed, Jul 04, 2007 at 09:01 +0200: Also: How is the easiest way

Re: New USB stack and Zero copy.

2007-07-06 Thread John Baldwin
On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: On Friday 06 July 2007 01:35, John Baldwin wrote: On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote: On Thursday 05 July 2007 03:31:59 am Hans Petter Selasky wrote: On Wednesday 04 July 2007 19:35, John-Mark Gurney wrote

Re: New USB stack and Zero copy.

2007-07-09 Thread John Baldwin
On Saturday 07 July 2007 12:14:24 pm Hans Petter Selasky wrote: On Friday 06 July 2007 22:41, John Baldwin wrote: On Friday 06 July 2007 02:59:39 am Hans Petter Selasky wrote: On Friday 06 July 2007 01:35, John Baldwin wrote: On Thursday 05 July 2007 04:25:17 pm John Baldwin wrote

Re: Audio driver template

2007-07-10 Thread John Baldwin
and restored. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: exporting subr_param values as sysctls

2007-07-11 Thread John Baldwin
. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Problem with Broadcom 5704 B1 on amd64 6.2 release

2007-07-16 Thread John Baldwin
. Thanks! Can you try a 7.0 snapshot? It has different handling of 64-bit BARs. If 7 works then we can look at backporting those changes to 6.x. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Debugging times

2007-07-16 Thread John Baldwin
and to do a fixup if the RTC appears to be dead. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: [PATCH]: acct_process() locking and exit1()

2007-07-16 Thread John Baldwin
line before the comment now. 2) acct_process() saves resource usage information, so the later it is in exit1() the more accurate it is going to be, so it's probably best to leave it as it is unless you observe a measurable change in a benchmark with this patch. -- John Baldwin

Re: Debugging times

2007-07-16 Thread John Baldwin
On Monday 16 July 2007 09:14:04 am Ivan Voras wrote: John Baldwin wrote: It's more that we use the filesystem's timestamp as a way to validate the timestamp from the RTC and to do a fixup if the RTC appears to be dead. Why not use something that doesn't depend on external factors, like

Re: add closefrom() call

2007-07-17 Thread John Baldwin
that you don't have to generate tables, etc. (so it might actually be simpler). I'm not sure it's such a bad idea to just have a fcntl to get the max open fd and do the loop in userland so you get better auditing of the individual close() operations. -- John Baldwin

Re: IDE ultraDMA problem (hackers WAS via IDE controller problem) - SOLVED !!

2007-08-15 Thread John Baldwin
for this ID as: #define ATA_VIA82C571 0x05711106 so you shouldn't have needed to change the code at all. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

Re: questions on nonsleepable lock

2007-08-15 Thread John Baldwin
in this, but the root cause was either a deadlock or use after free, etc. It should be fixed in 6-stable. I can't recall further what it is though. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: process freeze (state *inp)

2007-08-23 Thread John Baldwin
about a socket). The network stack locking had a _lot_ of changes in 6.x, and backporting them is probably very non-trivial. I'd definitely suggest updating to 6.2 (or even 6-stable) as there are many more bugs fixed in 6.x whereas 5.x does not receive hardly any bug fixes at this point. -- John

Re: Debugging problems on amd64-current

2007-08-27 Thread John Baldwin
a deadlock of some sort. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Useful tools missing from /rescue

2007-09-26 Thread John Baldwin
' in there, but curses is rather finicky; 'sed' would be more useful.) Thank you for supporting my idea! I would go for all of these as well as 'chown'. Are you still planning on doing this? -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

Re: kern.ngroups (non) setting ... new bounty ?

2007-09-27 Thread John Baldwin
to pop up by ignoring the truncation problem. And some sysadmins may use it via 'chmod 606' or the like. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: Nvidia amd64

2007-09-27 Thread John Baldwin
have been in the tree by now as it would have helped with some of the pending issues. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Sysctl Naming

2007-10-11 Thread John Baldwin
to the per-device nodes under dev. One wrinkle with this is that network interfaces can be renamed, and I don't think the dynamic sysctl stuff lets you rename an existing node currently (though you could fix that). -- John Baldwin ___ freebsd-hackers

Re: Inner workings of turnstiles and sleepqueues

2007-10-17 Thread John Baldwin
the source somewhat, but that shouldn't be an ideal solution, in my opinion. The best option right now is to read the code. There are some comments in both the headers and implementation. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http

  1   2   3   4   5   6   7   8   9   10   >