summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-07-10Make legacy interrupts work in acpipci(4).Mark Kettenis
ok patrick@
2018-07-10The year is 2018.Henning Brauer
Mercury, Bowie, Cash, Motorola and DEC all left us. Just pf still has a default state table limit of 10000. Had! Now it's a tiny little bit more, 100k. lead guitar: me ok chorus: phessler theo claudio benno background school girl laughing: bob
2018-07-10In asm.h ensure NENTRY uses the old-school nop-sled align, but change standardTheo de Raadt
ENTRY is a trapsled. Fix a few functions which fall-through into an ENTRY macro. amd64 binaries now are free of double+-nop sequences (except for one assember nit in aes-586.pl). Previous changes by guenther got us here. ok mortimer kettenis
2018-07-10Always use PSCI to enable secondary CPUs if it is detected.Mark Kettenis
2018-07-10Add a "machine acpi" command to force booting with ACPI enabled.Mark Kettenis
2018-07-10in pf_set_protostate(), only decrement the half-open states counter whenHenning Brauer
the state was created on this host, i. e. not for those pfsync-imported. whether pfsync-imported states should be accounted is a seperate discussion, but as things are, we only increment the counter in pf_create_state(), and imported states don't excercise that path. probably fixes the half-open states accounting underflow-wraparounds that some people have been seeing. ok sashan
2018-07-10Introduce new IPsec (per-CPU) statistics and refactor ESP inputMartin Pieuchot
callbacks to be able to count dropped packet. Having more generic statistics will help troubleshooting problems with specific tunnels. Per-TDB counters are coming once all the refactoring bits are in. ok markus@
2018-07-10Remove DELAY(1000) from carp_send_arp() / carp_send_na() since it is not clearfriehm
why it was necessary. OK bluhm@ 'ok but watch for fallouts' mpi@
2018-07-10In free(9) call wakeup() after mtx_leave() consistently.Alexander Bluhm
OK kettenis@ visa@ mpi@
2018-07-10After removing raw_usrreq() from route and pfkey, the global sockaddrAlexander Bluhm
variables can be delared constant. OK claudio@ mpi@
2018-07-10s/ITUNER/MICROCHIP/ following usbdevs -r1.689Jasper Lievisse Adriaanse
2018-07-10regenJasper Lievisse Adriaanse
2018-07-10replace the Ituner vendor with Microchip to match Linux at leastJasper Lievisse Adriaanse
ok mpi@
2018-07-10if_enqueue: call pf_delay_pkt() if m_pkthdr.pf.delay is setHenning Brauer
ok benno sashan
2018-07-10provide a generic packet delay functionality. packets to be delayed are markedHenning Brauer
by pf in the packet header. pf_delay_pkt reads the delay value from the packet header, schedules a timeout and re-queues the packet when the timeout fires. ok benno sashan
2018-07-10Change USB_DEVICEINFO to report USB port status/changes as currentlyMartin Pieuchot
seen by the stack. This will allows us to debug port status changes without relying on external tools, like lsusb(1), that generate I/O. While here correct USB3 LS port defines.
2018-07-10vmm(4): remove a wrong commentMike Larkin
2018-07-10Move socket & pipe specific logic in their ioctl handler.Martin Pieuchot
ok visa@, tb@
2018-07-10Drop the ignored selectors (tf_[defg]s) from the trap and interrupt frames.Philip Guenther
ok mlarkin@ deraadt@ mpi@ kettenis@
2018-07-10Move from sendsig() to its callers the initsiginfo() calls andPhilip Guenther
instead of passing sendsig() the code+type+val, pass a siginfo_t* to copy from. Eliminate the indirection through struct emul for sendsig(); we no longer have a SunOS4-compat version of sendsig() ok deraadt@
2018-07-09vmm(4): prohibit setting/clearing invalid bits in %cr0/%cr4. This wasMike Larkin
previously caught later but resulted in a guest termination, now we use #GP as the SDM recommends.
2018-07-09sprinkle comments and rename iface to match its use to ctl_iface_idxJasper Lievisse Adriaanse
ok abieber@
2018-07-09use UE_GET_XFERTYPE(); no binary changeJasper Lievisse Adriaanse
2018-07-09Fix trailing whitespaces and too long line.Alexander Bluhm
2018-07-09Mark the i8254 clock interrupt MPSAFE. It isn't, but it doesn't matterMark Kettenis
as it is impossoble to run an anything but a single-CPU machine with it. ok mpi@, guenther@
2018-07-09Delete the VM86 kernel option and i386_vm86(3) API: it's requiredPhilip Guenther
a custom kernel for over 20 years. testing mlarkin@ ok deraadt@ phessler@ jca@ matthieu@
2018-07-09Enable pcagpio(4).Patrick Wildt
2018-07-09Strip down the (not enabled) pcagpio(4) GPIO extender. This removesPatrick Wildt
the sensors code and user-controllable GPIO bus attachment but at the same time hooks pcagpio(4) into the OFW GPIO framework so that it can be used by other device tree based drivers. Discussed with deraadt@ ok kettenis@
2018-07-09Inline the raw_usrreq() function into pfkeyv2_usrreq(). Similar to theClaudio Jeker
change to rtsock.c. This simplifies the pfkey code since there is no special wrapping needed and in general the PRU cases get easier. OK bluhm@ henning@ mpi@
2018-07-09Inline the raw_usrreq() function into route_usrreq(). This simplifies theClaudio Jeker
route code since there is no more special wrapping needed and in some places the PRU cases get easier because route(4) for example always connected. OK bluhm@ henning@ mpi@
2018-07-09Basic support for SFP modules in mvneta(4). SFP modules are basicallyPatrick Wildt
hotpluggable PHYs whose status can either be read using an I2C-connected PHY, or using in-band status management implemented in the controller itself over SGMII. With this, 802.3z SFPs work on mvneta(4).
2018-07-09Add a phandle to v2m nodes.Mark Kettenis
2018-07-09vmm(4): inject #UD on vmx instructions, instead of dropping into theMike Larkin
unhandled exit function. ok phessler
2018-07-09Rest the FPU's fcw and mxcsr before initializing the "FPU reset state" areaPhilip Guenther
problem discovered on bluhm@'s old opteron ok deraadt@ kettenis@
2018-07-09Use function name in panic string, like in some other places.Claudio Jeker
OK henning@ benno@
2018-07-09Add bnxt(4), a driver for Broadcom NetXtreme-C/E 10G+ ethernet.Jonathan Matthew
Sort of a port from freebsd, but I had to write all the interesting bits myself. Not very complete yet, but good enough to commit over. ok kettenis@ deraadt@
2018-07-09Add a few common PCIe devices based on the arm64 kernel configs.Patrick Wildt
2018-07-09dd mvpcie(4), a driver for the Marvell ARMADA 38x PCIe controller,Patrick Wildt
as implemented in the SolidRun Clearfog and Turris Omnia. ok kettenis@
2018-07-09Enable ampintcmsi(4), pciecam(4) and PCIVERBOSE.Patrick Wildt
ok kettenis@
2018-07-09Introduce pciecam(4), a driver for generic ECAM compatible PCI hostPatrick Wildt
controllers. ok kettenis@
2018-07-09Add PCI machdep headers based on the arm64 port.Patrick Wildt
ok kettenis@
2018-07-09Implement ampintcmsi(4) in ampintc(4) to support MSI. The GICv2M is anPatrick Wildt
extension to the GIC controller, which is represented as subnode in the device tree. There can be multiple GICv2Ms, so it makes sense to attach those to ampintc(4) as some kind of simplebus. The GICv2M is simply an interrupt generator that can be used by PCIe devices to ring the door bell. There is no need for further configuration, we only need to find out which SPIs we are allowed to use for MSI and to register an edge triggered interrupt on a (randomly) allocated SPI. Implement support for interrupt types. The GIC only seems to support level triggered active-high or egdge triggered low-to-high interrupts. We currently always configure them to be level triggered, which is a sane default for most controllers. Since MSI interupts on the GIC are edge triggered, we need to be able to parse the type information and to configure the interrupt correspondingly. ok kettenis@
2018-07-09Add an API to add and delete windows in the mvmbus(4) controller. ThisPatrick Wildt
will be used by the PCIe controller to set up the memory regions for the PCIe devices. Also export the PCIe IO and MEM address regions. These will be used to setup the PCIe extents. ok kettenis@
2018-07-09Make free(9) MP safe. It was wrong to set ku_indx to 0 after freeingAlexander Bluhm
the memory in uvm. Another process could use the false 0 then. To be on the safe side, protect all access to ku_indx and ku_pagecnt with a mutex. Update ku_indx and ku_pagecnt before calling uvm_km_free(). Update ksp after uvm_km_free() to keep accounting correct. tested by sthen@; OK mpi@ visa@ deraadt@
2018-07-09Add retguard macros to aes_intel.mortimer
ok sthen@
2018-07-09Use a slightly more efficient zeroing idiom when clearing GPRsPhilip Guenther
ok mlarkin@ mortimer@
2018-07-09Nuke unused define 'nfsm_writereply()'.Kenneth R Westerback
ok beck@ deraadt@ guenther@ mpi@
2018-07-08regenthfr
2018-07-08add AMD Summit Ridge (17h) and Raven Ridge PCI devices. ok brynet@thfr
2018-07-08"id" is too generic, rename to "rdomain" for clarity and easier greppingJeremie Courreges-Anglas
ok benno@ mpi@