Re: midiplay: Fix out-of-bounds memory access

2016-04-30 Thread Geoff Hill
> Any reason to not replace the somewhat arbitary earlier test > for this? I chose to keep the condition simpler and the existing constraints intact for minimal impact, but I would agree it's better to consolidate with the existing check. Your diff looks good to me, +1.

Re: machine slow with latest snapshot (bufcache related?) on sparc64

2016-04-30 Thread Craig Skinner
Try sp...@openbsd.org Markus. See: http://www.OpenBSD.Org/mail.html

Re: Speedup sdhc(4)

2016-04-30 Thread Mark Kettenis
> From: John Troy > Date: Fri, 29 Apr 2016 11:56:24 -0400 > > On 4/28/16 2:30 PM, Mark Kettenis wrote: > > So here are just the bits that add DMA support. Since Theo likes this > > so much, I'd like to move forward with this. > > > > ok? > > > Hi Mark, > This diff seems to break

Re: machine slow with latest snapshot (bufcache related?) on sparc64

2016-04-30 Thread Mark Kettenis
> Date: Sat, 30 Apr 2016 11:34:59 +0100 > Content-Disposition: inline > > Try sp...@openbsd.org Markus. Not a particularly useful suggestion for something that doesn't look like an problem that is specific to sparc64.

Re: machine slow with latest snapshot (bufcache related?) on sparc64

2016-04-30 Thread Markus Lude
On Fri, Apr 29, 2016 at 11:00:32PM +0200, Karel Gardas wrote: > On Fri, Apr 29, 2016 at 10:51 PM, Markus Lude wrote: > > Hello, > > > > with latest snapshot I've short hangs on my (good old) SUN Blade 100. > > The desktop clocks often shows jumps for several seconds. > > I

sdmmc bus width support

2016-04-30 Thread Mark Kettenis
The diff below adds support for changing the bus width to the sdmmc subsystem and the sdhc(4) controller. By default controllers and card use a 1-bit bus. But most SD cards actually have support fora 4-bit bus. This can be checked by looking atthe SCR register. In theory using the 4-bit bus

Re: sdmmc bus width support

2016-04-30 Thread Jonathan Gray
On Sat, Apr 30, 2016 at 09:50:15PM +0200, Mark Kettenis wrote: > The diff below adds support for changing the bus width to the sdmmc > subsystem and the sdhc(4) controller. By default controllers and card > use a 1-bit bus. But most SD cards actually have support fora 4-bit > bus. This can be

Return ESRCH instead of zero result for KERN_FILE sysctl

2016-04-30 Thread Vadim Zhukov
When matching by PID, we'd better return ESRCH expicitly rather than zero entries. This makes, for example, fstat(1) behaviour more consistent and makes it easier to replace "if lsof -p ..." checks in third-party code with "if fstat -p ...". For libkvm, I explicitly test for ESRCH to avoid going