sxipwm, pwmbl - work in progress, simplefb integration?

2019-10-06 Thread Krystian Lewandowski
Good evening Mark, tech@, I was trying to enable brightness control on Pinebook, so it could be set via: wsconsctl display.brightness=N%. I added sxipwm and pwmbl drivers. First relies on "pwm" bindings, 2nd - on "pwm-backlight". I had it working for some time now. For PWM, I tried to replicate

more grep options (for zstdgrep)

2019-10-06 Thread Ted Unangst
The zstd package includes a zstdgrep script, which should behave like zgrep, however it assumes a few gnu grep behaviors we don't support. 1. --label=name prints a custom label, so you can get file.txt, not file.txt.zst in the output. 2. It uses - for stdin instead of a missing argument. Both

Re: net80211: fix discarded input control frame count

2019-10-06 Thread Mike Larkin
On Sun, Oct 06, 2019 at 12:04:49PM +0200, Stefan Sperling wrote: > The net80211 stack currently displays every received control frame > as "discarded input control packet" in netstat(1). > > We do in fact process "power saving poll" and "block ack request" frames. > Such frames should not be

Re: ifq_restart() in dwxe/dwge

2019-10-06 Thread Mark Kettenis
> Date: Sun, 6 Oct 2019 23:44:28 +1000 > From: Jonathan Matthew > > I noticed the new dwge(4) locks up after a while running tcpbench. > After scratching my head quite a lot I realised it wasn't restarting the > send queue after processing tx completions, it was just clearing OACTIVE, > Changing

top: avoid casting around get_process_info()

2019-10-06 Thread Klemens Nanni
get_process_info() fills the global handle structure and returns a pointer to it, which is later passed to format_next_process() to print each process on the screen. Without casting back and forth between `struct handle *' and `caddr_t' I find the code is easier to read. No object change. OK?

ifq_restart() in dwxe/dwge

2019-10-06 Thread Jonathan Matthew
I noticed the new dwge(4) locks up after a while running tcpbench. After scratching my head quite a lot I realised it wasn't restarting the send queue after processing tx completions, it was just clearing OACTIVE, Changing this to call ifq_restart() instead (as prescribed in ifq.h) things work

top: Zap intermediate structs in compare_*()

2019-10-06 Thread Klemens Nanni
All compare_*() functions (corresponding to the various sort orders) take void pointers as they are passed to qsort(3), so the usual casting inside follows. Yet, as SETORDER() eventually assigns the actual keys, it can also directly do so from the function arguments instead of an intermediate

Re: net80211: fix discarded input control frame count

2019-10-06 Thread Klemens Nanni
On Sun, Oct 06, 2019 at 12:04:49PM +0200, Stefan Sperling wrote: > The net80211 stack currently displays every received control frame > as "discarded input control packet" in netstat(1). > > We do in fact process "power saving poll" and "block ack request" frames. > Such frames should not be

net80211: fix discarded input control frame count

2019-10-06 Thread Stefan Sperling
The net80211 stack currently displays every received control frame as "discarded input control packet" in netstat(1). We do in fact process "power saving poll" and "block ack request" frames. Such frames should not be counted as discarded. ok? (diff uses 5 context lines for easier review) diff