summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-06-02Move the declarations of the raw ip and ip6 pcb tables into theAlexander Bluhm
in_pcb.h header file. OK mpi@ visa@
2018-06-02Cleanup the in_pcbnotifymiss diagnostic printfs. Always print theAlexander Bluhm
rdomain. Move the printf to the end of the pcb lookup functions. OK tb@ mpi@ visa@
2018-06-02The function in_pcbrehash() does not modify the pcb table queue.Alexander Bluhm
So in in_pcbresize() the variant without _SAFE of the TAILQ_FOREACH macro is sufficient. OK tb@ mpi@ visa@
2018-06-02Add more RK3399 clocks such that we can support assigned locks for theMark Kettenis
clock controller.
2018-06-02Add an assert that makes explicit that finishdup() should receiveVisa Hankala
an inserted fp. OK mpi@
2018-06-02Enable fanpwr(4), move sypwr(4) where it belongs.Mark Kettenis
2018-06-02Add fanpwr(4), a driver for the Fairchild FAN53555 voltage regulator.Mark Kettenis
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
setup. LARVAL fd still exist, but they are no longer marked with a flag and no longer reachable via `fd_ofiles[]'. This allows us to simplifies a lot code grabbing new references to fds. All of this is now possible because dup2(2) refuses to clone LARVAL fds. Note that the `fdplock' could now be release in all open(2)-like syscalls, just like it is done in accept(2). With inputs from Mathieu -, visa@, guenther@ and art@ ok visa@, bluhm@
2018-06-01With option WITNESS we need to have a bit more KVA available during earlyMark Kettenis
bootstrap so allocate page tables for the first GB. ok deraadt@
2018-06-01Rockchip RK3288/3328/3399 pre-divide the clock. Take this into account whenMark Kettenis
calculating the base clock. Also explicitly set the clock if a clock-frequency property is present as documented in the device tree bindings.
2018-06-01Add code to set the frequency of the SDMMC and SDIO clocks.Mark Kettenis
2018-06-01Pass flags for highspeed capabilities based on device tree properties.Mark Kettenis
2018-06-01Clear aesni_sc if the context is freed, to avoid leaving a danglingFrederic Cambus
pointer behind. OK visa@
2018-06-01Restrict DMA to the Rockchip RK3328 and RK3388 for now. There is someMark Kettenis
evidence that it doesn't work reliably yet for the Rockchip RK3288 and I can't test that myself right now.
2018-06-01Add a kludge that fixes the build until com_fdt.c is ready for octeon.Visa Hankala
2018-06-01Consistently use printf() instead of db_printf() when not runningVisa Hankala
in ddb. This avoids invoking the output pager by accident and keeps the output somewhat readable in case multiple cores trigger a warning simultaneously.
2018-06-01Clear vc3_sc if the context is freed, to avoid leaving a danglingFrederic Cambus
pointer behind. Pointed out by visa@, thanks! OK visa@
2018-06-01Enable witness(4) on select architectures to help the current MP work.Visa Hankala
Requested by deraadt@
2018-06-01While sending the pf syncookie, we are holding the pf lock. SoAlexander Bluhm
goto unlock when leaving this block. OK sashan@ henning@
2018-06-01Bump ELF_RANDOMIZE_LIMIT to 1MB.mortimer
ok deraadt@
2018-05-31Return error values directly where appropriate, instead of using the errFrederic Cambus
variable. While there, remove TODO about bitching. We haven't felt the need to bitch since the driver was commited, and we do not bitch in aesni_setup() either. OK visa@
2018-05-31Move com_fdt.c to dev/fdt since we can share it between armv7 and arm64 now.Mark Kettenis
ok patrick@
2018-05-31Add sizes for free().Frederic Cambus
OK visa@
2018-05-31Enable bwfm(4) on Loongson for USB devices.Frederic Cambus
Tested on a Lemote Yeeloong 8101B. OK visa@
2018-05-31zap trailing whitespaceTheo Buehler
2018-05-31Re-commit the correct half of revision 1.154:Theo Buehler
Some more code shuffling to get rid of one switch in in_ioctl(). This way there is one case for each of SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK, starting with a privilege check before any global data is modified. ok visa
2018-05-31Make witness(4) watch locks and print error stack traces by default.Visa Hankala
Requested by deraadt@
2018-05-31Back out previous. The handling of SIOCSIFADDR is now wrong.Theo Buehler
2018-05-31Use IPL_MPFLOOR for mutexes that can be taken w/ and w/o the KERNEL_LOCK().Martin Pieuchot
From Mathieu <naabed at poolp.org>, ok visa@, tb@
2018-05-31Remove comcnspeed and comcnmode. They serve no purpose anymore. ConfiguringMark Kettenis
the serial port speed can be done through the device tree and these days everybody uses 8N1 for the mode. ok patrick@, visa@, jsg@
2018-05-31Remove comcnspeed and comcnmode. They serve no purpose anymore. ConfiguringMark Kettenis
the serial port speed can be done through the device tree and these days everybody uses 8N1 for the mode. ok patrick@, visa@, jsg@
2018-05-31Some more code shuffling to get rid of one switch in each, in_ioctl()Theo Buehler
and in_ioctl_change_ifaddr(). This way there is one case per ioctl starting with a privilege check before any global data is modified. The code paths are now straightforward. Some code duplication between SIOCSIFADDR and SIOCAIFADDR, but that can be addressed later. tested by hrvoje ok visa
2018-05-31Add sleep_finish_all(), which provides the common combo of sleep_finish(),Philip Guenther
sleep_finish_timeout(), and sleep_finish_signal() with error preferencing, and then use it in five places. ok mpi@
2018-05-30restrict the prio values from SIOCSIFLLPRIO to what the kernel handlesDavid Gwynne
previously the ioctl code checked that prio was an int less than UCHAR_MAX, but the rest of the kernel (and priq code in particular) expects it to be between 0 and 7 inclusive. ok krw@ tb@
2018-05-30Add SIOCGIFGLIST to fetch a list of interface groups on the system.Stuart Henderson
From Jan Klemkow, ok mpi@ tb@, ok/bugfix bluhm@
2018-05-30Add sizes for free() for octeon.Frederic Cambus
OK deraadt@, visa@
2018-05-30Implement SDIO DMA support. This is achieved by wrapping thePatrick Wildt
sdmmc_io_rw_extended() function and loading the passed buffer using the bus dma API akin to the SDMMC memory card code. The 2-byte and 4-byte accessors continue to use PIO. ok kettenis@
2018-05-30For the upcoming SDIO DMA support we need to use DMA-able bufferPatrick Wildt
to send/receive data. This basically means that we cannot use any malloc(9)'d buffer. For this, use dma_alloc(9) to allocate a buf that can fit a whole SDIO frame (unfortunately without headers). Keep note that we need to round up the transfer sizes to block- sized (for TX packets) or 4-byte alignment, since some DMA con- trollers truncate the request size. If there's anything wrong, the KASSERTs will catch it. ok kettenis@
2018-05-30Define IPL_MPFLOOR on SP archs.Martin Pieuchot
From Mathieu <naabed at poolp.org>, ok visa@
2018-05-30Clear the DMA select bits in case we use PIO instead of DMA. SomePatrick Wildt
SDHC controllers get confused if the ADMA bit is set even though we don't set the DMA enable flag. This can happen with the SDIO stack which uses PIO for 4 byte read/writes but DMA for larger transfers and thus switches from one mode to the other. ok kettenis@
2018-05-30Remove comcnspeed variable, which gets set but is never actually used.Mark Kettenis
This removes the (no-op) -1 and -9 kernel boot arguments. ok visa@
2018-05-29Lock the device vnode when calling vinvalbuf() in ext2fs_reload(),Visa Hankala
just as is done in ffs_reload(). Requested by and OK bluhm@
2018-05-29`f_mtx' must block interrupts as long as it is taken w/ and w/o theMartin Pieuchot
KERNEL_LOCK(). Otherwise a deadlock can occur as found the hardway by tb@. ok tb@, kettenis@, visa@
2018-05-28Initialize FIFO watermark thresholds. Fixes DMA issues on controllers thatMark Kettenis
are not initialized by U-Boot.
2018-05-28More steps for i386 Meltdown fix:Alexander Bluhm
- name gdt explicitly in struct cpu_info_full - identfiy ARCH_CAPABILITIES_RDCL_NO and print in identifycpu() - in pmap.c build U-K table, handle PG_G accordingly - in pmap_switch() do not unmap the kernel, yet; but all pieces are in place - pmapae.c: on boostrap transfer pmap to pmapae tables, build U-K table and wire it, handle PG_G from hshoexer@; OK mlarkin@
2018-05-28Cleanup bootconfig.h and use strlcpy() to copy boot arguments.Mark Kettenis
ok drahn@
2018-05-28Remove unused include file.Mark Kettenis
ok drahn@
2018-05-28Drop include of <arm64/swi.h> and remove it.Mark Kettenis
ok drahm@
2018-05-28Call readdisksector() instead of rolling our own. Drop <sys/systm.h>Mark Kettenis
include. Reduces the diffs to the amd64/i386 version of this code. ok drahn@
2018-05-28rwsleep: generalize to support both read- and write-locks.cheloha
Wanted for tentative clock_nanosleep(2) diff, but maybe useful elsewhere in the future. ok mpi@