OpenBSD cvs log

created 2023-02-05T23:49:10Z
begin 2023-01-17T00:00:00Z
end 2023-01-18T00:00:00Z
path src/sys
commits 11

date 2023-01-17T02:27:14Z
author cheloha
files src/sys/arch/arm/include/_types.h log diff annotate
src/sys/arch/arm/include/cpu.h log diff annotate
message arm, armv7: add clockintr support

The interrupt clock drivers need these pieces to be in place first.

ok mlarkin@ kettenis@

date 2023-01-17T02:32:07Z
author cheloha
files src/sys/arch/armv7/omap/dmtimer.c log diff annotate
message dmtimer(4): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Wire up dmtimer_intrclock.
- For convenience, add dmtimer_reset_tisr(); we do the "clear interrupt
bits" dance in multiple places, may as well put it in a function.
- For parity with other platforms, change stathz from 128 to 100 and
profhz from 1024 to 1000.

Testing by stuge@ and jsg@.

v1: https://marc.info/?l=openbsd-tech&m=167060320326851&w=2
v2: https://marc.info/?l=openbsd-tech&m=167340009006972&w=2

ok mlarkin@ kettenis@

date 2023-01-17T02:38:59Z
author cheloha
files src/sys/arch/armv7/sunxi/sxitimer.c log diff annotate
message sxitimer(4): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Stop using STATTIMER. We can multiplex TICKTIMER to handle all
clock interrupts.
- Wire up sxitimer_intrclock.
- For parity with other platforms, change stathz from 128 to hz and
change profhz from 1024 to (stathz * 10).

Tested by kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=167060659329137&w=2

ok kettenis@

date 2023-01-17T02:47:55Z
author cheloha
files src/sys/arch/arm/cortex/amptimer.c log diff annotate
message amptimer(4): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Wire up amptimer_intrclock.
- Remove debug evcounts. All interrupts are now counted with
the evcount in the interrupt handler.
- Remove apparently dead USE_GTIMER_CMP code.

Debugged with jca@. Tested by jca@.

Link: https://marc.info/?l=openbsd-tech&m=167060127825418&w=2

ok kettenis@ jca@

date 2023-01-17T02:58:22Z
author cheloha
files src/sys/arch/arm/cortex/agtimer.c log diff annotate
message agtimer(4/armv7): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Remove debug evcount code. We can no longer differentiate between
hardclock and statclock in the driver.
- Wire up agtimer_intrclock.

With tweaks from miod@ and jca@. Tested by jca@ and kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=167044965011140&w=2

ok kettenis@

date 2023-01-17T08:03:51Z
author kettenis
files src/sys/arch/amd64/amd64/trap.c log diff annotate
message On amd64 machines without the NX feature enabled, we can't distinguish
between page faults as a result of instruction fetches or normal data
access. Handle this in the same way as we do on landisk: if handling
the fault with access type PROT_READ fails, retry with PROT_EXEC.
Fortunately we know whether NX is enabled or nor so only do this when
it isn't. Nobody should be running an amd64 machine without NX!

ok deraadt@, miod@

date 2023-01-17T10:10:10Z
author jsg
files src/sys/arch/i386/pci/Attic/elan520.c log diff annotate
src/sys/arch/i386/pci/Attic/elan520reg.h log diff annotate
message remove elansc(4) driver for AMD Elan SC520 System Controller

AMD Elan SC520 has a Am5x86, 486-class processor. We require a
586-class processor.

feedback from jmc@ ok miod@

date 2023-01-17T10:10:11Z
author jsg
files src/sys/arch/i386/conf/GENERIC log diff annotate
src/sys/arch/i386/conf/files.i386 log diff annotate
message remove elansc(4) driver for AMD Elan SC520 System Controller

AMD Elan SC520 has a Am5x86, 486-class processor. We require a
586-class processor.

feedback from jmc@ ok miod@

date 2023-01-17T19:29:09Z
author kettenis
files src/sys/arch/amd64/include/pmap.h log diff annotate
message Simplify and clarify the implementation of the pmap_page_protect(9) API.
This function is only ever called with PROT_NONE or PROT_READ where
PROT_NONE removes the mapping from the page tables and PROT_READ takes
away write permission. Add a KASSERT to make sure no other values are
passed. This KASSERT should be optimized away by any decent compiler.

ok deraadt@, mpi@, guenther@

date 2023-01-17T23:12:37Z
author jsg
files src/sys/arch/i386/i386/hibernate_machdep.c log diff annotate
message test NSDMMC not SDMMC
ok miod@ deraadt@

date 2023-01-17T23:39:30Z
author jsg
files src/sys/arch/i386/pci/pcib.c log diff annotate
message include isadma.h not isa.h
missed in rev 1.5 when #if NISA became #if NISADMA
not a problem in practice as isavar.h includes isadma.h

ok miod@ deraadt@ millert@