Re: wol support for bge

2014-04-23 Thread Mark Kettenis
Date: Wed, 23 Apr 2014 11:43:06 -0500 From: Abel Abraham Camarillo Ojeda acam...@verlet.org This should work on sparc64? Unlikely.

Re: ddb, USB keyboard and Apple machines.

2014-04-26 Thread Mark Kettenis
Date: Sat, 26 Apr 2014 17:57:30 +0200 From: Martin Pieuchot mpieuc...@nolizard.org It's actually impossible to use a USB keyboard to enter ddb(8) on most of the G3/G4 that come with such keyboard since they have a bluetooth HID device that attaches as the console keyboard. I assume this

acpi interrupt routing diff

2014-04-27 Thread Mark Kettenis
The current acpiprt(4) code doesn't handle non-standard polarity and trigger mode correctly. Typically not a problem for real hardware, but some virtualization stuff gets creative. The diff below tries to do a better job. It fixes the qemu power button. But before I can commit this, it needs

Re: Switch getopt example to getprogname()

2014-04-29 Thread Mark Kettenis
Date: Tue, 29 Apr 2014 11:31:48 +0200 From: Tristan Le Guern tlegu...@bouledef.eu Hi, This patch for /usr/share/misc/getopt enforces the use of getprogname() instead of __progname. Is this desirable? If so I also have a patch for style(9). getprogname(3) isn't really more portable

Re: data modified on freelist, tmpfs-related?

2014-04-30 Thread Mark Kettenis
Date: Wed, 30 Apr 2014 13:39:20 +0100 From: Stuart Henderson st...@openbsd.org Seen when running e2fsprogs regression tests with /tmp on tmpfs I'm not surprised; tmpfs contains some serious bugs. I recommend not using it until those are fixed. Data modified on freelist: word

Re: data modified on freelist, tmpfs-related?

2014-04-30 Thread Mark Kettenis
From: Mike Belopuhov m...@belopuhov.com Date: Wed, 30 Apr 2014 16:00:45 +0200 On 30 April 2014 15:55, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Wed, 30 Apr 2014 15:38:39 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Wed, 30 Apr 2014 13:39:20 +0100 From

Re: What's the pid of the pagedaemon - intro(2)

2014-05-02 Thread Mark Kettenis
From: j...@wxcvbn.org (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Anglas?=) Date: Fri, 02 May 2014 10:17:45 +0200 I don't know when this changed, but the information below seems no longer relevant. ok? Kill it! Index: intro.2

uvm integer overflows

2014-05-05 Thread Mark Kettenis
Inspired by some commits in bitrig, I did an audit for potential integer overflows caused by converting a page number into an offset/size/address by shifting by PAGE_SHIFT. While doing so, I noticed that uvm_objwire/unwire really should really use voff_t instead of off_t. There is one potential

Re: sparc64: problem after trap table takeover under QEMU

2014-05-08 Thread Mark Kettenis
Date: Thu, 08 May 2014 14:44:30 +0100 From: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk On 06/05/14 19:18, Mark Cave-Ayland wrote: Hi Mark, Interesting to see sparc64 support in QEMU. As soon as I step into address 0x1001804 then this is where things start to go wrong; the TLB

Re: uchcom(4) did not work

2014-05-14 Thread Mark Kettenis
Date: Wed, 14 May 2014 11:04:56 +0200 From: Martin Pieuchot mpieuc...@nolizard.org On 13/05/14(Tue) 21:24, Mike Larkin wrote: On Wed, May 14, 2014 at 11:02:49AM +0900, SASANO Takayoshi wrote: Hi, Simply magic values are rewrited with #define. If these values need to be

Re: NOINET6 by default

2014-05-14 Thread Mark Kettenis
Date: Wed, 14 May 2014 23:29:20 +0200 From: Henning Brauer lists-openbsdt...@bsws.de this diff fixes that. well, really two independent parts. one: set the NOINET6 flag by default on each and every interface. ok on that bit two: implement ifconfig if +inet6 to turn inet6 on and assign the

Re: got me a 16-core octeon donated.

2014-05-15 Thread Mark Kettenis
Date: Thu, 15 May 2014 22:04:16 +0200 From: Janne Johansson icepic...@gmail.com After some insight from jasper, I stripped away the randomdata section and voila: Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved.

Re: pckbd volume keys (part 1), diff to test

2014-05-26 Thread Mark Kettenis
From: David Coppa dco...@gmail.com Date: Mon, 26 May 2014 13:23:21 +0200 On Fri, May 23, 2014 at 12:42 PM, Alexandre Ratchov a...@caoua.org wrote: On Wed, Apr 30, 2014 at 01:06:48AM +0200, Alexandre Ratchov wrote: This diff attempts to unify volume keys; it makes pckbd and ukbd volume

Re: exp2(3) bug?

2014-06-02 Thread Mark Kettenis
Date: Mon, 02 Jun 2014 09:34:20 +0200 From: Benjamin Baier program...@netzbasis.de You might want to read up on floating point arithmetic. (rounding and representation) Well, the difference between 4.994404 and 5.0 is a bit large to blame rounding and binary representation. And other

Re: exp2(3) bug?

2014-06-02 Thread Mark Kettenis
Date: Mon, 2 Jun 2014 10:17:53 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Mon, 02 Jun 2014 09:34:20 +0200 From: Benjamin Baier program...@netzbasis.de You might want to read up on floating point arithmetic. (rounding and representation) Well, the difference

Re: nextafterl(3) possible bug

2014-06-02 Thread Mark Kettenis
Date: Mon, 2 Jun 2014 07:34:59 -0400 From: Daniel Dickman didick...@gmail.com From the numpy test suite, I think I might have found a bug in nextafterl(3). The result_ld variable below comes back as nan on i386. But doing the same calculations with floats returns the expected values. A

Re: nextafterl(3) possible bug

2014-06-04 Thread Mark Kettenis
Date: Mon, 2 Jun 2014 21:18:26 -0400 From: Daniel Dickman didick...@gmail.com Another bug. Intel chose an extended precision format with an explicit integer bit, and the code doesn't handle that. Assuming we don't support machines with extended precision format that have an

Re: mfi(4) vs WT and WB

2014-06-10 Thread Mark Kettenis
Date: Tue, 10 Jun 2014 21:34:56 +0200 From: Otto Moerbeek o...@drijf.net On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote: This volumes feel pretty fast, so I suspect caching mode is OK. Still it is confusing to have a flag that doesn't reflect reality. I'm planning to

Re: mfi(4) vs WT and WB

2014-06-10 Thread Mark Kettenis
Date: Tue, 10 Jun 2014 21:55:04 +0200 From: Otto Moerbeek o...@drijf.net On Tue, Jun 10, 2014 at 09:52:23PM +0200, Mark Kettenis wrote: Date: Tue, 10 Jun 2014 21:34:56 +0200 From: Otto Moerbeek o...@drijf.net On Fri, Jun 06, 2014 at 08:54:24PM +0200, Otto Moerbeek wrote

Re: acpiec(4): clear events based on vendor

2014-06-10 Thread Mark Kettenis
Date: Tue, 10 Jun 2014 18:25:33 +0300 From: Paul Irofti p...@irofti.net After discussions with Theo we decided to walk the table where needed instead of using the soft state variables. Also adding all the Samsung models to the quirks table (as per the Linux EC quirks table). This diff

Re: acpiec(4): clear events based on vendor

2014-06-11 Thread Mark Kettenis
Date: Wed, 11 Jun 2014 08:40:51 +0200 From: Remi Locherer remi.loche...@relo.ch On Wed, Jun 11, 2014 at 09:11:54AM +0300, Paul Irofti wrote: On Tue, Jun 10, 2014 at 11:50:02PM +0200, Remi Locherer wrote: On Tue, Jun 10, 2014 at 06:25:33PM +0300, Paul Irofti wrote: After discussions

Re: We can dump(8) more than 2TB

2014-06-12 Thread Mark Kettenis
Date: Thu, 12 Jun 2014 15:14:29 -0400 From: Ted Unangst t...@tedunangst.com On Thu, Jun 12, 2014 at 21:07, Christian Weisgerber wrote: After writing 2TB (INT_MAX * TP_BSIZE), dump(8) stops reporting progress because the blockswritten variable has wrapped around to negative. It needs to

Re: [PATCH] Atheros AR9281 miniPCI-E new product id 2nd try

2014-06-18 Thread Mark Kettenis
Date: Wed, 18 Jun 2014 10:20:05 +0200 From: Stefan Sperling s...@openbsd.org On Wed, Jun 18, 2014 at 09:05:56AM +0200, Remi Locherer wrote: I had my athn card working fine in my APU board with -current amd64. But then after a reboot athn was not there anymore. The dmesg showed that it

Re: Unnecessary mmap flags?

2014-06-27 Thread Mark Kettenis
Date: Thu, 26 Jun 2014 17:01:23 -0700 From: Matthew Dempsky matt...@dempsky.org On Thu, Jun 26, 2014 at 12:28:18PM -0700, Matthew Dempsky wrote: I just reviewed our mmap(2) flags to compare them against Linux, FreeBSD, Solaris, and Darwin's flags. Of the flags listed below, none of

Re: Unnecessary mmap flags?

2014-06-27 Thread Mark Kettenis
Date: Thu, 26 Jun 2014 12:28:18 -0700 From: Matthew Dempsky matt...@dempsky.org I just reviewed our mmap(2) flags to compare them against Linux, FreeBSD, Solaris, and Darwin's flags. Of the flags listed below, none of them are specified by POSIX, and none of them do anything interesting

Re: POSIX-compliant page fault error codes

2014-06-29 Thread Mark Kettenis
Date: Tue, 24 Jun 2014 15:53:20 -0700 From: Matthew Dempsky matt...@dempsky.org On Tue, Jun 24, 2014 at 11:04:10AM -0700, Matthew Dempsky wrote: SIGBUS/BUS_ADRERR: Accessing a mapped page that exceeds the end of the underlying mapped file. Generating SIGBUS for this case has proven

Re: Rename MAP_ANON to MAP_ANONYMOUS

2014-06-30 Thread Mark Kettenis
Date: Mon, 30 Jun 2014 10:53:00 -0700 From: Matthew Dempsky matt...@dempsky.org On Mon, Jun 30, 2014 at 10:42 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: Solaris documents MAP_ANON in its man page, and defines MAP_ANONYMOUS as MAP_ANON for source compatibility. Yep, but what

Re: anoncvs errors

2014-07-04 Thread Mark Kettenis
Date: Fri, 04 Jul 2014 04:31:35 -0500 From: Vijay Sankar vsan...@foretell.ca obsd55$ pkg_info | grep cvs cvsync-0.25.0pre0 CVS repository synchronization utility You need cvsync-0.25.0pre0p0

Re: Mark get*[ug]id() as NOLOCK

2014-07-07 Thread Mark Kettenis
Date: Mon, 7 Jul 2014 11:18:53 -0700 From: Matthew Dempsky matt...@dempsky.org Recently guenther changed user credentials to be a per-process resource, but kept a per-thread cache of credentials that get refreshed at each system call entry. All of the get*[ug]id() system calls simply

Re: Mark get*[ug]id() as NOLOCK

2014-07-07 Thread Mark Kettenis
Date: Mon, 07 Jul 2014 15:06:47 -0400 From: Ted Unangst t...@tedunangst.com On Mon, Jul 07, 2014 at 11:18, Matthew Dempsky wrote: Recently guenther changed user credentials to be a per-process resource, but kept a per-thread cache of credentials that get refreshed at each system call

Re: Use atomics for mutating p_sigmask

2014-07-08 Thread Mark Kettenis
Date: Mon, 7 Jul 2014 13:46:03 -0700 From: Matthew Dempsky matt...@dempsky.org p_sigmask is only modified by the owning thread from process context (e.g., sys_sigprocmask(), sys_sigreturn(), userret(), or postsig()), but it can be accessed anywhere (e.g., interrupts or threads on other

Re: Compile kernel with -std=gnu99

2014-07-08 Thread Mark Kettenis
Date: Tue, 8 Jul 2014 11:17:35 -0700 From: Matthew Dempsky matt...@dempsky.org Diff below converts the kernel to build with -std=gnu99. (For simplicity, I've only included amd64 for now, but I'll make the same change to all kernel Makefiles if this is ok.) The only incompatibility (that

Re: Use atomics for mutating p_sigmask

2014-07-08 Thread Mark Kettenis
Date: Tue, 8 Jul 2014 09:05:38 -0700 From: Matthew Dempsky matt...@dempsky.org On Tue, Jul 8, 2014 at 1:29 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Mon, 7 Jul 2014 13:46:03 -0700 From: Matthew Dempsky matt...@dempsky.org p_sigmask is only modified by the owning thread

Re: Compile kernel with -std=gnu99

2014-07-08 Thread Mark Kettenis
On Tue, Jul 8, 2014 at 12:03 PM, Mark Kettenis mark.kette...@xs4all.nl wrote: I disagree with this diff. We should discourage the use of GNU extensions in our kernel. Therefore I think std=gnu99 would give the wrong signal. Can you clarify your concern? Currently we're (implicitly

Re: Paravirtualized optimizations for KVM

2014-07-08 Thread Mark Kettenis
Date: Tue, 8 Jul 2014 09:22:41 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de Hi, I have been trying to increase fork performance of openbsd/amd64 on KVM. It turns out that when I increase the number of CPUs of a VM from 1 to 3, a fork+exit micro benchmark is slowed down by a

Re: Add MAP_ANONYMOUS as a synonym for MAP_ANON

2014-07-10 Thread Mark Kettenis
Date: Thu, 10 Jul 2014 11:50:18 -0700 From: Matthew Dempsky matt...@dempsky.org The Austin Group this morning accepted proposed wording to standardize both MAP_ANON and MAP_ANONYMOUS, recognizing that neither was clearly more popular than the other among applications, and that there's

apmd -A induced hangs

2014-07-13 Thread Mark Kettenis
Some people have reported that apmd -A makes their machines hang. Could those people try the diff below and see whether it helps? Index: acpicpu.c === RCS file: /home/cvs/src/sys/dev/acpi/acpicpu.c,v retrieving revision 1.60 diff -u

Re: Possible bug in cpu_chooseproc?

2014-07-13 Thread Mark Kettenis
Date: Sun, 13 Jul 2014 13:12:46 -0700 From: Matthew Dempsky matt...@dempsky.org As the name suggests, remrunqueue(p) removes p from its run queue, and I believe that makes TAILQ_FOREACH() here unsafe. Instead of actually removing all threads from the processor, we'll only remove the first

Re: Add mpbios to RAMDISK_CD?

2014-07-15 Thread Mark Kettenis
Date: Tue, 15 Jul 2014 12:38:34 +0200 From: Christian Weisgerber na...@mips.inka.de The reason the Soekris net6501 has hw.ncpufound=1 in bsd.rd is stupid. The net6501 has MP BIOS, but not ACPI. Only the GENERIC (thus also GENERIC.MP) and RAMDISK kernels on amd64 and i386 include

Re: Add mpbios to RAMDISK_CD?

2014-07-15 Thread Mark Kettenis
Date: Tue, 15 Jul 2014 13:31:55 +0200 From: Christian Weisgerber na...@mips.inka.de Ted Unangst: Is there any reason we don't have mpbios(4) in RAMDISK_CD? Are there space constraints to consider? It looks like an accidental omission to me. I think there is some concern that

Re: DNS control port additions to /etc/services

2014-07-15 Thread Mark Kettenis
Date: Tue, 15 Jul 2014 17:17:45 +0200 From: Antoine Jacoutot ajacou...@bsdfrog.org But be careful, this is not a user-editable file anymore, so we need to take into account that some stuffs that may not appear obvious to us may still be needed by people. That's a mistake. You're supposed

Re: LibreSSL portable 2.0.2 released.

2014-07-16 Thread Mark Kettenis
Date: Wed, 16 Jul 2014 11:03:12 +0200 From: Martin Hecht he...@hlrs.de On 07/16/2014 05:40 AM, Bob Beck wrote: We have release an update, LibreSSL 2.0.2 This release addresses the Linux forking and pid wrap issue reported recently in the press. As noted before, we welcome

Re: LibreSSL portable 2.0.2 released.

2014-07-16 Thread Mark Kettenis
From: Bob Beck b...@openbsd.org Date: Wed, 16 Jul 2014 07:55:16 -0600 please commit that mark committed to cvs (with HAVE_GETAUXVAL instead of HAVE_AUXVAL) guess one of you can do the magic to get this into the git repo? On Wed, Jul 16, 2014 at 3:14 AM, Mark Kettenis mark.kette

Re: PATCH: further kernel malloc - mallocarray

2014-07-16 Thread Mark Kettenis
From: Theo de Raadt dera...@cvs.openbsd.org Date: Wed, 16 Jul 2014 08:18:34 -0600 I would really really prefer if we can keep these as const*const conversions instead of const, const. Indeed, conversion to mallocarray only makes sence if one of the multiplication operands is a variable.

Re: PATCH: fix regress skip slow

2014-07-19 Thread Mark Kettenis
Date: Sat, 19 Jul 2014 18:16:56 + From: Miod Vallat m...@online.fr REGRESS_SKIP_SLOW didn't work as intended. Default is no yet it checks for !empty. Good catch! Applied, thanks. Added t-exhaust as slow because it takes 90 minutes on my recent CPU. That's odd. This test

Re: PATCH: overflow behavior in malloc(9)

2014-07-22 Thread Mark Kettenis
Date: Tue, 22 Jul 2014 21:21:39 + From: Doug Hogan d...@acyclic.org On Tue, Jul 22, 2014 at 02:51:17AM -0400, Jean-Philippe Ouellet wrote: That is misleading in the M_CANFAIL case. I'm not terribly good at wording things, but I suggest something more like this instead: Hmm I

suspend-related shceduler fix

2014-07-26 Thread Mark Kettenis
Thanks to the evil Intel AMT serial, I've been able to figure out what made my x220 hang when suspending. Turns out that the fix matthew@ committed almost two weeks ago uncovered another bug that made sched_stop_secondary_cpus() spin forever if there was a processing running on a secondary cpu

Re: finally nuke sys/dkstat.h

2014-09-06 Thread Mark Kettenis
Date: Sat, 6 Sep 2014 10:04:08 + From: Miod Vallat m...@online.fr sys/dkstat.h has not contained disk statistics since 17 years. The remaining defines from this file can already be found in sys/sched.h, and the variable declarations would better be in sys/tty.h. The following diff

Clear PME Status when a wake event is received

2014-09-06 Thread Mark Kettenis
As pea@ noticed, Apple machines with an NVIDIA MCP79 chipset will suffer an interrupt storm when you send them WOL packet to their nfe(4) interface. The acpi0 interrupt handler fires continously in this case. Some digging revealed that the device wake GPE for the nfe(4) interface was casuing

FC disks

2014-09-08 Thread Mark Kettenis
Hi All, My supply of Fibre Channel disks is getting thin, If somebody has some they're willing to donate to the project and ship to The Netherlands, please contact me. Thanks, Mark

Re: Clear PME Status when a wake event is received

2014-09-08 Thread Mark Kettenis
On Sat, Sep 06, 2014 at 09:18:26PM +0200, Mark Kettenis wrote: As pea@ noticed, Apple machines with an NVIDIA MCP79 chipset will suffer an interrupt storm when you send them WOL packet to their nfe(4) interface. The acpi0 interrupt handler fires continously in this case. Some digging

apmd hangs

2014-09-08 Thread Mark Kettenis
The more code documentation I read, the more I'm convinced that coordinating state changes between logical processors isn't necessary and actually is responsible for the hangs people have been seeing. So here is a diff that does away with it all. I've tested it on a few laptops here, but it

Re: PATCH: fix iwn(4) scan hangs

2014-09-09 Thread Mark Kettenis
Date: Tue, 9 Sep 2014 17:29:35 +0200 From: Fabian Raetz fabian.ra...@gmail.com On Tue, Sep 09, 2014 at 12:38:04PM +0200, Fabian Raetz wrote: Hi, below is a patch for iwn(4) which hopefully fixes a problem where iwn(4) does not return from a scan, if the interface is up. here's an

Re: apmd hangs

2014-09-09 Thread Mark Kettenis
Date: Tue, 9 Sep 2014 19:27:42 +0200 From: Ingo Schwarze schwa...@usta.de Hi Mark, Mark Kettenis wrote on Mon, Sep 08, 2014 at 11:35:36PM +0200: The more code documentation I read, the more I'm convinced that coordinating state changes between logical processors isn't necessary

Re: sparc64: fledgling QEMU support

2014-09-09 Thread Mark Kettenis
Date: Tue, 09 Sep 2014 19:20:09 +0100 From: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk Hi all, Following up from my posts at the beginning of the summer, I'm pleased to announce that as of today, qemu-system-sparc64 built from QEMU git master will successfully install OpenBSD from

Re: sparc64: fledgling QEMU support

2014-09-09 Thread Mark Kettenis
From: Stefan Fritsch s...@sfritsch.de Date: Tue, 09 Sep 2014 22:41:53 +0200 On Tuesday 09 September 2014 21:27:37, Mark Cave-Ayland wrote: Could the PCI virtio stuff be adapted to non-x86 architectures? QEMU already has a virtio PCI device that can be plugged into

Re: possible bug in asinhl on sparc64 (libm)

2014-09-10 Thread Mark Kettenis
Date: Sat, 6 Sep 2014 14:15:32 -0400 From: Daniel Dickman didick...@gmail.com according to the numpy developers asinhl on sparc64 might be buggy. I haven't worked out a test case yet but just reporting in case anyone else wants to take a look as well. bug report:

Re: possible bug in asinhl on sparc64 (libm)

2014-09-10 Thread Mark Kettenis
Date: Wed, 10 Sep 2014 21:52:30 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Sat, 6 Sep 2014 14:15:32 -0400 From: Daniel Dickman didick...@gmail.com according to the numpy developers asinhl on sparc64 might be buggy. I haven't worked out a test case yet but just

Re: mpsafe mpi

2014-09-14 Thread Mark Kettenis
Date: Tue, 9 Sep 2014 15:10:46 +1000 From: David Gwynne da...@gwynne.id.au mpsafe mpi. eyes would be appreciated. tests well to me. ok? Tested on mpi0 at pci5 dev 0 function 0 Symbios Logic SAS1064E rev 0x02: msi Couldn't find any problems in the code, so ok kettenis@ Index:

Re: ATI SB400 PCI bridge fallback to substractive decode

2014-09-14 Thread Mark Kettenis
Date: Sun, 14 Sep 2014 23:57:09 +0200 From: Thierry Deval thierry+openbsd.t...@deval.be Hi, When I put a CF to PCCard adapter (not CardBus) in my laptop to work on a CF boot image, I was surprised by this kernel message : ** wdc2 at pcmcia0 function 0 SanDisk, SDP, 5/3 0.6: can't

Re: ATI SB400 PCI bridge fallback to substractive decode

2014-09-15 Thread Mark Kettenis
Date: Mon, 15 Sep 2014 09:37:56 +0200 From: Thierry Deval thierry+openbsd.t...@deval.be On Mon, Sep 15, 2014 at 12:25:19AM +0200, Mark Kettenis wrote: Date: Sun, 14 Sep 2014 23:57:09 +0200 From: Thierry Deval thierry+openbsd.t...@deval.be Hi, When I put a CF to PCCard adapter

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-16 Thread Mark Kettenis
Date: Tue, 16 Sep 2014 21:51:00 +1000 From: David Gwynne da...@gwynne.id.au if you have more than 8 cpus, combine the cpu lines by default. ok? 8 seems a reasonable number ok kettenis@ Index: machine.c === RCS file:

Re: Fix for POSIX conformance issue

2014-09-17 Thread Mark Kettenis
From: j...@wxcvbn.org (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Anglas?=) Date: Wed, 17 Sep 2014 13:51:37 +0200 Todd C. Miller todd.mil...@courtesan.com writes: I have no objection to this but I don't think the System-V setpgrp() API belongs in compat-43. We can just move it to

physical disk support for mfii(4)

2014-09-20 Thread Mark Kettenis
The diff below adds support for physical disks to mfii(4). Just like with mfi(4) you can configure this hardware (or at least some models) to expose disks that have not been assigned to a logical volume to the host. This diff makes those disks accesable from OpenBSD. I would appreciate some

Re: Missing include in sys/ipc.h

2014-09-20 Thread Mark Kettenis
Date: Sat, 20 Sep 2014 18:15:31 + From: Miod Vallat m...@online.fr shmctl(2)/shmget(2)/shmat(2) all document #include sys/types.h #include sys/ipc.h #include sys/shm.h as a requirement for calling these functions. That was my first thought, but according to

Re: [patch] puc(4) add Winchiphead CH382 support

2014-09-22 Thread Mark Kettenis
Date: Tue, 23 Sep 2014 05:44:04 +0900 From: SASANO Takayoshi u...@mx5.nisiq.net Hello, Here is the patch to support Winchiphead CH382 PCIe-UART device. I found the board at eBay with cheap price tag. CH382 has three configurations and different PCI device ID. - 2 serial (2S) -

page zeroing

2014-09-26 Thread Mark Kettenis
The diff below adds a kernel thread that makes memory pages filled with zeroes without olding the kernel lock. The idea is that this should speed up MP systems because the kernel can do some useful work in parallel with other things, and could lower the latency on all systems because (userland)

Re: page zeroing

2014-09-27 Thread Mark Kettenis
Date: Fri, 26 Sep 2014 21:01:38 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl The diff below adds a kernel thread that makes memory pages filled with zeroes without olding the kernel lock. The idea is that this should speed up MP systems because the kernel can do some useful

nofault mappings

2014-09-30 Thread Mark Kettenis
The diff below intorduces a new flag for mmap(2) that creates mappings that cannot fault. Normally, if you mmap a file, and your mapping is larger than the mapped file, memory access to full pages beyond the end of the file will fault. Depending on the OS you will get a SIGSEGV or SIGBUS and if

Re: USB stack change needed for xhci(4)

2014-10-03 Thread Mark Kettenis
Date: Thu, 2 Oct 2014 12:20:14 +0200 From: Martin Pieuchot mpieuc...@nolizard.org Our USB stack contains a hack needed for ehci(4) and ohci(4) that breaks xhci(4). The diff below moves this hack in these drivers, and makes it possible to have a working xhci(4) in GENERIC. I'd like this

Re: nofault mappings

2014-10-03 Thread Mark Kettenis
Date: Tue, 30 Sep 2014 23:12:10 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl The diff below intorduces a new flag for mmap(2) that creates mappings that cannot fault. Normally, if you mmap a file, and your mapping is larger than the mapped file, memory access to full pages

Re: implement CLOCK_VIRTUAL and CLOCK_PROF

2014-10-15 Thread Mark Kettenis
From: Todd C. Miller todd.mil...@courtesan.com Date: Wed, 15 Oct 2014 11:37:26 -0600 Since this came up in another thread. Trivial implementations of CLOCK_VIRTUAL and CLOCK_PROF, modeled after what FreeBSD does. Shouldn't this do a tuagg() on all the threads of the process like we do for

Re: implement CLOCK_VIRTUAL and CLOCK_PROF

2014-10-15 Thread Mark Kettenis
Date: Wed, 15 Oct 2014 20:18:10 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl From: Todd C. Miller todd.mil...@courtesan.com Date: Wed, 15 Oct 2014 11:37:26 -0600 Since this came up in another thread. Trivial implementations of CLOCK_VIRTUAL and CLOCK_PROF, modeled after

Re: implement CLOCK_VIRTUAL and CLOCK_PROF

2014-10-15 Thread Mark Kettenis
Date: Wed, 15 Oct 2014 20:36:33 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Wed, 15 Oct 2014 20:18:10 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl From: Todd C. Miller todd.mil...@courtesan.com Date: Wed, 15 Oct 2014 11:37:26 -0600 Since

Re: implement CLOCK_VIRTUAL and CLOCK_PROF

2014-10-16 Thread Mark Kettenis
From: Todd C. Miller todd.mil...@courtesan.com Date: Thu, 16 Oct 2014 07:33:23 -0600 On Wed, 15 Oct 2014 21:50:44 -0700, Philip Guenther wrote: IMO we should just delete CLOCK_VIRTUAL from sys/_time.h and clock_gettime(2) Easy enough. ok kettenis@ Index: sys/sys/_time.h

Conditional include in make(1)

2014-10-16 Thread Mark Kettenis
Hi Marc, Is there a reason why conditional includes (sinclude/-include) aren't enabled in OpenBSD? I'm asking because the Xorg people now use it in one of the xserver Makefile. We could of course try to convince them to revert the change they made. But it is a somewhat useful feature. Thanks,

Re: SPARC64: suggested fixes for OF interface

2014-10-18 Thread Mark Kettenis
Date: Thu, 02 Oct 2014 14:33:22 +0100 From: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk Hi all, From my work on running OpenBSD under OpenBIOS/QEMU, I found a couple of bugs in the NetBSD OF bindings for SPARC64 which also seem to be relevant to OpenBSD. I've applied patches to

Re: Conditional include in make(1)

2014-10-19 Thread Mark Kettenis
Date: Sun, 19 Oct 2014 09:25:51 +0200 From: Matthieu Herrb matth...@herrb.eu On Thu, Oct 16, 2014 at 08:14:16PM +0200, Mark Kettenis wrote: Hi Marc, Is there a reason why conditional includes (sinclude/-include) aren't enabled in OpenBSD? I'm asking because the Xorg people now

Re: make release fails if SUDO is set in mk.conf

2014-10-24 Thread Mark Kettenis
Date: Fri, 24 Oct 2014 08:35:40 +0200 From: Landry Breuil lan...@rhaalovely.net On Fri, Oct 24, 2014 at 02:34:54AM -0400, thev...@openmailbox.org wrote: with SUDO set in /etc/mk.conf: if make release is run as root it will not proceed. if run as a regular user it gets further, but

Re: strings, change default to -a?

2014-10-25 Thread Mark Kettenis
Date: Sat, 25 Oct 2014 13:18:04 +0100 From: Stuart Henderson st...@openbsd.org http://seclists.org/oss-sec/2014/q4/445 Any thoughts on changing strings(1) to use -a by default, to avoid libbfd parsing, and add a new option to allow previous behaviour for people who want it? About -a,

Check PCI ROM addresses for conflicts

2014-10-25 Thread Mark Kettenis
This diff checks whether the PCI ROMs have been assigned sensible addresses. If not it resets the address to 0 such that drivers that want to map the ROM can assign a suitable address themselves. This replicates what we have been doing for PCI BARs for the last couple of years. This should fix

Re: have indent default to stdin with no input files

2013-06-20 Thread Mark Kettenis
Date: Thu, 20 Jun 2013 17:03:48 +1000 From: Jonathan Gray j...@jsg.id.au Default to stdin/stdout if no input files are given to indent. FreeBSD and GNU indent have had this behaviour for a long time now. Based on FreeBSD svn rev 40502 from back in 1998. Makes sense to me. ok kettenis@

Re: help X11 performance: make sigprocmask(2) SY_NOLOCK

2013-06-20 Thread Mark Kettenis
Date: Thu, 20 Jun 2013 11:30:11 +0100 From: Stuart Henderson st...@openbsd.org On 2013/06/20 09:38, Otto Moerbeek wrote: On Wed, Jun 19, 2013 at 07:39:15PM +, Miod Vallat wrote: - p-p_sigmask = mask ~ sigcantmask; + p-p_sigmask = mask; On the

Re: help X11 performance: make sigprocmask(2) SY_NOLOCK

2013-06-20 Thread Mark Kettenis
Date: Wed, 19 Jun 2013 13:40:19 +0200 From: Martin Pelikan martin.peli...@gmail.com If you're right that atomic_{clear,set}bits_int is correct and sufficient and actually faster, then all dynamic executables would benefit from this speedup (sigprocmask is used in ld.so(1)). Since on

Re: help X11 performance: make sigprocmask(2) SY_NOLOCK

2013-06-20 Thread Mark Kettenis
Date: Thu, 20 Jun 2013 14:25:49 +0300 From: Paul Irofti p...@irofti.net + bs = ~sigcantmask; switch (SCARG(uap, how)) { case LINUX_SIG_BLOCK: - p-p_sigmask |= bs ~sigcantmask; + atomic_setbits_int(p-p_sigmask, bs); break; case

Re: binary integer constants in gcc

2013-06-21 Thread Mark Kettenis
Date: Fri, 21 Jun 2013 10:50:42 +0200 From: Landry Breuil lan...@rhaalovely.net On Fri, Jun 21, 2013 at 10:20:01AM +0200, Mark Kettenis wrote: Well, lots of ports stuff is compiled with newer gcc versions anyway. Actually, not so many: $echo select count(*) from modules where value

Re: Removing -Wno-format from kernel makefiles, 1/16

2013-07-03 Thread Mark Kettenis
Date: Wed, 3 Jul 2013 16:35:24 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de add support for %td for ptrdiff_t in kernel this also adds support in gcc 4.x kprintf I'm on the fence about the CTASSERT here. If we ever support a code model that's not ILP32 or LP64, we need a major

Re: Removing -Wno-format from kernel makefiles, 2/16

2013-07-03 Thread Mark Kettenis
Date: Wed, 3 Jul 2013 16:40:17 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de don't pass empty format string in subr_disk.c this is necessary to enable -Wformat or -Wno-error=format Don't think this one makes much sense. Better to just do: log(pri, %s, ); and keep the rest of the

Re: Removing -Wno-format from kernel makefiles, 4/16

2013-07-03 Thread Mark Kettenis
Date: Wed, 3 Jul 2013 16:55:46 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de format string fixes: long --- sys/arch/i386/i386/esm.c |2 +- sys/kern/kern_descrip.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git sys/arch/i386/i386/esm.c

Re: libc malloc poison

2013-07-04 Thread Mark Kettenis
From: Theo de Raadt dera...@cvs.openbsd.org Date: Thu, 04 Jul 2013 09:04:54 -0600 I suspect the best approach would be a hybrid value. The upper half of the address should try to land in an unmapped zone, or into the zero page, or into some address space hole, ir into super high memory

Re: Removing -Wno-format from kernel makefiles, 3/16

2013-07-04 Thread Mark Kettenis
Date: Thu, 4 Jul 2013 18:41:30 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de On Wed, 3 Jul 2013, Mark Kettenis wrote: diff --git sys/arch/i386/i386/db_interface.c sys/arch/i386/i386/db_interface.c index 85c1ff5..c75fd89 100644 --- sys/arch/i386/i386/db_interface.c +++ sys

Re: Removing -Wno-format from kernel makefiles, 4/16

2013-07-04 Thread Mark Kettenis
Date: Thu, 4 Jul 2013 18:42:50 +0200 (CEST) From: Stefan Fritsch s...@sfritsch.de On Wed, 3 Jul 2013, Mark Kettenis wrote: diff --git sys/arch/i386/i386/esm.c sys/arch/i386/i386/esm.c index c90b2c4..3dff69e 100644 --- sys/arch/i386/i386/esm.c +++ sys/arch/i386/i386/esm.c

i810/i815 graphics support

2013-07-05 Thread Mark Kettenis
Hi folks, Is there anybody still using a machine with the first generation Intel integrated graphics chipsets? The reason I'm asking is that there is no KMS support for these chipsets. On top of that the xf86-vide-intel code only provides XAA acceleration, and that's been ripped out from the

Re: Fix to diskless(8) manpage: add amd64 and i386 to the list of clients that needs rpc.bootparamd(8)

2013-07-14 Thread Mark Kettenis
Date: Sun, 14 Jul 2013 18:51:13 +0200 From: Sebastian Benoit be...@openbsd.org Mark Kettenis(mark.kette...@xs4all.nl) on 2013.07.14 17:06:24 +0200: Date: Sun, 14 Jul 2013 14:09:26 +0200 From: Henning Brauer lists-openbsdt...@bsws.de * Rafael Neves rafaelne...@gmail.com [2013-07

Re: awk(1) update

2013-07-14 Thread Mark Kettenis
From: j...@wxcvbn.org (=?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges-Anglas?=) Date: Sun, 14 Jul 2013 09:41:28 +0200 This diff updates awk to the 20121220 upstream version, with a few fixups. ok? Index: tran.c === RCS

Re: Consistent Kernel Panic-Hardware-Related?

2013-07-24 Thread Mark Kettenis
Date: Mon, 8 Jul 2013 11:06:51 +0200 From: Christian Ehrhardt ehrha...@genua.de Hi, Hi Christian, Taking this to tech@ in the hope some more people will look into this. On Thu, Jul 04, 2013 at 09:56:56AM -0700, Scott Vanderbilt wrote: I've been trying to build userland repeatedly over

Re: working ral(4) driver with Ralink 35xx chipset. (Now, what's the protocol for testing?)

2013-07-24 Thread Mark Kettenis
Date: Wed, 24 Jul 2013 02:50:13 -0600 From: Nathan Goings binarysp...@binaryspike.com Well, I'm a moron. I spent several weeks working on the Ralink driver, profiling linux vendor provided code; looking at changes between 2860, 35xx, and 3090; and nagging various people. I made a single

Re: working ral(4) driver with Ralink 35xx chipset.

2013-07-25 Thread Mark Kettenis
Looked at your diff, and then noticed that run(4) already had support for the RT3572 MAC/BBP. It has a few more RT3572-specific bits that match what the Linux driver does. So I ported them over to ral(4). Could you give the attached diff a go? Index: rt2860.c

Re: working ral(4) driver with Ralink 35xx chipset.

2013-07-25 Thread Mark Kettenis
Date: Thu, 25 Jul 2013 11:10:21 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Date: Thu, 25 Jul 2013 10:33:12 +0200 (CEST) From: Mark Kettenis mark.kette...@xs4all.nl Looked at your diff, and then noticed that run(4) already had support for the RT3572 MAC/BBP. It has

mfi(4) polled command fix

2013-07-29 Thread Mark Kettenis
The diff below fixes the management command code path such that it works again when polled command completion is needed. This is important for flushing the caches when we end up in ddb and want to do a kernel crash dump or reboot. I don't have this hardware myself, so some tests would be

  1   2   3   4   5   6   7   8   9   10   >