Re: static in ze kernel

2016-04-28 Thread Jonathan Gray
On Fri, Apr 29, 2016 at 04:43:56PM +1000, David Gwynne wrote: > > > On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > > > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 > >> From: Martin Pieuchot > >> > >> The reason why we do not use 'static' in the kernel is no longer valid > >> since all our platf

Re: static in ze kernel

2016-04-28 Thread Otto Moerbeek
On Fri, Apr 29, 2016 at 04:43:56PM +1000, David Gwynne wrote: > > > On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > > > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 > >> From: Martin Pieuchot > >> > >> The reason why we do not use 'static' in the kernel is no longer valid > >> since all our plat

Re: multi-pool malloc wip diff

2016-04-28 Thread Otto Moerbeek
Hi, new diff in http://www.drijf.net/openbsd/malloc/ Should fix the issue Ted spotted and contains initial code to only set up multiple pools if threaded. This one is only lightly tested by me, but I wanted to post this before I'll be away for a semi-long weekend, I don't think this is ready for

Re: static in ze kernel

2016-04-28 Thread David Gwynne
> On 28 Apr 2016, at 22:49, Mark Kettenis wrote: > >> Date: Thu, 28 Apr 2016 13:50:53 +0200 >> From: Martin Pieuchot >> >> The reason why we do not use 'static' in the kernel is no longer valid >> since all our platforms are ELF. ddb(4) handle them just fine. >> >> Here's an example after se

Re: httpd: httpd.conf(5): text/plain for .txt

2016-04-28 Thread Ingo Schwarze
Hi, Hiltjo Posthuma wrote on Wed, Apr 27, 2016 at 03:13:38PM +0200: > For text content the response HTTP header "Content-Type: text/plain" > is commonly used. This patch changes it in the httpd.conf(5) > documentation: Committed, thanks. Ingo > Index: httpd.conf.5 > ==

Re: Speedup sdhc(4)

2016-04-28 Thread Mark Kettenis
> Date: Thu, 28 Apr 2016 12:28:59 +0200 (CEST) > From: Mark Kettenis > > The diff below implements some speedups for sdhc(4). In particular: > > * Implement high speed mode > * Implement support for 4-bit and 8-bit busses > * Use DMA for block transfers > > High speed mode and wider bus suppor

Re: multi-pool malloc wip diff

2016-04-28 Thread Otto Moerbeek
On Thu, Apr 28, 2016 at 01:07:30PM -0400, Ted Unangst wrote: > Otto Moerbeek wrote: > > static void > > -ofree(struct dir_info *pool, void *p) > > +ofree(struct dir_info *argpool, void *p) > > { > > + struct dir_info *pool; > > struct region_info *r; > > size_t sz; > > + int i; > >

Re: multi-pool malloc wip diff

2016-04-28 Thread Ted Unangst
Otto Moerbeek wrote: > static void > -ofree(struct dir_info *pool, void *p) > +ofree(struct dir_info *argpool, void *p) > { > + struct dir_info *pool; > struct region_info *r; > size_t sz; > + int i; > > + pool = argpool; > r = find(pool, p); > if (r == NULL)

Re: tmux(1): dealing with broken wcwidth(3)

2016-04-28 Thread Ingo Schwarze
Hi Nic, Nicholas Marriott wrote on Thu, Apr 28, 2016 at 01:11:44PM +0100: > tmux is not some sort of terminal firewall. Of course we try to avoid > anything obviously stupid, but we also want stuff that works outside > tmux to also work inside. [...] > Assuming a width of 1 where we can't get a w

Allow top(1) to search arguments (again)

2016-04-28 Thread Edd Barrett
Hi, Resubmitting this diff, as I've been unable to get an OK. Original blurb: > I'd like top(1)'s filter feature (-g) to search process arguments. This > would make searching for (e.g.) Python scripts by name much easier. The > current behaviour only searches the program name, which for scripts

Re: tmux(1): dealing with broken wcwidth(3)

2016-04-28 Thread lists
> stuff that works outside tmux to also work inside Some time ago I lost the capability of moving back and forth between words in tmux using control with left and right key. Excuse the interrupt, is this character width related at all?

Re: inteldrm diff that requires testing

2016-04-28 Thread frantisek holop
Mark Kettenis, 15 Apr 2016 17:01: > The diff below makes the HDMI output on Intel Bay Trail machines work. > Very useful for machines like the Lenovo Ideacentre Stick 300. But > this needs to be tested on other hardware as well. Especially on > machines with external displays. i confirm this mak

ld patch that greatly speeds up linking large programs with debug symbols

2016-04-28 Thread Aaron Miller
Hi All, I was experiencing ~8 minute linking times for a large C++ application I have been working on when running -current on amd64. It turns out that the decade-old version of ld in the OpenBSD source tree has a bug that causes quadratic complexity for some linking operations when debug symbols

Re: static in ze kernel

2016-04-28 Thread Mark Kettenis
> Date: Thu, 28 Apr 2016 13:50:53 +0200 > From: Martin Pieuchot > > The reason why we do not use 'static' in the kernel is no longer valid > since all our platforms are ELF. ddb(4) handle them just fine. > > Here's an example after setting 'static' in the uhci(4) driver: > > $ nm /bsd |g

Re: siginfo_t.si_addr should be void*

2016-04-28 Thread Todd C. Miller
Since si_addr is only assigned to inside the kernel this should be safe to change. - todd

Re: tmux(1): dealing with broken wcwidth(3)

2016-04-28 Thread Nicholas Marriott
Hi On Thu, Apr 28, 2016 at 01:47:27PM +0200, Ingo Schwarze wrote: > Hi Nic, > > Nicholas Marriott wrote on Wed, Apr 27, 2016 at 03:36:25AM -0600: > > > CVSROOT:/cvs > > Module name:src > > Changes by: n...@cvs.openbsd.org2016/04/27 03:36:25 > > > > Modified files: > > usr.bi

static in ze kernel

2016-04-28 Thread Martin Pieuchot
The reason why we do not use 'static' in the kernel is no longer valid since all our platforms are ELF. ddb(4) handle them just fine. Here's an example after setting 'static' in the uhci(4) driver: $ nm /bsd |grep uhci_poll_hub 81107080 t uhci_poll_hub $

Re: tmux(1): dealing with broken wcwidth(3)

2016-04-28 Thread Ingo Schwarze
Hi Nic, Nicholas Marriott wrote on Wed, Apr 27, 2016 at 03:36:25AM -0600: > CVSROOT: /cvs > Module name: src > Changes by: n...@cvs.openbsd.org2016/04/27 03:36:25 > > Modified files: > usr.bin/tmux : utf8.c > > Log message: > Loads of platforms appear to have old or broken

Re: Speedup sdhc(4)

2016-04-28 Thread Mark Kettenis
> Date: Thu, 28 Apr 2016 12:28:59 +0200 (CEST) > From: Mark Kettenis > > The diff below implements some speedups for sdhc(4). In particular: > > * Implement high speed mode > * Implement support for 4-bit and 8-bit busses > * Use DMA for block transfers > > High speed mode and wider bus suppor

Speedup sdhc(4)

2016-04-28 Thread Mark Kettenis
The diff below implements some speedups for sdhc(4). In particular: * Implement high speed mode * Implement support for 4-bit and 8-bit busses * Use DMA for block transfers High speed mode and wider bus support are only used for (e)MMC for now, but DMA support should benefit SD cards as well. M

Re: fix iwn htprot updates

2016-04-28 Thread Stefan Sperling
On Wed, Apr 27, 2016 at 05:53:39PM +0200, Stefan Sperling wrote: > I'm investigating latency issues with 11n block ack on iwn. > > There's a dedicated command to update RXON flags while associated. > Use this command instead of whacking the whole firmware node table > and restoring it. The firmwar

Re: reduce 11n block ack gap timeout

2016-04-28 Thread Stefan Sperling
On Wed, Apr 27, 2016 at 06:11:26PM +0200, Stefan Sperling wrote: > Reduces ping jitter when the block ack window encounters gaps. I've committed a change to 300 msec instead. That seems to work better, based on testing we've done in the hackroom. > Index: ieee80211_node.h > ==