OpenBSD cvs log

created 2018-11-30T01:55:29Z
begin 2018-08-15T00:00:00Z
end 2018-08-16T00:00:00Z
path src/sys
commits 9

date 2018-08-15T02:07:35Z
author jsg
files src/sys/arch/amd64/amd64/identcpu.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
src/sys/arch/i386/include/specialreg.h log diff annotate
message add cpuid and msr bits from
'Deep Dive: CPUID Enumeration and Architectural MSRs'
ok deraadt@

date 2018-08-15T07:13:51Z
author kevlo
files src/sys/dev/usb/if_mue.c log diff annotate
src/sys/dev/usb/if_muereg.h log diff annotate
message Introduce mue_eeprom_present to check if the EEPROM is present.
When the EEPROM is not populated, set the MAC config register
MUE_MAC_CR_AUTO_SPEED. While there, encode the MAC address for the onboard
USB Ethernet for the Rasperry Pi, like smsc(4) does.

date 2018-08-15T13:19:06Z
author visa
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/vfs_vnops.c log diff annotate
message Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This prevents
a scenario where MP-unsafe code gets run without the kernel lock
as a consequence of an unlocked system call.

OK mpi@, kettenis@

date 2018-08-15T14:13:07Z
author mpi
files src/sys/dev/usb/umsm.c log diff annotate
message Partially revert previous, EM7455 is already handled by umb(4).

Reported by Bryan Vyhmeister.

date 2018-08-15T18:45:43Z
author stsp
files src/sys/net80211/ieee80211_node.c log diff annotate
message Update AP selection heuristics for auto-join.

We now prefer stronger crypto over weaker crypto over none, prefer 5 GHz
band with reasonable RSSI, and use RSSI as a tie-breaker with a slight
advantage for 5GHz. Candidate APs are now ranked by a score which is
calculated based on these attributes.

There is likely room for improvements to make these heuristics
work well across many different environments, but it's a start.

ok phessler@

date 2018-08-15T20:18:31Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Use atomic instructions to keep track of what ASIDs are in use. This makes
pmap_free_asid() and therefore pmap_destroy() mpsafe which is important since
we might end up calling that function without holding the kernel lock
as a result of releasing a reference in pmap_page_protect(9).

ok visa@

date 2018-08-15T20:22:13Z
author kettenis
files src/sys/uvm/uvm_mmap.c log diff annotate
message Push back the kernel lock in sys_mmap(2) a little bit more now that
fd_getfile(9) is mpsafe. Note that sys_mmap(2) isn't actually unlocked
currently. However this diff has been tested with it unlocked, and I
hope to unlock it for real soon-ish.

ok visa@, mpi@

date 2018-08-15T20:27:56Z
author kettenis
files src/sys/arch/arm64/dev/agintc.c log diff annotate
message Distinguish between softc array members that are indexed by redistributor
and those that are indexed by the assigned CPU (unit) number. Fix the
shuffling of the affinity fields are shuffled around to match the spec.

date 2018-08-15T21:46:29Z
author kettenis
files src/sys/arch/arm64/dev/agintc.c log diff annotate
message Turns out the integration of the GIC-500 on the Rockchip RK3399 is busted.
It treats all access to the memory mapped registers as "secure" even if
we're running in non-secure mode. As a result, during bringup of OpenBSD
on the RK3399, I got confused and tweaked the interrupt priorities in a way
that is wrong (but worked on the RK3399.

Fix those priorities to match what they should be according to the
documentation (and works on other hardware that includes a GICv3) and
add code that detects the broken RK3399 GIC and adjusts the priorities
accordingly. Also remove (broken) code that tries to mess around with
group 0 interrupts and fix setting bits in the GICD_CTLR register on the
broken RK3399 GIC.