CVS: cvs.openbsd.org: src

2011-04-01 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/01 09:43:13 Modified files: sys/uvm: uvm_glue.c Log message: Two problems with vslock_device functions. - Fix error handling so that we free stuff on error. - We use the mappings to keep

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 05:24:45 Modified files: sys/uvm: uvm_extern.h uvm_km.c Log message: New unified allocator of kernel memory. We've reached the point where we have a dozen allocators that all do more or

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 05:26:51 Modified files: share/man/man9 : Makefile Added files: share/man/man9 : km_alloc.9 Log message: Documentation for km_alloc and km_free

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 05:51:20 Modified files: share/man/man9 : km_alloc.9 Log message: Missing . Noted by mikeb@

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 05:56:12 Modified files: sys/uvm: uvm_extern.h uvm_km.c Log message: Some minor fixes: - Clarify a comment. - Change all the flags to chars from ints to make the structs smaller.

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 06:22:59 Modified files: sys/uvm: uvm_km.c Log message: Make gcc stop whining. pointed out by ariane@.

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 06:25:23 Modified files: sys/uvm: uvm_km.c Log message: Better.

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 15:16:31 Modified files: sys/uvm: uvm_km.c Log message: Few minor ninja fixes while this isn't being used anywhere in -current. - Change a few KASSERT(0) into proper panics. - Match the

CVS: cvs.openbsd.org: src

2011-04-04 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/04 19:28:05 Modified files: sys/kern : dma_alloc.c subr_pool.c uipc_mbuf.c sys/sys: pool.h sys/uvm: uvm_extern.h uvm_km.c uvm_map.c Log message: - Change pool

CVS: cvs.openbsd.org: src

2011-04-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/06 09:52:13 Modified files: sys/kern : dma_alloc.c subr_pool.c uipc_mbuf.c sys/sys: pool.h sys/uvm: uvm_extern.h uvm_km.c uvm_map.c Log message: Backout the

CVS: cvs.openbsd.org: src

2011-04-18 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/18 13:23:46 Modified files: sys/kern : dma_alloc.c subr_pool.c uipc_mbuf.c sys/sys: pool.h sys/uvm: uvm_extern.h uvm_km.c uvm_map.c Log message: Put back the

CVS: cvs.openbsd.org: src

2011-04-19 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/04/19 09:59:11 Modified files: sys/uvm: uvm_km.c Log message: Free the correct pages when we failed to allocate va.

CVS: cvs.openbsd.org: src

2011-07-05 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/05 11:44:27 src/regress/sys/uvm/mmap_write_self Update of /cvs/src/regress/sys/uvm/mmap_write_self In directory cvs.openbsd.org:/tmp/cvs-serv31358/mmap_write_self Log Message: Directory

CVS: cvs.openbsd.org: src

2011-07-05 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/05 11:48:15 Added files: regress/sys/uvm/mmap_write_self: Makefile mmap_write_self.c Log message: Test for when we're writing to a file from an mmaped area of the file.

CVS: cvs.openbsd.org: src

2011-07-05 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/05 11:48:59 Modified files: regress/sys/uvm: Makefile Log message: plug in mmap_write_self

CVS: cvs.openbsd.org: src

2011-07-05 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/05 19:49:42 Modified files: sys/kern : kern_lock.c sched_bsd.c Log message: Stop using the P_BIGLOCK flag to figure out when we should release the biglock in mi_switch and just check if we're

CVS: cvs.openbsd.org: src

2011-07-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/06 15:41:37 Modified files: sys/arch/amd64/amd64: fpu.c syscall.c trap.c sys/arch/hppa/hppa: trap.c sys/arch/i386/i386: trap.c sys/arch/i386/isa: npx.c

CVS: cvs.openbsd.org: src

2011-07-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/06 15:42:11 Modified files: bin/ps : ps.1 Log message: Remove mention of P_BIGLOCK.

CVS: cvs.openbsd.org: src

2011-07-07 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2011/07/07 12:11:24 Modified files: sys/arch/amd64/amd64: fpu.c syscall.c trap.c sys/arch/hppa/hppa: trap.c sys/arch/i386/i386: trap.c sys/arch/i386/isa: npx.c

CVS: cvs.openbsd.org: src

2010-06-27 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/06/27 11:42:23 Modified files: regress/sys/kern/noexec: noexec.c Log message: GCC is being intelligent with our asm statements that were used to pad stuff before and after a function. We made the

CVS: cvs.openbsd.org: src

2010-06-28 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/06/28 15:23:20 Modified files: sys/kern : kern_time.c Log message: clock_gettime(CLOCK_PROF) didn't account for the time between the last context switch and the call to clock_gettime. oga@ ok

CVS: cvs.openbsd.org: src

2010-06-30 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/06/30 16:38:17 Modified files: sys/kern : sched_bsd.c Log message: This comment is unnecessarily confusing.

CVS: cvs.openbsd.org: src

2010-07-01 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/07/01 15:27:39 Modified files: sys/kern : kern_physio.c sys/uvm: uvm_extern.h uvm_glue.c Log message: Implement vs{,un}lock_device and use it for physio. Just like normal

Re: CVS: cvs.openbsd.org: src

2010-07-01 Thread Artur Grabowski
This was ok oga@, beck@ and thib@ On Thu, Jul 1, 2010 at 11:27 PM, Artur Grabowski a...@cvs.openbsd.org wrote: CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org 2010/07/01 15:27:39 Modified files: sys/kern : kern_physio.c sys/uvm

CVS: cvs.openbsd.org: src

2010-07-01 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/07/01 19:25:06 Modified files: sys/kern : kern_fork.c kern_malloc.c subr_pool.c sys/uvm: uvm_extern.h uvm_km.c Log message: add an align argument to uvm_km_kmemalloc_pla. Use

CVS: cvs.openbsd.org: src

2010-07-02 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2010/07/02 12:26:58 Modified files: sys/uvm: uvm_glue.c Log message: Add missing pmap_update. pointed out by matthew@

Re: CVS: cvs.openbsd.org: src

2008-09-05 Thread Artur Grabowski
My mistake. This will be backed out shortly. splsched() actually does what we want, but it took me a while to figure out why. IPL_SCHED doesn't (and breaks some architectures). In short. we enter msleep at any spl. sleep_setup goes to IPL_SCHED or stays (if we where higher). we call splsched()

CVS: cvs.openbsd.org: src

2008-09-18 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/09/18 01:50:39 Modified files: usr.sbin/procmap: procmap.c Log message: Add a flag to print amap usage. otto@ ok

CVS: cvs.openbsd.org: src

2008-09-23 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/09/23 07:25:46 Modified files: sys/uvm: uvm_map.c Log message: Do not merge userland map entries. Imagine lots of random small mappings (think malloc(3)) and sometimes one large mapping

CVS: cvs.openbsd.org: src

2008-09-29 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/09/29 06:34:18 Modified files: sys/kern : kern_malloc.c sys/sys: malloc.h param.h sys/uvm: uvm_init.c Log message: Use pools to do allocations for all sizes =

CVS: cvs.openbsd.org: src

2008-10-10 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/10/10 02:05:45 Modified files: sys/arch/alpha/include: cpu.h sys/arch/arm/include: cpu.h sys/arch/hppa/include: cpu.h sys/arch/hppa64/include: cpu.h

CVS: cvs.openbsd.org: src

2008-10-10 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/10/10 02:36:28 Modified files: sys/arch/alpha/include: cpu.h sys/arch/arm/include: cpu.h sys/arch/hppa/include: cpu.h sys/arch/hppa64/include: cpu.h

CVS: cvs.openbsd.org: src

2008-11-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/06 15:11:36 Modified files: sys/kern : sched_bsd.c Log message: Some paranoia and deconfusion. - setrunnable should never be run on SIDL processes. That's a bug and will cause all kinds of

CVS: cvs.openbsd.org: src

2008-11-10 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/10 09:50:13 Modified files: sys/arch/sparc64/dev: vbus.c Log message: Use the correct sizeof for the _ca. obviously correct kettenis@

CVS: cvs.openbsd.org: src

2008-11-22 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/22 07:42:29 Modified files: sys/arch/macppc/macppc: machdep.c sys/arch/powerpc/include: cpu.h Log message: cpu_unidle for macppc ok drahn@

CVS: cvs.openbsd.org: src

2008-11-24 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/24 08:50:47 Modified files: sys/arch/i386/i386: pmap.c Log message: - Remove the special case for one page pmap_remove, it's useless. - Move the code that drops a ptp into a function and use that in

CVS: cvs.openbsd.org: src

2008-11-24 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/24 09:32:45 Modified files: sys/arch/i386/i386: pmap.c Log message: oops. something snuck in here that wasn't supposed to be. noticed by yuo@

Re: CVS: cvs.openbsd.org: src

2008-11-24 Thread Artur Grabowski
David Gwynne [EMAIL PROTECTED] writes: CVSROOT: /cvs Module name: src Changes by: [EMAIL PROTECTED] 2008/11/24 12:17:16 Modified files: sys/kern : uipc_mbuf.c Log message: art isnt handling spls properly in the pool allocator backends for big objects. dmesg is

CVS: cvs.openbsd.org: src

2008-11-24 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/24 14:36:07 Modified files: sys/kern : subr_pool.c Log message: Protect kmem_map allocations with splvm. This should make dlg happy.

CVS: cvs.openbsd.org: src

2008-11-25 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/25 06:05:51 Modified files: sys/kern : subr_pool.c Log message: Make sure that equal elements always compare equal. Logic error spotted by otto@ ok otto@

CVS: cvs.openbsd.org: src

2008-11-25 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: [EMAIL PROTECTED] 2008/11/25 10:58:01 Modified files: sys/kern : subr_pool.c Log message: Back out the large page pools for now. The compare function is borked and instead of stressing to figure out how to fix it, I'll

CVS: cvs.openbsd.org: src

2009-03-23 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/03/23 07:25:11 Modified files: sys/arch/amd64/amd64: pmap.c sys/arch/arm/arm: pmap.c sys/kern : kern_fork.c kern_sched.c kern_synch.c sched_bsd.c

CVS: cvs.openbsd.org: src

2009-03-31 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/03/31 02:49:18 Modified files: sys/arch/amd64/amd64: locore.S Log message: - remove obsolete comment - remove dead (#if 0) code - move switch_error panics to after cpu_switchto to make branch

CVS: cvs.openbsd.org: src

2009-04-03 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/03 03:29:15 Modified files: sys/kern : kern_sched.c sys/sys: proc.h sched.h Log message: sched_peg_curproc_to_cpu() - function to force a proc to stay on a cpu forever.

CVS: cvs.openbsd.org: src

2009-04-03 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/03 03:30:15 Modified files: sys/kern : kern_xxx.c Log message: Make sure that sys_reboot runs on the primary cpu. Won't hurt when not needed, but some machines seem to work much better with

CVS: cvs.openbsd.org: src

2009-04-14 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/14 03:13:25 Modified files: sys/kern : kern_fork.c kern_sched.c kern_synch.c sched_bsd.c sys/sys: proc.h sched.h Log message: Some tweaks to the cpu

CVS: cvs.openbsd.org: src

2009-04-15 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/15 04:47:46 Modified files: sys/kern : kern_proc.c Log message: Misplaced comment. From Kirill Timofeev

CVS: cvs.openbsd.org: src

2009-04-20 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/20 02:48:17 Modified files: sys/kern : kern_sched.c Log message: Make pegging a proc work when there are idle cpus that are looking for something to do. Walk the highest priority queue looking

CVS: cvs.openbsd.org: src

2009-04-22 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/22 02:35:54 Modified files: sys/kern : kern_sched.c Log message: When starting up idle, explicitly set p_cpu and the peg flag for the idle proc. p_cpu might be necessary in the future and

CVS: cvs.openbsd.org: src

2009-04-22 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/22 07:12:26 Modified files: sys/kern : vfs_bio.c vfs_biomem.c sys/sys: buf.h Log message: Make the interactions in allocating buffers less confusing. - getnewbuf dies.

CVS: cvs.openbsd.org: src

2009-04-23 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/04/23 01:42:02 Modified files: sys/arch/amd64/amd64: cpu.c genassym.cf lapic.c locore.S pmap.c vector.S vm_machdep.c sys/arch/amd64/include: cpu.h i82489var.h

Re: CVS: cvs.openbsd.org: src

2009-04-30 Thread Artur Grabowski
David Gwynne d...@cvs.openbsd.org writes: CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org2009/04/29 19:12:44 Modified files: sys/stand/boot : vars.c Log message: add another settable variable called db_console which the MD parts of a bootloader will

CVS: cvs.openbsd.org: src

2009-05-28 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/05/28 03:05:33 Modified files: sys/arch/amd64/amd64: cpu.c genassym.cf lapic.c locore.S pmap.c vector.S vm_machdep.c sys/arch/amd64/include: cpu.h i82489var.h

CVS: cvs.openbsd.org: src

2009-06-02 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/06/02 20:31:48 Modified files: sys/arch/i386/i386: pmap.c Log message: droppmap is only necessary (and declared) on MULTIPROCESSOR

CVS: cvs.openbsd.org: src

2009-06-03 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/06/03 13:05:34 Modified files: sys/arch/i386/i386: acpi_machdep.c Log message: Make sure we're running on the right pmap when going to sleep.

CVS: cvs.openbsd.org: src

2009-06-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/06/06 12:06:22 Modified files: sys/kern : vfs_bio.c vfs_biomem.c vfs_subr.c sys/miscfs/specfs: spec_vnops.c sys/nfs: nfs_syscalls.c nfs_vnops.c sys/ufs/ffs:

CVS: cvs.openbsd.org: src

2009-06-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/06/06 12:57:31 Modified files: sys/arch/amd64/amd64: trap.c Log message: When getting a fault in the kernel, we checked for biglock and failed immediately when biglock wasn't held. But there is nothing

CVS: cvs.openbsd.org: src

2009-06-06 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/06/06 17:35:08 Modified files: sys/uvm: uvm_pdaemon.c Log message: Somehow I missed comitting this.

CVS: cvs.openbsd.org: src

2009-07-28 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/07/28 05:19:43 Modified files: sys/nfs: nfs_bio.c Log message: Using the buf pointer returned from incore is a really bad idea. Even if we know that someone safely holds B_BUSY and will not

CVS: cvs.openbsd.org: src

2009-08-09 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/08/09 08:37:46 Modified files: sys/sys: mount.h sys/kern : vfs_biomem.c Log message: Keep track of number of currently mapped and B_BUSY buffers. beck@ ok

CVS: cvs.openbsd.org: src

2009-08-09 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/08/09 08:38:36 Modified files: usr.bin/systat : iostat.c Log message: Show the busy and mapped pages in iostat.

CVS: cvs.openbsd.org: src

2009-08-09 Thread Artur Grabowski
CVSROOT:/cvs Module name:src Changes by: a...@cvs.openbsd.org2009/08/09 11:45:02 Modified files: sys/kern : vfs_biomem.c Log message: buf_dealloc_mem can be called without B_BUSY. Don't decrement busymapped in that case.