CVS: cvs.openbsd.org: ports

2021-10-07 Thread Visa Hankala
CVSROOT:/cvs Module name:ports Changes by: v...@cvs.openbsd.org2021/10/07 07:35:23 Modified files: audio/flite: Makefile Log message: With Clang, audio/flite is no longer broken on mips64. >From Brad

CVS: cvs.openbsd.org: src

2021-10-07 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/10/07 07:08:17 Modified files: sys/arch/mips64/include: cpu.h sys/arch/mips64/mips64: tlbhandler.S Log message: Remove unused TLB routines.

CVS: cvs.openbsd.org: src

2021-10-07 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/10/07 06:40:16 Modified files: sys/arch/mips64/include: pcb.h sys/arch/mips64/mips64: genassym.cf Log message: Remove struct members that were used by the R4000 EoP workaround.

CVS: cvs.openbsd.org: src

2021-10-07 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/10/07 06:32:10 Modified files: sys/arch/mips64/include: reg.h Log message: Use tabs instead of spaces.

CVS: cvs.openbsd.org: src

2021-10-07 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/10/07 06:31:03 Modified files: sys/arch/mips64/include: reg.h Log message: Remove a stale comment.

CVS: cvs.openbsd.org: www

2021-10-06 Thread Visa Hankala
CVSROOT:/cvs Module name:www Changes by: v...@cvs.openbsd.org2021/10/06 08:20:04 Modified files: . : 70.html Log message: mips64 package count

mips64 bulk build report

2021-10-06 Thread visa
bulk build on octeon.ports.openbsd.org started on Mon Sep 27 12:28:29 UTC 2021 finished at Wed Oct 6 13:14:42 UTC 2021 lasted 10D00h46m done with kern.version=OpenBSD 7.0 (GENERIC.MP) #696: Sun Sep 26 16:59:31 MDT 2021 built packages:9387 Sep 27:2346 Sep 28:755 Sep 29:417 Sep 30:551 Oct 1:862

CVS: cvs.openbsd.org: src

2021-10-06 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/10/06 06:50:10 Modified files: sys/arch/armv7/armv7: armv7_machdep.c sys/arch/armv7/stand/efiboot: conf.c efiboot.c Log message: Add openbsd,dma-constraint property to /chosen node on armv7

Re: Handle openbsd,dma-constraint on armv7

2021-10-05 Thread Visa Hankala
On Mon, Oct 04, 2021 at 05:04:11PM +0200, Mark Kettenis wrote: > > Date: Mon, 4 Oct 2021 13:42:48 + > > From: Visa Hankala > > > > On the Zynq-7000, the lowest 512KiB of physical address space usually > > contains RAM that is usable by the CPUs. Howev

Handle openbsd,dma-constraint on armv7

2021-10-04 Thread Visa Hankala
On the Zynq-7000, the lowest 512KiB of physical address space usually contains RAM that is usable by the CPUs. However, many other bus masters, such as the Ethernet and SDIO controllers, are not able to access the 256KiB range that starts at physical address 0x4. So far I have used a device

Unlock kevent(2)

2021-10-03 Thread Visa Hankala
The internals of kqueue should now be safe without the kernel lock. To keep changes relatively small, it is logical to unlock the kevent(2) system call next. By doing this before unlocking any event filters, it ought to be easier to untangle any problems that might crop up. Please test.

mips64 bulk build report

2021-09-19 Thread visa
bulk build on octeon.ports.openbsd.org started on Sat Sep 11 10:53:15 UTC 2021 finished at Sun Sep 19 10:07:01 UTC 2021 lasted 08D23h13m done with kern.version=OpenBSD 7.0-beta (GENERIC.MP) #681: Fri Sep 10 17:47:42 MDT 2021 built packages:9259 Sep 11:2366 Sep 12:779 Sep 13:352 Sep 14:672 Sep

CVS: cvs.openbsd.org: src

2021-09-16 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/09/16 06:35:20 Modified files: usr.sbin/tcpdump: print-wg.c Log message: tcpdump: Fix data alignment issue in WireGuard printer Access 8-byte nonce as unaligned data to avoid a crash on strict

CVS: cvs.openbsd.org: src

2021-09-16 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/09/16 06:34:13 Modified files: usr.sbin/tcpdump: extract.h Log message: Add EXTRACT_LE_64BITS(). OK deraadt@

Re: bus error on octeon

2021-09-15 Thread Visa Hankala
; > Perhaps some of the compilers are being more cynical, or their costing > > of loads leads them to do smaller-storage operations... but I have a > > recollection that at least gcc on the alpha gets confused and does the > > wrong thing. > > To appease the situation, I

Re: bus error on octeon

2021-09-14 Thread Visa Hankala
On Tue, May 04, 2021 at 07:29:20AM +0200, Peter J. Philipp wrote: > > Index: print-wg.c > > === > > RCS file: /cvs/src/usr.sbin/tcpdump/print-wg.c,v > > retrieving revision 1.6 > > diff -u -p -u -r1.6 print-wg.c > > --- print-wg.c

[OE-core] [dunfell][PATCH] iputils: Fix regression of arp table update

2021-09-13 Thread Visa Hankala
Backport a fix from iputils 20210202 to make arp table updating work again. Fixes: 77c5792aa5e7 ("iputils: fix various arping regressions") Signed-off-by: Visa Hankala --- ...ng-make-update-neighbours-work-again.patch | 79 +++ .../iputils/iputils_s20190709.bb

CVS: cvs.openbsd.org: src

2021-09-13 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/09/13 06:19:11 Modified files: sys/arch/mips64/mips64: pmap.c Log message: Remember to lock user pmap in pmap_extract() pmap_extract() has to lock user pmap to prevent concurrent pruning of the page

CVS: cvs.openbsd.org: src

2021-09-13 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/09/13 06:16:43 Modified files: sys/arch/mips64/mips64: pmap.c Log message: Consistently use unsigned long for CPU masks in pmap.c.

mips64 bulk build report

2021-08-22 Thread visa
bulk build on octeon.ports.openbsd.org started on Sat Aug 7 13:37:27 UTC 2021 finished at Sat Aug 21 11:38:14 UTC 2021 lasted 14D22h00m done with kern.version=OpenBSD 6.9-current (GENERIC.MP) #658: Fri Aug 6 02:20:11 MDT 2021 built packages:9377 Aug 7:2286 Aug 8:715 Aug 9:496 Aug 10:484 Aug

mips64 bulk build report

2021-08-06 Thread visa
bulk build on octeon.ports.openbsd.org started on Mon Jul 26 06:13:30 UTC 2021 finished at Mon Aug 2 16:10:56 UTC 2021 lasted 08D09h57m done with kern.version=OpenBSD 6.9-current (GENERIC.MP) #644: Sat Jul 24 16:43:48 MDT 2021 built packages:8904 Jul 26:2651 Jul 27:568 Jul 28:848 Jul 29:825 Jul

CVS: cvs.openbsd.org: src

2021-07-29 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/29 08:11:53 Modified files: sys/arch/octeon/dev: if_ogx.c Log message: Fix device class.

CVS: cvs.openbsd.org: src

2021-07-24 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/24 02:21:13 Modified files: sys/arch/loongson/loongson: generic3a_machdep.c machdep.c sys/arch/mips64/include: cpu.h sys/arch/mips64/mips64: cpu.c ipifuncs.c pmap.c

CVS: cvs.openbsd.org: src

2021-07-23 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/23 23:45:49 Modified files: regress/lib/libc: Makefile Added files: regress/lib/libc/strchr: Makefile strchrtest.c Log message: Add basic regression tests for strchr() and strrchr().

CVS: cvs.openbsd.org: src

2021-07-23 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/23 23:42:25 src/regress/lib/libc/strchr Update of /cvs/src/regress/lib/libc/strchr In directory cvs.openbsd.org:/tmp/cvs-serv84776/strchr Log Message: Directory /cvs/src/regress/lib/libc/strchr added to the

CVS: cvs.openbsd.org: src

2021-07-23 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/23 23:35:56 Modified files: lib/libc/arch/mips64/string: strchr.S strrchr.S Log message: Fix strchr() and strrchr() on mips64 Truncate the character arguments of strchr() and strrchr() to eight

CVS: cvs.openbsd.org: src

2021-07-22 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/22 01:22:43 Modified files: sys/kern : kern_event.c Log message: Make kqpoll_dequeue() usable with lazy removal of knotes Adjust kqpoll_dequeue() so that it will clear only badfd knotes when

mips64 bulk build report

2021-07-21 Thread visa
bulk build on octeon.ports.openbsd.org started on Mon Jul 12 11:49:51 UTC 2021 finished at Wed Jul 21 05:48:34 UTC 2021 lasted 09D17h58m done with kern.version=OpenBSD 6.9-current (GENERIC.MP) #632: Sun Jul 11 05:48:30 MDT 2021 built packages:9257 Jul 12:2347 Jul 13:768 Jul 14:316 Jul 15:660

CVS: cvs.openbsd.org: src

2021-07-20 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/20 01:53:39 Modified files: sys/arch/mips64/mips64: ipifuncs.c Log message: Remove bogus use of CPU_MAXID and get cpu_info only once.

CVS: cvs.openbsd.org: src

2021-07-20 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/20 01:51:08 Modified files: sys/arch/mips64/conf: files.mips64 Removed files: sys/lib/libkern/arch/mips64: sync.S Log message: Remove unneeded __sync_* library functions from the kernel.

[Pkg-tcltk-devel] Oportunidad para MIGRAR A TEXAS - Apoyos para el Empresario

2021-07-14 Thread Últimos lugares - Obten la visa -d- de inversionista
Hola Buen día. Me da gusto saludarte. Le escribo para invitarlo a participar en el próximo Evento exclusivo "COMO HACER NEGOCIOS EN TEXAS", con este programa Conocerá Todos los detalles que debe evaluar antes de iniciar un negocio en Texas, las ciudades principales y oportunidades y cuál

CVS: cvs.openbsd.org: src

2021-07-13 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/13 01:37:50 Modified files: sys/miscfs/fifofs: fifo_vnops.c Log message: Add f_modify and f_process callbacks to FIFO filterops. OK millert@ mpi@

CVS: cvs.openbsd.org: src

2021-07-12 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/12 03:32:37 Modified files: sys/arch/loongson/loongson: machdep.c sys/arch/octeon/octeon: machdep.c Log message: Remember to set CPUF_RUNNING on secondary CPUs.

CVS: cvs.openbsd.org: src

2021-07-12 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/07/12 03:29:18 Modified files: sys/arch/loongson/loongson: machdep.c sys/arch/octeon/octeon: machdep.c Log message: Make hw_cpu_hatch() more similar on loongson and octeon.

Re: Do not spin on the NET_LOCK() in kqueue

2021-07-11 Thread Visa Hankala
On Sat, Jul 10, 2021 at 05:26:57PM +0200, Martin Pieuchot wrote: > One of the reasons for the drop of performances in the kqueue-based > poll/select is the fact that kqueue filters are called up to 3 times > per syscall and that they all spin on the NET_LOCK() for TCP/UDP > packets. > > Diff

Add f_modify and f_process callbacks to FIFO filterops

2021-07-11 Thread Visa Hankala
This patch adds f_modify and f_process callbacks to FIFO event filters. The general idea is the same as with sockets, discussed in thread "Add f_modify and f_process callbacks to socket filterops" on tech@. I think it is best to add the callbacks now, before further changes to socket locking.

CVS: cvs.openbsd.org: ports

2021-07-09 Thread Visa Hankala
CVSROOT:/cvs Module name:ports Changes by: v...@cvs.openbsd.org2021/07/09 23:44:14 Added files: devel/vte3/patches: patch-src_missing_hh Log message: Fix devel/vte3 build on mips64. >From Brad

CVS: cvs.openbsd.org: src

2021-06-26 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/26 22:33:40 Modified files: sys/dev/fdt: if_cad.c Log message: Create DMA maps with 64-bit capability when appropriate. OK kettenis@

CVS: cvs.openbsd.org: src

2021-06-26 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/26 22:32:31 Modified files: sys/dev/fdt: if_cad.c Log message: Use config register to determine if 64-bit DMA is available. Suggested by and OK kettenis@

Re: SiFive Unmatched if_cad fix

2021-06-26 Thread Visa Hankala
On Fri, Jun 25, 2021 at 04:15:43PM +0200, Mark Kettenis wrote: > > Date: Fri, 25 Jun 2021 13:27:28 + > > From: Visa Hankala > > > > On Thu, Jun 24, 2021 at 07:02:11PM +, Mickael Torres wrote: > > > Hello, > > > > > > On the risc-v Si

CVS: cvs.openbsd.org: src

2021-06-26 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/26 04:47:59 Modified files: sys/dev/fdt: if_cad.c Log message: cad: Implement 64-bit DMA mode This lets the driver utilize 64-bit DMA on hardware that supports it. Currently, riscv64 does not

CVS: cvs.openbsd.org: src

2021-06-25 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/25 07:29:40 Modified files: sys/dev/fdt: if_cad.c Log message: Remove an unused struct.

Re: SiFive Unmatched if_cad fix

2021-06-25 Thread Visa Hankala
On Thu, Jun 24, 2021 at 07:02:11PM +, Mickael Torres wrote: > Hello, > > On the risc-v SiFive Unmatched the internal cad0 ethernet interface stops > working randomly after some packets are sent/received. It looks like it's > because the bus_dmamap used isn't restricted to lower than 4GB

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Wed, Jun 23, 2021 at 05:39:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 23 Jun 2021 15:32:03 + > > From: Visa Hankala > > > > On Wed, Jun 23, 2021 at 05:15:05PM +0200, Mark Kettenis wrote: > > > > Date: Wed, 23 Jun 2021 14:56:45 + > > >

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Wed, Jun 23, 2021 at 05:15:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 23 Jun 2021 14:56:45 + > > From: Visa Hankala > > > > On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > > > On Mon, Jun 21, 2021 at 02:04:30PM +, Visa Hankala wr

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > On Mon, Jun 21, 2021 at 02:04:30PM +0000, Visa Hankala wrote: > > On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > > > On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > > >

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-21 Thread Visa Hankala
On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > On Sun, May 23, 2021 at 09:05:24AM +0000, Visa Hankala wrote: > > When a CPU starts processing a soft interrupt, it reserves the handler > > to prevent concurrent execution. If the soft interrupt gets resched

mips64 bulk build report

2021-06-19 Thread visa
bulk build on octeon.ports.openbsd.org started on Fri Jun 11 15:59:37 UTC 2021 finished at Fri Jun 18 16:46:15 UTC 2021 lasted 08D00h46m done with kern.version=OpenBSD 6.9-current (GENERIC.MP) #597: Fri Jun 11 05:08:47 MDT 2021 built packages:8945 Jun 11:1814 Jun 12:970 Jun 13:551 Jun 14:969

CVS: cvs.openbsd.org: src

2021-06-16 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/16 08:26:30 Modified files: sys/kern : kern_event.c sys/sys: event.h Log message: kqueue: kq_lock is needed when updating kn_status The kn_status field of struct knote is

Re: kq_lock is required when updating kn_status

2021-06-15 Thread Visa Hankala
On Mon, Jun 14, 2021 at 11:44:15PM +0200, Martin Pieuchot wrote: > On 14/06/21(Mon) 13:45, Visa Hankala wrote: > > When a knote's kn_status is updated, it is necessary to lock the kqueue > > that owns the knote, to ensure proper serialization. filt_proc() ha

kq_lock is required when updating kn_status

2021-06-14 Thread Visa Hankala
When a knote's kn_status is updated, it is necessary to lock the kqueue that owns the knote, to ensure proper serialization. filt_proc() has a mistake in this, and the following diff fixes it. proc_filtops is MP-unsafe and all its callbacks run with the kernel locked. The kernel lock should

CVS: cvs.openbsd.org: src

2021-06-12 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/12 07:30:14 Modified files: regress/sys/kern/kqueue: Makefile kqueue-timer.c main.c main.h Log message: Exercise resetting of expired and unexpired timers.

CVS: cvs.openbsd.org: ports

2021-06-11 Thread Visa Hankala
CVSROOT:/cvs Module name:ports Changes by: v...@cvs.openbsd.org2021/06/11 09:37:15 Modified files: devel/libffi : Makefile Added files: devel/libffi/patches: patch-src_mips_n32_S Log message: Fix devel/libffi build on mips64 after clang 11 upgrade. OK

mips64 bulk build report

2021-06-11 Thread visa
bulk build on octeon.ports.openbsd.org started on Sat Jun 5 09:30:29 UTC 2021 finished at Thu Jun 10 01:20:32 UTC 2021 lasted 05D15h50m done with kern.version=OpenBSD 6.9-current (GENERIC.MP) #588: Fri Jun 4 13:20:05 MDT 2021 built packages:8187 Jun 5:1635 Jun 6:4419 Jun 7:1136 Jun 8:533 Jun

CVS: cvs.openbsd.org: src

2021-06-10 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/10 22:29:54 Modified files: sys/kern : kern_event.c Log message: Remember to lock kqueue mutex in filt_timermodify(). Reported-by: syzbot+c2aba7645a218ce03...@syzkaller.appspotmail.com

Fix devel/libffi on mips64

2021-06-10 Thread Visa Hankala
devel/libffi has been broken on mips64 since base clang was upgraded to version 11. The integrated assembler is now more strict about section flags and throws an error if .eh_frame section is not read-only. The following patch lets devel/libffi build finish. OK? Index: Makefile

CVS: cvs.openbsd.org: src

2021-06-10 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/10 09:10:56 Modified files: sys/kern : kern_event.c sys/sys: eventvar.h Log message: Serialize internals of kqueue with a mutex Extend struct kqueue with a mutex and use it

Unify soft interrupt implementations a little

2021-06-04 Thread Visa Hankala
softintr_schedule() is defined either as a function or as a macro. The patch below turns the macros into proper functions, to reduce the differences between the soft interrupt implementations. The patch additionally moves the soft interrupt handle definitions from the headers to the C modules

Re: Serialize kqueue's internals with a mutex

2021-06-03 Thread Visa Hankala
On Thu, May 20, 2021 at 01:56:24PM +, Visa Hankala wrote: > This patch adds a mutex that serializes access to a kqueue. As a result, > most of kqueue's internals should become safe to run without the kernel > lock. In principle, the patch should allow unlocking kevent(2). >

CVS: cvs.openbsd.org: www

2021-06-02 Thread Visa Hankala
CVSROOT:/cvs Module name:www Changes by: v...@cvs.openbsd.org2021/06/02 08:34:13 Modified files: . : octeon.html Log message: Release has passed, remove old note about -current.

CVS: cvs.openbsd.org: src

2021-06-02 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/06/02 07:56:28 Modified files: sys/kern : init_main.c kern_event.c sys/sys: event.h Log message: Enable pool cache on knote pool Use the pool cache to reduce the overhead of

Re: Enable pool cache on knote_pool

2021-06-01 Thread Visa Hankala
On Tue, Jun 01, 2021 at 08:23:24AM +1000, David Gwynne wrote: > > > On 1 Jun 2021, at 02:58, Visa Hankala wrote: > > > > This patch enables the pool cache feature on the knote pool to reduce > > the overhead of knote management. > > > > Pro

Enable pool cache on knote_pool

2021-05-31 Thread Visa Hankala
This patch enables the pool cache feature on the knote pool to reduce the overhead of knote management. Profiling done by mpi@ and bluhm@ indicate that the potentially needless allocation of knotes in kqueue_register() causes slowdown with kqueue-based poll(2) and select(2). One approach to fix

CVS: cvs.openbsd.org: src

2021-05-31 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/31 06:45:33 Modified files: sys/kern : kern_time.c Log message: Redefine ADJFREQ_MIN to avoid undefined behaviour (when not using -fwrapv) Change the definition of ADJFREQ_MIN so that it does

Avoid shifting of a negative value in sys_adjfreq()

2021-05-30 Thread Visa Hankala
When cross-compiling the kernel using ports clang (tsk tsk), the compiler reports the following: src/sys/kern/kern_time.c:418:11: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] if (f < ADJFREQ_MIN || f > ADJFREQ_MAX)

CVS: cvs.openbsd.org: src

2021-05-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/30 09:08:08 Modified files: sys/arch/powerpc/include: pmap.h sys/arch/powerpc64/include: pmap.h Log message: Include and earlier in powerpc* pmap.h to avoid hidden header dependencies.

CVS: cvs.openbsd.org: src

2021-05-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/30 09:06:53 Modified files: sys/arch/powerpc64/include: intr.h Log message: Include to avoid a hidden header dependency. OK jsg@ deraadt@

CVS: cvs.openbsd.org: src

2021-05-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/30 09:05:33 Modified files: sys/arch/amd64/amd64: db_interface.c sys/arch/arm64/arm64: db_interface.c sys/arch/arm64/dev: apldart.c sys/arch/mips64/mips64: db_machdep.c

Fix and includes on powerpc*

2021-05-29 Thread Visa Hankala
powerpc and powerpc64's include too late and accidentally rely on other code to pull in the header. If the mutex header is removed from the , the build fails: In file included from src/sys/dev/rnd.c:84: In file included from src/sys/uvm/uvm_extern.h:180: In file included from

Add missing includes

2021-05-29 Thread Visa Hankala
The kernel has places where mutexes are used but is not included directly. Some of them get exposed when #include is removed from soft interrupt headers. The following diff fixes them. OK? Index: arch/amd64/amd64/db_interface.c

CVS: cvs.openbsd.org: src

2021-05-28 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/28 10:33:36 Modified files: sys/arch/mips64/include: cpu.h sys/arch/mips64/mips64: cpu.c Log message: Remove CPU and node id fields that were used with SGI Origin.

CVS: cvs.openbsd.org: src

2021-05-28 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/28 10:24:53 Modified files: sys/kern : uipc_socket.c uipc_syscalls.c Log message: Add f_modify and f_process callbacks to socket filterops. This makes kqueue use the extended callback

CVS: cvs.openbsd.org: src

2021-05-28 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/28 09:52:11 Modified files: share/man/man4 : Makefile sys/arch/armv7/conf: GENERIC RAMDISK sys/dev/fdt: files.fdt Added files: share/man/man4 : cad.4

Driver for Cadence GEM

2021-05-27 Thread Visa Hankala
=== RCS file: sys/dev/fdt/if_cad.c diff -N sys/dev/fdt/if_cad.c --- /dev/null 1 Jan 1970 00:00:00 - +++ sys/dev/fdt/if_cad.c27 May 2021 16:15:08 - @@ -0,0 +1,1727 @@ +/* $OpenBSD$ */ + +/* + * Copyright (c) 2021 Visa Hankala + * + * Permission to use, copy

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-23 Thread Visa Hankala
On Sat, May 22, 2021 at 02:23:57PM +, Visa Hankala wrote: > On Sat, May 22, 2021 at 02:33:47PM +0200, Mark Kettenis wrote: > > > Date: Sat, 22 May 2021 11:11:38 + > > > From: Visa Hankala > > > > > > On Wed, May 19, 2021 at 05:11:09PM

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Visa Hankala
On Sat, May 22, 2021 at 02:33:47PM +0200, Mark Kettenis wrote: > > Date: Sat, 22 May 2021 11:11:38 + > > From: Visa Hankala > > > > On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > > > Hi, > > > > > > visa@ says I need to u

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Visa Hankala
On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > Hi, > > visa@ says I need to unlock softintr_dispatch() before I can > unlock softclock(), so let's do that. > > Additionally, when we call softintr_disestablish() we want to wait for > the underlying soft

[Pkg-tcltk-devel] Instalarse en TEXAS - oportunidad de negocio

2021-05-20 Thread Te invito a USA - Visa Empresarial
Texas, el estado ideal para hacer negocios y GANAR EN DOLARES CÓMO HACER NEGOCIOS EN TEXAS 30 y 31 de JULIO - ONLINE EN VIVO Evento Presencial de Alto Impacto Texas se mantiene como uno de los tres primeros lugares ideales para hacer negocios en Estados Unidos. De acuerdo con la

Instalarse en TEXAS - oportunidad de negocio

2021-05-20 Thread Te invito a USA - Visa Empresarial
Texas, el estado ideal para hacer negocios y GANAR EN DOLARES CÓMO HACER NEGOCIOS EN TEXAS 30 y 31 de JULIO - ONLINE EN VIVO Evento Presencial de Alto Impacto Texas se mantiene como uno de los tres primeros lugares ideales para hacer negocios en Estados Unidos. De acuerdo con la

Re: Add f_modify and f_process callbacks to socket filterops

2021-05-20 Thread Visa Hankala
On Thu, May 20, 2021 at 11:35:32AM +0200, Martin Pieuchot wrote: > On 18/05/21(Tue) 14:22, Visa Hankala wrote: > > This diff adds f_modify and f_process callbacks to socket event filters. > > As a result, socket events are handled using the non-legacy paths in &g

Serialize kqueue's internals with a mutex

2021-05-20 Thread Visa Hankala
This patch adds a mutex that serializes access to a kqueue. As a result, most of kqueue's internals should become safe to run without the kernel lock. In principle, the patch should allow unlocking kevent(2). Some notes: * The existing uses of splhigh() outline where the mutex should be held. *

Add f_modify and f_process callbacks to socket filterops

2021-05-18 Thread Visa Hankala
This diff adds f_modify and f_process callbacks to socket event filters. As a result, socket events are handled using the non-legacy paths in filter_modify() and filter_process() of kern_event.c This a step toward MP-safety. However, everything still runs under the kernel lock. The change has

CVS: cvs.openbsd.org: src

2021-05-17 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/17 05:59:53 Modified files: sys/dev/ic : re.c Log message: Fix mbuf leaks after reception error in re_rxeof(). Also, increment the error counter when an unexpected fragment is seen. OK

Re: panic(9): set panicstr atomically

2021-05-15 Thread Visa Hankala
On Wed, May 12, 2021 at 07:08:39PM -0500, Scott Cheloha wrote: > In a separate mail thread, bluhm@ mentioned that panic(9) does not > cleanly handle multiple CPUs entering it simultaneously: > > https://marc.info/?l=openbsd-tech=161908805925325=2 > > I'm unsure which part of panic(9) is causing

Re: timeout(9): add TIMEOUT_MPSAFE flag

2021-05-13 Thread Visa Hankala
On Thu, May 13, 2021 at 11:08:25AM -0500, Scott Cheloha wrote: > > On May 13, 2021, at 10:57 AM, Visa Hankala wrote: > > > > On Thu, May 13, 2021 at 12:04:57AM -0500, Scott Cheloha wrote: > >> The funky locking dance in softclock() and softclock_thread() is > &g

Re: timeout(9): add TIMEOUT_MPSAFE flag

2021-05-13 Thread Visa Hankala
On Thu, May 13, 2021 at 12:04:57AM -0500, Scott Cheloha wrote: > The funky locking dance in softclock() and softclock_thread() is > needed to keep from violating the locking hierarchy. The > timeout_mutex is above the kernel lock, so we need to leave the > timeout_mutex, then drop the kernel

Fix mbuf leaks in re_rxeof()

2021-05-13 Thread Visa Hankala
It looks that re_rxeof() might leak mbufs in two cases. The first case happens if the controller returns an incomplete frame when frames are expected to be non-fragmented. Note that in this instance the fragment list sc->rl_head should be empty and does not need clearing. The second leak happens

CVS: cvs.openbsd.org: src

2021-05-05 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/05 09:29:19 Modified files: sys/arch/mips64/include: cpu.h sys/arch/mips64/mips64: pmap.c tlbhandler.S Log message: Remove unneeded tlb_set_gbase() that was used with R8000. Pointed out by

CVS: cvs.openbsd.org: src

2021-05-03 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/03 07:11:40 Modified files: sys/dev/fdt: sdhc_fdt.c Log message: Make sdhc(4) attachment work on Zynq-7000. OK kettenis@

Re: sdhc(4) attachment for Zynq-7000

2021-05-02 Thread Visa Hankala
On Sun, May 02, 2021 at 05:28:24PM +0200, Mark Kettenis wrote: > > Date: Sun, 2 May 2021 14:21:29 + > > From: Visa Hankala > > > > Zynq-7000 has a variant of Arasan SD controller that is not recognized > > by the fdt glue. The diff below fixes this. > >

sdhc(4) attachment for Zynq-7000

2021-05-02 Thread Visa Hankala
Zynq-7000 has a variant of Arasan SD controller that is not recognized by the fdt glue. The diff below fixes this. The controller's capabilities register lacks the base clock frequency. The attachment glue has to provide this parameter. OK? Index: dev/fdt/sdhc_fdt.c

CVS: cvs.openbsd.org: xenocara

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs Module name:xenocara Changes by: v...@cvs.openbsd.org2021/05/01 10:29:52 Removed files: distrib/sets/lists/xbase: md.sgi distrib/sets/lists/xetc: md.sgi distrib/sets/lists/xfont: md.sgi distrib/sets/lists/xserv: md.sgi

CVS: cvs.openbsd.org: www

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs Module name:www Changes by: v...@cvs.openbsd.org2021/05/01 10:23:10 Modified files: . : sgi.html Log message: 6.9 was the last release with sgi.

CVS: cvs.openbsd.org: src

2021-05-01 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/05/01 10:11:17 Modified files: . : Makefile.cross distrib: Makefile distrib/notes : Makefile distrib/sets/lists/base: mi distrib/sets/lists/comp:

CVS: cvs.openbsd.org: src

2021-04-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/04/30 07:25:24 Modified files: share/man/man4/man4.armv7: Makefile sys/arch/armv7/conf: GENERIC RAMDISK sys/arch/armv7/xilinx: files.xilinx Added files:

CVS: cvs.openbsd.org: src

2021-04-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/04/30 07:20:14 Modified files: share/man/man4/man4.armv7: Makefile sys/arch/armv7/conf: GENERIC RAMDISK files.armv7 Added files: share/man/man4/man4.armv7: zqreset.4

CVS: cvs.openbsd.org: src

2021-04-30 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/04/30 07:17:33 src/sys/arch/armv7/xilinx Update of /cvs/src/sys/arch/armv7/xilinx In directory cvs.openbsd.org:/tmp/cvs-serv38052/xilinx Log Message: Directory /cvs/src/sys/arch/armv7/xilinx added to the

CVS: cvs.openbsd.org: src

2021-04-29 Thread Visa Hankala
CVSROOT:/cvs Module name:src Changes by: v...@cvs.openbsd.org2021/04/29 06:49:19 Modified files: sys/arch/mips64/include: frame.h pcb.h sys/arch/mips64/mips64: context.S cp0access.S exception.S interrupt.c mips64_machdep.c

Re: Driver for Zynq-7000 system-level control registers

2021-04-27 Thread Visa Hankala
On Mon, Apr 26, 2021 at 05:25:18PM +0200, Mark Kettenis wrote: > > Date: Mon, 26 Apr 2021 14:19:38 + > > From: Visa Hankala > > > > The following diff adds a preliminary driver for the system-level > > control registers of Xilinx Zynq-7000. It enables system

Driver for Zynq-7000 system-level control registers

2021-04-26 Thread Visa Hankala
4/man4.armv7/zqsyscon.4 === RCS file: share/man/man4/man4.armv7/zqsyscon.4 diff -N share/man/man4/man4.armv7/zqsyscon.4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ share/man/man4/man4.armv7/zqsyscon.426 Apr 2021 14:14:29 - @@

<    1   2   3   4   5   6   7   8   9   10   >