summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-07-11Use gpio framework to implement card detect instead of hardcoding particularMark Kettenis
gpios based on board IDs. ok visa@, jsg@
2016-07-11Hook up imxgpio(4) to the FDT gpio framework.Mark Kettenis
ok visa@, jsg@
2016-07-11Add a simple framework for handling gpio controllers and pins on FDT-enabledMark Kettenis
platforms. ok visa@, jsg@
2016-07-11Path MTU discovery was slightly broken. I took two ICMP packetsAlexander Bluhm
to create and change the dynamic route. This behavior was introduced in net/route.c rev 1.269 when the gateway route allocation was moved from rt_setgateway() to _rtalloc(). So rtrequest(RTM_ADD) could return a route without a valid gateway route. To fix this, call rt_setgwroute() from _rtalloc() and rt_setgateway(). OK mpi@
2016-07-11Do not increase the size of the socket buffer under memory pressure.Martin Pieuchot
From Simon Mages, ok beck@, claudio@, bluhm@
2016-07-11Initialize oui and model fields in the softc.Mark Kettenis
ok deraadt@, mpi@
2016-07-11Revert the introduction of ``rt_addr''.Martin Pieuchot
Being able to add route entries without configured addresses is a nice feature but this is not my fight. So I'd rather no add another pointer to ``struct rtentry'' if I'm not removing another one.
2016-07-11Make sure variables are used initialized in amap_wiperangeStefan Kempf
Uninitialized variables used in an if/else could cause a slower codepath to be taken, but the end effect of both paths is the same. Found by jsg@
2016-07-10Not all i.MX6 devices have a pinctrl property in their device nodes.Patrick Wildt
In that case, soft fail and return instead of allocating buffer with a bogus size. ok kettenis@
2016-07-10Pay attention to Processor Local X2APIC structures. ACPI 6.0 allows theseMark Kettenis
even for APIC ID values less than 255. Makes secondary CPUs attach on the HP DL360 gen 9. tested by jung@ ok guenther@
2016-07-10Rename apic_proc_uid field to acpi_proc_uid in the acpi_madt_x2apic struct.Mark Kettenis
It is the ACPI processor UID that is stored here. ok guenther@
2016-07-10regenMark Kettenis
2016-07-10Add MICREL KSZ9021 and KSZ9031.Mark Kettenis
2016-07-10Fix typo. Pointed out by patrick@Mark Kettenis
2016-07-10Build firmware for USB devices on octeon.Visa Hankala
ok deraadt@
2016-07-10pledge: use uint64_t instead of int for temporary storing a 64bit integerSebastien Marie
affects only 32 bits platform (like i386). problem spotted and diff from pelikan@ ok deraadt@ jca@
2016-07-10Dynamically attach imxgpio(4) using the FDT.Mark Kettenis
2016-07-10Add support for handling pinctrl device tree bindings to imxiomuxc(4).Mark Kettenis
These are used to do board-specific setup of mux settings and pad configuration. ok jsg@, patrick@
2016-07-10Use the synciobdma instruction instead of the sync instruction forVisa Hankala
flushing any pending local IOBDMA operations. The sync instruction is overkill because it implies a full memory barrier. ok jasper@ (long time ago)
2016-07-10Instead of attaching the omap device based on board ids follow imxJonathan Gray
and match based on the compatible property of the root node in the fdt. Each of am33xx, omap3, and omap4 have their own list of devices to attach.
2016-07-10Remove now unused definitions for drivers that have been converted toJonathan Gray
use the fdt.
2016-07-10POSIX specifies that if a processing calling tcsetpgrp() is in theTodd C. Miller
background it shall receive SIGTTOU. Handle TIOCSPGRP like we do the other tty ioctls that change the terminal. OK deraadt@ guenther@
2016-07-10Paranoia: check KTRPOINT() before calling ktrpledge() to guarantee wePhilip Guenther
can't (in the future) loop from ktrace writing hitting a pledge condition. diff from Michal Mazurek (akfaew (at) jasminek.net)
2016-07-09Simplify the i.MX6 platform code. The list of board devices is nowMark Kettenis
(essentially) the same for all boards, so we can use a single list and match based on the compatible property of the root node in the device tree. ok jsg@
2016-07-09Fix bugs introduced with the amap reworkStefan Kempf
- The number of slots must be initialized in the chunk of a small amap, otherwise unmapping() part of a mmap()'d range would delay freeing of vm_anons for small amaps - If the first chunk of a bucket is freed, check if the next chunk in the list has to become the new first chunk - Use a separate loop for each type of traversal (small amap, by bucket by list) in amap_wiperange(). This makes the code easier to follow and also fixes a bug where too many chunks were wiped out when traversing by list However, the last two bugs should happen only when turning a previously private mapping into a shared one, then forking, and then having both processes unmap a part of the mapping. snap and ports build tested by krw@, review by kettenis@
2016-07-09Initialize the mii_oui field such that fec(4) can look at it.Mark Kettenis
ok jsg@
2016-07-09Perform PHY-specific initialization based on the PHY ID instead of theMark Kettenis
board ID for the AR8031/AR8035. ok jsg@
2016-07-09Dynamically attach i.MX6 ehci(4) using the FDT.Mark Kettenis
ok jsg@
2016-07-09Add interfaces to look up a device tree node by phandle.Mark Kettenis
ok patrick@, jsg@, visa@
2016-07-09Use mac address and phy id from the fdt. Store settings for a secondJonathan Gray
port as well, though we still only handle a single port for now. ok kettenis@
2016-07-08Fix check for "name" property. Restores synthesised "name" proprties inMark Kettenis
eeprom -p output that were lost in revision 1.13.
2016-07-08regenMark Kettenis
2016-07-08The Atheros PHYs with model ID 7 are the AR8031/AR8033/AR8035 family.Mark Kettenis
Identify as AR8035 since that one has the lowest revision number. ok mlarkin@, millert@
2016-07-06Return EINVAL for mknod/mknodat when dev is -1 (aka VNOVAL).Todd C. Miller
OK beck@ tedu@
2016-07-06fix several places where calculating ticks could overflow.Ted Unangst
it's not enough to assign to an unsigned type because if the arithmetic overflows the compiler may decide to do anything. so change all the long long casts to uint64_t so that we start with the right type. reported by Tim Newsham of NCC. ok deraadt
2016-07-06Move Hop-by-Hop processing into its own function ip6_hbhchcheck().Martin Pieuchot
This function will help splitting the IPv6 input path in two, in order to run the first part without KERNEL_LOCK() held. Tested by Hrvoje Popovski, ok bluhm@
2016-07-05Improve the tracking functions in wsmouse.Ulf Brosziewski
ok mpi@
2016-07-05Remove debug code that slipped in.Visa Hankala
2016-07-05Add openprom(4) for octeon.Visa Hankala
ok kettenis@ deraadt@ jasper@
2016-07-05Expand IN6_IFF_NOTREADY, ok bluhm@Martin Pieuchot
2016-07-05Do not use ``rt_addr'' in in{6,}_selectsrc() it doesn't work with magicMartin Pieuchot
addresses set on p2p interfaces. Found the hardway by naddy@
2016-07-05remove some casts that aren't necessary.Ted Unangst
2016-07-04Add nep(4).Mark Kettenis
2016-07-04Add missing vput() in error path to prevent a vnode getting stuck with aMartin Natano
stale reference and lock, while it shouldn't hold either. "makes sense to me" beck@
2016-07-04DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSPhilip Guenther
contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
2016-07-04switch calculuated thrsleep timeout to unsigned to prevent overflowTed Unangst
into negative values, which later causes a panic. reported by Tim Newsham at NCC. ok guenther
2016-07-04On Quad-G5 make hpb(4) attach first when iterating PCI buses.Martin Pieuchot
This allows openpic(4) to properly map interrupt for the devices instead of possibly dereferencing garbage. Found the hardway by and ok jmatthew@
2016-07-04Use the _SAFE_ version of SRPL_FOREACH() in rtable_walk_helper() toMartin Pieuchot
prevent an off-by-one when removing entries from the mpath list. Fix a regression introduced by the refactoring needed to serialize rtable_walk() with create/delete. ok jca@
2016-07-03Move videovar.h in to video.c since it isn't used anywhere else.Marcus Glocker
Suggested by mpi@ diff from Patrick Keshishian. ok mpi
2016-07-03introduces new promise "chown" to allow changing owner/group with *chown(2) ↵Sebastien Marie
family it splits PLEDGE_FATTR in two ("fattr" stills grant the 2 flags, so no functional changes): - PLEDGE_CHOWN : to be able to call *chown(2) syscalls - PLEDGE_FATTR : the rest it introduces "chown" which grant: - PLEDGE_CHOWN : be able to call *chown(2) - PLEDGE_CHOWNUID : be able to modifying owner/group ok deraadt@ tedu@