Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread Mike Larkin
On Fri, Feb 10, 2017 at 08:56:13AM -0600, joshua stein wrote: > On Thu, 09 Feb 2017 at 18:30:59 -0600, joshua stein wrote: > > Without this, my MacBook Air won't suspend properly (hangs calling > > _PTS) and a similar change in Linux from 2014 (commit > > 7bc5a2bad0b8d9d1ac9f7b8b33150e4ddf197334) n

Re: asmc: restore keyboard backlight on resume

2017-02-10 Thread Mike Larkin
On Thu, Feb 09, 2017 at 06:41:38PM -0600, joshua stein wrote: > After resume, the keyboard backlight is still off, so restore it > (this was also helpful to figure out the machine was actually > resuming). > looks ok to me. ok mlarkin@ -ml > > Index: sys/dev/isa/asmc.c > ==

Re: Test wanted: free unix domain (a.k.a SOCKET_LOCK())

2017-02-10 Thread Alexander Bluhm
The process holding the netlock is: 34831 184306 25445 0 30x80 netio perl ddb{0}> trace /p 0t184306 sleep_finish(d0bceda0,d09e1903,f5536d2c,d03ce235,db7e4514) at sleep_finish+0xb4 sleep_finish(f5536d3c,1,118,d09e5f10,0) at sleep_finish+0xb4 tsleep(db544cdc,118,d09e5f10,0

Re: Test wanted: free unix domain (a.k.a SOCKET_LOCK())

2017-02-10 Thread Alexander Bluhm
On Thu, Feb 09, 2017 at 12:36:44PM +0100, Martin Pieuchot wrote: > Please test and report back. This diff triggers a deadlock in /usr/src/regress/sys/net/pf_divert. Several processes hang in netlock on the remote machine. root@ot2:.../~# ps axkl | grep netlock 0 27718 0 0 10 0

struct ipipstat: use 64 bits counters

2017-02-10 Thread Jeremie Courreges-Anglas
Using a mix of 32 and 64 bits counters leads to an ugly conversion to percpu counters. Why not move to 64 bits counters? struct ipipstat is afaik only used by netstat and ports/shells/nsh (I can cook a fix for the latter). ok? Index: sys/netinet/ip_ipip.h =

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread joshua stein
On Thu, 09 Feb 2017 at 18:30:59 -0600, joshua stein wrote: > Without this, my MacBook Air won't suspend properly (hangs calling > _PTS) and a similar change in Linux from 2014 (commit > 7bc5a2bad0b8d9d1ac9f7b8b33150e4ddf197334) notes that upon resume, > the Thunderbolt ports won't be powered up wit

Re: Test wanted: free unix domain (a.k.a SOCKET_LOCK())

2017-02-10 Thread Alexander Bluhm
On Thu, Feb 09, 2017 at 12:36:44PM +0100, Martin Pieuchot wrote: > [0] https://marc.info/?l=openbsd-misc&m=148661605114230&w=2 My test shows that unix doamin socket on NFS file system works. > void > sofree(struct socket *so) > { > - NET_ASSERT_LOCKED(); > - Could you keep an SOCKET_ASSER

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread Martin Pieuchot
On 10/02/17(Fri) 11:47, Stefan Sperling wrote: > On Fri, Feb 10, 2017 at 11:37:45AM +0100, Martin Pieuchot wrote: > > I'm not sure to understand why we can't add Darwin, is it going to > > break non Apple machines? > > It was briefly discussed here: > https://marc.info/?l=openbsd-tech&m=1476821993

Re: asmc: restore keyboard backlight on resume

2017-02-10 Thread Martin Pieuchot
On 09/02/17(Thu) 18:41, joshua stein wrote: > After resume, the keyboard backlight is still off, so restore it > (this was also helpful to figure out the machine was actually > resuming). ok mpi@ I'm not sure if you choose DVACT_WAKEUP on purpose, another way of doing it would be to do a task_add

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread Stefan Sperling
On Fri, Feb 10, 2017 at 11:37:45AM +0100, Martin Pieuchot wrote: > I'm not sure to understand why we can't add Darwin, is it going to > break non Apple machines? It was briefly discussed here: https://marc.info/?l=openbsd-tech&m=147682199311993&w=2 which refers to http://mjg59.dreamwidth.org/29954

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread Stuart Henderson
On 2017/02/10 11:37, Martin Pieuchot wrote: > On 09/02/17(Thu) 18:30, joshua stein wrote: > > When running on machines with a hw_vendor of "Apple Inc." or "Apple > > Computer, Inc.", only return 1 for an OSI check of "Darwin" and not > > the other Windows variants. > > > > Code in the AML of the M

Re: acpi: pretend to be Darwin on Apple hardware

2017-02-10 Thread Martin Pieuchot
On 09/02/17(Thu) 18:30, joshua stein wrote: > When running on machines with a hw_vendor of "Apple Inc." or "Apple > Computer, Inc.", only return 1 for an OSI check of "Darwin" and not > the other Windows variants. > > Code in the AML of the MacBookAir7,1 (most likely all Macs) does > much differen

Re: inteldrm: setup backlight pwm alternate increment on backlight enable

2017-02-10 Thread Peter Hessler
On 2017 Feb 10 (Fri) at 11:52:20 +1100 (+1100), Jonathan Gray wrote: :On Thu, Feb 09, 2017 at 06:39:13PM -0600, joshua stein wrote: :> I have no idea why there are chickens involved, but this fixes the :> problem on at least the MacBookAir7,1 (Broadwell) where upon S3 :> resume, the backlight value

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-10 Thread Antoine Jacoutot
On Fri, Feb 10, 2017 at 10:00:51AM +0100, Landry Breuil wrote: > On Fri, Feb 10, 2017 at 09:36:16AM +0100, Antoine Jacoutot wrote: > > On Thu, Feb 09, 2017 at 06:19:54PM +0100, Landry Breuil wrote: > > > On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > > > > On 2017/02/05 09:53,

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-10 Thread Landry Breuil
On Fri, Feb 10, 2017 at 09:36:16AM +0100, Antoine Jacoutot wrote: > On Thu, Feb 09, 2017 at 06:19:54PM +0100, Landry Breuil wrote: > > On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > > > On 2017/02/05 09:53, Robert Peichaer wrote: > > > > On Sun, Feb 05, 2017 at 10:46:41AM +0100

Re: netcat: IPv6 address support for proxy

2017-02-10 Thread Delan Azabani
On 5 February, Jeremie Courreges-Anglas wrote: > -x ::1 is ambiguous, -x 127.0.0.1 isn't. It's just a fact. Nit: “::1” isn’t ambiguous, because if we were to treat :1 like a port number, “:” is all we would have left. “::1:8080” is ambiguous, so you would need* to type “::1:8080:8080” to reach “

Re: add empty /root/.ssh/authorized_keys to mtree/sets ?

2017-02-10 Thread Antoine Jacoutot
On Thu, Feb 09, 2017 at 06:19:54PM +0100, Landry Breuil wrote: > On Sun, Feb 05, 2017 at 08:37:31PM +, Stuart Henderson wrote: > > On 2017/02/05 09:53, Robert Peichaer wrote: > > > On Sun, Feb 05, 2017 at 10:46:41AM +0100, Landry Breuil wrote: > > > > Hi, > > > > > > > > when installing 'throw