summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-04-07Add support for GPIO card detect.Mark Kettenis
2018-04-07em: Port an i219 errata workaround from FreeBSDStefan Fritsch
https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/i218-i219-ethernet-connection-spec-update.pdf?asset=9561 ok mikeb@ jsg@
2018-04-07em: Add em_check_phy_reset_block() quirkStefan Fritsch
Port the logic from freebsd to em_check_phy_reset_block(). A single read does not seem to be reliable. ok mikeb@ jsg@
2018-04-07em: Increase delay after reset to 20msStefan Fritsch
This is the value in freebsd for ich8lan. ok mikeb@ jsg@
2018-04-07em: Print error code and phy/mac typeStefan Fritsch
Print the error code if hardware initialization failed. If EM_DEBUG is defined, print the phy/mac type during attach. ok mikeb@ jsg@
2018-04-06Sadly some UEFI frimware writes to mappings marked as runtime code so we can'tMark Kettenis
enforce W^X for runtime services. Do respect the bits that indicate that mappings can be non-readable, non-executable or read-only though. ok patrick@
2018-04-06Now that the args are passed in by the caller there is no need to callPatrick Wildt
copyin(9) ourselves anymore. Fixes tmpfs after recent changes. ok bluhm@ deraadt@ visa@
2018-04-06If port io is disabled, disable the associated windows as well.Mark Kettenis
ok patrick@, deraadt@
2018-04-06Use the existing pf state to speed up UDP socket lookup. This wasAlexander Bluhm
disabled as there were some stability issues. It seems that the crashes were fixed when reference counting for pf states was implemented. Se reenable this code. Apart from the performance improvement it also makes corner cases for pf divert-to more reliable. OK henning@
2018-04-06Retain the UF_PLEDGED flag from the original fd during dup(2).Alexander Bluhm
Nothing uses this fd-tracking part of pledge yet. OK deraadt@
2018-04-06All users of the PFLOG_PACKET() macro are inside "#if NPFLOG > 0".Alexander Bluhm
So this macro does not make much sense, just call pflog_packet(). OK sashan@ henning@
2018-04-05Add more initialization code such that things work with the EDK2-basedMark Kettenis
UEFI firmware as well.
2018-04-05Zap the obsolete PF_TRANS_ALTQ.Lawrence Teo
Note: Remember to "make includes" and recompile the following programs together with the kernel: sbin/pfctl usr.sbin/authpf usr.sbin/ftp-proxy usr.sbin/relayd usr.sbin/tftp-proxy Thanks to sthen@ for checking the ports tree. ok bluhm@ sashan@ visa@
2018-04-05Explicitly check PF_TRANS_RULESET in DIOCXBEGIN, DIOCXCOMMIT, and DIOCXROLLBACK.Lawrence Teo
ok bluhm@ sashan@ visa@
2018-04-05typo in printf - was _PRO, should be _PR0Mike Larkin
ok kettenis
2018-04-03regenMark Kettenis
2018-04-03Add Marvell ARMADA 7K/8K (CP110) Root Complex.Mark Kettenis
2018-04-03Match on the more specific "marvell,armada8k-pcie" instead of the genericMark Kettenis
"snps,dw-pcie" for now. There are considerable variations between implementations of the Synapsys Designware PCIe core and glue logic and the current code isn't flexible enough to deal with that yet.
2018-04-03Move FREF()s just after fd_getfile() in sys_kevent(), sys_lseek() andMartin Pieuchot
getvnode(). ok millert@
2018-04-03Add proper FREF()/FRELE() dance in sys_fchdir().Martin Pieuchot
The syscall doesn't sleep before a vnode reference is taken, so it doesn't stickly need the refcounts now. But they will be soon be used for parrallelism, so make it ready. ok bluhm@
2018-04-03Call FREF() right after fd_getfile() in dodup3().Martin Pieuchot
ok millert@, bluhm@
2018-04-03Silence assertwaitok() if we are in ddb(4).Martin Pieuchot
ok bluhm@
2018-04-03Deactivate witness(4) checks if we are in ddb(4), when `db_active' is set.Martin Pieuchot
Prevents witness(4) from panic'ing the kernel now that mutexes and rwlock are always "taken" while in ddb(4). ok visa@
2018-04-03remove a 15-year old #if 0Mike Larkin
2018-04-03use link0 to use llprio in transmitted packets, regardless of mbuf prio.David Gwynne
some ISPs now provide services over vlans, but require vlan packets going to the internet have their priority set to 1 (ie, 0 on the wire) or they will be dropped. configuring this on openbsd requires config in several places, eg, pf rules to set the prio on ip packets, llprio on the pppoe interface for it's management frames, and the llprio on the vlan interface if you're using dhclient on it. this has the side effect that you can no longer use priority queuing, and can be error prone to get right. using link0 to flatteng the priority for isp transit is simple to configure, and allows priority queuing. a man page update is coming. ok henning@
2018-04-02Enable mvrng(4).Mark Kettenis
2018-04-02Add mvrng(4), a driver for the random number generator on the Marvell ArmadaMark Kettenis
7K & 8K SoCs.
2018-04-02Attach fec(4) to i.MX8M as well.Patrick Wildt
2018-04-02Attach imxiomuxc(4) to i.MX8M as well.Patrick Wildt
2018-04-02Enable imxiomuxc(4).Patrick Wildt
2018-04-02Move imxiomuxc(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Move the code that sets the correct SATA phy settings into imxahc(4)Patrick Wildt
by making use of the iomuxc regmap. While there I realized that the naming definitions for the first two bits of the register are wrong. Thus, update the mask to include all lower bits and rename bit 1 to denote "MPLL enable". This should be flipped last to turn it on. ok kettenis@
2018-04-02Implement a regmap lookup by compatible since unfortunately not allPatrick Wildt
regmaps are referenced by nodes or phandles. ok kettenis@
2018-04-02Enable fec(4).Patrick Wildt
2018-04-02Move fec(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Enable imxccm(4).Patrick Wildt
2018-04-02Move imxccm(4) to sys/dev/fdt.Patrick Wildt
2018-04-02Add dwpcie(4), a (minimal) driver for the Synopsys Designware PCIe core inMark Kettenis
Root Complex mode. In its current state it probably only works on the Marvell Armada 7K and 8K SoCs, but the same core is used on many other cores as well.
2018-04-02Have fec(4) make use of the clock framework by implementing the enetPatrick Wildt
ref clock in imxccm(4). We can now also remove the global variable that stored the pointer to the imxccm(4) softc.
2018-04-02No need to include imxccmvar.h anymore.Patrick Wildt
2018-04-02Have imxahci(4) make use of the clock framework by implementing the sataPatrick Wildt
and sata ref clock in imxccm(4).
2018-04-02Have imxehci(4) make use of the clock framework by implementing the phyPatrick Wildt
clock in imxccm(4). ok kettenis@
2018-04-02Enable dwpcie(4).Mark Kettenis
2018-04-02Add dwpcie(4), a (minimal) driver for the Synopsys Designware PCIe core inMark Kettenis
Root Complex mode. In its current state it probably only works on the Marvell Armada 7K and 8K SoCs, but the same core is used on many other cores as well.
2018-04-02Do not add 32 to the "base" SPI number. Apparently the offset of the firstMark Kettenis
SPI is already included and adding 32 means we skip the first 32 available MSI vectors, which is quite disastous if we only have 32 vectors like on the Marvell Armada 8040. ok patrick@
2018-04-02Add size to free()David Hill
OK millert@ visa@
2018-04-02Use memcpy on freshly allocated memory and add the free size.David Hill
OK millert@
2018-04-02Pay attention to the "reg-io-width" and "reg-shift" properties and avoidMark Kettenis
using the "a4x" bus tag for the non-console code in the fdt glue. ok patrick@
2018-04-02Remove I2C iomux descriptions from the time before we set those upPatrick Wildt
using the device tree.
2018-04-02enable snooping on Intel Apollo Lake HD Audio, pt out & ok jsgHenning Brauer