Date: Sun, 6 Jan 2008 22:39:15 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132652 for review Message-ID: <200801062239.m06MdFw1087055@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132652 Change 132652 by csjp@csjp_xor on 2008/01/06 22:38:48 Integrate the zcopybpf branch Affected files ... .. //depot/projects/zcopybpf/src/sys/amd64/amd64/machdep.c#8 integrate .. //depot/projects/zcopybpf/src/sys/amd64/amd64/mp_watchdog.c#3 integrate .. //depot/projects/zcopybpf/src/sys/amd64/amd64/pmap.c#11 integrate .. //depot/projects/zcopybpf/src/sys/amd64/conf/NOTES#9 integrate .. //depot/projects/zcopybpf/src/sys/amd64/include/pmap.h#2 integrate .. //depot/projects/zcopybpf/src/sys/amd64/include/vmparam.h#6 integrate .. //depot/projects/zcopybpf/src/sys/arm/arm/pmap.c#9 integrate .. //depot/projects/zcopybpf/src/sys/arm/at91/uart_dev_at91usart.c#3 integrate .. //depot/projects/zcopybpf/src/sys/arm/include/vmparam.h#5 integrate .. //depot/projects/zcopybpf/src/sys/boot/powerpc/ofw/Makefile#2 integrate .. //depot/projects/zcopybpf/src/sys/cam/cam_xpt.c#9 integrate .. //depot/projects/zcopybpf/src/sys/cam/scsi/scsi_low.h#2 integrate .. //depot/projects/zcopybpf/src/sys/compat/linux/linux_file.c#5 integrate .. //depot/projects/zcopybpf/src/sys/compat/linux/linux_stats.c#4 integrate .. //depot/projects/zcopybpf/src/sys/compat/ndis/subr_ntoskrnl.c#6 integrate .. //depot/projects/zcopybpf/src/sys/compat/svr4/svr4_stream.c#2 integrate .. //depot/projects/zcopybpf/src/sys/conf/NOTES#14 integrate .. //depot/projects/zcopybpf/src/sys/conf/files#15 integrate .. //depot/projects/zcopybpf/src/sys/conf/files.i386#8 integrate .. //depot/projects/zcopybpf/src/sys/conf/options#11 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_capture.c#1 branch .. //depot/projects/zcopybpf/src/sys/ddb/db_command.c#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_command.h#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_input.c#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_lex.c#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_lex.h#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_main.c#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_output.c#2 integrate .. //depot/projects/zcopybpf/src/sys/ddb/db_script.c#1 branch .. //depot/projects/zcopybpf/src/sys/ddb/db_textdump.c#1 branch .. //depot/projects/zcopybpf/src/sys/ddb/ddb.h#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/acpica/Osd/OsdDebug.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/acpica/acpi_thermal.c#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/ata/ata-all.h#7 integrate .. //depot/projects/zcopybpf/src/sys/dev/ata/ata-disk.c#7 integrate .. //depot/projects/zcopybpf/src/sys/dev/atkbdc/atkbd.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/atkbdc/atkbd_atkbdc.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/bge/if_bge.c#8 integrate .. //depot/projects/zcopybpf/src/sys/dev/bge/if_bgereg.h#6 integrate .. //depot/projects/zcopybpf/src/sys/dev/cxgb/cxgb_l2t.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/dcons/dcons_os.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/ed/if_ed_pci.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/ed/if_ed_rtl80x9.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/creator.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/fb.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/fbreg.h#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/machfb.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/splash_bmp.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/splash_pcx.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/fb/vga.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/gem/if_gem.c#6 integrate .. //depot/projects/zcopybpf/src/sys/dev/gem/if_gem_pci.c#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/gem/if_gemreg.h#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/gem/if_gemvar.h#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/ichwd/ichwd.c#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/ichwd/ichwd.h#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/kbd/kbd.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/kbd/kbdreg.h#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/kbdmux/kbdmux.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/le/am7990.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/le/am79900.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/ofw/ofw_console.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/pci/pci_user.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/sio/sio.c#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/streams/streams.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/blank/blank_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/daemon/daemon_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/dragon/dragon_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/fade/fade_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/fire/fire_saver.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/green/green_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/logo/logo_saver.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/rain/rain_saver.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/scgfbrndr.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/scvgarndr.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/scvidctl.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/snake/snake_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/star/star_saver.c#2 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/syscons.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/syscons.h#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/syscons/warp/warp_saver.c#3 integrate .. //depot/projects/zcopybpf/src/sys/dev/uart/uart_core.c#4 integrate .. //depot/projects/zcopybpf/src/sys/dev/usb/ukbd.c#7 integrate .. //depot/projects/zcopybpf/src/sys/dev/usb/ums.c#5 integrate .. //depot/projects/zcopybpf/src/sys/dev/vkbd/vkbd.c#2 integrate .. //depot/projects/zcopybpf/src/sys/fs/devfs/devfs_vnops.c#7 integrate .. //depot/projects/zcopybpf/src/sys/fs/fifofs/fifo_vnops.c#6 integrate .. //depot/projects/zcopybpf/src/sys/fs/unionfs/union_subr.c#5 integrate .. //depot/projects/zcopybpf/src/sys/fs/unionfs/union_vnops.c#5 integrate .. //depot/projects/zcopybpf/src/sys/i386/conf/GENERIC.hints#3 integrate .. //depot/projects/zcopybpf/src/sys/i386/conf/NOTES#9 integrate .. //depot/projects/zcopybpf/src/sys/i386/i386/machdep.c#8 integrate .. //depot/projects/zcopybpf/src/sys/i386/i386/mp_watchdog.c#3 integrate .. //depot/projects/zcopybpf/src/sys/i386/i386/pmap.c#11 integrate .. //depot/projects/zcopybpf/src/sys/i386/include/pmap.h#5 integrate .. //depot/projects/zcopybpf/src/sys/i386/include/vmparam.h#7 integrate .. //depot/projects/zcopybpf/src/sys/i386/xbox/xboxfb.c#3 integrate .. //depot/projects/zcopybpf/src/sys/ia64/ia64/machdep.c#7 integrate .. //depot/projects/zcopybpf/src/sys/ia64/ia64/pmap.c#7 integrate .. //depot/projects/zcopybpf/src/sys/ia64/include/vmparam.h#6 integrate .. //depot/projects/zcopybpf/src/sys/isa/vga_isa.c#2 integrate .. //depot/projects/zcopybpf/src/sys/kern/imgact_elf.c#5 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_clock.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_descrip.c#9 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_event.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_exec.c#9 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_lock.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_mib.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_proc.c#7 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_shutdown.c#5 integrate .. //depot/projects/zcopybpf/src/sys/kern/kern_tc.c#3 integrate .. //depot/projects/zcopybpf/src/sys/kern/sched_ule.c#12 integrate .. //depot/projects/zcopybpf/src/sys/kern/subr_kdb.c#3 integrate .. //depot/projects/zcopybpf/src/sys/kern/subr_lock.c#8 integrate .. //depot/projects/zcopybpf/src/sys/kern/subr_smp.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/subr_witness.c#8 integrate .. //depot/projects/zcopybpf/src/sys/kern/sys_generic.c#7 integrate .. //depot/projects/zcopybpf/src/sys/kern/sys_pipe.c#6 integrate .. //depot/projects/zcopybpf/src/sys/kern/tty_cons.c#3 integrate .. //depot/projects/zcopybpf/src/sys/kern/uipc_debug.c#3 integrate .. //depot/projects/zcopybpf/src/sys/kern/uipc_mqueue.c#5 integrate .. //depot/projects/zcopybpf/src/sys/kern/uipc_syscalls.c#11 integrate .. //depot/projects/zcopybpf/src/sys/kern/uipc_usrreq.c#8 integrate .. //depot/projects/zcopybpf/src/sys/kern/vfs_bio.c#9 integrate .. //depot/projects/zcopybpf/src/sys/kern/vfs_mount.c#11 integrate .. //depot/projects/zcopybpf/src/sys/kern/vfs_subr.c#9 integrate .. //depot/projects/zcopybpf/src/sys/kern/vfs_syscalls.c#8 integrate .. //depot/projects/zcopybpf/src/sys/kern/vfs_vnops.c#6 integrate .. //depot/projects/zcopybpf/src/sys/net/bpf.c#36 integrate .. //depot/projects/zcopybpf/src/sys/net/bpf_filter.c#5 integrate .. //depot/projects/zcopybpf/src/sys/net/ieee8023ad_lacp.c#6 integrate .. //depot/projects/zcopybpf/src/sys/net/ieee8023ad_lacp.h#5 integrate .. //depot/projects/zcopybpf/src/sys/net/if_enc.c#3 integrate .. //depot/projects/zcopybpf/src/sys/net/if_lagg.c#8 integrate .. //depot/projects/zcopybpf/src/sys/net/netisr.h#2 integrate .. //depot/projects/zcopybpf/src/sys/net/route.c#5 integrate .. //depot/projects/zcopybpf/src/sys/net/route.h#3 integrate .. //depot/projects/zcopybpf/src/sys/netgraph/ng_base.c#7 integrate .. //depot/projects/zcopybpf/src/sys/netgraph/ng_pppoe.c#4 integrate .. //depot/projects/zcopybpf/src/sys/netgraph/ng_pppoe.h#2 integrate .. //depot/projects/zcopybpf/src/sys/netgraph/ng_socket.c#4 integrate .. //depot/projects/zcopybpf/src/sys/netinet/if_ether.c#8 integrate .. //depot/projects/zcopybpf/src/sys/netinet/if_ether.h#3 integrate .. //depot/projects/zcopybpf/src/sys/netinet/ip_dummynet.c#8 integrate .. //depot/projects/zcopybpf/src/sys/opencrypto/cryptodev.c#5 integrate .. //depot/projects/zcopybpf/src/sys/pc98/cbus/gdc.c#2 integrate .. //depot/projects/zcopybpf/src/sys/pc98/cbus/pckbd.c#3 integrate .. //depot/projects/zcopybpf/src/sys/pc98/cbus/scgdcrndr.c#2 integrate .. //depot/projects/zcopybpf/src/sys/pc98/cbus/sio.c#5 integrate .. //depot/projects/zcopybpf/src/sys/pc98/pc98/machdep.c#7 integrate .. //depot/projects/zcopybpf/src/sys/powerpc/aim/machdep.c#2 integrate .. //depot/projects/zcopybpf/src/sys/powerpc/include/vmparam.h#5 integrate .. //depot/projects/zcopybpf/src/sys/powerpc/powermac/pswitch.c#3 integrate .. //depot/projects/zcopybpf/src/sys/powerpc/powerpc/pmap_dispatch.c#4 integrate .. //depot/projects/zcopybpf/src/sys/security/audit/audit_pipe.c#4 integrate .. //depot/projects/zcopybpf/src/sys/security/mac_test/mac_test.c#7 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/include/vmparam.h#6 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/pci/psycho.c#8 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/sparc64/machdep.c#6 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/sparc64/pmap.c#7 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/sparc64/trap.c#4 integrate .. //depot/projects/zcopybpf/src/sys/sparc64/sparc64/tsb.c#3 integrate .. //depot/projects/zcopybpf/src/sys/sun4v/include/vmparam.h#6 integrate .. //depot/projects/zcopybpf/src/sys/sun4v/sun4v/hvcons.c#3 integrate .. //depot/projects/zcopybpf/src/sys/sun4v/sun4v/machdep.c#4 integrate .. //depot/projects/zcopybpf/src/sys/sun4v/sun4v/pmap.c#5 integrate .. //depot/projects/zcopybpf/src/sys/sun4v/sun4v/trap.c#4 integrate .. //depot/projects/zcopybpf/src/sys/sys/copyright.h#2 integrate .. //depot/projects/zcopybpf/src/sys/sys/file.h#2 integrate .. //depot/projects/zcopybpf/src/sys/sys/kdb.h#2 integrate .. //depot/projects/zcopybpf/src/sys/sys/kernel.h#6 integrate .. //depot/projects/zcopybpf/src/sys/sys/kerneldump.h#3 integrate .. //depot/projects/zcopybpf/src/sys/sys/lockmgr.h#4 integrate .. //depot/projects/zcopybpf/src/sys/sys/mbuf.h#8 integrate .. //depot/projects/zcopybpf/src/sys/sys/param.h#11 integrate .. //depot/projects/zcopybpf/src/sys/sys/priv.h#8 integrate .. //depot/projects/zcopybpf/src/sys/sys/sysctl.h#6 integrate .. //depot/projects/zcopybpf/src/sys/sys/tree.h#3 integrate .. //depot/projects/zcopybpf/src/sys/sys/unpcb.h#3 integrate .. //depot/projects/zcopybpf/src/sys/ufs/ffs/ffs_balloc.c#3 integrate .. //depot/projects/zcopybpf/src/sys/ufs/ffs/ffs_vnops.c#7 integrate .. //depot/projects/zcopybpf/src/sys/vm/pmap.h#4 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm.h#2 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_fault.c#6 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_kern.c#5 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_map.c#9 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_object.c#8 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_object.h#3 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_page.c#11 integrate .. //depot/projects/zcopybpf/src/sys/vm/vm_reserv.c#1 branch .. //depot/projects/zcopybpf/src/sys/vm/vm_reserv.h#1 branch .. //depot/projects/zcopybpf/src/usr.sbin/netstat/atalk.c#3 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/bpf.c#7 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/if.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/inet.c#7 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/inet6.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/ipsec.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/ipx.c#3 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/main.c#5 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/mbuf.c#3 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/mcast.c#5 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/mroute.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/mroute6.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/netgraph.c#3 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/netstat.h#5 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/pfkey.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/route.c#4 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/sctp.c#5 integrate .. //depot/projects/zcopybpf/src/usr.sbin/netstat/unix.c#3 integrate Differences ... ==== //depot/projects/zcopybpf/src/sys/amd64/amd64/machdep.c#8 (text+ko) ==== @@ -39,7 +39,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/machdep.c,v 1.679 2007/12/12 20:24:06 rpaulo Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/machdep.c,v 1.680 2007/12/25 17:51:55 rwatson Exp $"); #include "opt_atalk.h" #include "opt_atpic.h" @@ -1277,7 +1277,8 @@ #ifdef KDB if (boothowto & RB_KDB) - kdb_enter("Boot flags requested debugger"); + kdb_enter(KDB_WHY_BOOTFLAGS, + "Boot flags requested debugger"); #endif identify_cpu(); /* Final stage of CPU initialization */ ==== //depot/projects/zcopybpf/src/sys/amd64/amd64/mp_watchdog.c#3 (text+ko) ==== @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/amd64/amd64/mp_watchdog.c,v 1.5 2007/06/04 23:56:33 jeff Exp $ + * $FreeBSD: src/sys/amd64/amd64/mp_watchdog.c,v 1.6 2007/12/25 17:51:55 rwatson Exp $ */ #include "opt_mp_watchdog.h" @@ -203,7 +203,7 @@ if (watchdog_nmi) watchdog_ipi_nmi(); else - kdb_enter("mp_watchdog"); + kdb_enter(KDB_WHY_WATCHDOG, "mp_watchdog"); } } bcopy(old_pcomm, p->p_comm, MAXCOMLEN + 1); ==== //depot/projects/zcopybpf/src/sys/amd64/amd64/pmap.c#11 (text+ko) ==== @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.599 2007/12/09 21:00:35 alc Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/pmap.c,v 1.602 2008/01/06 18:51:03 alc Exp $"); /* * Manages physical address maps. @@ -614,7 +614,6 @@ { TAILQ_INIT(&m->md.pv_list); - m->md.pv_list_count = 0; } /* @@ -1554,7 +1553,7 @@ /* We need a new PDP entry */ nkpg = vm_page_alloc(NULL, nkpt, VM_ALLOC_NOOBJ | VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); - if (!nkpg) + if (nkpg == NULL) panic("pmap_growkernel: no memory to grow kernel"); pmap_zero_page(nkpg); paddr = VM_PAGE_TO_PHYS(nkpg); @@ -1572,12 +1571,9 @@ continue; } - /* - * This index is bogus, but out of the way - */ - nkpg = vm_page_alloc(NULL, nkpt, + nkpg = vm_page_alloc(NULL, pmap_pde_pindex(kernel_vm_end), VM_ALLOC_NOOBJ | VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); - if (!nkpg) + if (nkpg == NULL) panic("pmap_growkernel: no memory to grow kernel"); nkpt++; @@ -1702,7 +1698,6 @@ TAILQ_REMOVE(&m->md.pv_list, pv, pv_list); if (TAILQ_EMPTY(&m->md.pv_list)) vm_page_flag_clear(m, PG_WRITEABLE); - m->md.pv_list_count--; free_pv_entry(pmap, pv); if (pmap != locked_pmap) PMAP_UNLOCK(pmap); @@ -1850,7 +1845,6 @@ } KASSERT(pv != NULL, ("pmap_remove_entry: pv not found")); TAILQ_REMOVE(&m->md.pv_list, pv, pv_list); - m->md.pv_list_count--; if (TAILQ_EMPTY(&m->md.pv_list)) vm_page_flag_clear(m, PG_WRITEABLE); free_pv_entry(pmap, pv); @@ -1870,7 +1864,6 @@ pv = get_pv_entry(pmap, FALSE); pv->pv_va = va; TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); - m->md.pv_list_count++; } /* @@ -1887,7 +1880,6 @@ (pv = get_pv_entry(pmap, TRUE)) != NULL) { pv->pv_va = va; TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); - m->md.pv_list_count++; return (TRUE); } else return (FALSE); @@ -2121,7 +2113,6 @@ pmap_invalidate_page(pmap, pv->pv_va); pmap_free_zero_pages(free); TAILQ_REMOVE(&m->md.pv_list, pv, pv_list); - m->md.pv_list_count--; free_pv_entry(pmap, pv); PMAP_UNLOCK(pmap); } @@ -2253,8 +2244,8 @@ * insert this page into the given map NOW. */ void -pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, - boolean_t wired) +pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, + vm_prot_t prot, boolean_t wired) { vm_paddr_t pa; pd_entry_t *pde; @@ -3048,7 +3039,6 @@ PV_STAT(pv_entry_spare++); pv_entry_count--; pc->pc_map[field] |= bitmask; - m->md.pv_list_count--; TAILQ_REMOVE(&m->md.pv_list, pv, pv_list); if (TAILQ_EMPTY(&m->md.pv_list)) vm_page_flag_clear(m, PG_WRITEABLE); ==== //depot/projects/zcopybpf/src/sys/amd64/conf/NOTES#9 (text+ko) ==== @@ -4,7 +4,7 @@ # This file contains machine dependent kernel configuration notes. For # machine independent notes, look in /sys/conf/NOTES. # -# $FreeBSD: src/sys/amd64/conf/NOTES,v 1.73 2007/12/15 00:56:16 scottl Exp $ +# $FreeBSD: src/sys/amd64/conf/NOTES,v 1.74 2007/12/28 22:50:04 rpaulo Exp $ # # @@ -411,6 +411,7 @@ # vpd: Vital Product Data kernel interface # cy: Cyclades serial driver # digi: Digiboard driver +# asmc: Apple System Management Controller # Notes on the Specialix SI/XIO driver: # The host card is memory, not IO mapped. @@ -436,7 +437,7 @@ hint.pbio.0.port="0x360" device smbios device vpd - +device asmc # # Laptop/Notebook options: # ==== //depot/projects/zcopybpf/src/sys/amd64/include/pmap.h#2 (text+ko) ==== @@ -39,7 +39,7 @@ * * from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90 * from: @(#)pmap.h 7.4 (Berkeley) 5/12/91 - * $FreeBSD: src/sys/amd64/include/pmap.h,v 1.138 2006/12/05 11:31:33 ru Exp $ + * $FreeBSD: src/sys/amd64/include/pmap.h,v 1.139 2008/01/06 18:51:04 alc Exp $ */ #ifndef _MACHINE_PMAP_H_ @@ -231,7 +231,6 @@ struct pv_chunk; struct md_page { - int pv_list_count; TAILQ_HEAD(,pv_entry) pv_list; }; ==== //depot/projects/zcopybpf/src/sys/amd64/include/vmparam.h#6 (text+ko) ==== @@ -38,7 +38,7 @@ * SUCH DAMAGE. * * from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91 - * $FreeBSD: src/sys/amd64/include/vmparam.h,v 1.49 2007/09/25 06:25:04 alc Exp $ + * $FreeBSD: src/sys/amd64/include/vmparam.h,v 1.50 2007/12/27 16:45:38 alc Exp $ */ @@ -132,6 +132,20 @@ #define VM_NFREEORDER 13 /* + * Enable superpage reservations: 1 level. + */ +#ifndef VM_NRESERVLEVEL +#define VM_NRESERVLEVEL 1 +#endif + +/* + * Level 0 reservations consist of 512 pages. + */ +#ifndef VM_LEVEL_0_ORDER +#define VM_LEVEL_0_ORDER 9 +#endif + +/* * Virtual addresses of things. Derived from the page directory and * page table indexes from pmap.h for precision. * Because of the page that is both a PD and PT, it looks a little ==== //depot/projects/zcopybpf/src/sys/arm/arm/pmap.c#9 (text+ko) ==== @@ -147,7 +147,7 @@ #include "opt_vm.h" #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/pmap.c,v 1.93 2007/12/11 20:35:44 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/pmap.c,v 1.96 2008/01/03 07:34:33 alc Exp $"); #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -3170,11 +3170,10 @@ #if defined(PMAP_DEBUG) /* - * XXX this makes pmap_page_protect(NONE) illegal for non-managed - * pages! + * XXX This makes pmap_remove_all() illegal for non-managed pages! */ if (m->flags & PG_FICTITIOUS) { - panic("pmap_page_protect: illegal for unmanaged page, va: 0x%x", VM_PAGE_TO_PHYS(m)); + panic("pmap_remove_all: illegal for unmanaged page, va: 0x%x", VM_PAGE_TO_PHYS(m)); } #endif @@ -3325,8 +3324,8 @@ */ void -pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot, - boolean_t wired) +pmap_enter(pmap_t pmap, vm_offset_t va, vm_prot_t access, vm_page_t m, + vm_prot_t prot, boolean_t wired) { vm_page_lock_queues(); ==== //depot/projects/zcopybpf/src/sys/arm/at91/uart_dev_at91usart.c#3 (text) ==== @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/at91/uart_dev_at91usart.c,v 1.12 2007/04/02 22:00:21 marcel Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/at91/uart_dev_at91usart.c,v 1.13 2007/12/25 17:51:55 rwatson Exp $"); #include "opt_comconsole.h" @@ -508,7 +508,7 @@ #if defined(KDB) && defined(ALT_BREAK_TO_DEBUGGER) if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) { if (kdb_alt_break(key, &sc->sc_altbrk)) - kdb_enter("Break sequence to console"); + kdb_enter(KDB_WHY_BREAK, "Break sequence to console"); } #endif uart_rx_put(sc, key); ==== //depot/projects/zcopybpf/src/sys/arm/include/vmparam.h#5 (text+ko) ==== @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD: src/sys/arm/include/vmparam.h,v 1.11 2007/09/25 06:25:04 alc Exp $ + * $FreeBSD: src/sys/arm/include/vmparam.h,v 1.12 2007/12/27 16:45:38 alc Exp $ */ #ifndef _MACHINE_VMPARAM_H_ @@ -85,6 +85,13 @@ */ #define VM_NFREEORDER 9 +/* + * Disable superpage reservations. + */ +#ifndef VM_NRESERVLEVEL +#define VM_NRESERVLEVEL 0 +#endif + #define UPT_MAX_ADDRESS VADDR(UPTPTDI + 3, 0) #define UPT_MIN_ADDRESS VADDR(UPTPTDI, 0) ==== //depot/projects/zcopybpf/src/sys/boot/powerpc/ofw/Makefile#2 (text+ko) ==== @@ -1,9 +1,9 @@ -# $FreeBSD: src/sys/boot/powerpc/ofw/Makefile,v 1.20 2007/12/17 22:18:07 marcel Exp $ +# $FreeBSD: src/sys/boot/powerpc/ofw/Makefile,v 1.21 2007/12/26 19:15:58 marcel Exp $ .include <bsd.own.mk> PROG= loader -NEWVERSWHAT= "bootstrap loader" "Open Firmware/PowerPC" +NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH} BINDIR?= /boot INSTALLFLAGS= -b ==== //depot/projects/zcopybpf/src/sys/cam/cam_xpt.c#9 (text+ko) ==== @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/cam/cam_xpt.c,v 1.192 2007/12/16 07:49:44 scottl Exp $"); +__FBSDID("$FreeBSD: src/sys/cam/cam_xpt.c,v 1.193 2008/01/02 01:45:31 obrien Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -172,12 +172,12 @@ * identify, and removed when a device fails to respond after a number * of retries, or a bus rescan finds the device missing. */ -struct cam_et { +struct cam_et { TAILQ_HEAD(, cam_ed) ed_entries; TAILQ_ENTRY(cam_et) links; - struct cam_eb *bus; + struct cam_eb *bus; target_id_t target_id; - u_int32_t refcount; + u_int32_t refcount; u_int generation; struct timeval last_reset; }; @@ -187,7 +187,7 @@ * are created by calls to xpt_bus_register and deleted by calls to * xpt_bus_deregister. */ -struct cam_eb { +struct cam_eb { TAILQ_HEAD(, cam_et) et_entries; TAILQ_ENTRY(cam_eb) links; path_id_t path_id; @@ -275,7 +275,7 @@ static const char seagate[] = "SEAGATE"; static const char microp[] = "MICROP"; -static struct xpt_quirk_entry xpt_quirk_table[] = +static struct xpt_quirk_entry xpt_quirk_table[] = { { /* Reports QUEUE FULL for temporary resource shortages */ @@ -315,12 +315,12 @@ * * For future reference, the drive with the problem was: * QUANTUM QM39100TD-SW N1B0 - * + * * It's possible that Quantum will fix the problem in later * firmware revisions. If that happens, the quirk entry * will need to be made specific to the firmware revisions * with the problem. - * + * */ /* Reports QUEUE FULL for temporary resource shortages */ { T_DIRECT, SIP_MEDIA_FIXED, quantum, "QM39100*", "*" }, @@ -351,7 +351,7 @@ /* * The Seagate Medalist Pro drives have very poor write * performance with anything more than 2 tags. - * + * * Reported by: Paul van der Zwan <paulz@trantor.xs4all.nl> * Drive: <SEAGATE ST36530N 1444> * @@ -406,7 +406,7 @@ /*quirks*/0, /*mintags*/0, /*maxtags*/0 }, { - /* Broken tagged queuing drive */ + /* Broken tagged queuing drive */ { T_DIRECT, SIP_MEDIA_FIXED, "CONNER", "CFP2107*", "*" }, /*quirks*/0, /*mintags*/0, /*maxtags*/0 }, @@ -924,7 +924,7 @@ */ retval = xpt_schedule_dev(&bus->sim->devq->alloc_queue, &dev->alloc_ccb_entry.pinfo, - CAMQ_GET_HEAD(&dev->drvq)->priority); + CAMQ_GET_HEAD(&dev->drvq)->priority); } else { retval = 0; } @@ -1025,7 +1025,7 @@ mtx_lock(&xsoftc.xpt_lock); xsoftc.flags |= XPT_FLAG_OPEN; mtx_unlock(&xsoftc.xpt_lock); - + return(0); } @@ -1225,7 +1225,7 @@ * (or rather should be) impossible for the device peripheral driver * list to change since we look at the whole thing in one pass, and * we do it with lock protection. - * + * */ case CAMGETPASSTHRU: { union ccb *ccb; @@ -1280,7 +1280,7 @@ ccb->cgdl.unit_number = 0; error = ENOENT; break; - } + } /* * Run through every peripheral instance of this driver @@ -1318,7 +1318,7 @@ periph = SLIST_NEXT(periph, periph_links), i++) { /* * Check to see whether we have a - * passthrough device or not. + * passthrough device or not. */ if (strcmp(periph->periph_name, "pass") == 0) { /* @@ -1638,7 +1638,7 @@ struct periph_list *periph_head; periph_head = &device->periphs; - + /* Release the slot for this peripheral */ camq_resize(&device->drvq, device->drvq.array_size - 1); @@ -1867,7 +1867,7 @@ continue; /* - * If we get to this point, the user definitely wants + * If we get to this point, the user definitely wants * information on this bus. So tell the caller to copy the * data out. */ @@ -1945,7 +1945,7 @@ /* set the copy flag */ retval |= DM_RET_COPY; - + /* * If we've already decided on an action, go ahead * and return. @@ -1980,7 +1980,7 @@ continue; /* - * If we get to this point, the user definitely wants + * If we get to this point, the user definitely wants * information on this device. So tell the caller to copy * the data out. */ @@ -2103,7 +2103,7 @@ continue; /* - * If we get to this point, the user definitely wants + * If we get to this point, the user definitely wants * information on this peripheral. So tell the caller to * copy the data out. */ @@ -2167,7 +2167,7 @@ */ if (spaceleft < sizeof(struct dev_match_result)) { bzero(&cdm->pos, sizeof(cdm->pos)); - cdm->pos.position_type = + cdm->pos.position_type = CAM_DEV_POS_EDT | CAM_DEV_POS_BUS; cdm->pos.cookie.bus = bus; @@ -2298,7 +2298,7 @@ */ if (spaceleft < sizeof(struct dev_match_result)) { bzero(&cdm->pos, sizeof(cdm->pos)); - cdm->pos.position_type = + cdm->pos.position_type = CAM_DEV_POS_EDT | CAM_DEV_POS_BUS | CAM_DEV_POS_TARGET | CAM_DEV_POS_DEVICE; @@ -2309,7 +2309,7 @@ cdm->pos.generations[CAM_TARGET_GENERATION] = device->target->bus->generation; cdm->pos.cookie.device = device; - cdm->pos.generations[CAM_DEV_GENERATION] = + cdm->pos.generations[CAM_DEV_GENERATION] = device->target->generation; cdm->status = CAM_DEV_MATCH_MORE; return(0); @@ -2407,7 +2407,7 @@ */ if (spaceleft < sizeof(struct dev_match_result)) { bzero(&cdm->pos, sizeof(cdm->pos)); - cdm->pos.position_type = + cdm->pos.position_type = CAM_DEV_POS_EDT | CAM_DEV_POS_BUS | CAM_DEV_POS_TARGET | CAM_DEV_POS_DEVICE | CAM_DEV_POS_PERIPH; @@ -2419,7 +2419,7 @@ cdm->pos.generations[CAM_TARGET_GENERATION] = periph->path->bus->generation; cdm->pos.cookie.device = periph->path->device; - cdm->pos.generations[CAM_DEV_GENERATION] = + cdm->pos.generations[CAM_DEV_GENERATION] = periph->path->target->generation; cdm->pos.cookie.periph = periph; cdm->pos.generations[CAM_PERIPH_GENERATION] = @@ -2545,7 +2545,7 @@ pdrv = NULL; bzero(&cdm->pos, sizeof(cdm->pos)); - cdm->pos.position_type = + cdm->pos.position_type = CAM_DEV_POS_PDRV | CAM_DEV_POS_PDPTR | CAM_DEV_POS_PERIPH; @@ -3139,7 +3139,7 @@ start_ccb->ccb_h.status = CAM_REQ_CMP; break; } - } + } if (XPT_FC_IS_QUEUED(abort_ccb) && (abort_ccb->ccb_h.pinfo.index == CAM_DONEQ_INDEX)) { /* @@ -3204,7 +3204,7 @@ bcopy(dev->serial_num, cgd->serial_num, dev->serial_num_len); } - break; + break; } case XPT_GDEV_STATS: { @@ -3257,17 +3257,17 @@ /* * Check and see if the list has changed since the user * last requested a list member. If so, tell them that the - * list has changed, and therefore they need to start over + * list has changed, and therefore they need to start over * from the beginning. */ - if ((cgdl->index != 0) && + if ((cgdl->index != 0) && (cgdl->generation != device->generation)) { cgdl->status = CAM_GDEVLIST_LIST_CHANGED; break; } /* - * Traverse the list of peripherals and attempt to find + * Traverse the list of peripherals and attempt to find * the requested peripheral. */ for (nperiph = SLIST_FIRST(periph_head), i = 0; @@ -3496,7 +3496,7 @@ */ start_ccb->ccb_h.flags &= ~CAM_DEV_QFREEZE; } else { - + dev->flags |= CAM_DEV_REL_ON_COMPLETE; start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; } @@ -3509,7 +3509,7 @@ start_ccb->ccb_h.flags &= ~CAM_DEV_QFREEZE; } else { - + dev->flags |= CAM_DEV_REL_ON_QUEUE_EMPTY; start_ccb->ccb_h.flags |= CAM_DEV_QFREEZE; } @@ -3584,7 +3584,7 @@ xpt_polled_action(union ccb *start_ccb) { u_int32_t timeout; - struct cam_sim *sim; + struct cam_sim *sim; struct cam_devq *devq; struct cam_ed *dev; @@ -3601,18 +3601,18 @@ * can get it before us while we simulate interrupts. */ dev->ccbq.devq_openings--; - dev->ccbq.dev_openings--; - + dev->ccbq.dev_openings--; + while(((devq != NULL && devq->send_openings <= 0) || dev->ccbq.dev_openings < 0) && (--timeout > 0)) { DELAY(1000); (*(sim->sim_poll))(sim); camisr_runqueue(&sim->sim_doneq); } - + dev->ccbq.devq_openings++; dev->ccbq.dev_openings++; - + if (timeout != 0) { xpt_action(start_ccb); while(--timeout > 0) { @@ -3636,7 +3636,7 @@ start_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; } } - + /* * Schedule a peripheral driver to receive a ccb when it's * target device has space for more transactions. @@ -3759,7 +3759,7 @@ union ccb *work_ccb; struct cam_periph *drv; struct camq *drvq; - + qinfo = (struct cam_ed_qinfo *)camq_remove(&devq->alloc_queue, CAMQ_HEAD); device = qinfo->device; @@ -3796,7 +3796,7 @@ */ break; } - + if (drvq->entries > 0) { /* We have more work. Attempt to reschedule */ xpt_schedule_dev_allocq(bus, device); @@ -3811,7 +3811,7 @@ struct cam_devq *devq; CAM_DEBUG_PRINT(CAM_DEBUG_XPT, ("xpt_run_dev_sendq\n")); - + devq = bus->sim->devq; devq->send_queue.qfrozen_cnt++; @@ -3858,8 +3858,8 @@ * available. */ device->qfrozen_cnt++; - STAILQ_INSERT_TAIL(&xsoftc.highpowerq, - &work_ccb->ccb_h, + STAILQ_INSERT_TAIL(&xsoftc.highpowerq, + &work_ccb->ccb_h, xpt_links.stqe); mtx_unlock(&xsoftc.xpt_lock); @@ -3879,8 +3879,8 @@ cam_ccbq_send_ccb(&device->ccbq, work_ccb); devq->send_openings--; - devq->send_active++; - + devq->send_active++; + if (device->ccbq.queue.entries > 0) xpt_schedule_dev_sendq(bus, device); @@ -4549,7 +4549,7 @@ bus = path->bus; - if (async_code == AC_BUS_RESET) { + if (async_code == AC_BUS_RESET) { /* Update our notion of when the last reset occurred */ microtime(&bus->last_reset); } @@ -4576,7 +4576,7 @@ next_device = TAILQ_NEXT(device, links); - if (path->device != device + if (path->device != device && path->device->lun_id != CAM_LUN_WILDCARD && device->lun_id != CAM_LUN_WILDCARD) continue; @@ -4588,7 +4588,7 @@ path, async_arg); } } - + /* * If this wasn't a fully wildcarded async, tell all * clients that want all async events. @@ -4722,7 +4722,7 @@ sim->devq->send_queue.qfrozen_cnt += count; if (sim->devq->active_dev != NULL) { struct ccb_hdr *ccbh; - + ccbh = TAILQ_LAST(&sim->devq->active_dev->ccbq.active_ccbs, ccb_hdr_tailq); if (ccbh && ccbh->status == CAM_REQ_INPROG) @@ -5278,7 +5278,7 @@ scan_info->counter--; } } - + for (i = 0; i <= max_target; i++) { cam_status status; if (i == initiator_id) @@ -5367,7 +5367,7 @@ } } else { struct cam_ed *device; - + device = request_ccb->ccb_h.path->device; if ((device->quirk->quirks & CAM_QUIRK_NOLUNS) == 0) { @@ -5394,7 +5394,7 @@ done = 0; if (scan_info->cpi->hba_misc & PIM_SEQSCAN) { scan_info->counter++; - if (scan_info->counter == + if (scan_info->counter == scan_info->cpi->initiator_id) { scan_info->counter++; } @@ -5506,7 +5506,7 @@ CAM_DEBUG(request_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("xpt_scan_lun\n")); - + xpt_setup_ccb(&cpi.ccb_h, path, /*priority*/1); cpi.ccb_h.func_code = XPT_PATH_INQ; xpt_action((union ccb *)&cpi); @@ -5616,7 +5616,7 @@ if (softc == NULL) { printf("proberegister: Unable to probe new device. " - "Unable to allocate softc\n"); + "Unable to allocate softc\n"); return(CAM_REQ_CMP_ERR); } TAILQ_INIT(&softc->request_ccbs); @@ -5661,7 +5661,7 @@ * condition pending. It will not report the unit attention in * response to an inquiry, which may leave invalid transfer * negotiations in effect. The TUR will reveal the unit attention - * condition. Only send the TUR for lun 0, since some devices >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801062239.m06MdFw1087055>