Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (3m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 20:25:42 UTC Now

2012-02-27 20:13:30 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #53):
sys/arch/hp700/stand/xxboot/readufs.h: revision 1.6
sys/arch/hp700/stand/mkboot/mkboot.c: revision 1.8
sys/arch/hp700/stand/xxboot/iplsum.c: revision 1.6
sys/arch/hp700/stand/xxboot/main.c: revision 1.10
More u_intXX_t -> uintXX_t
Same code before and after.

(riz)

2012-02-27 20:11:56 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by jruoho in ticket #51):
sys/dev/acpi/acpi_cpu_cstate.c: revision 1.59
Set the flag for checking for PCI bus master activity only for C3.

(riz)

2012-02-27 19:52:59 UTC MAIN commitmail json YAML

Do not special-case XEN and always use the proper selectors for %fs and %gs
in buildcontext() and setregs(). The consequence was that signal handlers
would have the wrong %fs/%gs. Found by running atf tests under Xen/i386.

(bouyer)

2012-02-27 17:56:15 UTC MAIN commitmail json YAML

Populate /etc/atf with any missing files.  Fixes PR bin/45870.

(jmmv)

2012-02-27 17:04:40 UTC matt-nb5-mips64 commitmail json YAML

2012-02-27 17:03:37 UTC matt-nb5-mips64 commitmail json YAML

2012-02-27 17:00:28 UTC matt-nb5-mips64 commitmail json YAML

Make sure to properly cast pointers.

(matt)

2012-02-27 16:59:43 UTC matt-nb5-mips64 commitmail json YAML

2012-02-27 16:57:58 UTC matt-nb5-mips64 commitmail json YAML

Make sure we don't overflow a 32-bit integer.

(matt)

2012-02-27 16:57:06 UTC matt-nb5-mips64 commitmail json YAML

Add a page-table-page cache to keep reuse just released page table tables.
Actually remove the addresses in pmap_remove_all.

(matt)

2012-02-27 16:51:07 UTC MAIN commitmail json YAML

Expand workaround for .so usage to do the chdir call just before
starting parsing, not during the tree iteration. This gives it a chance
to work.

(joerg)

2012-02-27 16:10:56 UTC MAIN commitmail json YAML

in tmpfs_readdir(), skip the . and .. processing on removed directories,
since the latter will crash in this case.

(chs)

2012-02-27 15:57:21 UTC MAIN commitmail json YAML

Remove an incorrect KASSERT

(matt)

2012-02-27 15:50:49 UTC MAIN commitmail json YAML

Change cpu_idle to be an inline which sets IPL to 1 and then back to 0
so simh can recognize the kernel is idle.

(matt)

2012-02-27 15:47:11 UTC MAIN commitmail json YAML

PowerPC doesn't have CERROR since it never had a.out.
Use _C_LABEL(__cerror) instead.

(matt)

2012-02-27 15:41:10 UTC MAIN commitmail json YAML

physmem is declared by uvm

(matt)

2012-02-27 14:48:34 UTC MAIN commitmail json YAML

2012-02-27 12:26:22 UTC MAIN commitmail json YAML

2012-02-27 04:25:12 UTC MAIN commitmail json YAML

Make arc4random far less greedy for entropy.  Make arc4random actually
implement arc4 when used by threaded programs.

(tls)

2012-02-27 01:39:59 UTC MAIN commitmail json YAML

__uvmexp_pagesize is needed also for non-modular builds, as
witnessed by the otherwise failing sparc build.

(he)

2012-02-26 23:14:26 UTC MAIN commitmail json YAML

add a test to verify that snprintf float does not leak.

(christos)

2012-02-26 22:04:42 UTC MAIN commitmail json YAML

remove extra rule that got merged...

(christos)

2012-02-26 21:50:05 UTC MAIN commitmail json YAML

- make each element of a variable hold a type
- change get_type to take an index, so we can get the individual types of
  each element (since primitive elements can be in lists)
- make port_range primitive
- add a routine to convert a variable of primitives to a variable containing
- only port ranges.

(christos)

2012-02-26 21:14:50 UTC MAIN commitmail json YAML

Simplify slightly: merge iface into addr_or_iface, use it in filt_addr.

(rmind)

2012-02-26 21:06:59 UTC MAIN commitmail json YAML

Man page and usage cleanups from Bug Hunting in PR 46103.

(wiz)

2012-02-26 21:04:10 UTC MAIN commitmail json YAML

Sort options in man page. Add EXIT STATUS section. Bump date.
Sync usage with man page.

Mostly from Bug Hunting in PR 46102.

(wiz)

2012-02-26 20:32:41 UTC MAIN commitmail json YAML

Add sanity checks for live-image and install-image targets
(which require mtree spec files built with MKUNPRIVED=yes)
to avoid unexpected makefs(8) error during image builds:
- if release op is specified with live-image or install-image
  at the same time, make sure -U is also specified for the image builds
- before perform live-image and install-image ops check METALOG file
  in DESTDIR to see if the build have been performed with MKUNPRIVED

XXX: Probably toolchain should create consistent spec files in
XXX: DESTDIR/etc/mtree dir regardless of MKUNPRIVED settings.

(tsutsui)

2012-02-26 17:27:46 UTC MAIN commitmail json YAML

Use new web site and archive location for ATF.

(jmmv)

2012-02-26 10:17:44 UTC MAIN commitmail json YAML

Fold long lines and a little KNF.

(mbalmer)

2012-02-26 08:44:12 UTC MAIN commitmail json YAML

Rename a field to match PDC documentation.

(skrll)

2012-02-26 08:28:58 UTC MAIN commitmail json YAML

2012-02-26 08:02:36 UTC jmcneill-usbmp commitmail json YAML

2012-02-26 07:52:52 UTC MAIN commitmail json YAML

Use new HPPA_CPU_PCXWP for PA8600 (Landshark)

(skrll)

2012-02-26 07:51:57 UTC MAIN commitmail json YAML

2012-02-26 07:50:38 UTC MAIN commitmail json YAML

Take an educiated guess at the CPU id for PCXW+ (Landshark)

(skrll)

2012-02-26 07:23:24 UTC MAIN commitmail json YAML

2012-02-26 07:12:50 UTC jmcneill-usbmp commitmail json YAML

2012-02-26 06:59:39 UTC jmcneill-usbmp commitmail json YAML

use kpause() in usb{d,}_delay_ms(), and add a version that takes a mutex

(mrg)

2012-02-26 06:28:59 UTC jmcneill-usbmp commitmail json YAML

2012-02-26 05:05:45 UTC jmcneill-usbmp commitmail json YAML

2012-02-25 22:32:44 UTC MAIN commitmail json YAML

{mutex,rw}_vector_enter: use macro versions to disable/enable preemption.

(rmind)

2012-02-25 22:28:06 UTC MAIN commitmail json YAML

uvm_km_kmem_alloc: return ENOMEM on failure in PMAP_MAP_POOLPAGE case.

(rmind)

2012-02-25 21:39:44 UTC netbsd-6 commitmail json YAML

2012-02-25 21:39:08 UTC netbsd-6 commitmail json YAML

Remainder of pullup request:

Pull up the following revisions(s) (requested by bouyer in ticket #52):
sys/arch/amd64/conf/XEN3_DOM0: revision 1.79-1.80
sys/arch/i386/conf/XEN3_DOM0: revision 1.62-1.63

Comment out MPDEBUG, ACPIVERBOSE and MPVERBOSE.

(sborrill)

2012-02-25 21:21:09 UTC MAIN commitmail json YAML

- make agp_amd64_attach() also checks AMD64 Family 10h CPU's
  misc configuration devices
- print proper error message if no misc configuration device is found

Fixes kernel crash right after starting Xserver with radeondrm
on ASRock AM2NF3-VSTA (AM2 + nForce3 250 AGP) with Athlon II X2 CPU.

(tsutsui)

2012-02-25 21:19:11 UTC netbsd-6 commitmail json YAML

Add trailing line...

(sborrill)

2012-02-25 21:18:23 UTC netbsd-6 commitmail json YAML

2012-02-25 21:18:02 UTC netbsd-6 commitmail json YAML

Pull up the following revisions(s) (requested by bouyer in ticket #52):
sys/arch/amd64/conf/XEN3_DOM0: revision 1.78
sys/arch/amd64/conf/XEN3_DOMU: revision 1.37
sys/arch/i386/conf/XEN3_DOM0: revision 1.61
sys/arch/i386/conf/XEN3_DOMU: revision 1.42

Xen is stable enough now to remove debug messages in default kernel.
Comment out options DEBUG from Xen kernel; also comment out makeoptions
DEBUG="-g" where it was still enabled.

(sborrill)

2012-02-25 21:15:39 UTC jmcneill-usbmp commitmail json YAML

2012-02-25 20:54:03 UTC jmcneill-usbmp commitmail json YAML

update to reality:
- intr_context fixed
- SMP usb_detach_wait/wakeup()
- mark a couple more drivers at tested

(mrg)

2012-02-25 20:52:29 UTC jmcneill-usbmp commitmail json YAML

mark D_MPSAFE:
- spl -> mutex
- convert to SMP usb_detach_wait/wakeup()
- add a IPL_NONE access lock, used in most devsw entry points

(mrg)

2012-02-25 20:49:17 UTC jmcneill-usbmp commitmail json YAML

convert to using SMP usb_detach_wait/wakeup().

(mrg)

2012-02-25 20:47:32 UTC jmcneill-usbmp commitmail json YAML

implement cv/mutex based usb_detach_wait/wakeup().

(mrg)

2012-02-25 20:46:34 UTC jmcneill-usbmp commitmail json YAML

replace the (diagnostic-only) intr_context with checks against LP_INTR
and cpu_intr_p().

XXX: there's one check that changes behaviour

(mrg)

2012-02-25 20:03:58 UTC MAIN commitmail json YAML

Revert previous since it does a redundant xpq queue flush.
xen_bcast_invlpg() flushes the queue for us.

(cherry)

2012-02-25 19:32:27 UTC MAIN commitmail json YAML

(xen) Flush the xpq before broadcasting page invalidate.

(cherry)

2012-02-25 18:57:51 UTC MAIN commitmail json YAML

The code assumes that ci_index is also the Xen's cpunum, and that
cpunum is less than XEN_LEGACY_MAX_VCPUS. KASSERT both.

(bouyer)

2012-02-25 18:11:06 UTC MAIN commitmail json YAML

2012-02-25 17:45:53 UTC MAIN commitmail json YAML

2012-02-25 17:22:52 UTC MAIN commitmail json YAML

Set the flag for checking for PCI bus master activity only for C3.

(jruoho)

2012-02-25 17:03:35 UTC MAIN commitmail json YAML

Comment out options DEBUG from Xen kernel; also comment out
makeoptions DEBUG="-g" where it was still enabled.

(bouyer)

2012-02-25 15:38:46 UTC MAIN commitmail json YAML

Fix scan code 50 key on non-us-USB keyboards (BSlash2 -> BSlash).
From macallan.

(martin)

2012-02-25 14:48:36 UTC netbsd-6 commitmail json YAML

2012-02-25 14:48:12 UTC netbsd-6 commitmail json YAML

Pull up the following revisions(s) (requested by tron in ticket #50):
etc/MAKEDEV.tmpl: revision 1.152

Four instances of atabus(4) are not enough for modern systems as the
system will report one instance for each SATA port. Create eight
device nodes by default.

(sborrill)

2012-02-25 13:17:16 UTC jmcneill-usbmp commitmail json YAML

remove remaining splusb() calls, update some comments.

(mrg)

2012-02-25 12:57:32 UTC jmcneill-usbmp commitmail json YAML

- noticed a concurrency issue with bus->intr_context member.  sometimes
  the host controller interrupt lock is held, sometimes the USB thread
  lock is held, and i've seen at least two cases where the non-hard or
  non-soft interrupt handler triggered this test in a code path that
  could not have raised it itself.  note that this needs attention.
- update some lists.

(mrg)

2012-02-25 12:53:35 UTC jmcneill-usbmp commitmail json YAML

2012-02-25 12:33:54 UTC MAIN commitmail json YAML

Use pmap_pte_xxx() functions instead of xen specific pte update
functions.

No functional changes.

(cherry)

2012-02-25 11:00:25 UTC MAIN commitmail json YAML

Document support for 5100AGN (in tree since 2009).

OK by wiz@

(shattered)

2012-02-25 10:56:52 UTC MAIN commitmail json YAML

Xref zdump(8).  OK by wiz@

(shattered)

2012-02-25 10:55:28 UTC MAIN commitmail json YAML

Quoting sys/dev/vme/files.vme commit log: "vmegeneric never saw the
light of the source tree.  After 7 years, I guess nobody missed it."

OK by wiz@

(shattered)

2012-02-25 10:26:24 UTC jmcneill-usbmp commitmail json YAML

2012-02-25 10:17:15 UTC MAIN commitmail json YAML

2012-02-25 10:15:50 UTC MAIN commitmail json YAML

Replace magic value 0x7 with constant MT_ISAR.

OK by wiz@

(shattered)

2012-02-25 09:58:45 UTC netbsd-6 commitmail json YAML

2012-02-25 09:58:25 UTC netbsd-6 commitmail json YAML

Pull up the following revisions(s) (requested by mbalmer in ticket #49):
share/examples/lua/gpio.lua: revision 1.2

GPIO pins are 0-based when accessed from Lua, not 1-based like Lua usually
is.  The pulse() has been removed, use gpiopwm(4) for that.

(sborrill)

2012-02-25 09:19:31 UTC MAIN commitmail json YAML

Four instances of atabus(4) are not enough for modern systems as the
system will report one instance for each SATA port. Create eight
device nodes by default.

(tron)

2012-02-25 09:13:38 UTC MAIN commitmail json YAML

GPIO pins are 0 based when accessed from Lua, not 1 based like Lua usually
is.  The pulse() has been removed, use gpiopwm(4) for that.

(mbalmer)

2012-02-25 07:59:03 UTC jmcneill-usbmp commitmail json YAML

document the status of usbmp branch.  major remaining tasks:

- port slhci, adm5120 usb and rump usb host controllers [*]
- implement usb_detach_wait/wakeup based upon cv/mutex [*]
- port drivers that use tsleep/wakeup to modern facilities
- port cdev/bdev drivers to D_MPSAFE
- update callouts to CALLOUT_MPSAFE
- test more devices [*]

only really more testing is necessary at this point, all the above
can be done after merging this code into -current.  items marked
with [*] are planned to be done before this.

(mrg)

2012-02-25 02:43:08 UTC MAIN commitmail json YAML

Reserve more bootstrap kernel PT pages if options EXTENDED_MEMORY is defined
for VA allocation in the extended memory probe function and possible 128MB
memory on 060turbo, as worksaround for x68k specific part of PR/45915.
Fixes GENERIC kernel panic on X68030 even without extended memory.
XXX: we should rather have proper probe function before pmap_bootstrap()

Tested on 060turbo with 128MB SIMM by Y.Sugahara, and also
tested on XM6i with 68030 and custom 128MB memory settings by isaki@.

Should be pulled up to netbsd-6.

(tsutsui)

2012-02-25 00:13:28 UTC MAIN commitmail json YAML

Avoid empty loop bodies.

(joerg)

2012-02-25 00:13:00 UTC MAIN commitmail json YAML

Don't use loops with empty body.

(joerg)

2012-02-24 22:41:12 UTC MAIN commitmail json YAML

PR/46068: Fix symbol loading on i386 kernels. On i386 lma != vma and gdb7
depends on them being != to detect overlays and avoid loading them. I've
disabled the test for now.

(christos)

2012-02-24 19:53:31 UTC MAIN commitmail json YAML

subtracting two pointers yields ptrdiff_t, so cast it to int.

(apb)

2012-02-24 19:40:49 UTC MAIN commitmail json YAML

When given an URL that contains "://" but is not recognised,
print an error message.  Now "ftp https://foo/bar" prints

    ftp: Unsupported URL scheme `https'

instead of

    ftp: Can't lookup `https:ftp': No address associated with hostname
    ftp: Can't connect or login to host `https:?'

(apb)

2012-02-24 18:45:20 UTC MAIN commitmail json YAML

2012-02-24 18:04:51 UTC MAIN commitmail json YAML

Reserve a CCB for the driver.  Stops the annoying cac0: unable to alloc CCB
messages.

(mhitch)

2012-02-24 18:00:09 UTC MAIN commitmail json YAML

Check if fstab file exists before trying to parse it, to avoid
warnings from {get,set}fsent() functions if missing.

dholland ok.

(njoly)

2012-02-24 17:59:26 UTC netbsd-5 commitmail json YAML

2012-02-24 17:58:45 UTC netbsd-5 commitmail json YAML

Pull up the following revisions(s) (requested by oster in ticket #1728):
sys/dev/raidframe/rf_reconmap.c: revision 1.34
sys/dev/raidframe/rf_reconstruct.c: revision 1.118

Remove a DIAGNOSTIC check that is invalid for RAID5_RS.
Add logic to the main reconstruction loop to handle RAID5 with rotated
spares. Correct issue where we were doing one more stripe than necessary.

(sborrill)

2012-02-24 17:50:35 UTC netbsd-6 commitmail json YAML

2012-02-24 17:50:18 UTC netbsd-6 commitmail json YAML

external/bsd/pkg_install/dist/lib/version.h 1.9 via patch
external/bsd/pkg_install/dist/add/perform.c 1.3 via patch
external/bsd/pkg_install/dist/admin/README delete
external/bsd/pkg_install/dist/delete/pkg_delete.1.in delete

Sync with the most recent version of pkg_install(1).
[wiz, ticket #24]

(riz)

2012-02-24 17:45:53 UTC netbsd-5 commitmail json YAML

2012-02-24 17:45:29 UTC netbsd-5 commitmail json YAML

Pull up the following revisions(s) (requested by bouyer in ticket #1730):
sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.59 via patch

Fix receive stall on the domU side when buffers stay a long time in the
network stack or socket buffers.

(sborrill)

2012-02-24 17:30:24 UTC netbsd-5 commitmail json YAML

2012-02-24 17:29:32 UTC netbsd-5 commitmail json YAML

Pull up the following revisions(s) (requested by bouyer in ticket #1729):
sys/arch/x86/x86/pmap.c: revision 1.170 via patch
sys/arch/xen/x86/x86_xpmap.c: revision 1.40 via patch

Fix random kernel panic on domains with large memory.
May fix PR port-xen/38699

(sborrill)

2012-02-24 17:19:14 UTC netbsd-6 commitmail json YAML

2012-02-24 17:18:58 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by go in ticket #48):
external/bsd/acpica/bin/iasl/Makefile: revision 1.5
sys/external/bsd/acpica/dist/include/acapps.h: revision 1.2
Fix MKREPRO = yes
XXX: pullup to 6
Fix for MKREPRO = yes
XXX: pullup to 6
Use the release date as suggested.
XXX: I bet this is going to be broken in the next import because nobody
will remember to fix it.

(riz)

2012-02-24 17:00:02 UTC netbsd-6 commitmail json YAML

2012-02-24 16:57:35 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #47):
sys/arch/hp700/hp700/machdep.c: revision 1.108
sys/arch/hp700/hp700/mainbus.c: revision 1.81
sys/arch/hp700/hp700/disksubr.c: revision 1.27
sys/arch/hp700/hp700/machdep.h: revision 1.9
u_intXX_t -> uintXX_t
Same code before and after.

(riz)

2012-02-24 16:41:05 UTC netbsd-6 commitmail json YAML

2012-02-24 16:38:07 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by rjs in ticket #46):
sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.24
Switch to ANSI style declaration.

(riz)

2012-02-24 16:35:08 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #45):
sys/arch/xen/x86/cpu.c: revision 1.87
sys/arch/xen/x86/cpu.c: revision 1.88
Get rid of phycpus_attached bitmask; it's maintained but not used and
will limit the number of physical CPUs to 32 without good reasons.
Don't maintain ci_cpumask for physical CPUs, it's not used.

(riz)

2012-02-24 16:33:10 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #43):
external/gpl3/gcc/lib/libgomp/Makefile: revision 1.7
fix build failure on mips64.

(riz)

2012-02-24 16:30:28 UTC netbsd-6 commitmail json YAML

2012-02-24 16:29:33 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by asau in ticket #42):
lib/libterminfo/term.h: revision 1.11
PR/46075: Asau: fix typo set_color_paid -> set_color_pair

(riz)

2012-02-24 16:27:53 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #41):
sys/arch/hp700/gsc/harmony.c: revision 1.27
Don't take sc_intr_lock in harmony_trigger_input it's already taken by
our caller.
Found by /usr/tests/include/t_paths.

(riz)

2012-02-24 16:06:39 UTC MAIN commitmail json YAML

Note that gets() is finally dead in C11 and can be removed if we ever
bump libc.

(dholland)

2012-02-24 16:03:39 UTC MAIN commitmail json YAML

Add explicit continue to empty loop body.

(joerg)

2012-02-24 14:02:55 UTC MAIN commitmail json YAML

Restrict -ffloat-store to t_strtod.c.

(joerg)

2012-02-24 13:53:47 UTC MAIN commitmail json YAML

Fix obvious code issues and remove the original -Wno-error for clang
builds to not hide them in the future:
(1) Don't use a pointer to a local variables if all that is done is
comparing it against NULL. The function itself works fine for that
purpose.

(2) Initialise the fail counter, giving the test a chance to work
reliably.

(joerg)

2012-02-24 11:43:06 UTC MAIN commitmail json YAML

Don't maintain ci_cpumask for physical CPUs, it's not used.

(bouyer)

2012-02-24 11:31:23 UTC MAIN commitmail json YAML

Get rid of phycpus_attached bitmask; it's maintained but not used and
will limit the number of physical CPUs to 32 without good reasons.

(bouyer)

2012-02-24 09:11:53 UTC jmcneill-usbmp commitmail json YAML

2012-02-24 08:44:44 UTC MAIN commitmail json YAML

kernel page attribute change should be reflected on all cpus, since
the page is going to be released after the _dtor() hook is called.

(cherry)

2012-02-24 08:17:20 UTC MAIN commitmail json YAML

2012-02-24 08:11:14 UTC MAIN commitmail json YAML

kernel page attribute change should be reflected on all cpus, since
the page is going to be released after the _dtor() hook is called.

(cherry)

2012-02-24 08:06:08 UTC MAIN commitmail json YAML

(xen) - remove the (*xpq_cpu)() shim.We hasten the %fs/%gs setup process during boot.Although this is hacky, it lets us use the non-xen specificpmap_pte_xxx() functions in pmap code (and others).

(cherry)

2012-02-24 07:35:00 UTC jmcneill-usbmp commitmail json YAML

add a couple of comments to note areas will need work to enable mp.

(mrg)

2012-02-24 06:59:43 UTC matt-nb5-mips64 commitmail json YAML

pull in revision 1.49:
Fix a very old bug.  When allocating the buffer and doing just a bs= transfer,
hen we only need a single buffer equal to that blocksize in length.

(matt)

2012-02-24 06:48:29 UTC MAIN commitmail json YAML

2012-02-24 06:12:57 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #44):
usr.sbin/postinstall/postinstall: revision 1.133
Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string.

(riz)

2012-02-24 00:01:59 UTC netbsd-5 commitmail json YAML

2012-02-23 23:39:19 UTC MAIN commitmail json YAML

while (...);
    ;
is really pointless, so remove the first semicolon.

(joerg)

2012-02-23 22:57:53 UTC MAIN commitmail json YAML

Don't use while-loop with empty body.

(joerg)

2012-02-23 22:33:33 UTC MAIN commitmail json YAML

Make sure that __BEGIN_DECLS and __END_DECLS are paired.

(joerg)

2012-02-23 22:27:29 UTC netbsd-5 commitmail json YAML

Pull up following revision(s) (requested by spz in ticket #1723):
dist/nvi/cl/cl_main.c: revision 1.3
Print a warning if TERM is not set and stdin is a tty. PR bin/42144.

(riz)

2012-02-23 22:20:51 UTC MAIN commitmail json YAML

- add short comments at the most troublesome part of this device.
- remove a stale debug line.

(nisimura)

2012-02-23 21:54:28 UTC MAIN commitmail json YAML

The 'lstart' column uses strftime %c, not %C. Noted by mrg.

(dholland)

2012-02-23 21:41:23 UTC MAIN commitmail json YAML

Don't take sc_intr_lock in harmony_trigger_input it's already taken by
our caller.

Found by /usr/tests/include/t_paths.

(skrll)

2012-02-23 21:38:53 UTC MAIN commitmail json YAML

2012-02-23 21:20:39 UTC netbsd-6 commitmail json YAML

2012-02-23 21:19:55 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #40):
sys/arch/xen/xen/xengnt.c: revision 1.23
Fix locking; xengnt_get_entry() needs to have the lock held to avoid
allocating the same entry twice. xengnt_more_entries() also needs the lock
for the same reason.

(riz)

2012-02-23 21:17:25 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #39):
sys/arch/x86/x86/pmap.c: revision 1.170
sys/arch/xen/x86/x86_xpmap.c: revision 1.40
On Xen, there is variable-sized Xen data after the kernel's text+data+bss
(this include the physical->machine table).
(vaddr_t)(KERNBASE + NKL2_KIMG_ENTRIES * NBPD_L2) is after text+data+bss but,
on a domU with lots of RAM (more than 4GB) (so large
xpmap_phys_to_machine_mapping table) this can point to some of Xen's data
setup at bootstrap (either the xpmap_phys_to_machine_mapping table,
some page shared with the hypervisor, or our kernel page table). Using it for
early_zerop will cause of these pages to be unmapped after bootstrap.
This will cause a kernel page fault for the domU, either immediatly or
eventually much later, depending on where early_zerop points to.
To fix this, account for early_zerop when building the bootstrap pages,
and its VA from here.
May fix PR port-xen/38699

(riz)

2012-02-23 21:07:35 UTC MAIN commitmail json YAML

Use the new 32-bit and ESDHC support in sdhc.c

(matt)

2012-02-23 21:06:21 UTC MAIN commitmail json YAML

Support 32-bit only access to the SDHC registers.
Add support for FreeScale "Enhanced" SDHC port.
Add support for CGM mode (XLP and BCM2835 (Arason)).

(matt)

2012-02-23 20:59:19 UTC MAIN commitmail json YAML

Rework this driver to support other dsrtc than just the DS1307.
Support both BCD and 32-bit binary type RTCs.
Supports DS1339, DS1672, and DS3232.
To select variant, put the module # in flags in the the config file.
dsrtc at iic0 addr 0x69 flags 1339
If the flags is not supplied, a 1307 is assumed (compatible).

(matt)

2012-02-23 20:49:46 UTC MAIN commitmail json YAML

Add "opt_modular.h"
#define __uvmexp_pagesize
if MIN_PAGE_SIZE != MAX_PAGE_SIZE && modular is defined

(matt)

2012-02-23 20:33:30 UTC MAIN commitmail json YAML

Export MIN_PAGE_SIZE and MAX_PAGE_SIZE for modular kernels.

(matt)

2012-02-23 19:17:32 UTC MAIN commitmail json YAML

Fix locking; xengnt_get_entry() needs to have the lock held to avoid
allocating the same entry twice. xengnt_more_entries() also needs the lock
for the same reason.

(bouyer)

2012-02-23 18:59:22 UTC MAIN commitmail json YAML

On Xen, there is variable-sized Xen data after the kernel's text+data+bss
(this include the physical->machine table).
(vaddr_t)(KERNBASE + NKL2_KIMG_ENTRIES * NBPD_L2) is after text+data+bss but,
on a domU with lots of RAM (more than 4GB) (so large
xpmap_phys_to_machine_mapping table) this can point to some of Xen's data
setup at bootstrap (either the xpmap_phys_to_machine_mapping table,
some page shared with the hypervisor, or our kernel page table). Using it for
early_zerop will cause of these pages to be unmapped after bootstrap.
This will cause a kernel page fault for the domU, either immediatly or
eventually much later, depending on where early_zerop points to.
To fix this, account for early_zerop when building the bootstrap pages,
and its VA from here.

May fix PR port-xen/38699

(bouyer)

2012-02-23 18:39:43 UTC netbsd-6 commitmail json YAML

2012-02-23 18:37:32 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by chs in ticket #38):
sys/arch/amd64/amd64/machdep.c: revision 1.178
sys/arch/x86/x86/identcpu.c: revision 1.30
sys/arch/i386/i386/machdep.c: revision 1.720
move XEN CPU feature masking into cpu_probe() so that it's applied
to all CPUs, not just the boot CPU.

(riz)

2012-02-23 18:36:06 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by chs in ticket #37):
sys/arch/amd64/amd64/db_machdep.c: revision 1.2
fix stack backtraces through traps.

(riz)

2012-02-23 18:34:33 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #36):
include/spawn.h: revision 1.4
lib/libc/gen/posix_spawnp.c: revision 1.2
Use C++ compatible declaration for posix_spawn (instead of the C99 specific
posix one).

(riz)

2012-02-23 18:31:46 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nisimura in ticket #35):
sys/arch/sandpoint/sandpoint/satmgr.c: revision 1.16
- fix an error which prevents satmgr from sending NUL bytes.
- a bit cosmetic change for IOMEGA multibyte control sequence.

(riz)

2012-02-23 18:29:52 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by reinoud in ticket #34):
share/man/man4/options.4: revision 1.412
Fix comment in config.4 about UDF support. It was still stating UDF as a
read-only fs wich it hasn't been for quite some time! It must have slipped
trough.

(riz)

2012-02-23 18:25:51 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #27):
etc/rc.d/sysdb: revision 1.23
Avoid rebuilding services database every boot time.
The database has been renamed since the default was changed to CDB format.

(riz)

2012-02-23 18:24:18 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #26):
usr.sbin/postinstall/postinstall: revision 1.132
Pass -d option to pwd_mkdb(8) in order to make databases at proper location.

(riz)

2012-02-23 18:23:34 UTC MAIN commitmail json YAML

Don't use a for-loop with empty body.

(joerg)

2012-02-23 18:23:03 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #25):
sys/dev/audio.c: revision 1.258
kern/45927: fix incorrect assert.

(riz)

2012-02-23 14:45:55 UTC MAIN commitmail json YAML

move XEN CPU feature masking into cpu_probe() so that it's applied
to all CPUs, not just the boot CPU.

(chs)

2012-02-23 13:34:16 UTC MAIN commitmail json YAML

2012-02-23 13:31:13 UTC MAIN commitmail json YAML

Include <sys/lwp.h> for access to curlwp, now used in various locking ops.

(he)

2012-02-23 12:24:05 UTC MAIN commitmail json YAML

change sched_upreempt_pri default to 0 as discussed on tech-kern@
should improve interactive performance on SMP machines
as user preemption happens immediately in x-cpu wakeup case now

(para)

2012-02-23 11:05:02 UTC MAIN commitmail json YAML

fix build failure on mips64.

(nonaka)

2012-02-23 11:03:53 UTC MAIN commitmail json YAML

Build evbarm-${MACHINE_ARCH}cd.iso instead of evbarmcd.iso.

(nonaka)

2012-02-23 09:35:44 UTC MAIN commitmail json YAML

Remove ttyv0 - there is no such device on this arch.

(martin)

2012-02-23 09:31:56 UTC jmcneill-usbmp commitmail json YAML

- remove redundant sc_refcnt member
- protect sc_state with a mutex

(mrg)

2012-02-23 09:25:04 UTC jmcneill-usbmp commitmail json YAML

2012-02-23 09:03:38 UTC MAIN commitmail json YAML

2012-02-23 07:49:42 UTC MAIN commitmail json YAML

2012-02-23 07:37:17 UTC MAIN commitmail json YAML

set the CPU clock back to full speed on shutdown
this is necessary because PMON does not touch the clock scaling register on
reboot but still reports full CPU speed which confuses the clock code

(macallan)

2012-02-23 07:30:30 UTC MAIN commitmail json YAML

Cleanup.

- Remove cruft from native x86 origin.
- Remove access to privileged MSRs.
- Cleanup stale comments.

(cherry)

2012-02-23 04:10:51 UTC MAIN commitmail json YAML

cpu_load_pmap() should not be used to load pmap_kernel(), since in the
x86 model, its mappings are shared across pmaps. KASSERT() for this
and remove unused codepaths.

(cherry)

2012-02-23 02:31:51 UTC netbsd-6 commitmail json YAML

2012-02-23 02:30:16 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #33):
sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.59
Allocating a fixed, limited number of buffers for receive and sending them
to the network stack is a bad idea, because if all receive buffers sits
in socket queues, the interface receive stalls by lack of buffers.
Instead, get receive pages from a pool_cache(9). Copying to a mbuf cluser
would work too, but testings shows this has an important performance hit.
This also simplifies locking.
While there, notify the dom0 when we add some receive buffers (older
linux dom0 didn't care, but newer one do).
Problem reported and fix tested by Brian Marcotte on port-xen

(riz)

2012-02-23 02:22:05 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by oster in ticket #23):
sys/dev/raidframe/rf_reconstruct.c: revision 1.118
sys/dev/raidframe/rf_reconmap.c: revision 1.34
comment, and effectively remove, a DIAGNOSTIC check that
is invalid for RAID5_RS.
Add logic to the main reconstruction loop to handle RAID5 with rotated
spares.  While here, observe that we were actually doing one more
stripe than we thought we were, and correct that too (it didn't matter
for non-RAID5_RS, but it definitely does for RAID5_RS).  Add some
bounds-checking at the beginning to handle the case where the number
of stripes in the set is smaller than the sliding reconstruction window.
XXX: this problem likely needs to be fixed for PARITY_DECLUSTERING too.

(riz)

2012-02-23 02:18:54 UTC netbsd-6 commitmail json YAML

2012-02-23 02:16:52 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by tron in ticket #20):
dist/openpam/doc/man/pam_set_item.3: file removal
dist/openpam/lib/pam_get_item.c: file removal
dist/openpam/doc/man/openpam_free_envlist.3: file removal
dist/openpam/doc/man/pam_verror.3: file removal
dist/openpam/include/security/pam_modules.h: file removal
dist/openpam/lib/openpam_dispatch.c: file removal
dist/openpam/doc/man/pam_setenv.3: file removal
dist/openpam/doc/man/pam_error.3: file removal
dist/openpam/lib/pam_sm_authenticate_secondary.c: file removal
dist/openpam/lib/openpam_restore_cred.c: file removal
dist/openpam/config.guess: file removal
dist/openpam/include/security/openpam_version.h: file removal
dist/openpam/lib/openpam_set_option.c: file removal
dist/openpam/lib/pam_getenvlist.c: file removal
dist/openpam/lib/pam_end.c: file removal
dist/openpam/lib/pam_authenticate.c: file removal
dist/openpam/install-sh: file removal
dist/openpam/RELNOTES: file removal
dist/openpam/doc/man/openpam_borrow_cred.3: file removal
dist/openpam/include/security/Makefile.in: file removal
dist/openpam/lib/pam_putenv.c: file removal
dist/openpam/include/security/Makefile.am: file removal
dist/openpam/lib/openpam_configure.c: file removal
dist/openpam/doc/man/pam_authenticate.3: file removal
dist/openpam/lib/openpam_dynamic.c: file removal
dist/openpam/modules/pam_unix/Makefile.in: file removal
dist/openpam/lib/pam_sm_get_mapped_authtok.c: file removal
dist/openpam/README: file removal
dist/openpam/include/security/pam_types.h: file removal
dist/openpam/lib/openpam_load.c: file removal
dist/openpam/lib/pam_verror.c: file removal
dist/openpam/lib/openpam_findenv.c: file removal
dist/openpam/lib/openpam_readline.c: file removal
dist/openpam/doc/man/openpam.3: file removal
dist/openpam/doc/man/pam_conv.3: file removal
dist/openpam/doc/man/pam_get_item.3: file removal
dist/openpam/doc/man/pam.conf.5: file removal
dist/openpam/lib/pam_sm_set_mapped_username.c: file removal
dist/openpam/config.sub: file removal
dist/openpam/doc/man/pam_vprompt.3: file removal
dist/openpam/include/security/pam_appl.h: file removal
dist/openpam/lib/pam_get_mapped_username.c: file removal
dist/openpam/bin/Makefile.in: file removal
dist/openpam/lib/pam_vprompt.c: file removal
dist/openpam/lib/pam_info.c: file removal
dist/openpam/doc/man/openpam_readline.3: file removal
dist/openpam/doc/man/openpam_nullconv.3: file removal
dist/openpam/doc/man/pam.3: file removal
dist/openpam/lib/pam_authenticate_secondary.c: file removal
dist/openpam/bin/Makefile.am: file removal
dist/openpam/doc/man/pam_sm_authenticate.3: file removal
dist/openpam/include/security/openpam_attr.h: file removal
dist/openpam/modules/pam_permit/Makefile.am: file removal
dist/openpam/doc/man/Makefile.am: file removal
dist/openpam/bin/su/Makefile.am: file removal
dist/openpam/config.h.in: file removal
dist/openpam/lib/pam_sm_close_session.c: file removal
dist/openpam/include/security/pam_constants.h: file removal
dist/openpam/misc/gendoc.pl: file removal
dist/openpam/lib/openpam_free_data.c: file removal
dist/openpam/lib/openpam_borrow_cred.c: file removal
dist/openpam/lib/pam_error.c: file removal
dist/openpam/aclocal.m4: file removal
dist/openpam/doc/man/openpam_get_option.3: file removal
dist/openpam/doc/Makefile.in: file removal
dist/openpam/lib/pam_set_data.c: file removal
dist/openpam/LICENSE: file removal
dist/openpam/doc/man/pam_end.3: file removal
dist/openpam/include/Makefile.in: file removal
dist/openpam/modules/pam_deny/Makefile.in: file removal
dist/openpam/lib/openpam_impl.h: file removal
dist/openpam/lib/openpam_static.c: file removal
dist/openpam/include/Makefile.am: file removal
dist/openpam/lib/pam_acct_mgmt.c: file removal
dist/openpam/doc/man/pam_getenvlist.3: file removal
dist/openpam/missing: file removal
dist/openpam/doc/man/pam_setcred.3: file removal
dist/openpam/lib/pam_setcred.c: file removal
dist/openpam/doc/man/pam_chauthtok.3: file removal
dist/openpam/lib/pam_get_mapped_authtok.c: file removal
dist/openpam/autogen.sh: file removal
dist/openpam/doc/man/pam_getenv.3: file removal
dist/openpam/doc/man/pam_start.3: file removal
dist/openpam/doc/man/openpam_free_data.3: file removal
dist/openpam/lib/pam_sm_authenticate.c: file removal
dist/openpam/doc/man/pam_sm_close_session.3: file removal
dist/openpam/configure.ac: file removal
dist/openpam/doc/man/pam_set_data.3: file removal
dist/openpam/lib/Makefile.in: file removal
dist/openpam/lib/pam_get_data.c: file removal
dist/openpam/depcomp: file removal
dist/openpam/lib/Makefile.am: file removal
dist/openpam/lib/pam_open_session.c: file removal
dist/openpam/include/security/openpam.h: file removal
dist/openpam/CREDITS: file removal
dist/openpam/modules/Makefile.in: file removal
dist/openpam/doc/man/pam_open_session.3: file removal
dist/openpam/doc/man/pam_acct_mgmt.3: file removal
dist/openpam/lib/pam_sm_chauthtok.c: file removal
dist/openpam/doc/man/pam.man: file removal
dist/openpam/lib/pam_strerror.c: file removal
dist/openpam/lib/pam_set_mapped_username.c: file removal
dist/openpam/lib/pam_getenv.c: file removal
dist/openpam/lib/pam_sm_set_mapped_authtok.c: file removal
dist/openpam/lib/openpam_get_option.c: file removal
dist/openpam/modules/Makefile.am: file removal
dist/openpam/lib/pam_prompt.c: file removal
dist/openpam/compile: file removal
dist/openpam/doc/man/pam_sm_setcred.3: file removal
dist/openpam/lib/openpam_nullconv.c: file removal
dist/openpam/modules/pam_unix/pam_unix.c: file removal
dist/openpam/doc/man/pam_sm_chauthtok.3: file removal
dist/openpam/lib/pam_close_session.c: file removal
dist/openpam/modules/pam_unix/Makefile.am: file removal
dist/openpam/lib/pam_setenv.c: file removal
dist/openpam/doc/man/pam_vinfo.3: file removal
dist/openpam/lib/openpam_ttyconv.c: file removal
dist/openpam/doc/man/pam_get_data.3: file removal
dist/openpam/modules/pam_permit/Makefile.in: file removal
dist/openpam/doc/man/Makefile.in: file removal
dist/openpam/lib/pam_get_authtok.c: file removal
dist/openpam/bin/su/Makefile.in: file removal
dist/openpam/doc/man/openpam.man: file removal
dist/openpam/HISTORY: file removal
dist/openpam/doc/man/openpam_set_option.3: file removal
dist/openpam/doc/man/pam_sm_open_session.3: file removal
dist/openpam/doc/man/openpam_log.3: file removal
dist/openpam/Makefile.in: file removal
dist/openpam/doc/man/openpam_restore_cred.3: file removal
dist/openpam/ltmain.sh: file removal
dist/openpam/lib/pam_start.c: file removal
dist/openpam/lib/pam_sm_get_mapped_username.c: file removal
dist/openpam/lib/openpam_log.c: file removal
dist/openpam/lib/pam_chauthtok.c: file removal
dist/openpam/lib/pam_sm_acct_mgmt.c: file removal
dist/openpam/configure: file removal
dist/openpam/doc/man/pam_strerror.3: file removal
dist/openpam/Makefile.am: file removal
dist/openpam/lib/openpam_free_envlist.c: file removal
dist/openpam/lib/pam_sm_setcred.c: file removal
dist/openpam/doc/man/openpam_ttyconv.3: file removal
dist/openpam/lib/pam_get_user.c: file removal
dist/openpam/modules/pam_permit/pam_permit.c: file removal
dist/openpam/bin/su/su.c: file removal
dist/openpam/doc/man/pam_get_authtok.3: file removal
dist/openpam/lib/pam_set_item.c: file removal
dist/openpam/doc/man/pam_sm_acct_mgmt.3: file removal
dist/openpam/doc/man/pam_close_session.3: file removal
dist/openpam/doc/Makefile.am: file removal
dist/openpam/modules/pam_deny/pam_deny.c: file removal
dist/openpam/INSTALL: file removal
dist/openpam/modules/pam_deny/Makefile.am: file removal
dist/openpam/doc/man/pam_putenv.3: file removal
dist/openpam/lib/pam_set_mapped_authtok.c: file removal
dist/openpam/lib/pam_vinfo.c: file removal
dist/openpam/doc/man/pam_get_user.3: file removal
dist/openpam/doc/man/pam_prompt.3: file removal
dist/openpam/lib/pam_sm_open_session.c: file removal
dist/openpam/doc/man/pam_info.3: file removal
moved to external/bsd

(riz)

2012-02-23 02:11:51 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by tron in ticket #19):
usr.bin/lex/version.h: file removal
usr.bin/lex/main.c: file removal
usr.bin/lex/libmain.c: file removal
usr.bin/lex/COPYING: file removal
usr.bin/lex/misc.c: file removal
usr.bin/lex/Makefile: file removal
usr.bin/lex/dfa.c: file removal
tools/compat/Makefile: revision 1.56
external/bsd/flex/dist/libmain.c: revision 1.2
usr.bin/lex/flexdef.h: file removal
usr.bin/lex/flex.1: file removal
usr.bin/lex/ecs.c: file removal
usr.bin/lex/FlexLexer.h: file removal
usr.bin/lex/libyywrap.c: file removal
usr.bin/lex/config.h: file removal
usr.bin/lex/ccl.c: file removal
usr.bin/lex/NEWS: file removal
usr.bin/lex/flex.skl: file removal
usr.bin/lex/scan.l: file removal
usr.bin/lex/gen.c: file removal
usr.bin/lex/yylex.c: file removal
usr.bin/lex/VERSION: file removal
usr.bin/lex/initscan.c: file removal
usr.bin/lex/sym.c: file removal
usr.bin/lex/tblcmp.c: file removal
usr.bin/lex/nfa.c: file removal
usr.bin/lex/mkskel.sh: file removal
external/bsd/flex/dist/libyywrap.c: revision 1.2
usr.bin/lex/parse.y: file removal
this has not been used for ages.
Adjust libyywrap.c location.
fix prototypes

(riz)

2012-02-23 02:09:00 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by tron in ticket #18):
doc/3RDPARTY: revision 1.912
doc/3RDPARTY: revision 1.913
remove stale entries: libcdk was removed 5 years ago, termcap.src between
netbsd-5 and netbsd-6
add "Location" tags which tell where the source lives in the NetBSD
tree, and fix some paths in "Notes" sections

(riz)

2012-02-23 00:22:08 UTC MAIN commitmail json YAML

2012-02-22 23:11:20 UTC MAIN commitmail json YAML

PR/46075: Asau: fix typo set_color_paid -> set_color_pair

(christos)

2012-02-22 22:56:44 UTC MAIN commitmail json YAML

- fix an error which prevents satmgr from sending NUL bytes.
- a bit cosmetic change for IOMEGA multibyte control sequence.

(nisimura)

2012-02-22 20:59:26 UTC MAIN commitmail json YAML

Cleam responsibility for NiLFS and for usermode

(reinoud)

2012-02-22 20:21:34 UTC MAIN commitmail json YAML

Fix comment in config.4 about UDF support. It was still stating UDF as a
read-only fs wich it hasn't been for quite some time! It must have slipped
trough.

(reinoud)

2012-02-22 19:08:37 UTC netbsd-6 commitmail json YAML

2012-02-22 19:07:31 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #32):
sys/arch/i386/i386/machdep.c: revision 1.719
i386_switch_context(): mimic code in cpu_switchto() and compare pcb->pcb_fpcpu
against ci to decide if we need to turn off FPU. Fix FPU corruption, e.g.
paranoia occasionally reporting flaws on Xen/MP systems.
XXX is ci_fpused still needed at all ?

(riz)

2012-02-22 19:04:39 UTC MAIN commitmail json YAML

Adjust cpu_switch(9) -> cpu_switchto(9) in xrefs.

(njoly)

2012-02-22 18:59:06 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #31):
sys/arch/x86/x86/pmap.c: revision 1.166
sys/arch/xen/x86/cpu.c: revision 1.83
- Make pmap_write_protect() work with pmap_kernel() too ((va & L2_FRAME)
  strips the high bits of a LP64 address)
- use pmap_protect() in pmap_pdp_ctor() to remap the PDP read-only instead
  of (ab)using pmap_kenter_pa(). No more "mapping already present" on
  console with DIAGNOSTIC kernels
- make sure to zero the whole PDP (NTOPLEVEL_PDES doens't include
  high-level entries on i386 and i386PAE, reserved by Xen). Not sure
  how it has worked before
- remove an always-true test (&& pmap != pmap_kernel(); we KASSERT that
  at the function entry).
use pmap_protect() instead of pmap_kenter_pa() to remap R/O an exiting
page. This gets rid of the last "mapping already present" warnings.

(riz)

2012-02-22 18:56:49 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #29):
sys/arch/xen/x86/x86_xpmap.c: revision 1.39
sys/arch/xen/include/hypervisor.h: revision 1.37
sys/arch/xen/include/intr.h: revision 1.34
sys/arch/xen/x86/xen_ipi.c: revision 1.10
sys/arch/x86/x86/cpu.c: revision 1.97
sys/arch/x86/include/cpu.h: revision 1.48
sys/uvm/uvm_map.c: revision 1.315
sys/arch/x86/x86/pmap.c: revision 1.165
sys/arch/xen/x86/cpu.c: revision 1.81
sys/arch/x86/x86/pmap.c: revision 1.167
sys/arch/xen/x86/cpu.c: revision 1.82
sys/arch/x86/x86/pmap.c: revision 1.168
sys/arch/xen/x86/xen_pmap.c: revision 1.17
sys/uvm/uvm_km.c: revision 1.122
sys/uvm/uvm_kmguard.c: revision 1.10
sys/arch/x86/include/pmap.h: revision 1.50
Apply patch proposed in PR port-xen/45975 (this does not solve the exact
problem reported here but is part of the solution):
xen_kpm_sync() is not working as expected,
leading to races between CPUs.
1 the check (xpq_cpu != &x86_curcpu) is always false because we
  have different x86_curcpu symbols with different addresses in the kernel.
  Fortunably, all addresses dissaemble to the same code.
  Because of this we always use the code intended for bootstrap, which doesn't
  use cross-calls or lock.
2 once 1 above is fixed, xen_kpm_sync() will use xcalls to sync other CPUs,
  which cause it to sleep and pmap.c doesn't like that. It triggers this
  KASSERT() in pmap_unmap_ptes():
  KASSERT(pmap->pm_ncsw == curlwp->l_ncsw);
3 pmap->pm_cpus is not safe for the purpose of xen_kpm_sync(), which
  needs to know on which CPU a pmap is loaded *now*:
  pmap->pm_cpus is cleared before cpu_load_pmap() is called to switch
  to a new pmap, leaving a window where a pmap is still in a CPU's
  ci_kpm_pdir but not in pm_cpus. As a virtual CPU may be preempted
  by the hypervisor at any time, it can be large enough to let another
  CPU free the PTP and reuse it as a normal page.
To fix 2), avoid cross-calls and IPIs completely, and instead
use a mutex to update all CPU's ci_kpm_pdir from the local CPU.
It's safe because we just need to update the table page, a tlbflush IPI will
happen later. As a side effect, we don't need a different code for bootstrap,
fixing 1). The mutex added to struct cpu needs a small headers reorganisation.
to fix 3), introduce a pm_xen_ptp_cpus which is updated from
cpu_pmap_load(), whith the ci_kpm_mtx mutex held. Checking it with
ci_kpm_mtx held will avoid overwriting the wrong pmap's ci_kpm_pdir.
While there I removed the unused pmap_is_active() function;
and added some more details to DIAGNOSTIC panics.
When using uvm_km_pgremove_intrsafe() make sure mappings are removed
before returning the pages to the free pool. Otherwise, under Xen,
a page which still has a writable mapping could be allocated for
a PDP by another CPU and the hypervisor would refuse it (this is
PR port-xen/45975).
For this, move the pmap_kremove() calls inside uvm_km_pgremove_intrsafe(),
and do pmap_kremove()/uvm_pagefree() in batch of (at most) 16 entries
(as suggested by Chuck Silvers on tech-kern@, see also
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012727.html and
followups).
Avoid early use of xen_kpm_sync(); locks are not available at this time.
Don't call cpu_init() twice.
Makes LOCKDEBUG kernels boot again
Revert pmap_pte_flush() -> xpq_flush_queue() in previous.

(riz)

2012-02-22 18:54:51 UTC MAIN commitmail json YAML

Allocating a fixed, limited number of buffers for receive and sending them
to the network stack is a bad idea, because if all receive buffers sits
in socket queues, the interface receive stalls by lack of buffers.
Instead, get receive pages from a pool_cache(9). Copying to a mbuf cluser
would work too, but testings shows this has an important performance hit.
This also simplifies locking.

While there, notify the dom0 when we add some receive buffers (older
linux dom0 didn't care, but newer one do).

Problem reported and fix tested by Brian Marcotte on port-xen

(bouyer)

2012-02-22 18:48:45 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #28):
sys/arch/xen/include/hypervisor.h: revision 1.38
sys/arch/xen/xen/hypervisor.c: revision 1.61
sys/arch/xen/xen/clock.c: revision 1.62
- make xen_version globally available, with macros to access major and
  minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961
- make xen_version globally available, with macros to access major and
  minor xen version.
- In xen_initclocks(), do a VCPUOP_stop_periodic_timer only for Xen 3.1
  and later
Should fix PR port-xen/45961

(riz)

2012-02-22 18:45:27 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #22):
sys/arch/macppc/stand/ofwboot/boot.c: revision 1.27
sys/arch/macppc/stand/ofwboot/boot.h: revision 1.4
sys/arch/macppc/stand/ofwboot/ofdev.c: revision 1.26
Fix boot failure on OF 2.0 machines.
Discussed with phx@ on port-macppc@:
http://mail-index.NetBSD.org/port-macppc/2012/02/18/msg001556.html
Should be pulled up to netbsd-6.

(riz)

2012-02-22 18:43:35 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #17):
sys/kern/kern_exec.c: revision 1.342
sys/kern/kern_exec.c: revision 1.343
sys/kern/kern_exec.c: revision 1.344
Posix spawn fixes:
- split the file actions allocation and freeing into separate functions
- use pnbuf
- don't play games with pointers (partially freeing stuff etc), only check
  fa and sa and free as needed using the same code.
- use copyinstr properly
- KM_SLEEP allocation can't fail
- if path allocation failed midway, we would be possibily freeing
  userland strings.
- use sizeof(*var) instead sizeof(type)
fix fae free'ing, from enami.
keep track of the original array length so we can pass it to kmem_free, from
enami

(riz)

2012-02-22 18:40:05 UTC netbsd-6 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #16):
sys/sys/cdefs.h: revision 1.90
PR 46040:
If the current compiler doesn't support C99, check if it is compatible
with GCC 2.92. In that case, use the protected __restricted__ form.
In any other case, default to removing __restricted.

(riz)

2012-02-22 18:35:26 UTC MAIN commitmail json YAML

i386_switch_context(): mimic code in cpu_switchto() and compare pcb->pcb_fpcpu
against ci to decide if we need to turn off FPU. Fix FPU corruption, e.g.
paranoia occasionally reporting flaws on Xen/MP systems.

XXX is ci_fpused still needed at all ?

(bouyer)

2012-02-22 18:29:32 UTC MAIN commitmail json YAML

use pmap_protect() instead of pmap_kenter_pa() to remap R/O an exiting
page. This gets rid of the last "mapping already present" warnings.

(bouyer)

2012-02-22 18:25:12 UTC MAIN commitmail json YAML

Look at the proper offsets for MD info, depending on the size of the binary
32 or 64.

(christos)

2012-02-22 17:57:36 UTC MAIN commitmail json YAML

2012-02-22 17:53:52 UTC MAIN commitmail json YAML

2012-02-22 17:52:58 UTC MAIN commitmail json YAML

Backout previous - we do not need it anymore

(martin)

2012-02-22 17:51:01 UTC MAIN commitmail json YAML

Use C++ compatible declaration for posix_spawn (instead of the C99 specific
posix one).

(martin)

2012-02-22 17:48:53 UTC MAIN commitmail json YAML

2012-02-22 17:47:25 UTC MAIN commitmail json YAML

fix wrong variable, import command

(christos)

2012-02-22 16:53:46 UTC MAIN commitmail json YAML

Only attempt to handle as much data as we can handle.
Per my testing, allows normal MAXPHYS on domU kernels.

(jakllsch)

2012-02-22 16:50:46 UTC MAIN commitmail json YAML

Define XBD_MAX_XFER instead of using (PAGE_SIZE * BLKIF_MAX_SEGMENTS_PER_REQUEST) directly.

(jakllsch)

2012-02-22 16:42:07 UTC MAIN commitmail json YAML

quote SRC_DIR and DEST_DIR everywhere.  Also wrap some long lines.

(apb)

2012-02-22 16:27:39 UTC MAIN commitmail json YAML

Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string.

(apb)